/* ==========================================================================
   Wordle Golf -- The Clubhouse (Mobile-First)
   Dark luxury golf aesthetic. Masters broadcast meets leather scorecard.
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* The Course */
    --pine: #0a1f14;
    --forest: #122b1e;
    --fairway: #1d7a4e;
    --fairway-glow: #24a867;
    --spring: #4edb8b;

    /* The Clubhouse */
    --leather: #1a1714;
    --mahogany: #231f1b;
    --oak: #2e2822;
    --parchment: #f0ead6;
    --cream: #faf5eb;

    /* Brass & Gold */
    --gold: #d4a843;
    --gold-bright: #f0c75e;
    --gold-dim: #a68832;

    /* Functional */
    --text: #e8e2d6;
    --text-bright: #f5f0e4;
    --text-muted: #8a8074;
    --text-dark: #1a1714;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --white: #ffffff;
    --danger: #e05545;
    --danger-dim: #c04035;

    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(29, 122, 78, 0.15);

    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   Foundation
   ========================================================================== */

body {
    font-family: var(--font-body);
    background: var(--leather);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Linen texture overlay */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Subtle green glow at top */
body::before {
    content: "";
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(29, 122, 78, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 540px;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    background: linear-gradient(180deg, #0d2618 0%, var(--pine) 100%);
    padding: 0;
    border-bottom: 1px solid rgba(212, 168, 67, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.nav-brand {
    color: var(--cream);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand-icon {
    font-size: 1.15rem;
    filter: drop-shadow(0 0 4px rgba(212, 168, 67, 0.4));
}

.nav-links {
    display: flex;
    gap: 0.15rem;
    align-items: center;
}

.nav-link {
    color: rgba(240, 234, 214, 0.7);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.nav-link:hover,
.nav-link:active {
    background: rgba(255, 255, 255, 0.07);
    color: var(--cream);
}

.nav-link-user {
    background: rgba(212, 168, 67, 0.12);
    color: var(--gold);
    font-weight: 600;
    border: 1px solid rgba(212, 168, 67, 0.2);
}

.nav-link-user:hover,
.nav-link-user:active {
    background: rgba(212, 168, 67, 0.2);
    color: var(--gold-bright);
}

.nav-link-logout {
    opacity: 0.5;
    font-size: 0.75rem;
}

.nav-link-logout:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

main {
    padding: 1.5rem 1.25rem 3rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.15;
}

h1 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--parchment);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cream);
}

a {
    color: var(--fairway-glow);
}

/* ==========================================================================
   Hero (Landing Page)
   ========================================================================== */

.hero {
    text-align: center;
    padding: 3.5rem 0.5rem 3rem;
    position: relative;
}

.hero::before {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--cream);
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    min-height: 48px;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--fairway) 0%, var(--fairway-glow) 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(29, 122, 78, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(29, 122, 78, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(29, 122, 78, 0.3);
}

.btn-secondary {
    background: var(--oak);
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
    min-height: 32px;
    background: var(--oak);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-sm:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.06);
}

.btn-sm.btn-danger {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
}

.btn-sm.btn-danger:hover {
    opacity: 0.85;
}

.btn-block {
    display: flex;
    width: 100%;
}

.export-links {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    background: linear-gradient(145deg, var(--mahogany) 0%, rgba(30, 26, 22, 0.95) 100%);
    border: 1px solid var(--border);
    border-left: 3px solid var(--fairway);
    border-radius: var(--radius);
    padding: 1.1rem 1.15rem;
    margin-bottom: 0.65rem;
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
    animation: cardReveal 0.4s ease both;
    position: relative;
    overflow: hidden;
}

/* Subtle sheen on cards */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.card:active {
    border-left-color: var(--fairway-glow);
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:nth-child(2) { animation-delay: 0.06s; }
.card:nth-child(3) { animation-delay: 0.12s; }
.card:nth-child(4) { animation-delay: 0.18s; }
.card:nth-child(5) { animation-delay: 0.24s; }

.card h3 {
    margin-bottom: 0.3rem;
}

.card h3 a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.2s;
}

.card h3 a:hover {
    color: var(--fairway-glow);
}

.card-meta {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.015em;
}

/* Status badges */
.badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    vertical-align: middle;
}

.badge-active {
    background: rgba(29, 122, 78, 0.2);
    color: var(--spring);
    border: 1px solid rgba(29, 122, 78, 0.3);
}

.badge-finished {
    background: rgba(212, 168, 67, 0.1);
    color: var(--gold);
    border: 1px solid rgba(212, 168, 67, 0.2);
}

.badge-upcoming {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.badge-rank {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
    color: var(--pine);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    border: none;
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.3);
}

/* ==========================================================================
   Forms (Touch-Friendly)
   ========================================================================== */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
    color: var(--parchment);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-bright);
    min-height: 48px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--fairway);
    box-shadow: 0 0 0 3px rgba(29, 122, 78, 0.2), var(--shadow-glow);
    background: rgba(255, 255, 255, 0.06);
}

