        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #e0e0e0;
            background: #1a1a2e;
            overflow-x: hidden; /* Prevent horizontal scroll */
        }

        :root {
            --header-offset: 152px;
            --hamburger-color: #001f5b;
            --hamburger-hover-border: #003080;
            --hamburger-hover-color: #0a3d9e;
            --logo-accent: #ff8f00;
            --logo-accent-soft: rgba(255, 143, 0, 0.4);
            --logo-shell-bg: linear-gradient(145deg, #060e24 0%, #122044 60%, #1a305a 100%);
            --logo-shell-glow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 143, 0, 0.15);
        }

        header {
            background: linear-gradient(135deg, #e65100 0%, #ff6f00 40%, #ff8f00 100%);
            color: white;
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 4px 16px rgba(0,0,0,0.35), inset 0 -1px 0 rgba(255,255,255,0.1);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            padding-left: 100px;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            gap: 12px;
            background: none;
            border: none;
            box-shadow: none;
            transition: transform 0.25s ease;
            position: fixed;
            top: 12px;
            left: 20px;
            z-index: 1000;
        }

        .logo:hover {
            transform: translateY(-1px) scale(1.02);
            box-shadow: none;
        }

        .brand-mark {
            width: 82px;
            height: 82px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-weight: 900;
            font-size: 0.75rem;
            border: none;
            background: none;
            box-shadow: none;
            text-shadow: 0 2px 6px rgba(0,0,0,0.5);
            transition: transform 0.3s ease;
            text-align: center;
            line-height: 1.1;
            padding: 4px;
            overflow: hidden;
        }

        .brand-mark:hover {
            transform: scale(1.03);
            box-shadow: none;
        }

        .brand-mark.has-logo {
            width: 102px;
            height: 102px;
            padding: 6px;
            border: none;
            background: none;
            overflow: hidden;
            box-shadow: none;
        }

        .brand-mark.has-logo img {
            width: 100%;
            height: 100%;
            max-width: none;
            max-height: none;
            border-radius: 50%;
            object-fit: cover;
        }

        .brand-mark img {
            display: block;
            max-height: 86px;
            max-width: min(220px, 38vw);
            width: auto;
            height: auto;
            object-fit: contain;
            filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35));
        }

        @media (min-width: 769px) {
            .brand-mark {
                min-height: 100px;
                padding: 0 28px;
                font-size: 1.15rem;
            }
        }



        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
            align-items: center;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            transition: opacity 0.3s;
        }

        .nav-links a:hover {
            opacity: 0.8;
        }

        .cta-button.small { padding: 6px 10px; font-size: 0.95rem; border-radius: 4px; }

        .hero {
            background-color: #001f5b;
            color: white;
            padding: 96px 0 88px;
            min-height: calc(100vh - var(--header-offset));
            border-bottom: 4px solid #ff6f00;
            position: relative;
            overflow: hidden;
        }

        .hero::after {
            content: "";
            position: absolute;
            top: -50%;
            right: -20%;
            width: 70%;
            height: 200%;
            background: radial-gradient(ellipse, rgba(255, 111, 0, 0.06) 0%, transparent 70%);
            transform: rotate(-15deg);
            pointer-events: none;
            z-index: 1;
        }

        .hero-background-media {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: var(--hero-bg-position, center);
            z-index: 0;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
        }

        .hero-background-media.loaded {
            opacity: 1;
        }

        /* Subtle shimmer placeholder while background image loads */
        .hero-background-loading::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 0;
            background: linear-gradient(
                110deg,
                transparent 30%,
                rgba(255, 111, 0, 0.04) 45%,
                rgba(255, 143, 0, 0.06) 50%,
                rgba(255, 111, 0, 0.04) 55%,
                transparent 70%
            );
            background-size: 200% 100%;
            animation: heroShimmer 2.5s ease-in-out infinite;
            pointer-events: none;
        }

        @keyframes heroShimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* Base gradient overlays (no background image) */
        .hero::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse at 80% 20%, rgba(255, 143, 0, 0.14), transparent 40%),
                        radial-gradient(ellipse at 10% 80%, rgba(255, 255, 255, 0.04), transparent 35%),
                        radial-gradient(circle at 50% 110%, rgba(255, 111, 0, 0.08), transparent 30%);
            pointer-events: none;
            z-index: 1;
            transition: background 0.6s ease-in-out;
        }

        /* Cinematic dark overlay + enhanced gradient when background image is loaded */
        .hero.has-background-image::before {
            background:
                linear-gradient(180deg, rgba(0, 10, 30, 0.62) 0%, rgba(0, 5, 18, 0.42) 45%, rgba(0, 10, 30, 0.65) 100%),
                linear-gradient(105deg, rgba(0, 0, 0, 0.35) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 15%, rgba(255, 143, 0, 0.18), transparent 45%),
                radial-gradient(circle at 5% 85%, rgba(255, 111, 0, 0.1), transparent 38%);
        }

        .hero .container {
            position: relative;
            z-index: 2;
        }

        /* Mobile: scale down hero background for performance */
        @media (max-width: 768px) {
            .hero-background-media {
                object-position: var(--hero-bg-position, center top);
            }
        }

        .hero-layout {
            display: grid;
            grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
            align-items: center;
            gap: 36px;
        }

        .hero-content {
            max-width: 680px;
        }

        .hero-branding {
            margin-bottom: 1.5rem;
        }

        .hero-brand-mark {
            width: min(160px, 45vw);
            height: min(160px, 45vw);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            border: 2px solid rgba(255, 143, 0, 0.55);
            background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08), transparent 50%),
                        linear-gradient(155deg, rgba(6, 11, 30, 0.98) 0%, rgba(20, 36, 74, 0.96) 50%, rgba(10, 18, 40, 0.98) 100%);
            box-shadow: 0 20px 44px rgba(0,0,0,0.4),
                        inset 0 1px 0 rgba(255,255,255,0.1),
                        0 0 0 1px rgba(255, 143, 0, 0.1);
            color: #fff;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-weight: 900;
            font-size: clamp(0.8rem, 1.5vw, 1rem);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            text-align: center;
            line-height: 1.1;
            padding: 10px;
            overflow: hidden;
        }

        .hero-brand-mark:hover {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 24px 50px rgba(0,0,0,0.5),
                        inset 0 1px 0 rgba(255,255,255,0.12),
                        0 0 16px rgba(255, 143, 0, 0.15);
        }

        .hero-brand-mark.has-logo {
            width: min(180px, 55vw);
            height: min(180px, 55vw);
            min-height: 0;
            max-width: none;
            padding: 10px;
            border-radius: 50%;
            border: 3px solid rgba(255, 143, 0, 0.7);
            overflow: hidden;
            background: linear-gradient(155deg, #050a1c 0%, #14244a 60%, #0a1530 100%);
            box-shadow: 0 20px 44px rgba(0,0,0,0.45),
                        inset 0 0 12px rgba(0,0,0,0.4),
                        0 0 0 3px rgba(255, 143, 0, 0.08);
        }

        .hero-brand-mark.has-logo img {
            width: 100%;
            height: 100%;
            max-width: none;
            max-height: none;
            border-radius: 50%;
            object-fit: cover;
        }

        .hero-brand-mark img {
            display: block;
            width: auto;
            height: auto;
            max-width: min(100%, 300px);
            max-height: 140px;
            object-fit: contain;
            filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
        }

        .hero-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            border-radius: 999px;
            background: rgba(255, 111, 0, 0.14);
            border: 1px solid rgba(255, 111, 0, 0.4);
            color: #ffb366;
            font-size: 0.82rem;
            font-weight: 800;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            margin-bottom: 1.25rem;
            box-shadow: 0 2px 12px rgba(255, 111, 0, 0.1);
        }

        .hero-content h1 {
            font-size: clamp(3rem, 6vw, 5rem);
            margin-bottom: 1rem;
            line-height: 1.08;
            text-shadow: 0 2px 6px rgba(0,0,0,0.5), 0 8px 20px rgba(0,0,0,0.3);
            text-transform: uppercase;
            letter-spacing: 3px;
            word-break: break-word;
            font-weight: 900;
            font-style: italic;
        }

        .hero-subtitle {
            font-size: clamp(1.2rem, 2vw, 1.5rem);
            margin-bottom: 1rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #ff8f00;
            max-width: 40rem;
        }

        .hero-description {
            font-size: 1.05rem;
            color: rgba(255,255,255,0.82);
            max-width: 38rem;
            margin-bottom: 2rem;
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            margin-bottom: 2rem;
        }

        .cta-button.secondary {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.22);
            box-shadow: none;
        }

        .cta-button.secondary:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 143, 0, 0.55);
        }

        .hero-highlights {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px;
        }

        .hero-highlight,
        .hero-info-card,
        .countdown-timer,
        .latest-results-widget {
            background: rgba(7, 10, 25, 0.72);
            border: 1px solid rgba(255, 111, 0, 0.22);
            border-radius: 22px;
            box-shadow: 0 18px 36px rgba(0,0,0,0.24);
            backdrop-filter: blur(12px);
        }

        .hero-highlight {
            padding: 20px;
        }

        .hero-highlight-label,
        .hero-info-label {
            display: inline-block;
            font-size: 0.76rem;
            font-weight: 700;
            color: #ffb366;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            margin-bottom: 10px;
        }

        .hero-highlight h2 {
            font-size: 1.2rem;
            color: #fff;
            text-align: left;
            letter-spacing: normal;
            text-transform: none;
            margin-bottom: 0.65rem;
        }

        .hero-highlight p,
        .hero-info-card p {
            margin: 0;
            color: rgba(255,255,255,0.76);
            line-height: 1.65;
        }

        .home-hero-panel {
            display: grid;
            gap: 16px;
        }

        .hero-info-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }

        .hero-info-card {
            padding: 18px;
        }

        .hero-info-card-wide {
            grid-column: 1 / -1;
        }

        .hero-info-value {
            display: block;
            font-size: 1.05rem;
            color: #fff;
            line-height: 1.35;
            margin-bottom: 8px;
        }

        .hero-info-card a {
            color: #ffb366;
            font-weight: 600;
        }

        .hero-info-card a:hover {
            color: #ffd099;
        }

        .cta-button {
            display: inline-block;
            background: linear-gradient(135deg, #e65100 0%, #ff6f00 40%, #ff8f00 100%);
            color: white;
            padding: 14px 32px;
            text-decoration: none;
            border-radius: 6px;
            font-size: 1.1rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 18px rgba(255,111,0,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
            position: relative;
            overflow: hidden;
        }

        .cta-button::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
            transition: left 0.5s ease;
        }

        .cta-button:hover::before {
            left: 100%;
        }

        .cta-button:hover {
            background: linear-gradient(135deg, #bf360c 0%, #e65100 40%, #ff6f00 100%);
            box-shadow: 0 8px 24px rgba(255,111,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
            transform: translateY(-2px);
        }

        section {
            padding: 80px 20px;
        }
        
        /* Mobile: reduce section padding */
        @media (max-width: 768px) {
            section {
                padding: 50px 15px;
            }
        }
        
        @media (max-width: 480px) {
            section {
                padding: 40px 12px;
            }
        }

        h2 {
            font-size: 2.5rem;
            margin-bottom: 2rem;
            color: #ff8f00;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .about {
            background: #16213e;
        }

        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
        }

        .about-text h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: #ff8f00;
        }

        .about-text p {
            margin-bottom: 1rem;
            line-height: 1.8;
            color: #ccc;
        }

        .schedule {
            background: #1a1a2e;
        }

        .schedule-table {
            width: 100%;
            border-collapse: collapse;
            background: #16213e;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            border: 1px solid #2a2a4a;
        }

        .schedule-table th {
            background: linear-gradient(135deg, #e65100, #ff6f00);
            color: white;
            padding: 15px;
            text-align: left;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.95rem;
        }

        .schedule-table td {
            padding: 15px;
            border-bottom: 1px solid #2a2a4a;
            color: #e0e0e0;
        }

        .stats-table-wrapper {
            width: 100%;
            max-width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin-bottom: 12px;
            border-radius: 8px;
        }

        .stats-grid-table {
            min-width: 980px;
            margin: 0;
        }

        .stats-grid-table th,
        .stats-grid-table td {
            white-space: nowrap;
        }

        .recap-stats-admin-btns {
            text-align: center;
            margin: 10px 0;
            display: none;
        }

        .schedule-table tr:hover {
            background: #1e2d50;
        }

        .schedule-matchup {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 18px;
            flex-wrap: wrap;
            text-align: center;
        }

        .schedule-team {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            min-width: 110px;
            position: relative;
        }

        .schedule-team-badge {
            position: absolute;
            top: -10px;
            right: -6px;
            min-width: 28px;
            height: 28px;
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.82rem;
            font-weight: 900;
            color: #fff;
            box-shadow: 0 4px 12px rgba(0,0,0,0.35);
            border: 2px solid rgba(255,255,255,0.15);
        }

        .schedule-team-badge.win {
            background: #2e7d32;
        }

        .schedule-team-badge.loss {
            background: #c62828;
        }

        .schedule-team-logo,
        .schedule-admin-logo-preview,
        .stats-team-logo,
        .team-logo {
            object-fit: cover;
            border-radius: 50%;
            border: 3px solid var(--logo-accent);
            background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.96) 0%, rgba(247, 250, 255, 0.96) 50%, rgba(230, 237, 255, 0.98) 100%);
            box-shadow: inset 0 0 0 1px rgba(0, 31, 91, 0.15), 0 8px 18px rgba(0,0,0,0.35);
        }

        .schedule-team-logo,
        .schedule-admin-logo-preview {
            width: 72px;
            height: 72px;
        }

        .team-logo {
            width: 60px;
            height: 60px;
            margin-right: 4px;
        }

        .schedule-team-logo-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffd89a;
            background: radial-gradient(circle at top, rgba(255, 184, 107, 0.22), rgba(9, 19, 49, 0.96) 65%);
            font-weight: 700;
            letter-spacing: 1px;
            text-shadow: 0 1px 3px rgba(0,0,0,0.4);
        }

        .schedule-team-name {
            font-weight: 700;
            line-height: 1.3;
            max-width: 150px;
        }

        .schedule-result {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-align: center;
            min-width: 180px;
        }

        .schedule-result-scoreboard {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
            align-items: end;
            gap: 10px;
            width: 100%;
        }

        .schedule-result-score {
            font-size: 1.1rem;
            font-weight: 800;
            color: #ffffff;
            letter-spacing: 0.06em;
        }

        .schedule-result-separator {
            font-size: 1rem;
            font-weight: 800;
            color: #ff8f00;
            line-height: 1;
        }

        .schedule-result-teams {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 12px;
            width: 100%;
            color: #ffcc80;
            font-size: 0.88rem;
            line-height: 1.3;
        }

        .schedule-result-team {
            word-break: break-word;
        }

        .schedule-versus {
            font-size: 1.15rem;
            font-weight: 800;
            color: #ff8f00;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .schedule-admin-matchup {
            display: grid;
            grid-template-columns: repeat(2, minmax(180px, 1fr));
            gap: 12px;
        }

        .schedule-score-editor {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
            gap: 8px;
            align-items: center;
            min-width: 140px;
        }

        .schedule-score-editor span {
            color: #ff8f00;
            font-weight: 800;
            text-align: center;
        }

        .schedule-score-editor input[type="number"] {
            text-align: center;
        }

        .schedule-admin-team-block {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .schedule-admin-team-block label {
            margin-bottom: 0;
            font-size: 0.85rem;
            color: #ffb366;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .schedule-admin-team-block input[type="file"] {
            padding: 8px;
        }

        .schedule-admin-logo-preview {
            transition: transform 0.2s ease;
        }

        .schedule-admin-logo-preview.hidden {
            display: none;
        }

        .schedule-admin-logo-empty {
            font-size: 0.85rem;
            color: #aaa;
        }

        .schedule-public-table-wrap {
            width: 100%;
            max-width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .schedule-admin-table-wrap {
            width: 100%;
            max-width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        #leagueScheduleAdminPanel .schedule-table {
            min-width: 1200px;
        }


        .team-logo-upload-wrap {
            display: flex;
            align-items: center;
            gap: 0;
        }

        .win {
            color: #4caf50;
            font-weight: bold;
        }

        .loss {
            color: #f44336;
            font-weight: bold;
        }

        .standings-sortable {
            cursor: pointer;
            user-select: none;
            white-space: nowrap;
        }
        .standings-sortable:hover {
            color: #ff8f00;
        }

        .standings-net-positive {
            color: #4caf50;
            font-weight: bold;
        }
        .standings-net-negative {
            color: #f44336;
            font-weight: bold;
        }

        .teams {
            background: #1a1a2e;
        }

        .teams-table {
            width: 100%;
            border-collapse: collapse;
            background: #16213e;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            border: 1px solid #2a2a4a;
        }

        .teams-table th {
            background: linear-gradient(135deg, #e65100, #ff6f00);
            color: white;
            padding: 15px;
            text-align: left;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .teams-table td {
            padding: 15px;
            border-bottom: 1px solid #2a2a4a;
            color: #e0e0e0;
        }

        .teams-table tr:hover {
            background: #1e2d50;
        }

        .teams-table input {
            width: 100%;
            padding: 8px;
            border: 1px solid #2a2a4a;
            border-radius: 4px;
            font-size: 1rem;
            background: #0f0f23;
            color: #e0e0e0;
        }

        .users {
            background: #16213e;
        }

        .users-table {
            width: 100%;
            border-collapse: collapse;
            background: #16213e;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            border: 1px solid #2a2a4a;
        }

        .users-table th {
            background: linear-gradient(135deg, #e65100, #ff6f00);
            color: white;
            padding: 15px;
            text-align: left;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .users-table td {
            padding: 15px;
            border-bottom: 1px solid #2a2a4a;
            color: #e0e0e0;
        }

        .users-table tr:hover {
            background: #1e2d50;
        }

        .users-table input {
            width: 100%;
            padding: 8px;
            border: 1px solid #2a2a4a;
            border-radius: 4px;
            font-size: 1rem;
            background: #0f0f23;
            color: #e0e0e0;
        }

        .registration-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 12px;
        }

        .registration-form {
            max-width: 1000px;
            margin: 0 auto 16px auto;
            background: #16213e;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            padding: 16px;
            border: 1px solid #2a2a4a;
        }

        .registration-form label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            color: #e0e0e0;
        }

        .registration-form input,
        .registration-form select {
            width: 100%;
            padding: 10px;
            border: 1px solid #2a2a4a;
            border-radius: 4px;
            font-size: 1rem;
            background: #0f0f23;
            color: #e0e0e0;
        }

        .payments {
            background: linear-gradient(180deg, #0f0f23 0%, #16213e 55%, #0f0f23 100%);
            position: relative;
            overflow: hidden;
        }

        .payments::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at top, rgba(255,143,0,0.12), transparent 60%);
            opacity: 0.6;
            pointer-events: none;
        }

        .payments::after {
            content: '';
            position: absolute;
            left: 12%;
            right: 12%;
            top: 24px;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,143,0,0.5), transparent);
            pointer-events: none;
        }

        .payments .container {
            position: relative;
            z-index: 1;
        }

        .signup-intro {
            text-align: center;
            max-width: 720px;
            margin: 0 auto 24px;
            color: #d7d7d7;
        }

        .signup-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 6px 14px;
            border-radius: 999px;
            border: 1px solid rgba(255, 143, 0, 0.5);
            background: rgba(15, 15, 35, 0.75);
            color: #ffd180;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.28em;
            text-transform: uppercase;
            margin-bottom: 10px;
            box-shadow: 0 6px 18px rgba(0,0,0,0.35);
        }

        .payments-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 20px;
            margin-bottom: 24px;
        }

        .payment-card {
            position: relative;
            background: linear-gradient(160deg, #1a1a2e 0%, #11172b 100%);
            border-radius: 10px;
            box-shadow: 0 10px 24px rgba(0,0,0,0.35);
            padding: 20px;
            border: 1px solid #2f3a5f;
            overflow: hidden;
        }

        .payment-card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 4px;
            width: 100%;
            background: linear-gradient(90deg, rgba(255,111,0,0.9), rgba(255,193,7,0.9));
        }

        .payment-card h3 {
            color: #ffd180;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-size: 0.95rem;
        }

        .payment-card p {
            color: #d8d8d8;
        }

        .payment-amount {
            font-size: 2rem;
            font-weight: 800;
            color: #ff8f00;
            margin-top: 8px;
            text-shadow: 0 6px 18px rgba(0,0,0,0.4);
        }

        .signup-form {
            max-width: 820px;
            padding: 22px 24px;
            background: linear-gradient(180deg, #141b33 0%, #10172b 100%);
            border: 1px solid #2f3756;
        }

        .signup-form .registration-grid {
            gap: 16px;
        }

        .payments .registration-form label {
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-size: 0.78rem;
            color: #ffb366;
        }

        .payments .registration-form input,
        .payments .registration-form select {
            background: #0b1224;
            border: 1px solid #2c3456;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
        }

        .payments .registration-form input:focus,
        .payments .registration-form select:focus {
            outline: none;
            border-color: #ff8f00;
            box-shadow: 0 0 0 2px rgba(255,143,0,0.2);
        }

        .signup-note {
            margin-top: 6px;
            font-size: 0.9rem;
            color: #bdbdbd;
        }

        .signup-note.center {
            text-align: center;
        }

        .signup-status-banner {
            max-width: 820px;
            margin: 0 auto 18px;
            padding: 12px 16px;
            border-radius: 8px;
            text-align: center;
            font-weight: 600;
            border: 1px solid rgba(255, 179, 102, 0.3);
            background: rgba(11, 18, 36, 0.88);
            color: #ffd180;
        }

        .signup-status-open {
            border-color: rgba(76, 175, 80, 0.45);
            color: #b9f6ca;
        }

        .signup-status-closed {
            border-color: rgba(255, 143, 0, 0.5);
            color: #ffd180;
        }

        .signup-actions {
            text-align: center;
            margin-top: 16px;
        }

        .signup-actions .cta-button {
            min-width: 240px;
        }

        .signup-form-closed {
            opacity: 0.72;
        }

        .signup-form-closed .cta-button {
            cursor: not-allowed;
        }

        /* Documents / Forms styling */
        .documents, .documents-public {
            background: #1a1a2e;
        }

        .documents-table {
            width: 100%;
            border-collapse: collapse;
            background: #16213e;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            margin-top: 1rem;
            border: 1px solid #2a2a4a;
        }

        .documents-table th,
        .documents-table td {
            padding: 12px;
            border-bottom: 1px solid #2a2a4a;
            color: #e0e0e0;
        }

        .sortable-stat-header {
            cursor: pointer;
            user-select: none;
            position: relative;
            transition: background 0.2s ease;
            padding-right: 30px !important;
        }

        .sortable-stat-header:hover {
            background: linear-gradient(135deg, #f57c00, #ff9800);
        }

        .stat-sort-indicator {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
        }

        .stat-sort-indicator::before,
        .stat-sort-indicator::after {
            content: '';
            display: block;
            width: 0;
            height: 0;
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
        }

        .stat-sort-indicator::before {
            border-bottom: 5px solid rgba(255,255,255,0.4);
        }

        .stat-sort-indicator::after {
            border-top: 5px solid rgba(255,255,255,0.4);
        }

        .sortable-stat-header.sort-asc .stat-sort-indicator::before {
            border-bottom-color: #ffffff;
        }

        .sortable-stat-header.sort-asc .stat-sort-indicator::after {
            border-top-color: rgba(255,255,255,0.15);
        }

        .sortable-stat-header.sort-desc .stat-sort-indicator::before {
            border-bottom-color: rgba(255,255,255,0.15);
        }

        .sortable-stat-header.sort-desc .stat-sort-indicator::after {
            border-top-color: #ffffff;
        }

        .stats-filter-row th {
            padding: 4px 4px 6px;
            background: #0e1a30;
        }

        .stats-filter-spacer {
            background: #0e1a30;
        }

        .stat-sort-btns {
            display: flex;
            gap: 4px;
            justify-content: center;
            align-items: center;
        }

        .stat-sort-btn {
            background: rgba(255, 111, 0, 0.1);
            border: 1px solid rgba(255, 111, 0, 0.35);
            color: #ff9800;
            padding: 3px 9px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.78rem;
            font-weight: 600;
            line-height: 1.4;
            transition: background 0.18s, border-color 0.18s, color 0.18s;
            white-space: nowrap;
        }

        .stat-sort-btn:hover {
            background: rgba(255, 111, 0, 0.25);
            border-color: #ff9800;
        }

        .stat-sort-btn.active {
            background: #e65100;
            border-color: #ff6f00;
            color: #fff;
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        .stats-team-cell {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            min-width: 120px;
        }

        .stats-team-logo {
            width: 34px;
            height: 34px;
            border-width: 2px;
        }

        .stats-team-logo-placeholder {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            border: 2px solid var(--logo-accent);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            color: #ffd89a;
            background: radial-gradient(circle at top, rgba(255, 184, 107, 0.2), rgba(9, 19, 49, 0.96) 75%);
            text-shadow: 0 1px 2px rgba(0,0,0,0.4);
        }

        .standings-logo-cell {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        #leagueStandingsTable .stats-team-logo,
        #leagueStandingsTable .stats-team-logo-placeholder {
            width: 72px;
            height: 72px;
            border-width: 3px;
        }

        #leagueStandingsTable .stats-team-logo-placeholder {
            font-size: 1rem;
        }

        .stats-team-admin-editor {
            display: flex;
            flex-direction: column;
            gap: 6px;
            align-items: stretch;
        }

        .stats-team-admin-preview {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .stats-team-admin-upload {
            font-size: 0.8rem;
            padding: 4px;
        }

        .stats-remove-btn {
            background: #c62828;
            padding: 2px 8px;
            font-size: 0.75rem;
        }

        .doc-actions button {
            background: #ff6f00;
            color: white;
            border: none;
            padding: 6px 10px;
            border-radius: 4px;
            cursor: pointer;
        }

        .doc-actions button.secondary {
            background: #f0f0f0;
            color: #333;
        }

        #signatureCanvas { touch-action: none; }

        .sign-modal .login-content { max-width: 900px; }

        .contact { 
            background: linear-gradient(135deg, #e65100, #ff6f00);
            color: white;
            text-align: center;
        }

        .contact h2 {
            color: white;
        }

        .contact-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .contact-item h3 {
            color: white;
            margin-bottom: 1rem;
        }

        /* footer styles defined in "Enhanced Footer" section below */

        .login-modal {
            display: flex;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            align-items: center;
            justify-content: center;
        }

        .login-modal.hidden {
            display: none;
        }

        .login-content {
            background-color: #16213e;
            padding: 28px;
            border-radius: 8px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
            width: 100%;
            max-width: 400px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            gap: 12px;
            overflow: hidden;
            border: 1px solid #2a2a4a;
        }

        /* Make the register/login area independently scrollable */
        #memberForms {
            overflow: auto;
            max-height: calc(80vh - 160px); /* leave space for title/buttons */
            padding-right: 6px; /* room for scrollbar */
            -webkit-overflow-scrolling: touch;
        }
        /* visual (non-essential) scrollbar styling */
        #memberForms::-webkit-scrollbar { width: 10px; height: 10px; }
        #memberForms::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 6px; }

        @media (max-width: 480px) {
            .login-content { padding: 18px; max-width: 92vw; }
            #memberForms { max-height: 55vh; }
        }

        .login-content h2 {
            text-align: center;
            color: #ff8f00;
            margin-bottom: 20px;
        }

        .login-content form {
            display: flex;
            flex-direction: column;
        }

        .login-content input {
            padding: 12px;
            margin-bottom: 15px;
            border: 1px solid #2a2a4a;
            border-radius: 4px;
            font-size: 1rem;
            background: #0f0f23;
            color: #e0e0e0;
        }

        .login-content button {
            padding: 12px;
            background: linear-gradient(135deg, #ff6f00, #ff8f00);
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 700;
            text-transform: uppercase;
        }

        .login-content button:hover {
            background: linear-gradient(135deg, #e65100, #ff6f00);
        }

        .admin-only {
            display: none;
        }

        .admin-only.visible {
            display: block;
        }

        .admin-header {
            background: linear-gradient(135deg, #0f0f23, #16213e);
            color: white;
            padding: 10px 20px;
            text-align: right;
            position: sticky;
            top: 0;
            z-index: 150;
            border-bottom: 2px solid #ff6f00;
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            align-items: center;
            gap: 8px;
        }

        .admin-header button {
            background: white;
            color: #ff6f00;
            border: none;
            padding: 8px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
        }

        .admin-header button:hover {
            background: #f0f0f0;
        }

        @media (max-width: 768px) {
            .nav-links {
                gap: 1rem;
            }

            .hero-layout {
                grid-template-columns: 1fr;
            }

            .hero-content {
                max-width: none;
            }

            .hero-brand-mark {
                max-width: 100%;
                min-height: 104px;
                padding: 16px 20px;
            }

            .hero-highlights {
                grid-template-columns: 1fr;
            }

            .hero-info-grid {
                grid-template-columns: 1fr 1fr;
            }

            .hero-content h1 {
                font-size: 2.6rem;
            }

            .about-content {
                grid-template-columns: 1fr;
            }

            .schedule-table {
                font-size: 0.9rem;
            }

            .schedule-table th,
            .schedule-table td {
                padding: 10px;
            }

            #player-stats .stats-grid-table,
            #season-recap .stats-grid-table {
                width: 100%;
                min-width: 0;
                max-width: 100%;
                table-layout: fixed;
            }

            #player-stats .stats-grid-table th,
            #player-stats .stats-grid-table td,
            #season-recap .stats-grid-table th,
            #season-recap .stats-grid-table td {
                white-space: normal;
                overflow-wrap: anywhere;
                word-break: break-word;
                min-width: 0;
            }

            #player-stats .stats-filter-row,
            #season-recap .stats-filter-row {
                display: none !important;
            }

            #player-stats .stats-team-cell,
            #season-recap .stats-team-cell {
                min-width: 0;
                gap: 6px;
            }

            #player-stats .stats-team-cell span,
            #season-recap .stats-team-cell span {
                overflow-wrap: anywhere;
                word-break: break-word;
            }

            .schedule-admin-matchup {
                grid-template-columns: 1fr;
            }

            .schedule-matchup {
                gap: 12px;
            }

            .schedule-team-logo {
                width: 60px;
                height: 60px;
            }
        }

        /* highlight editable areas when admin has editing enabled */
        .admin-editable *:hover {
            outline: 1px dashed #ff6f00;
        }
        .admin-editable ::selection {
            background: rgba(255,111,0,0.3);
        }
        /* Page navigation — each section is its own page */
        #about, #standings, #leagueSchedule, #player-stats, #season-recap, #payments,
        #documentsPublic, #guestArea, #myProfile, #contact, #gallery, #playoff, #faq {
            display: none;
        }
        /* Admin nav items hidden by default, shown when admin is logged in */
        .admin-nav-item { display: none; }
        .admin-nav-item.visible { display: list-item; }
        /* Member nav item hidden by default */
        .member-nav-item { display: none; }
        .member-nav-item.visible { display: list-item; }

        /* ---- Hamburger / mobile nav ---- */
        .nav-hamburger {
            display: inline-flex;
            background: rgba(255, 111, 0, 0.08);
            border: 2px solid rgba(255, 111, 0, 0.95);
            color: var(--hamburger-color);
            font-size: 1.4rem;
            cursor: pointer;
            padding: 4px 12px;
            border-radius: 10px;
            line-height: 1;
            flex-shrink: 0;
            min-width: 44px; /* Touch target */
            min-height: 44px; /* Touch target */
            margin-left: 4px;
            transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }
        @media (min-width: 901px) {
            .nav-hamburger {
                display: none;
            }
        }
        .nav-hamburger:hover {
            background: rgba(255,111,0,0.2);
            border-color: var(--hamburger-hover-border);
            color: var(--hamburger-hover-color);
            transform: translateY(-1px);
        }

        .nav-quick-select {
            position: absolute;
            top: calc(100% + 12px);
            right: 0;
            width: min(320px, calc(100vw - 40px));
            padding: 16px;
            border-radius: 16px;
            border: 1px solid rgba(255, 111, 0, 0.45);
            background: rgba(15, 15, 35, 0.98);
            box-shadow: 0 16px 40px rgba(0,0,0,0.35);
            backdrop-filter: blur(12px);
            z-index: 390;
        }
        .nav-quick-select.hidden {
            display: none;
        }
        .nav-quick-select label {
            display: block;
            margin-bottom: 8px;
            color: #ffb366;
            font-size: 0.85rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
        .nav-quick-select select {
            width: 100%;
            padding: 12px 14px;
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,0.15);
            background: #10172c;
            color: #fff;
            font-size: 1rem;
        }

        /* Keep hamburger visible on mobile */

        /* Mobile: always show hamburger, hide nav row */
        @media (max-width: 900px) {
            .nav-hamburger { 
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }
            .nav-links { display: none; }
        }

        /* Improve hamburger position on mobile */
        @media (max-width: 768px) {
            .nav-quick-select {
                position: fixed;
                top: 64px;
                right: 12px;
                width: min(320px, calc(100vw - 24px));
            }
        }
        /* Keep hamburger button above the overlay so it's always clickable */
        .nav-hamburger { position: relative; z-index: 400; }

