/* Design Tokens & Root Variables */
:root {
    /* Core Colors - Premium Old-School Palette */
    --color-navy: #1E2A36;
    --color-sand: #D6CBB8;
    --color-bone: #F6F4EF;
    --color-wood: #4A3B2A;

    /* Backgrounds */
    --bg-app: #1E2A36;
    --bg-surface: #2A3642;
    /* Slightly lighter navy */
    --bg-card: #D6CBB8;
    --bg-modal: #1E2A36;

    /* Text */
    --text-primary: #F6F4EF;
    --text-secondary: rgba(246, 244, 239, 0.7);
    --text-muted: rgba(246, 244, 239, 0.45);
    --text-inverse: #1E2A36;

    /* Buttons - Primary */
    --btn-primary-bg: #D6CBB8;
    --btn-primary-text: #1E2A36;
    --btn-primary-hover: #C8BCA6;
    --btn-primary-active: #B9AC95;
    --btn-primary-disabled: rgba(214, 203, 184, 0.4);

    /* Buttons - Secondary */
    --btn-secondary-bg: transparent;
    --btn-secondary-border: rgba(246, 244, 239, 0.3);
    --btn-secondary-text: #F6F4EF;
    --btn-secondary-hover: rgba(246, 244, 239, 0.08);

    /* States */
    --state-selected: #4A3B2A;
    --state-focus: rgba(214, 203, 184, 0.5);
    --state-divider: rgba(246, 244, 239, 0.15);
    --state-disabled: rgba(246, 244, 239, 0.3);

    /* Legacy glass tokens (for compatibility) */
    --color-glass: rgba(246, 244, 239, 0.05);
    --color-glass-border: rgba(246, 244, 239, 0.15);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --radius-sm: 8px;
    --radius-lg: 24px;

    /* Fonts */
    --font-heading: 'Libre Baskerville', serif;
    --font-body: 'Inter', sans-serif;
    --font-main: 'Inter', sans-serif;
    /* Legacy compatibility */
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    touch-action: manipulation;
    /* Prevent double-tap zoom delay on interactive elements */
}

html {
    background-color: var(--bg-app);
    /* Fix overscroll color mismatch */
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-app);
    /* Removed radial-gradient vignette for clean premium look */
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* Background Effects - Removed neon glows for premium aesthetic */

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: var(--space-md);
    max-width: 500px;
}

.text-gradient {
    /* Removed neon gradient - using solid color for premium look */
    color: var(--text-primary);
}

/* Components */
.btn {
    padding: 1rem 2rem;
    border-radius: 100px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    /* Removed neon glow for premium aesthetic */
}

.btn-primary:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-1px);
}

.btn-primary:active {
    background: var(--btn-primary-active);
}

.btn-primary:disabled {
    background: var(--btn-primary-disabled);
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    backdrop-filter: blur(10px);
    border: 1px solid var(--btn-secondary-border);
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Glassmorphism */
/* HEADER BUTTON (Login/Profile) */
#btn-login {
    display: none !important;
}

#btn-login.show-profile {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: calc(1.5rem + env(safe-area-inset-top));
    padding-bottom: 1.5rem;
    padding-left: calc(2rem + env(safe-area-inset-left));
    padding-right: calc(2rem + env(safe-area-inset-right));
    position: relative;
    /* Now scrolls with page */
    z-index: 100;
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.glass-nav {
    background: rgba(20, 30, 25, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--color-glass-border);
}

.glass-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

/* Layout */
#main-content {
    padding-top: 100px;
    /* Space for fixed header */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 2rem;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    z-index: 100;
    display: none;
    /* Hidden on desktop by default in this design, can toggle */
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 100px;
    }

    .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.visual-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 50px rgba(74, 222, 128, 0.2));
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin-slow {
    animation: spin-slow 120s linear infinite;
}

.handicap-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.overlay-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.overlay-value {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-variant-numeric: tabular-nums;
}


/* Game Section */
.game-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.glass-input {
    width: 100%;
    background: rgba(246, 244, 239, 0.05);
    border: 1px solid var(--state-divider);
    padding: 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    /* Prevent iOS zoom */
    min-height: 48px;
    /* Mobile touch target */
}

.glass-input:focus {
    outline: none;
    border-color: var(--state-focus);
    background: rgba(246, 244, 239, 0.08);
}

.full-width {
    width: 100%;
}