.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a8074' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.5rem;
}

/* Radio group as tap-friendly cards */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.radio-group label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    min-height: 48px;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: var(--text);
    text-transform: none;
    letter-spacing: 0;
}

.radio-group label:has(input:checked) {
    border-color: var(--fairway);
    background: rgba(29, 122, 78, 0.08);
    color: var(--text-bright);
    box-shadow: 0 0 0 1px var(--fairway), var(--shadow-glow);
}

.radio-group input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--fairway-glow);
    flex-shrink: 0;
}

/* Checkbox styling */
.form-group > label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    min-height: 48px;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--fairway-glow);
    flex-shrink: 0;
}

/* ==========================================================================
   Tables (Leaderboard)
   ========================================================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th, td {
    padding: 0.7rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

th {
    background: linear-gradient(135deg, var(--forest) 0%, #0d2618 100%);
    color: var(--parchment);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

tbody tr {
    background: var(--mahogany);
    transition: background 0.15s;
}

tbody tr:nth-child(even) {
    background: rgba(35, 31, 27, 0.7);
}

tbody tr:last-child td {
    border-bottom: none;
}

tr.current-user {
    background: rgba(29, 122, 78, 0.1) !important;
}

tr.current-user td {
    font-weight: 600;
    color: var(--spring);
}

/* Scorecard summary (always visible, above scrollable table) */
.scorecard-summary {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.scorecard-summary strong {
    color: var(--cream);
    font-weight: 700;
    font-size: 0.95rem;
}

.scorecard-summary .vs-par-positive {
    color: var(--danger);
}

.scorecard-summary .vs-par-negative {
    color: var(--spring);
}

.scorecard-summary .vs-par-even {
    color: var(--text);
}

/* ==========================================================================
   Scorecard (Printed Card Aesthetic)
   ========================================================================== */

.scorecard-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid rgba(212, 168, 67, 0.15);
    background: var(--cream);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.scorecard {
    border-collapse: collapse;
    margin-bottom: 0;
    white-space: nowrap;
    width: auto;
    min-width: 100%;
    color: var(--text-dark);
}

.scorecard th,
.scorecard td {
    text-align: center;
    padding: 0.4rem 0.5rem;
    min-width: 1.9rem;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.scorecard th:last-child,
.scorecard td:last-child {
    border-right: none;
}

.scorecard tbody tr:last-child td {
    border-bottom: none;
}

.scorecard th {
    background: linear-gradient(135deg, #1a4d30 0%, #0d2618 100%);
    color: var(--parchment);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.5rem;
}

.scorecard th:first-child,
.scorecard td:first-child {
    text-align: left;
    font-weight: 700;
    min-width: 2.5rem;
    position: sticky;
    left: 0;
    z-index: 2;
}

.scorecard th:first-child {
    z-index: 3;
}

.scorecard td:first-child {
    background: var(--cream);
    font-size: 0.72rem;
    color: #5a4d3a;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.scorecard .par-row td {
    color: #8a7d6a;
    font-size: 0.75rem;
    background: #f5f0e2;
}

.scorecard .par-row td:first-child {
    background: #f5f0e2;
}

.score-cell {
    position: relative;
    font-weight: 700;
    font-size: 0.82rem;
    z-index: 0;
}

/* Birdie -- green circle background */
.score-birdie {
    color: #0d4025;
    font-weight: 800;
    background: rgba(29, 122, 78, 0.15);
    border-radius: 50%;
}

/* Eagle -- darker green, double circle */
.score-eagle {
    color: #fff;
    font-weight: 800;
    background: #1a6b3f;
    border-radius: 50%;
}

/* Par -- clean, no decoration */
.score-par {
    font-weight: 700;
    color: #3a3225;
}

/* Bogey -- solid warm brown background */
.score-bogey {
    color: #fff;
    font-weight: 800;
    background: #9a7030;
}

/* Double bogey / failed / missed -- red square background */
.score-double-bogey {
    color: #fff;
    font-weight: 800;
    background: #b83a2a;
}

.score-empty {
    color: #c0b8a8;
    font-weight: 400;
}

.score-total {
    font-weight: 800;
    border-left: 2px solid rgba(0, 0, 0, 0.12) !important;
    background: #f5f0e2;
    color: #2a2318;
}

/* ==========================================================================
   Flash Messages
   ========================================================================== */

.flash {
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.88rem;
    border-left: 3px solid transparent;
}

.flash-success {
    background: rgba(29, 122, 78, 0.12);
    color: var(--spring);
    border-left-color: var(--fairway-glow);
}

.flash-error {
    background: rgba(224, 85, 69, 0.12);
    color: #f08070;
    border-left-color: var(--danger);
}

/* ==========================================================================
   Profile Page
   ========================================================================== */

.profile-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.profile-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.profile-header h1 {
    margin-bottom: 0.1rem;
}

.profile-header .card-meta {
    font-size: 0.85rem;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.section-heading h2 {
    margin-bottom: 0;
    white-space: nowrap;
}

.section-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-strong), transparent);
}

/* ==========================================================================
   Round Detail Page
   ========================================================================== */

.round-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: center;
}