/* ===================================
   PHASE 2 & 3: Accessibility & Features
   =================================== */

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ff6f00;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* Enhanced focus indicators */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 3px solid #ff6f00;
    outline-offset: 2px;
}

.nav-links a:focus {
    outline-color: #ff8f00;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff6f00, #ff8f00);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #e65100, #ff6f00);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.6);
    transform: translateY(-2px);
}

.back-to-top:focus {
    outline: 3px solid white;
    outline-offset: 2px;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.loading-overlay .spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 111, 0, 0.3);
    border-radius: 50%;
    border-top-color: #ff6f00;
    animation: spinner 0.8s linear infinite;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Smooth page-section fade-in transition */
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.page-fade-in {
    animation: pageFadeIn 0.3s ease-out;
}

/* Active navigation highlighting */
.nav-links a.active {
    color: #ff8f00;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff8f00;
}

/* Search & Filter Controls */
.table-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box, .filter-dropdown {
    padding: 10px 15px;
    border: 1px solid #2a2a4a;
    border-radius: 5px;
    background: #16213e;
    color: #e0e0e0;
    font-size: 1rem;
    min-width: 200px;
}

.search-box:focus, .filter-dropdown:focus {
    outline: 2px solid #ff6f00;
    border-color: #ff6f00;
}