/* Toggle Group */
.toggle-group {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.btn-toggle {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-toggle.active {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* Scorecard */
.scorecard-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
    border-bottom: 1px solid var(--color-glass-border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.score-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.current-score {
    text-align: center;
}

#current-strokes {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-sand);
}

.score-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.6;
}

.btn-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--color-glass-border);
    background: transparent;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-circle:hover {
    border-color: var(--color-sand);
    color: var(--color-sand);
}

.active-actions {
    display: flex;
    gap: 1rem;
}

.active-actions .btn {
    flex: 1;
}

.value-lg {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.highlight {
    color: var(--color-sand);
}

.stat-card {
    width: 200px;
    text-align: center;
    margin: 0 auto;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.stat-trend {
    color: var(--color-wood);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* --- Dashboard Redesign Tweaks --- */
.action-content.centered {
    align-items: center;
    text-align: center;
}

.action-title.large {
    font-size: 1.5rem;
}

.status-grid.centered-single {
    grid-template-columns: 1fr;
    justify-items: center;
    margin-top: 2rem;
}

/* Make Handicap Ring Non-Interactive */
#dash-stats-trigger {
    cursor: default !important;
    pointer-events: none;
}

.dashboard-hcp-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle dark border */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Gradient Stroke Simulation - Updated to wood accent */
.dashboard-hcp-ring::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(74, 59, 42, 0.6), transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.dashboard-hcp-ring .hcp-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.dashboard-hcp-ring .hcp-value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: white;
    /* text-shadow: 0 0 20px rgba(163, 230, 53, 0.3); Removed per previous feedback on glow */
}

/* ------------------------------- */
/* Caddie Tip */
.caddie-tip-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(74, 59, 42, 0.1);
    border: 1px solid rgba(74, 59, 42, 0.3);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
}

.tip-icon {
    font-size: 1.5rem;
}

.tip-content {
    display: flex;
    flex-direction: column;
}

.tip-label {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
}

.tip-text {
    font-weight: 600;
    color: var(--color-sand);
}

/* Profile Section */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 2px solid var(--color-glass-border);
}

.profile-stats-summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-item .label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.stat-item .value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-sand);
}

/* Modal Styles */
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 1;
    transition: opacity 0.3s ease;
    /* Fix for mobile keyboard */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
}

/* Allow scrolling when content is taller than view (e.g. keyboard open) */
@media (max-height: 600px) {
    .modal-overlay {
        align-items: flex-start;
        /* Align to top */
        padding-top: 20px;
    }
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    /* Override display:flex needs visibility hidden to fully hide */
    visibility: hidden;
}

.modal-content {
    width: 90%;
    max-width: 400px;
    position: relative;
    padding: 2.5rem;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.hidden .modal-content {
    transform: translateY(20px) scale(0.95);
}

.btn-close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-white);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.6;
    transition: transform 0.2s, opacity 0.2s;
    width: 44px;
    /* Enhanced touch target */
    height: 44px;
    /* Enhanced touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-modal:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* History List Styles */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.history-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.history-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.history-date {
    font-size: 0.8rem;
    opacity: 0.6;
}

.history-score {
    text-align: right;
}

.score-badge {
    background: var(--color-sand);
    color: var(--text-inverse);
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 1.1rem;
}

/* Login Screen Styles */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 30% 30%, rgba(30, 42, 54, 0.4), var(--bg-app) 70%);
    z-index: 2000;
    /* Above header */
    padding: 2rem;
}