.round-header {
    margin-bottom: 1.25rem;
}

.round-header h1 {
    margin-bottom: 0.35rem;
}

.back-link {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.back-link:hover {
    color: var(--text);
}

.round-actions-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Round Settings Menu (cog dropdown)
   ========================================================================== */

.round-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.round-menu-wrapper {
    position: relative;
}

.round-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.round-menu-toggle:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.round-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    background: var(--mahogany);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    padding: 0.4rem 0;
}

.round-menu.open {
    display: block;
}

.round-menu-label {
    padding: 0.4rem 0.85rem 0.2rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.round-menu-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.85rem;
    border: none;
    background: none;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.84rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.round-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.round-menu-danger {
    color: var(--danger);
}

.round-menu-danger:hover {
    background: rgba(224, 85, 69, 0.1);
}

.round-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 0.3rem 0;
}

.round-menu-rename {
    display: flex;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem 0.5rem;
}

.round-menu-input {
    flex: 1;
    min-width: 0;
    padding: 0.35rem 0.55rem;
    background: var(--oak);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.82rem;
}

.round-menu-input:focus {
    outline: none;
    border-color: var(--fairway);
}

.round-menu-rename-btn {
    padding: 0.35rem 0.65rem;
    background: var(--oak);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.round-menu-rename-btn:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.75rem;
    font-family: var(--font-display);
    font-style: italic;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.site-footer::before {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    background: var(--gold-dim);
    margin: 0 auto 0.75rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.75rem; }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state p {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   Responsive -- Tablet & Desktop
   ========================================================================== */

@media (min-width: 480px) {
    .radio-group {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .radio-group label {
        flex: 1;
        min-width: 0;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 680px;
    }

    body {
        font-size: 16px;
    }

    main {
        padding: 2.5rem 1.25rem 3rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 5rem 1rem 4rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
        max-width: 380px;
    }

    .card {
        padding: 1.25rem 1.5rem;
    }

    .card:hover {
        border-left-color: var(--fairway-glow);
        box-shadow: var(--shadow-lg), var(--shadow-glow);
        transform: translateY(-2px);
    }

    .scorecard th,
    .scorecard td {
        padding: 0.5rem 0.6rem;
        min-width: 2.1rem;
        font-size: 0.85rem;
    }

    .scorecard th {
        font-size: 0.72rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 780px;
    }
}