.export-btn {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.export-btn:hover {
    background: linear-gradient(135deg, #388e3c, #4caf50);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.5);
    transform: translateY(-1px);
}

/* Table improvements */
.responsive-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

table {
    min-width: 600px;
}

/* Zebra striping */
table.zebra tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

table.zebra tbody tr:hover {
    background: rgba(255, 111, 0, 0.1);
}

/* Screen reader only text - defined earlier in stylesheet */

/* ===================================
   PHASE 4: Mobile Improvements
   =================================== */

/* Touch targets minimum 44x44px */
@media (max-width: 768px) {
    button, a, input[type="submit"], input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-links a {
        padding: 12px 20px;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box, .filter-dropdown, .export-btn {
        width: 100%;
        min-width: unset;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
    /* Fix canvas overflow on mobile */
    canvas#regSignatureCanvas,
    canvas#signatureCanvas {
        max-width: 100%;
    }
    
    /* Fix modal content sizing */
    .login-content {
        max-width: 95vw;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Better spacing for forms on mobile */
    .login-content input,
    .login-content textarea,
    .login-content select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Additional responsive breakpoints */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2.35rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 0.06em;
    }

    .hero-description {
        font-size: 0.98rem;
    }
    
    /* Smaller modal padding on very small screens */
    .login-content {
        padding: 12px;
        max-width: 98vw;
    }
    
    /* Adjust hero padding */
    .hero {
        padding: 68px 0 56px;
        min-height: 400px;
    }
    
    /* Better button sizing */
    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    /* Smaller table font on very small screens */
    .schedule-table {
        font-size: 0.85rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 8px 6px;
    }

    #player-stats .stats-grid-table,
    #season-recap .stats-grid-table {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        table-layout: fixed;
    }

    #player-stats .stats-grid-table th,
    #player-stats .stats-grid-table td,
    #season-recap .stats-grid-table th,
    #season-recap .stats-grid-table td {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        font-size: 0.7rem;
        line-height: 1.25;
        min-width: 0;
    }

    #player-stats .stats-team-logo,
    #player-stats .stats-team-logo-placeholder,
    #season-recap .stats-team-logo,
    #season-recap .stats-team-logo-placeholder {
        width: 28px;
        height: 28px;
    }

    #player-stats .stats-filter-row,
    #season-recap .stats-filter-row {
        display: none !important;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .cta-button {
        width: 100%;
        text-align: center;
    }

    .hero-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   PHASE 5: Visual & UX Enhancements
   =================================== */

/* Subtle animations */
.card, .schedule-table, .stats-table {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

/* Form validation styles */
input.error, textarea.error, select.error {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.05);
}

input.success, textarea.success, select.success {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.05);
}