.login-content {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.login-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.btn-landing {
    width: 100%;
    padding: 1rem;
    border-radius: 30px;
    /* Fully rounded buttons as per image */
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-white {
    background: var(--color-bone);
    color: var(--text-inverse);
    border: 1px solid rgba(214, 203, 184, 0.2);
}

.btn-facebook {
    background: #1877F2;
    color: white;
    border: none;
}

.btn-landing:hover {
    transform: scale(1.02);
    opacity: 0.9;
    cursor: pointer;
}

.register-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.register-link a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Icons for SSO */
.icon-sso {
    font-weight: bold;
    font-size: 1.2rem;
    width: 24px;
    display: inline-flex;
    justify-content: center;
}

.google-icon::before {
    content: 'G';
    color: #4285F4;
}

.apple-icon::before {
    content: '';
}

.facebook-icon::before {
    content: 'f';
    font-family: sans-serif;
}

/* NEW DESIGN UPDATES */

/* Hero Layout */
.hero-container {
    display: flex;
    flex-direction: column;
    /* Mobile First */
    gap: 3rem;
    padding: 2rem 1rem;
    align-items: center;
    width: 100%;
}

/* --- ROUND SUMMARY SCREEN (Hybrid Tech) --- */
.summary-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-app);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.summary-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.summary-container {
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
}

.summary-header {
    text-align: center;
}

.summary-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.summary-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.summary-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 3rem 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Subtle ambient background - removed neon glow */
.summary-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 59, 42, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.summary-score-ring {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px solid var(--color-wood);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.dashboard-hcp-ring {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid var(--color-wood);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    /* Removed neon glow */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.summary-score-ring::after {
    /* Thin wood accent ring */
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(74, 59, 42, 0.5), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.score-label {
    font-size: 0.7rem;
    opacity: 0.6;
    letter-spacing: 2px;
    margin-bottom: 0.2rem;
}

.score-value {
    font-size: 5rem;
    font-weight: 200;
    /* Thin elegance */
    color: white;
    line-height: 1;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}

.net-score {
    font-size: 1rem;
    color: var(--color-wood);
    font-weight: 600;
    margin-top: 0.5rem;
}

.summary-st.active-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    /* Matches upper buttons */
    padding-bottom: 3rem;
    /* Lift buttons up significantly */
}

.summary-stats-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
}

.stat-box {
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-lbl {
    font-size: 0.6rem;
    opacity: 0.5;
    letter-spacing: 1px;
}

.btn-summary-finish {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.2rem;
    font-size: 1.1rem;
    /* Removed neon shadow */
}

.hero-text-area {
    max-width: 50%;
}

.hero-actions {
    justify-content: flex-start;
}

/* Typography override for Hero */
.hero-text-area h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-text-area h1 {
        text-align: left;
        font-size: 3.5rem;
    }
}

/* Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-pill-lg {
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Large Handicap Card */
.handicap-card-large {
    width: 250px;
    height: 200px;
    border: 3px solid var(--color-wood);
    border-radius: 12px;
    background: var(--bg-app);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.handicap-value {
    font-size: 6rem;
    font-weight: 800;
    color: var(--color-sand);
    line-height: 1;
}

/* Floating Navigation converted to Static Footer */
.floating-pills-nav {
    position: relative;
    /* Scrolls */
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    background: transparent;
    z-index: 100;
    width: max-content;
    max-width: 95vw;
    overflow-x: auto;
    /* Scroll if needed on small screens */
}


/* Override existing mobile-nav styles to remove glass bar background if needed */
.mobile-nav.floating-pills-nav {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--color-wood);
    border-radius: 30px;
    padding: 0.6rem 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-pill:hover,
.nav-pill.active {
    background: var(--color-wood);
    color: var(--color-bone);
    box-shadow: 0 0 15px rgba(74, 59, 42, 0.3);
}

.nav-pill .icon {
    font-size: 1.1rem;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left-color: #333;
    /* Dark for white buttons */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Disabled state */
.btn-loading {
    opacity: 0.7;
    pointer-events: none;
    cursor: wait;
}

/* Google Account Authenticator Simulation */
.google-sheet-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    /* Rounded corners */
    padding: 2rem;
    color: #333;
    font-family: 'Roboto', sans-serif;
    position: relative;
    /* Center in flex container (modal-overlay has display:flex) */
    margin: auto;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Remove slideUp animation reference if present */

.google-header {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

.google-header h3 {
    margin: 0.5rem 0 0 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.google-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.google-accounts-list {
    display: flex;
    flex-direction: column;
}

.google-account-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
}

.google-account-item:hover {
    background: #f9f9f9;
}

.g-avatar {
    width: 40px;
    height: 40px;
    background: #1a73e8;
    /* Google Blue */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.1rem;
}

.g-avatar.purple {
    background: #9334e6;
}

.g-avatar.icon {
    background: transparent;
    color: #5f6368;
    border: 1px solid #dadce0;
}

.g-info {
    display: flex;
    flex-direction: column;
}

.g-name {
    font-weight: 500;
    font-size: 1rem;
    color: #202124;
}

.g-email {
    font-size: 0.85rem;
    color: #5f6368;
}

/* Google Material Input */
.g-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.g-input-group input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
    color: #202124;
}

.g-input-group input:focus {
    border: 2px solid #1a73e8;
    padding: 12px 14px;
    /* Adjust for border width */
}

.g-input-group label {
    position: absolute;
    left: 12px;
    top: 14px;
    background: white;
    padding: 0 4px;
    color: #5f6368;
    font-size: 1rem;
    transition: 0.2s ease all;
    pointer-events: none;
}

/* Floating label effect */
.g-input-group input:focus~label,
.g-input-group input:not(:placeholder-shown)~label {
    top: -8px;
    font-size: 0.8rem;
    color: #1a73e8;
    font-weight: 500;
}

/* Apple Auth Simulation */
.apple-sheet {
    background: #f9f9f9;
    /* iOS Light Mode */
    width: 90%;
    max-width: 320px;
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    margin: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUpSpring 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes slideUpSpring {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.apple-header h3 {
    margin: 0.5rem 0 0.2rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.apple-header p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

.face-id-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.face-id-status {
    color: #007AFF;
    /* iOS Blue */
    font-weight: 500;
}

.scan-line {
    transform-origin: center;
    animation: scan 1.5s ease-in-out infinite;
}

@keyframes scan {

    0%,
    100% {
        transform: translateY(-8px);
        opacity: 0;
    }

    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

/* Facebook Auth Simulation */
.facebook-sheet {
    background: #f0f2f5;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    color: #1c1e21;
    font-family: Helvetica, Arial, sans-serif;
    margin: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fb-header {
    background: white;
    padding: 1rem;
    border-bottom: 1px solid #dddfe2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fb-content {
    padding: 1.5rem;
    text-align: center;
}

.fb-user-card {
    background: white;
    border: 1px solid #dddfe2;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    text-align: left;
}

.fb-avatar {
    width: 40px;
    height: 40px;
    background: #1877F2;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
}

.fb-user-info {
    display: flex;
    flex-direction: column;
}

.fb-user-info small {
    color: #65676b;
}

.fb-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-fb-primary {
    background: #1877F2;
    color: white;
    font-weight: bold;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    width: 100%;
    font-size: 1rem;
    cursor: pointer;
}

.btn-fb-secondary {
    background: transparent;
    color: #1877F2;
    border: 1px solid #1877F2;
    /* Optional border for cancel */
    border: none;
    /* Usually cancel is text only or secondary button */
    padding: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

/* --- MOBILE KEYBOARD FIXES --- */
@media (max-height: 800px) {
    .modal-overlay {
        align-items: flex-start !important;
        /* Force content to top */
        padding-top: calc(2rem + env(safe-area-inset-top)) !important;
        padding-bottom: 50vh !important;
        /* Massive bottom padding ensures scroll space above keyboard */
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch;
    }

    .modal-content,
    .google-sheet-content,
    .apple-sheet,
    .facebook-sheet {
        margin: 0 auto !important;
        transform: none !important;
        /* Disable centering transforms */
        position: relative !important;
        top: 0 !important;
        bottom: auto !important;
        margin-bottom: 2rem !important;
    }
}

/* --- SPLASH SCREEN --- */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, #020617, #052e16);
    /* Super Dark Green Gradient */
    z-index: 10000;
    /* Top of the world */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-bone) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: -1px;
    animation: pulse-logo 2s infinite ease-in-out;
}

@keyframes pulse-logo {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

.splash-screen.hidden-splash {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- DASHBOARD STYLES --- */
.dashboard-welcome {
    margin-bottom: 1.5rem;
    text-align: left;
    padding: 0 0.5rem;
}

.greeting {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(to right, var(--text-primary), var(--color-sand));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle-sm {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 300;
}

/* Wiggle Effect */
@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-1deg);
    }

    50% {
        transform: rotate(1deg);
    }
}

.wiggle-on-hover:hover {
    animation: wiggle 0.5s ease-in-out infinite;
    border-color: var(--color-wood);
}

/* Main Handicap Card Redesign */
.handicap-card-large {
    width: 100%;
    margin-bottom: 2rem;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.6), rgba(0, 0, 0, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    /* Remove old static dimensions */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
}

.handicap-content {
    text-align: center;
}

.handicap-content .label {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.handicap-content .handicap-value {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--color-sand);
    /* Removed neon glow shadow */
}

/* Giant Play Button */
.action-area {
    margin-bottom: 2rem;
}

.btn-play-giant {
    width: 100%;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    cursor: pointer;
    /* Removed neon glow shadow */
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-play-giant::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-play-giant:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--btn-primary-hover);
}

.btn-play-giant:active {
    transform: scale(0.96);
}

.btn-play-giant:active::after {
    opacity: 1;
}

.play-icon-circle {
    background: rgba(0, 0, 0, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.play-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.play-text .main {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a2e05;
    /* Dark Green Text */
    line-height: 1;
}

.play-text .sub {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(26, 46, 5, 0.7);
}

/* Quick Stats Row */
.quick-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.glass-card-sm {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    backdrop-filter: blur(10px);
}

.qs-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qs-info {
    display: flex;
    flex-direction: column;
}

.qs-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.qs-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

/* --- DASHBOARD REORGANIZATION (V2) --- */

/* 1. Primary Actions Grid */
.primary-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.btn-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    min-height: 180px;
    /* Ensure specific height for look */
}

.btn-action-card:hover {
    transform: translateY(-2px);
}

.btn-action-card:active {
    transform: scale(0.98);
}

/* Action Primary (Jugar) - Dominant Green */
/* Action Primary (Jugar) - Dominant Green - High Contrast */
.action-primary {
    background: linear-gradient(135deg, #d9f99d, #84cc16);
    border: 1px solid var(--color-wood);
    /* Removed green glow */
}

.action-primary .action-title {
    color: var(--color-sand);
    font-weight: 700;
}

.action-primary .action-subtitle {
    color: var(--text-muted);
}

/* Action Secondary (Entrenar) - Dark Glass/Blueish overlay */
.action-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.action-secondary .action-title {
    color: white;
}

.action-secondary .action-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

/* Icon & Content Layout */
.action-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.action-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    width: 100%;
}

.action-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.action-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Decor element for Primary */
.action-decor {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(20px);
}

/* 2. Status Grid (Secondary) */
.status-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.status-card-compact {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-label-sm {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.status-value-lg {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.status-value-md {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* 3. Tertiary Stats */
.tertiary-row {
    display: flex;
    justify-content: center;
    opacity: 0.7;
}

.mini-stat-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Desktop Adjustment */
@media (min-width: 768px) {
    .primary-actions-grid {
        flex-direction: row;
    }
}

/* --- WIZARD STYLES (New Round Setup) --- */
.wizard-header {
    margin-bottom: 1.5rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.wizard-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-sand);
    transition: width 0.4s ease-in-out;
}

.step-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

/* Course Selection Step */
.search-box-container {
    position: relative;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.course-list-scroll {
    max-height: 40vh;
    /* Adjust as needed */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-right: 0.5rem;
    /* For scrollbar custom if needed */
}

.course-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.course-card.selected {
    background: rgba(74, 59, 42, 0.2);
    border-color: var(--color-wood) !important;
    box-shadow: 0 4px 20px rgba(74, 59, 42, 0.2);
}

.course-card.selected .course-select-indicator {
    background: var(--color-wood);
    box-shadow: 0 0 12px rgba(74, 59, 42, 0.4);
}

.course-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-info {
    flex: 1;
}

.course-name {
    font-weight: 600;
    color: white;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.course-loc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.section-title-sm {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

/* Step 3 Styles (Restored) */
.players-list-scroll {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 40vh;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.player-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid transparent;
}

.player-card.selected-locked {
    border-color: var(--color-wood);
    background: rgba(74, 59, 42, 0.1);
}

.player-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
}

.player-hcp {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.player-stat.course-loc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.player-status {
    font-size: 0.75rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.btn-add-player {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-player:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.add-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
}

/* Step 2 Redesign: Glass Selects (Pill Shaped) */
.mb-4 {
    margin-bottom: 1.5rem;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.glass-select {
    -webkit-appearance: none !important;
    /* Override Safari/Chrome */
    -moz-appearance: none !important;
    /* Override Firefox */
    appearance: none !important;

    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 3rem;

    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 100px !important;
    /* Pill Shape */

    color: white !important;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;

    cursor: pointer;
    transition: all 0.2s ease;
}

.glass-select:focus {
    outline: none;
    border-color: var(--state-focus);
    background: rgba(246, 244, 239, 0.08);
}

.wizard-actions .btn-primary.action-start-game {
    background: linear-gradient(135deg, var(--color-wood), var(--color-sand));
    color: var(--color-bone);
    /* Removed neon glow shadow */
}

.glass-select option {
    background-color: #0f172a;
    /* Slate 900 */
    color: white;
}

/* Friend Selector Styles */
.friend-option {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.friend-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.player-avatar.sm {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    margin-right: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.friend-name {
    flex: 1;
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
}

.add-mini-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

/* Game Course Label */
.game-course-label {
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* --- SCORING LIST (Multiplayer) --- */
.scoring-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-bottom: 200px;
    /* Space for fixed keypad */
}

.scoring-row {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scoring-row:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-action-card.action-primary {
    background: linear-gradient(160deg, rgba(74, 59, 42, 0.3), rgba(30, 42, 54, 0.8));
    border: 1px solid var(--color-wood);
    transition: all 0.3s;
}

.btn-action-card.action-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(160deg, rgba(74, 59, 42, 0.4), rgba(30, 42, 54, 0.9));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.scoring-row.active-edit {
    background: linear-gradient(90deg, rgba(74, 59, 42, 0.1), rgba(0, 0, 0, 0));
    border-color: var(--color-wood);
    /* Removed neon glow */
}

.s-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
    color: white;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.s-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.s-name {
    font-weight: 600;
    font-size: 1rem;
}

.s-hcp {
    font-size: 0.8rem;
    opacity: 0.6;
}

.s-score-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    border: 2px solid transparent;
}

.s-score-box.empty {
    color: rgba(255, 255, 255, 0.2);
    font-size: 2rem;
    line-height: 0.8;
}

.scoring-row.active-edit .s-score-box {
    background: #ffffff;
    color: black;
    border-color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* --- KEYPAD SHEET --- */
.score-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* Ensure it spans strictly from left to right edge */
    width: auto;
    /* Allow auto width based on left/right anchors */
    margin: 0;
    /* consistent zero margin */
    background: rgba(10, 20, 15, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px 24px 0 0;
    padding: 1rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    z-index: 5000;
    box-sizing: border-box;
    /* Explicitly ensure border-box */
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 480px) {
    .score-sheet {
        padding: 1.5rem;
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
        /* On desktop/tablet we might want to cap width, but user didn't ask yet. 
           Keeping it full width for now but ensuring padding is nice. */
    }
}

/* --- INTERACTIVE GPS MODAL STYLES --- */
.gps-full-screen {
    width: 100vw;
    height: 100vh;
    background: black;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.gps-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    padding-top: max(1rem, env(safe-area-inset-top));
    /* Mobile safe area */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through except buttons */
}

.gps-top-bar button {
    pointer-events: auto;
}

.gps-hole-info {
    display: flex;
    flex-direction: column;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.gps-h-num {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-sand);
}

.gps-h-dist {
    font-size: 1.2rem;
    font-weight: 800;
}

.btn-icon-round {
    width: 48px;
    /* Enhanced touch target */
    height: 48px;
    /* Enhanced touch target */
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.gps-map-area {
    flex: 1;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    touch-action: none;
    /* Prevent scroll while dragging */
}

.gps-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.gps-target {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    z-index: 5;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gps-target:active {
    cursor: grabbing;
}

.target-reticle {
    width: 30px;
    height: 30px;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.5);
    position: relative;
    background: rgba(255, 255, 255, 0.1);
}

.target-reticle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
}

.target-label {
    position: absolute;
    top: -36px;
    /* Moved up slightly */
    background: black;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1.1rem;
    /* Larger font */
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sheet-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.btn-close-sheet {
    background: none;
    border: none;
    color: var(--color-sand);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

/* Make PAR button accessible */
.key-btn[data-value="par"] {
    grid-column: span 3;
}

@media (min-width: 480px) {
    .keypad-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.8rem;
    }

    .key-btn[data-value="par"] {
        grid-column: span 1;
    }
}

.key-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    height: 60px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.1s;
}

.key-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.2);
}

.key-btn.special {
    background: rgba(74, 59, 42, 0.2);
    color: var(--color-sand);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SUPER KEYPAD STYLES --- */
.super-keypad-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Reduced gap */
    padding: 0.5rem;
    overflow-y: auto;
    /* Use dynamic viewport height to account for browser bars */
    /* Use dynamic viewport height to account for browser bars */
    max-height: 80dvh;
    padding-bottom: max(8rem, env(safe-area-inset-bottom));
    /* Large bottom padding for safe scroll */
}

.kp-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Reduced gap */
}

.kp-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

/* 1. Strokes Grid */
.strokes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.k-num {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    /* Slightly smaller font */
    font-weight: 700;
    aspect-ratio: 1;
    /* Keep square */
    height: 50px;
    /* Enhanced touch target */
    /* Fixed height to control size better */
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.k-num.selected {
    background: var(--color-wood);
    color: var(--color-bone);
    transform: scale(1.05);
    border: 2px solid var(--color-sand);
}

/* 2. Putt Segments */
.putt-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.k-seg {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.8rem 0;
    min-height: 48px;
    /* Enhanced touch target */
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.k-seg.selected {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 3. Fairway Row */
.fairway-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.k-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.k-icon span {
    font-size: 1.4rem;
    filter: grayscale(1);
    transition: all 0.2s;
}

.k-icon.selected {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.k-icon.selected span {
    filter: grayscale(0);
    transform: scale(1.2);
}

/* Specific Colors for Fairway */
.fw-hit.selected {
    border-color: #4ade80;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.fw-left.selected {
    border-color: #fbbf24;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.fw-right.selected {
    border-color: #fbbf24;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.fw-miss.selected {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* 4. Toggles */
.toggle-row {
    flex-direction: row;
}

.k-toggle {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.k-toggle.active {
    background: rgba(255, 255, 255, 0.15);
    /* More visible */
    border-color: #60a5fa;
    /* Blueish for info */
    color: white;
}

.badge-pen {
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
}

/* --- DASHBOARD SPECIFIC FIXES (Layout) --- */

/* 1. Expand the container for Dashboard */
#dashboard-section.game-container.hero {
    max-width: 100% !important;
    /* Allow full width usage */
    width: 100%;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center everything */
    justify-content: center;
    gap: 2.5rem;
    /* Space between sections */
    min-height: 80vh;
    /* Ensure it takes up vertical space */
}

/* 2. Welcome Section - Full Width & Centered */
.dashboard-welcome {
    width: 100%;
    max-width: 600px;
    text-align: left;
    /* Keep left aligned text for greeting */
    margin-bottom: 1rem;
    padding-left: 1rem;
    /* Visual balance */
    grid-column: 1 / -1;
    /* Reset legacy grid behavior */
}

.greeting {
    font-size: 2.5rem;
    /* Bigger Hello */
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(to right, var(--text-primary), var(--color-sand));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text-primary);
    /* Fallback */
}

/* 3. Primary Actions (Buttons) */
.primary-actions-grid {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    justify-content: center;
    align-items: stretch;
}

/* Adjust button sizes */
.btn-action-card {
    flex: 1;
    min-width: 140px;
    /* Ensure height match */
    display: flex;
    flex-direction: column;
}

/* 4. Handicap Ring - Centered & Prominent */
.status-grid.centered-single {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* Ensure the ring is visible and styled */
.dashboard-hcp-ring {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Ensure relative positioning works */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Glow effect */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hcp-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.hcp-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

/* Mobile Tweaks */
/* Mobile Tweaks */
@media (max-width: 480px) {
    .primary-actions-grid {
        flex-direction: column;
    }

    .greeting {
        font-size: 2rem;
    }

    /* FIX: Profile Modal Mobile Layout */
    #profile-section.game-container {
        padding-top: 1rem !important;
        padding-bottom: 120px !important;
        min-height: 100vh;
    }

    #profile-section .profile-header-nav {
        margin-bottom: 1rem !important;
        margin-top: 0.5rem !important;
    }

    #profile-section .profile-avatar-wrapper {
        margin-bottom: 1.5rem !important;
        width: 80px !important;
        height: 80px !important;
    }

    #profile-section .form-group {
        margin-bottom: 1rem !important;
    }
}

/* --- DASHBOARD SPECIFIC FIXES (Layout) --- */

/* 1. Expand the container for Dashboard */
#dashboard-section.game-container.hero {
    max-width: 100% !important;
    /* Allow full width usage */
    width: 100%;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center everything */
    justify-content: center;
    gap: 2.5rem;
    /* Space between sections */
    min-height: 80vh;
    /* Ensure it takes up vertical space */
}

/* 2. Welcome Section - Full Width & Centered */
.dashboard-welcome {
    width: 100%;
    max-width: 600px;
    text-align: left;
    /* Keep left aligned text for greeting */
    margin-bottom: 1rem;
    padding-left: 1rem;
    /* Visual balance */
    grid-column: 1 / -1;
    /* Reset legacy grid behavior */
}

.greeting {
    font-size: 2.5rem;
    /* Bigger Hello */
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(to right, var(--text-primary), var(--color-sand));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: white;
    /* Fallback */
}

/* 3. Primary Actions (Buttons) */
.primary-actions-grid {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    justify-content: center;
    align-items: stretch;
}

/* Adjust button sizes */
.btn-action-card {
    flex: 1;
    min-width: 140px;
    /* Ensure height match */
    display: flex;
    flex-direction: column;
}

/* 4. Handicap Ring - Centered & Prominent */
.status-grid.centered-single {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* Ensure the ring is visible and styled */
.dashboard-hcp-ring {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Ensure relative positioning works */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Glow effect */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hcp-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.hcp-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

/* Mobile Tweaks */
@media (max-width: 400px) {
    .primary-actions-grid {
        flex-direction: column;
    }

    .greeting {
        font-size: 2rem;
    }
}

/* --- SOCIAL CARD (GAMEBOOK STYLE) --- */
.social-share-card {
    width: 600px;
    /* Fixed width for consistent generation */
    background: #ffffff;
    /* Explicit white bg */
    border-radius: 20px;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* Ensure it doesn't mess with layout flow if display block */
    flex-shrink: 0;
}

.hidden-vis {
    position: absolute;
    left: -9999px;
    top: -9999px;
    z-index: -100;
    pointer-events: none;
    opacity: 0;
    /* Add opacity 0 just in case, html2canvas usually handles it if ignoresElements is false */
    /* Display must be block for html2canvas to render */
    display: block;
}

.social-card-inner {
    display: flex;
    flex-direction: column;
}

/* Header */
.sc-header {
    background: linear-gradient(135deg, var(--color-wood), var(--color-sand));
    /* Premium palette */
    color: var(--bg-app);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.sc-course-info h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    color: white;
    /* Ensure valid color */
}

.sc-course-info span {
    font-size: 0.9rem;
    opacity: 0.9;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sc-logo {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(5px);
}

/* Player Row */
.sc-player-row {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #f1f5f9;
    gap: 1rem;
}

.sc-avatar {
    width: 60px;
    height: 60px;
    background: #1e293b;
    color: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
}

.sc-player-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#sc-player-name {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
}

.sc-hcp-badge {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

.sc-tee-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
}

/* Grid */
.sc-scores-grid {
    padding: 1rem 2rem;
}

.sc-row {
    display: flex;
    margin-bottom: 0.5rem;
}

.sc-cell-label {
    width: 60px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.sc-cell-head {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    padding-bottom: 0.5rem;
}

.sc-cell {
    flex: 1;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.sc-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 1rem 0;
}

/* Shapes */
.sc-circle {
    width: 28px;
    height: 28px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-square {
    width: 28px;
    height: 28px;
    background: #f97316;
    /* Orange */
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-square.double {
    background: #ef4444;
    /* Red */
    border: 2px solid #7f1d1d;
}

.sc-plain {
    color: #0f172a;
}

/* Footer Stats */
.sc-footer {
    background: #f8fafc;
    padding: 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 2px solid #e2e8f0;
}

.sc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.sc-stat.border-left {
    border-left: 1px solid #cbd5e1;
    padding-left: 2rem;
}

.sc-stat .val {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.sc-stat .lbl {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #64748b;
    margin-top: 0.4rem;
}

/* --- NEW STATS STYLES --- */
.btn-icon-only {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-only:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stat-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-bar-row {
    width: 100%;
}

.stat-bar-bg {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

/* --- Scorecard Score Shapes --- */
.score-shape {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    font-weight: 700;
}

/* BIRDIE: Green Circle */
.score-shape-circle {
    border: 1px solid #22c55e;
    border-radius: 50%;
    color: inherit;
}

/* EAGLE+: Dark Green Double Circle */
.score-shape-double-circle {
    border: 3px double #15803d;
    border-radius: 50%;
    color: inherit;
}

/* BOGEY: Red Square */
.score-shape-square {
    border: 1px solid #b91c1c;
    border-radius: 2px;
    color: inherit;
}

/* DOUBLE BOGEY+: Red Double Square */
.score-shape-double-square {
    border: 3px double #b91c1c;
    border-radius: 2px;
    color: inherit;
}