.error-message {
    color: #f44336;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

input.error + .error-message,
textarea.error + .error-message,
select.error + .error-message {
    display: block;
}

/* Confirmation dialog overlay */
.confirm-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #16213e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 10000;
    max-width: 400px;
    width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.confirm-dialog.visible {
    opacity: 1;
    visibility: visible;
}

.confirm-dialog h3 {
    margin-bottom: 15px;
    color: #ff8f00;
}

.confirm-dialog .button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.confirm-dialog button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.confirm-dialog .confirm-yes {
    background: #f44336;
    color: white;
}

.confirm-dialog .confirm-yes:hover {
    background: #d32f2f;
}

.confirm-dialog .confirm-no {
    background: #555;
    color: white;
}

.confirm-dialog .confirm-no:hover {
    background: #777;
}

/* Icons using Unicode */
.icon-search::before { content: '🔍 '; }
.icon-filter::before { content: '🔽 '; }
.icon-download::before { content: '📥 '; }
.icon-edit::before { content: '✏️ '; }
.icon-delete::before { content: '🗑️ '; }
.icon-save::before { content: '💾 '; }
.icon-user::before { content: '👤 '; }
.icon-team::before { content: '👥 '; }
.icon-stats::before { content: '📊 '; }

/* Better loading states */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button.loading {
    position: relative;
    color: transparent;
}

button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spinner 0.6s linear infinite;
}

/* Transitions for all interactive elements */
button, a {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
input, select, textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Logo animation fix for accessibility */
.logo {
    text-decoration: none;
    color: inherit;
}

.logo:focus {
    outline: 3px solid #ff8f00;
    outline-offset: 4px;
    border-radius: 50%;
}

/* =============================================
   NEW FEATURES — Added Improvements
   ============================================= */

/* --- Dark Mode Button --- */
.dark-mode-btn {
    background: transparent;
    border: 1px solid rgba(255,111,0,0.5);
    color: #e0e0e0;
    cursor: pointer;
    font-size: 1.15rem;
    padding: 4px 10px;
    border-radius: 20px;
    line-height: 1.4;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
    min-width: 44px;
    min-height: 38px;
}
.dark-mode-btn:hover {
    background: rgba(255,111,0,0.15);
    border-color: #ff8f00;
}

/* --- Light Mode overrides --- */
body.light-mode {
    background: #f5f5f0;
    color: #1a1a2e;
}
body.light-mode header {
    background: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%);
    border-bottom-color: #e65100;
}
body.light-mode .nav-links a { color: #1a1a2e; }
body.light-mode .hero {
    background-image:
        linear-gradient(135deg, rgba(240,230,220,0.9) 0%, rgba(255,220,170,0.85) 40%, rgba(240,225,210,0.92) 100%),
        linear-gradient(160deg, rgba(255, 111, 0, 0.08), transparent 38%),
        repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(255,111,0,0.06) 49px, rgba(255,111,0,0.06) 50px),
        repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(255,111,0,0.06) 49px, rgba(255,111,0,0.06) 50px);
    color: #1a1a2e;
}
body.light-mode .hero-content h1 { color: #0f0f23; }
body.light-mode .hero-description,
body.light-mode .hero-highlight p,
body.light-mode .hero-info-card p { color: rgba(26, 26, 46, 0.78); }
body.light-mode .hero-highlight,
body.light-mode .hero-info-card,
body.light-mode .countdown-timer,
body.light-mode .latest-results-widget {
    background: rgba(255,255,255,0.74);
    border-color: rgba(230, 81, 0, 0.2);
}
body.light-mode .hero-highlight h2,
body.light-mode .hero-info-value,
body.light-mode .countdown-unit span,
body.light-mode .latest-result-score { color: #1a1a2e; }
body.light-mode .countdown-unit {
    background: rgba(26, 26, 46, 0.06);
}
body.light-mode .latest-result-card {
    background: rgba(255,255,255,0.62);
    border-color: rgba(230, 81, 0, 0.16);
}
body.light-mode .latest-result-team { color: #1a1a2e; }
body.light-mode .about { background: #fff3e0; }
body.light-mode .about-text p { color: #444; }
body.light-mode .schedule { background: #f9f7f3; }
body.light-mode .schedule-table { background: #fff; border-color: #ddd; }
body.light-mode .schedule-table td { color: #1a1a2e; }
body.light-mode .schedule-table tr:hover { background: #fff3e0; }
body.light-mode .registration-form { background: #fff; border-color: #ddd; }
body.light-mode .registration-form input,
body.light-mode .registration-form select { background: #f9f9f9; color: #1a1a2e; border-color: #ccc; }
body.light-mode .gallery-section { background: #f9f7f3; }
body.light-mode .gallery-card { background: #fff; border-color: #e0e0e0; }
body.light-mode .gallery-card-caption { color: #555; }
body.light-mode .faq-section { background: #fff3e0; }
body.light-mode .faq-item { border-color: #e0c8a0; }
body.light-mode .faq-question { color: #1a1a2e; background: transparent; }
body.light-mode .faq-answer { color: #444; background: #fffaf5; }
body.light-mode footer { background: #ffe8c8; color: #555; }
body.light-mode .footer-links a, body.light-mode .footer-social-links a { color: #e65100; }
body.light-mode .footer-admin-form input,
body.light-mode .nav-quick-select select {
    background: #fffaf2;
    color: #1a1a2e;
    border-color: rgba(230, 81, 0, 0.25);
}
body.light-mode .nav-quick-select {
    background: rgba(255, 247, 237, 0.98);
}
body.light-mode .login-content { background: #fff; border-color: #ddd; }
body.light-mode .login-content input { background: #f9f9f9; color: #1a1a2e; }
body.light-mode .nav-links.nav-open { background: rgba(255,245,230,0.97); }
body.light-mode .nav-links.nav-open a { color: #1a1a2e; }

/* --- Countdown Timer --- */
.countdown-timer {
    margin-top: 0;
    display: block;
    padding: 22px 20px;
}
.countdown-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffb366;
    margin-bottom: 14px;
    text-align: left;
}
.countdown-display {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 62px;
    padding: 12px 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
}
.countdown-unit span {
    font-size: 2.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    min-width: 2ch;
    text-align: center;
}
.countdown-unit small {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff8f00;
    margin-top: 2px;
}
.countdown-sep {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ff8f00;
    line-height: 1;
    margin-bottom: 0;
}
.countdown-timer.hidden { display: none; }
.latest-results-widget.hidden { display: none; }
@media (max-width: 480px) {
    .countdown-unit span { font-size: 1.4rem; }
    .countdown-unit { min-width: 38px; }
}

/* --- Latest Results Widget --- */
.latest-results-widget {
    position: static;
    padding: 20px;
    overflow: visible;
}
.latest-results-header {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffb366;
    margin-bottom: 12px;
    text-align: left;
}
.latest-results-body {
    display: grid;
    gap: 12px;
}
.latest-results-empty {
    color: #888;
    font-size: 0.88rem;
    text-align: left;
    margin: 0;
}
.latest-result-card {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,111,0,0.16);
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.latest-result-team { color: #e0e0e0; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.latest-result-score { color: #fff; font-weight: 800; font-size: 1rem; padding: 0 4px; }
.latest-result-sep { color: #ff8f00; font-weight: 700; }
.hero.has-results { padding-bottom: 88px; }


/* --- Gallery Section --- */
.gallery-section {
    background: #1a1a2e;
    min-height: 300px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 8px;
}
.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 40px 0;
}
.gallery-card {
    position: relative;
    background: #16213e;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
}
.gallery-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(255,111,0,0.25); }
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-card-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.7);
    color: #e0e0e0;
    font-size: 0.8rem;
    padding: 6px 10px;
    text-align: center;
}
.gallery-card-delete {
    position: absolute;
    top: 6px; right: 6px;
    background: rgba(198,40,40,0.9);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
}
.gallery-card:hover .gallery-card-delete { display: flex; }
/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9000;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.gallery-lightbox-close {
    position: absolute;
    top: 16px; right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 10px;
    z-index: 9001;
}
.gallery-lightbox-img {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
}
.gallery-lightbox-caption {
    color: #ccc;
    margin-top: 12px;
    font-size: 0.9rem;
    text-align: center;
}

/* --- Playoff Bracket --- */
.playoff-bracket {
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}
.playoff-empty {
    text-align: center;
    color: #888;
    padding: 40px 0;
}
.bracket-wrapper {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    min-width: min-content;
    padding-bottom: 12px;
}
.bracket-round {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 200px;
}
.bracket-round-title {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff8f00;
    margin-bottom: 4px;
    border-bottom: 2px solid rgba(255,111,0,0.4);
    padding-bottom: 6px;
}
.bracket-matchup {
    background: #16213e;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.bracket-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #2a2a4a;
    font-size: 0.9rem;
    font-weight: 600;
}
.bracket-team:last-child { border-bottom: none; }
.bracket-team-name { color: #e0e0e0; flex: 1; }
.bracket-team-score { color: #fff; font-weight: 800; min-width: 28px; text-align: right; }
.bracket-team.winner { background: rgba(46,125,50,0.2); }
.bracket-team.winner .bracket-team-name { color: #81c784; }
.bracket-team.loser .bracket-team-name { color: #888; }
/* Admin editor for bracket */
.playoff-round-editor {
    background: #16213e;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}
.playoff-round-editor h4 { color: #ff8f00; margin-bottom: 12px; }
.playoff-matchup-editor {
    display: grid;
    grid-template-columns: 1fr 1fr 60px 60px;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
}
.playoff-matchup-editor input { padding: 6px 8px; background: #0f0f23; border: 1px solid #2a2a4a; border-radius: 4px; color: #e0e0e0; font-size: 0.88rem; }
.playoff-matchup-editor input::placeholder { color: #666; }
@media (max-width: 600px) {
    .playoff-matchup-editor { grid-template-columns: 1fr 1fr; }
}

/* --- FAQ Section --- */
.faq-section {
    background: #16213e;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #1a1a2e;
    transition: box-shadow 0.25s;
}
.faq-item:hover { box-shadow: 0 4px 14px rgba(255,111,0,0.15); }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 600;
    gap: 12px;
    line-height: 1.4;
    transition: color 0.2s;
}
.faq-question:hover { color: #ff8f00; }
.faq-question[aria-expanded="true"] { color: #ff8f00; }
.faq-icon {
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 400;
    color: #ff8f00;
    transition: transform 0.3s;
    width: 20px;
    text-align: center;
}
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 20px;
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer:not([hidden]) {
    padding: 4px 20px 16px;
    max-height: 400px;
}
.faq-answer p { margin: 0; }
.faq-answer a { color: #ff8f00; }

/* --- Enhanced Footer --- */
footer {
    background: #0a0a1c;
    color: #aaa;
    padding: 40px 20px 20px;
    border-top: 3px solid #ff6f00;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}
.footer-brand { text-align: center; }
.footer-brand-mark {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 2px solid rgba(255, 143, 0, 0.65);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1), transparent 50%),
                linear-gradient(155deg, #0a1530 0%, #14244a 60%, #0d1a3a 100%);
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 900;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16),
                inset 0 -2px 4px rgba(0,0,0,0.25),
                0 8px 18px rgba(0,0,0,0.35),
                0 0 0 1px rgba(255, 143, 0, 0.1);
}
.footer-brand-mark.has-logo {
    width: 92px;
    height: 92px;
    min-width: 92px;
    min-height: 92px;
    padding: 6px;
    border-radius: 50%;
    border: 3px solid rgba(255, 143, 0, 0.65);
    background: linear-gradient(155deg, #060b1e 0%, #14244a 60%, #0a1530 100%);
    overflow: hidden;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.4),
                0 8px 20px rgba(0,0,0,0.4),
                0 0 0 2px rgba(255, 143, 0, 0.08);
}
.footer-brand-mark.has-logo img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 50%;
    object-fit: cover;
}
.footer-brand-mark img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35));
}
.footer-brand-name {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #ff8f00;
    text-transform: uppercase;
}
.footer-brand-sub { font-size: 0.82rem; color: #777; margin-top: 2px; }
.footer-links h4, .footer-social h4 {
    color: #ff8f00;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,111,0,0.3);
    padding-bottom: 6px;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: #ff8f00; }
.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-social-links a:hover { color: #ff8f00; }
.footer-admin h4 {
    color: #ff8f00;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,111,0,0.3);
    padding-bottom: 6px;
}
.footer-admin-form {
    display: grid;
    gap: 10px;
}
.footer-admin-form input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #121a31;
    color: #fff;
}
.footer-admin-form button,
.footer-admin-session button {
    justify-self: start;
}
.footer-admin-session p {
    margin-bottom: 10px;
    color: #ddd;
}
.footer-admin-message {
    min-height: 1.25rem;
    margin-top: 10px;
    font-size: 0.88rem;
    color: #ffb366;
}
.social-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.facebook-badge { background: #1877f2; }
.instagram-badge { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-bottom {
    border-top: 1px solid #1e1e3a;
    padding-top: 16px;
    text-align: center;
    font-size: 0.82rem;
    color: #666;
}

/* --- Newsletter form (inside contact) --- */
.newsletter-form .newsletter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.newsletter-form input {
    padding: 10px 14px;
    border-radius: 4px;
    border: none;
    font-size: 0.95rem;
    flex: 1;
    min-width: 140px;
    background: rgba(255,255,255,0.9);
    color: #1a1a2e;
}
.newsletter-form input:focus { outline: 3px solid #ff8f00; }

/* --- Contact section map --- */
.map-container iframe { box-shadow: 0 4px 20px rgba(0,0,0,0.4); }

/* =============================================
   VISUAL IMPROVEMENTS — Animations & Polish
   ============================================= */

/* --- 1. Scroll-reveal animations --- */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealScale {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children reveal */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.4s; }

.reveal-stagger.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* --- 2. Gradient text effects on section headings --- */
.gradient-text {
    background: linear-gradient(135deg, #ff6f00 0%, #ffab40 50%, #ff6f00 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* --- 3. Animated gradient border on hero CTA --- */
.cta-glow {
    position: relative;
    z-index: 1;
}

.cta-glow::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 9px;
    background: linear-gradient(135deg, #ff6f00, #ffc107, #ff6f00, #ff8f00);
    background-size: 300% 300%;
    animation: glowBorder 3s ease-in-out infinite;
    z-index: -1;
    opacity: 0.7;
    filter: blur(6px);
    transition: opacity 0.3s;
}

.cta-glow:hover::after {
    opacity: 1;
    filter: blur(8px);
}

@keyframes glowBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- 4. Glass-morphism enhancements --- */
.glass-card {
    background: rgba(22, 33, 62, 0.6);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(255, 111, 0, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 111, 0, 0.35);
}

/* --- 5. Animated background patterns for sections --- */
.pattern-dots {
    position: relative;
}

.pattern-dots::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 111, 0, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

.pattern-dots > .container {
    position: relative;
    z-index: 1;
}

.pattern-grid {
    position: relative;
}

.pattern-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 111, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 111, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.pattern-grid > .container {
    position: relative;
    z-index: 1;
}

/* --- 6. Decorative section dividers --- */
.section-divider {
    position: relative;
    overflow: hidden;
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 111, 0, 0.5), transparent);
}

.section-divider-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 111, 0, 0.4), transparent);
    z-index: 1;
}

/* --- 7. Pulse/glow on primary CTA --- */
@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 4px 18px rgba(255, 111, 0, 0.35),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2),
                    0 0 0 0 rgba(255, 111, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 18px rgba(255, 111, 0, 0.35),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2),
                    0 0 0 8px rgba(255, 111, 0, 0);
    }
}

.cta-pulse {
    animation: ctaPulse 2.5s ease-in-out infinite;
}

.cta-pulse:hover {
    animation: none;
}

/* --- 8. Typography rhythm improvements --- */
.text-balance {
    text-wrap: balance;
}

.text-shadow-hero {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6),
                 0 8px 24px rgba(0, 0, 0, 0.3),
                 0 0 60px rgba(255, 111, 0, 0.08);
}

/* Improved paragraph line-height in content sections */
.about-text p,
.hero-description,
.hero-highlight p,
.hero-info-card p,
.faq-answer {
    line-height: 1.75;
}

/* Better letter-spacing for small labels */
.hero-eyebrow,
.hero-highlight-label,
.hero-info-label,
.countdown-label,
.latest-results-header,
.signup-badge {
    font-feature-settings: 'ss01' on, 'cv01' on;
}

/* --- 9. Hover micro-interactions --- */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hover-glow {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 111, 0, 0.2),
                0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 111, 0, 0.5);
}

/* Nav links underline animation */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff8f00;
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    left: 0;
}

/* Table row hover shine effect */
.schedule-table tbody tr,
.teams-table tbody tr {
    position: relative;
    overflow: hidden;
}

.schedule-table tbody tr::after,
.teams-table tbody tr::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 111, 0, 0.04), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.schedule-table tbody tr:hover::after,
.teams-table tbody tr:hover::after {
    left: 100%;
}

/* --- 10. Skeleton loading placeholders --- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.6em;
    border-radius: 4px;
}

.skeleton-card {
    height: 180px;
    border-radius: 12px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* --- Bonus: Floating particles in hero (CSS only) --- */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 143, 0, 0.3);
    border-radius: 50%;
    animation: particleFloat 12s ease-in-out infinite;
}

.hero-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 14s; }
.hero-particle:nth-child(2) { left: 25%; top: 60%; animation-delay: 2s; animation-duration: 11s; }
.hero-particle:nth-child(3) { left: 50%; top: 30%; animation-delay: 4s; animation-duration: 16s; }
.hero-particle:nth-child(4) { left: 70%; top: 70%; animation-delay: 1s; animation-duration: 13s; }
.hero-particle:nth-child(5) { left: 85%; top: 40%; animation-delay: 3s; animation-duration: 10s; }
.hero-particle:nth-child(6) { left: 40%; top: 80%; animation-delay: 5s; animation-duration: 15s; }
.hero-particle:nth-child(7) { left: 15%; top: 45%; animation-delay: 6s; animation-duration: 12s; width: 3px; height: 3px; }
.hero-particle:nth-child(8) { left: 60%; top: 15%; animation-delay: 7s; animation-duration: 17s; width: 5px; height: 5px; opacity: 0.2; }

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translate(-10px, -50px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(15px, -20px) scale(1.1);
        opacity: 0.5;
    }
}

/* --- Smooth gradient animated header bottom border --- */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6f00, #ffc107, #ff6f00, #ff8f00);
    background-size: 300% 100%;
    animation: headerBorderFlow 4s linear infinite;
}

@keyframes headerBorderFlow {
    0% { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

/* --- Subtle breathing glow on hero brand mark --- */
@keyframes brandBreath {
    0%, 100% {
        box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1),
                    0 0 0 1px rgba(255, 143, 0, 0.1),
                    0 0 30px rgba(255, 143, 0, 0);
    }
    50% {
        box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1),
                    0 0 0 1px rgba(255, 143, 0, 0.1),
                    0 0 30px rgba(255, 143, 0, 0.12);
    }
}

.hero-brand-mark {
    animation: brandBreath 3.5s ease-in-out infinite;
}

.hero-brand-mark:hover {
    animation: none;
}

/* --- Improved focus-visible (keyboard only) --- */
:focus-visible {
    outline: 3px solid #ff8f00;
    outline-offset: 3px;
    border-radius: 4px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-scale,
    .reveal-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .gradient-text {
        animation: none;
    }
    .cta-glow::after {
        animation: none;
    }
    .cta-pulse {
        animation: none;
    }
    .hero-particle {
        animation: none;
        display: none;
    }
    header::after {
        animation: none;
    }
    .hero-brand-mark {
        animation: none;
    }
    @keyframes shimmer {
        from, to { background-position: 0 0; }
    }
}
