:root {
      --gold: #FFD700;
      --gold-light: #FFE55C;
      --gold-dark: #C9A000;
      --red: #CC0000;
      --red-bright: #FF1A1A;
      --navy: #001D4A;
      --navy-mid: #002966;
      --navy-light: #003580;
      --dark: #050D1A;
      --darker: #020810;
      --white: #FFFFFF;
      --off-white: #F0F4FF;
      --text-muted: #8899BB;
      --card-bg: rgba(0, 30, 80, 0.6);
      --card-border: rgba(255, 215, 0, 0.15);
      --glass: rgba(0, 20, 60, 0.7);

      /* Spacing tokens */
      --page-padding: clamp(5px, 4vw, 5%);
      --body-min-margin: 5px;
    }

    /* ============================================================
       RESET & BASE
       ============================================================ */
    *,
    *::before,
    *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      -webkit-text-size-adjust: 100%;
    }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--darker);
      color: var(--white);
      overflow-x: hidden;
      padding: 0 var(--body-min-margin);
      min-width: 320px;
      /* for the game we need full height, but we also need space for header/footer */
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      /* we'll manage game canvas separately */
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    button {
      cursor: pointer;
    }

    /* ============================================================
       PARTICLES (shared)
       ============================================================ */
    #particles-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
      opacity: 0.3;
    }

    /* ============================================================
       NAVBAR (copied from home)
       ============================================================ */
    nav {
      position: fixed;
      left: 0;
      right: 0;
      z-index: 1200;
      padding: 0 var(--page-padding);
      background: rgba(2, 8, 16, 0.92);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(255, 215, 0, 0.2);
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 70px;
      gap: 12px;
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .nav-logo .trophy-icon {
      font-size: 28px;
      animation: glow-pulse 2s ease-in-out infinite;
    }

    nav .nav-logo-img {
      height: 40px !important;
      width: auto !important;
      display: inline-block !important;
      vertical-align: middle;
      filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.3));
      transition: filter 0.2s;
    }

    .nav-logo-img:hover {
      filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    }

    @keyframes glow-pulse {

      0%,
      100% {
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
      }

      50% {
        filter: drop-shadow(0 0 14px rgba(255, 215, 0, 1));
      }
    }

    .nav-logo span {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(1rem, 3vw, 1.4rem);
      letter-spacing: 2px;
      background: linear-gradient(135deg, var(--gold), var(--white), var(--gold));
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      white-space: nowrap;
    }

    .nav-links {
      display: flex;
      gap: 4px;
      flex-wrap: wrap;
      align-items: center;
    }

    .nav-links a {
      font-family: 'Oswald', sans-serif;
      font-size: 0.8rem;
      font-weight: 500;
      letter-spacing: 1.2px;
      color: var(--off-white);
      text-decoration: none;
      padding: 7px 12px;
      border-radius: 4px;
      border: 1px solid transparent;
      transition: all 0.25s;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .nav-links a:hover {
      color: var(--gold);
      border-color: rgba(255, 215, 0, 0.4);
      background: rgba(255, 215, 0, 0.05);
    }

    .nav-links a.active {
      color: var(--gold);
      border-color: rgba(255, 215, 0, 0.5);
      background: rgba(255, 215, 0, 0.08);
    }

    .blog-nav-btn {
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 229, 92, 0.08));
      border: 1px solid var(--gold);
      color: var(--gold) !important;
      box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
      animation: blog-glow-pulse 1.8s ease-in-out infinite;
      position: relative;
      overflow: hidden;
    }

    .blog-nav-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
      transition: left 0.5s;
    }

    .blog-nav-btn:hover::before {
      left: 100%;
    }

    .blog-nav-btn:hover {
      background: rgba(255, 215, 0, 0.2);
      box-shadow: 0 0 16px rgba(255, 215, 0, 0.7);
      transform: scale(1.02);
    }

    @keyframes blog-glow-pulse {
      0% {
        box-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
        border-color: rgba(255, 215, 0, 0.6);
      }

      50% {
        box-shadow: 0 0 14px rgba(255, 215, 0, 0.8);
        border-color: var(--gold);
      }

      100% {
        box-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
        border-color: rgba(255, 215, 0, 0.6);
      }
    }

    .soccer-nav-btn {
      background: linear-gradient(135deg, rgba(0, 200, 100, 0.15), rgba(0, 255, 150, 0.08)) !important;
      border: 1px solid #00cc77 !important;
      color: #66ffaa !important;
      box-shadow: 0 0 8px rgba(0, 200, 100, 0.4) !important;
      animation: soccer-glow-pulse 1.8s ease-in-out infinite !important;
    }

    @keyframes soccer-glow-pulse {
      0% {
        box-shadow: 0 0 4px rgba(0, 200, 100, 0.4);
        border-color: rgba(0, 200, 100, 0.6);
      }

      50% {
        box-shadow: 0 0 14px rgba(0, 200, 100, 0.8);
        border-color: #00cc77;
      }

      100% {
        box-shadow: 0 0 4px rgba(0, 200, 100, 0.4);
        border-color: rgba(0, 200, 100, 0.6);
      }
    }

    .nav-hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 8px;
      border: none;
      background: transparent;
      flex-shrink: 0;
    }

    .nav-hamburger span {
      display: block;
      width: 24px;
      height: 2px;
      background: var(--gold);
      border-radius: 2px;
      transition: all 0.3s;
    }

    .nav-hamburger.open span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }

    .nav-hamburger.open span:nth-child(2) {
      opacity: 0;
    }

    .nav-hamburger.open span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    /* ── Language dropdown ── */
    .lang-dropdown {
      position: relative !important;
    }

    .lang-dropdown-btn {
      display: inline-flex !important;
      align-items: center !important;
      gap: 7px !important;
      background: rgba(255, 255, 255, 0.06) !important;
      border: 1px solid rgba(255, 255, 255, 0.25) !important;
      color: #fff !important;
      font-family: 'Oswald', sans-serif !important;
      font-size: 0.8rem !important;
      letter-spacing: 0.5px !important;
      padding: 7px 12px !important;
      border-radius: 6px !important;
      cursor: pointer !important;
      transition: border-color 0.2s !important;
      line-height: 1 !important;
    }

    .lang-dropdown-btn:hover {
      border-color: rgba(232, 212, 122, 0.6) !important;
    }

    .lang-flag {
      display: inline-block !important;
      width: 18px !important;
      height: 13px !important;
      border-radius: 2px !important;
      background-size: cover !important;
      background-position: center !important;
      flex-shrink: 0 !important;
    }

    .lang-caret {
      font-size: 0.6rem !important;
      transition: transform 0.2s !important;
    }

    .lang-dropdown.open .lang-caret {
      transform: rotate(180deg) !important;
    }

    .lang-dropdown-menu {
      display: none;
      position: absolute !important;
      top: calc(100% + 8px) !important;
      right: 0 !important;
      min-width: 180px !important;
      background: #050f22 !important;
      border: 1px solid rgba(255, 215, 0, 0.3) !important;
      border-radius: 10px !important;
      padding: 6px !important;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;
      z-index: 500 !important;
    }

    .lang-dropdown.open .lang-dropdown-menu {
      display: block;
    }

    .lang-option {
      display: flex !important;
      align-items: center !important;
      gap: 9px !important;
      padding: 9px 12px !important;
      border-radius: 6px !important;
      color: var(--text-muted, #99a) !important;
      text-decoration: none !important;
      font-family: 'Inter', sans-serif !important;
      font-size: 0.85rem !important;
      transition: background 0.15s, color 0.15s !important;
    }

    .lang-option:hover {
      background: rgba(255, 215, 0, 0.1) !important;
      color: #fff !important;
    }

    .lang-option.active {
      color: var(--gold, #e8d47a) !important;
      font-weight: 600 !important;
      background: rgba(255, 215, 0, 0.07) !important;
    }

    @media (max-width: 768px) {
      .lang-dropdown-menu {
        position: static !important;
        display: none;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 4px 0 0 12px !important;
        margin-top: 4px !important;
      }

      .lang-dropdown.open .lang-dropdown-menu {
        display: block;
      }

      .lang-dropdown-btn {
        width: 100% !important;
        justify-content: space-between !important;
      }
    }

    /* ============================================================
       PROMO TICKER BANNER (copied from home)
       ============================================================ */
    .promo-ticker-bar {
      position: fixed;
      left: 0;
      right: 0;
      z-index: 100;
      height: 36px;
      background: #1a1a2e;
      border-bottom: 2px solid #e94560;
      display: flex;
      align-items: center;
      overflow: hidden;
    }

    .promo-ticker-bar.promo-top {
      top: 70px;
    }

    .promo-ticker-bar.promo-bottom {
      bottom: 0;
      border-bottom: none;
      border-top: 2px solid #e94560;
    }

    .promo-ticker-side {
      flex: 0 0 10%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #e94560;
      z-index: 2;
      position: relative;
    }

    .promo-ticker-side span {
      font-family: 'Oswald', sans-serif;
      font-size: 0.58rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: #fff;
      font-weight: 600;
      white-space: nowrap;
      text-align: center;
      padding: 0 6px;
      line-height: 1.2;
    }

    .promo-ticker-side::after {
      content: '';
      position: absolute;
      right: -10px;
      top: 0;
      width: 0;
      height: 0;
      border-top: 18px solid transparent;
      border-bottom: 18px solid transparent;
      border-left: 10px solid #e94560;
      z-index: 3;
    }

    .promo-ticker-side.promo-right-side::after {
      display: none;
    }

    .promo-ticker-side.promo-right-side::before {
      content: '';
      position: absolute;
      left: -10px;
      top: 0;
      width: 0;
      height: 0;
      border-top: 18px solid transparent;
      border-bottom: 18px solid transparent;
      border-right: 10px solid #e94560;
      z-index: 3;
    }

    .promo-ticker-track-wrap {
      flex: 1;
      overflow: hidden;
      height: 100%;
      position: relative;
      background: #1a1a2e;
      mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
      -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
    }

    .promo-ticker-track {
      display: flex;
      align-items: center;
      height: 100%;
      white-space: nowrap;
      animation: promo-scroll 28s linear infinite;
      will-change: transform;
    }

    .promo-ticker-track:hover {
      animation-play-state: paused;
    }

    @keyframes promo-scroll {
      0% {
        transform: translateX(0);
      }

      100% {
        transform: translateX(-50%);
      }
    }

    .promo-ticker-item {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 0 32px;
      cursor: pointer;
      text-decoration: none;
    }

    .promo-ticker-item img {
      height: 20px;
      width: auto;
      object-fit: contain;
      border-radius: 3px;
      display: block;
      flex-shrink: 0;
    }

    .promo-ticker-item-name {
      font-family: 'Oswald', sans-serif;
      font-size: 0.8rem;
      letter-spacing: 1.5px;
      color: #ffffff;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .promo-ticker-item-tag {
      font-family: 'Inter', sans-serif;
      font-size: 0.62rem;
      color: #aaaacc;
      white-space: nowrap;
    }

    .promo-ticker-dot {
      display: inline-block;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: #e94560;
      flex-shrink: 0;
      opacity: 0.7;
    }

    .promo-ticker-advertise {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 13px;
      border-radius: 3px;
      background: #e94560;
      color: #fff;
      font-family: 'Oswald', sans-serif;
      font-size: 0.65rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      text-decoration: none;
      white-space: nowrap;
      flex-shrink: 0;
      cursor: pointer;
      transition: background 0.2s;
      margin: 0 24px;
      border: none;
    }

    .promo-ticker-advertise:hover {
      background: #c73652;
      color: #fff;
      text-decoration: none;
    }

    /* ============================================================
       FOOTER (copied from home)
       ============================================================ */
    footer {
      background: var(--darker);
      border-top: 1px solid rgba(255, 215, 0, 0.15);
      position: relative;
      z-index: 5;
      padding: clamp(36px, 6vw, 60px) var(--page-padding) 0;
      padding-bottom: 52px;
      margin-top: auto;
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 32px;
      max-width: 1200px;
      margin: 0 auto;
      padding-bottom: 40px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      flex-wrap: wrap;
    }

    .footer-col {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .footer-nav-col {
      flex: 0 0 auto;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
    }

    .footer-nav-title {
      font-family: 'Oswald', sans-serif;
      font-size: 0.63rem;
      letter-spacing: 4px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 16px;
      text-align: center;
      width: 100%;
    }

    .footer-nav {
      display: flex;
      flex-direction: column;
      gap: 10px;
      align-items: flex-start;
    }

    .footer-nav a {
      font-family: 'Inter', sans-serif;
      font-size: 0.82rem;
      color: var(--text-muted);
      text-decoration: none;
      letter-spacing: 0.5px;
      transition: color 0.2s;
      display: block;
    }

    .footer-nav a:hover {
      color: var(--gold);
    }

    .footer-brand-col {
      flex: 0 0 auto;
      align-items: flex-start;
      text-align: left;
    }

    .footer-brand {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 12px;
      margin-bottom: 14px;
    }

    .footer-logo-img {
      height: 44px;
      width: auto;
      object-fit: contain;
      filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.3));
    }

    .footer-logo-text {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(1.3rem, 4vw, 1.7rem);
      letter-spacing: 3px;
      background: linear-gradient(135deg, var(--gold-dark), var(--gold));
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .footer-sub {
      font-size: 0.74rem;
      color: var(--text-muted);
      letter-spacing: 1px;
      line-height: 1.9;
    }

    .footer-bottom {
      max-width: 1200px;
      margin: 0 auto;
      padding: 18px 0 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
      font-family: 'Inter', sans-serif;
      font-size: 0.68rem;
      color: rgba(136, 153, 187, 0.5);
      letter-spacing: 0.5px;
      text-align: center;
    }

    .footer-bottom-sep {
      opacity: 0.3;
    }

    /* ============================================================
       RESPONSIVE (header/footer)
       ============================================================ */
    @media (max-width: 768px) {
      .nav-hamburger {
        display: flex;
      }

      .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(2, 8, 16, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 215, 0, 0.2);
        flex-direction: column;
        padding: 14px var(--page-padding);
        gap: 4px;
        z-index: 999;
        overflow-y: auto;
        max-height: calc(100vh - 70px);
      }

      .nav-links.open {
        display: flex;
      }

      .nav-links a {
        padding: 12px 16px;
        border-radius: 6px;
        font-size: 0.9rem;
      }

      .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
      }

      .footer-nav-col {
        align-items: flex-start;
      }

      .footer-bottom {
        flex-direction: column;
        gap: 4px;
      }

      .footer-bottom-sep {
        display: none;
      }

      .promo-ticker-bar.promo-top {
        top: 70px;
      }

      .promo-ticker-side span {
        font-size: 0.5rem;
        letter-spacing: 1px;
      }

      .promo-ticker-item {
        padding: 0 20px;
      }

      .promo-ticker-item-tag {
        display: none;
      }
    }

    @media (max-width: 600px) {
      .promo-ticker-bar.promo-top {
        top: 70px;
      }
    }

    /* ============================================================
       GAME-SPECIFIC OVERRIDES (to coexist with header/footer)
       ============================================================ */
    /* The game originally used .screen with position:fixed; we adjust to fit inside the page */
    .screen {
      display: none;
      position: relative;
      /* changed from fixed */
      width: 100%;
      min-height: calc(100vh - 70px - 36px - 52px - 36px);
      /* header + promo top + footer + promo bottom */
      margin-top: 70px;
      /* push below fixed header */
      margin-bottom: 36px;
      /* space for promo bottom */
    }

    .screen.active {
      display: flex;
    }

    /* For menu screen we use the game's own background, but we add a top margin to clear the fixed header */
    #menuScreen {
      margin-top: 70px;
      min-height: calc(100vh - 70px - 36px - 52px - 36px);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 50, 150, 0.5) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 20% 100%, rgba(204, 0, 0, 0.2) 0%, transparent 60%),
        linear-gradient(180deg, #020810 0%, #001230 40%, #020810 100%);
      overflow: hidden;
      padding: 20px 10px;
    }

    /* Game screen: we keep it as flex column, but we need to account for header/footer */
    #gameScreen {
      margin-top: 70px;
      min-height: calc(100vh - 70px - 36px - 52px - 36px);
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      background: var(--darker);
      padding: 0;
      overflow: hidden;
    }

    #gameScreen #canvasWrap {
      flex: 1;
      width: 100%;
      max-width: 920px;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    #gameScreen #gameCanvas {
      display: block;
      border-radius: 2px;
      max-height: 100%;
      max-width: 100%;
    }

    #resultScreen {
      margin-top: 70px;
      min-height: calc(100vh - 70px - 36px - 52px - 36px);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(0, 35, 90, 0.6), transparent 70%),
        linear-gradient(180deg, var(--darker), #001020, var(--darker));
      overflow: hidden;
      padding: 20px;
    }

    /* Ensure all game overlays work within the canvas wrap */
    .overlay {
      position: absolute;
      inset: 0;
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 14px;
      z-index: 100;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      background: rgba(1, 5, 15, 0.7);
      border-radius: 2px;
    }

    .overlay.show {
      display: flex;
    }

    /* fix for HUD and bottomHud to fit within game screen */
    #hud {
      width: 100%;
      max-width: 920px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 16px 6px;
      flex-shrink: 0;
      position: relative;
      z-index: 10;
      background: linear-gradient(180deg, rgba(1, 5, 15, 0.98), rgba(1, 5, 15, 0.7));
      border-bottom: 1px solid rgba(255, 215, 0, 0.12);
    }

    #bottomHud {
      width: 100%;
      max-width: 920px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      padding: 5px 16px 7px;
      background: linear-gradient(0deg, rgba(1, 5, 15, 0.98), rgba(1, 5, 15, 0.7));
      border-top: 1px solid rgba(255, 215, 0, 0.08);
      flex-wrap: wrap;
    }

    /* Keep the game menu controls grid */
    .controls-grid {
      position: relative;
      z-index: 2;
      margin-top: 24px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      max-width: 460px;
      padding: 0 16px;
    }

    .ctrl-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-family: 'Oswald', sans-serif;
      font-size: 0.68rem;
      letter-spacing: 1px;
      color: var(--muted);
      text-transform: uppercase;
    }

    .key-box {
      background: rgba(255, 255, 255, 0.07);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 3px;
      padding: 3px 8px;
      font-size: 0.6rem;
      color: var(--off-white);
      font-family: 'Oswald', sans-serif;
      white-space: nowrap;
      flex-shrink: 0;
    }

    /* other game styles remain */
    .hud-team-flag {
      font-size: 1.2rem;
      line-height: 1;
    }

    .hud-team-name {
      font-family: 'Oswald', sans-serif;
      font-size: 0.55rem;
      letter-spacing: 3px;
      color: var(--muted);
      text-transform: uppercase;
    }

    .hud-score {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(2rem, 5vw, 3rem);
      line-height: 1;
      color: var(--white);
    }

    .hud-score.blue {
      color: #5ab3ff;
      text-shadow: 0 0 18px rgba(90, 179, 255, 0.5);
    }

    .hud-score.red {
      color: #ff6666;
      text-shadow: 0 0 18px rgba(255, 102, 102, 0.5);
    }

    .hud-dash {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(2rem, 5vw, 3rem);
      color: rgba(255, 255, 255, 0.2);
      line-height: 1;
    }

    .hud-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
    }

    .hud-timer {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(1.1rem, 3vw, 1.6rem);
      letter-spacing: 3px;
      color: var(--gold);
      text-shadow: 0 0 14px rgba(255, 215, 0, 0.4);
    }

    .hud-half {
      font-family: 'Oswald', sans-serif;
      font-size: 0.55rem;
      letter-spacing: 3px;
      color: var(--muted);
      text-transform: uppercase;
    }

    .hud-event {
      font-family: 'Oswald', sans-serif;
      font-size: 0.6rem;
      letter-spacing: 2px;
      color: var(--gold);
      height: 14px;
      text-align: center;
    }

    /* Rest of game styles */
    .diff-section {
      position: relative;
      z-index: 2;
      text-align: center;
      margin-bottom: 20px;
    }

    .diff-label {
      font-family: 'Oswald', sans-serif;
      font-size: 0.62rem;
      letter-spacing: 4px;
      color: var(--muted);
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .diff-row {
      display: flex;
      gap: 8px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .diff-btn {
      font-family: 'Oswald', sans-serif;
      font-size: 0.72rem;
      letter-spacing: 2px;
      padding: 8px 20px;
      border-radius: 4px;
      text-transform: uppercase;
      cursor: pointer;
      border: 1px solid rgba(255, 255, 255, 0.15);
      background: rgba(255, 255, 255, 0.04);
      color: var(--muted);
      transition: all 0.2s;
    }

    .diff-btn:hover {
      border-color: rgba(255, 215, 0, 0.4);
      color: var(--gold);
      background: rgba(255, 215, 0, 0.07);
    }

    .diff-btn.active {
      background: linear-gradient(135deg, var(--gold-dark), var(--gold));
      border-color: var(--gold);
      color: var(--dark);
      font-weight: 700;
    }

    .play-btn {
      position: relative;
      z-index: 2;
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(1.2rem, 3vw, 1.6rem);
      letter-spacing: 5px;
      padding: 15px 60px;
      background: linear-gradient(135deg, var(--red), #990000);
      color: var(--white);
      border: none;
      border-radius: 4px;
      cursor: pointer;
      box-shadow: 0 6px 28px rgba(204, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
      transition: all 0.2s;
      text-transform: uppercase;
    }

    .play-btn:hover {
      transform: translateY(-2px) scale(1.03);
      box-shadow: 0 12px 36px rgba(204, 0, 0, 0.7);
    }

    .menu-logo-wrap {
      position: relative;
      z-index: 2;
      text-align: center;
      margin-bottom: 6px;
    }

    .menu-logo {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(2rem, 5vw, 2.5rem);
      letter-spacing: 8px;
      background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
      background-size: 200% auto;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: shimmer 3s linear infinite, logoPulse 2.5s ease-in-out infinite;
      line-height: 1;
    }

    @keyframes shimmer {
      to {
        background-position: 200% center;
      }
    }

    @keyframes logoPulse {

      0%,
      100% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.35));
      }

      50% {
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.75));
      }
    }

    .menu-eyebrow {
      font-family: 'Oswald', sans-serif;
      font-size: clamp(0.55rem, 1.5vw, 0.75rem);
      letter-spacing: 6px;
      color: var(--muted);
      text-transform: uppercase;
      position: relative;
      z-index: 2;
      margin-bottom: 18px;
    }

    .menu-tagline {
      font-family: 'Oswald', sans-serif;
      font-size: clamp(0.65rem, 1.8vw, 0.85rem);
      letter-spacing: 4px;
      color: var(--gold);
      text-transform: uppercase;
      position: relative;
      z-index: 2;
      margin-bottom: 24px;
      background: rgba(255, 215, 0, 0.08);
      border: 1px solid rgba(255, 215, 0, 0.25);
      padding: 6px 18px;
      border-radius: 4px;
    }

    .menu-ball-wrap {
      position: relative;
      z-index: 2;
      margin: 8px 0 20px;
    }

    .menu-ball-svg {
      animation: ballBounce 1.4s cubic-bezier(0.33, 0, 0.66, 1) infinite;
    }

    @keyframes ballBounce {

      0%,
      100% {
        transform: translateY(0);
      }

      45% {
        transform: translateY(-36px);
      }

      55% {
        transform: translateY(-36px);
      }
    }

    .ball-shadow {
      width: 52px;
      height: 10px;
      background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5), transparent);
      border-radius: 50%;
      margin: 0 auto;
      animation: shadowPulse 1.4s cubic-bezier(0.33, 0, 0.66, 1) infinite;
    }

    @keyframes shadowPulse {

      0%,
      100% {
        transform: scaleX(1);
        opacity: 0.5;
      }

      45%,
      55% {
        transform: scaleX(0.6);
        opacity: 0.2;
      }
    }

    /* kickoff overlay controls */
    .ko-controls {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px 18px;
      max-width: 420px;
      width: 100%;
      padding: 0 12px;
    }

    .ko-ctrl {
      display: flex;
      align-items: center;
      gap: 10px;
      font-family: 'Oswald', sans-serif;
      font-size: 0.66rem;
      letter-spacing: 1px;
      color: var(--off-white);
      text-transform: uppercase;
    }

    .ko-key {
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 215, 0, 0.06));
      border: 1px solid rgba(255, 215, 0, 0.45);
      border-radius: 4px;
      padding: 5px 10px;
      font-size: 0.62rem;
      color: var(--gold-light);
      font-family: 'Oswald', sans-serif;
      white-space: nowrap;
      flex-shrink: 0;
      min-width: 54px;
      text-align: center;
      box-shadow: 0 0 8px rgba(255, 215, 0, 0.12);
    }

    .ko-lbl {
      color: var(--muted);
    }

    /* result screen */
    .res-eyebrow {
      font-family: 'Oswald', sans-serif;
      font-size: 0.65rem;
      letter-spacing: 5px;
      color: var(--muted);
      text-transform: uppercase;
    }

    .res-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(3rem, 10vw, 6.5rem);
      letter-spacing: 8px;
      line-height: 1;
      text-align: center;
    }

    .res-score {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(2.5rem, 8vw, 5rem);
      letter-spacing: 12px;
      color: var(--white);
      text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    }

    .res-divider {
      width: 60px;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
    }

    .res-stats {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .res-stat {
      background: var(--card-bg);
      border: 1px solid var(--card-bd);
      border-radius: 8px;
      padding: 14px 20px;
      text-align: center;
      min-width: 90px;
    }

    .res-stat-val {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 2.2rem;
      color: var(--gold);
      display: block;
      line-height: 1;
    }

    .res-stat-lbl {
      font-family: 'Oswald', sans-serif;
      font-size: 0.58rem;
      letter-spacing: 2px;
      color: var(--muted);
      text-transform: uppercase;
      display: block;
      margin-top: 3px;
    }

    .res-btns {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .res-btn {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.1rem;
      letter-spacing: 4px;
      padding: 13px 36px;
      border-radius: 4px;
      border: none;
      cursor: pointer;
      transition: all 0.2s;
      text-transform: uppercase;
    }

    .res-btn.primary {
      background: linear-gradient(135deg, var(--red), #990000);
      color: var(--white);
      box-shadow: 0 6px 24px rgba(204, 0, 0, 0.4);
    }

    .res-btn.secondary {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.18);
      color: var(--white);
    }

    .res-btn:hover {
      transform: scale(1.05);
    }

    /* goal banner */
    #goalBanner {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -55%) scale(0);
      z-index: 200;
      text-align: center;
      pointer-events: none;
      display: none;
    }

    #goalBanner.show {
      display: block;
      animation: goalPop 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    @keyframes goalPop {
      0% {
        transform: translate(-50%, -55%) scale(0) rotate(-8deg);
        opacity: 0;
      }

      25% {
        transform: translate(-50%, -55%) scale(1.15) rotate(2deg);
        opacity: 1;
      }

      60% {
        transform: translate(-50%, -55%) scale(1) rotate(0deg);
        opacity: 1;
      }

      82% {
        transform: translate(-50%, -55%) scale(1) rotate(0deg);
        opacity: 1;
      }

      100% {
        transform: translate(-50%, -55%) scale(0.7) rotate(4deg);
        opacity: 0;
      }
    }

    .goal-word {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(3.5rem, 14vw, 9rem);
      letter-spacing: 10px;
      line-height: 1;
      background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
      background-size: 200% auto;
      animation: shimmer 1s linear infinite;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.7));
    }

    .goal-scorer {
      font-family: 'Oswald', sans-serif;
      font-size: clamp(0.7rem, 2.5vw, 1rem);
      letter-spacing: 4px;
      color: var(--white);
      text-transform: uppercase;
      margin-top: 4px;
    }

    #goalFlash {
      position: absolute;
      inset: 0;
      z-index: 190;
      pointer-events: none;
      display: none;
      border-radius: 2px;
    }

    #goalFlash.show {
      display: block;
      animation: flashAnim 0.7s ease-out forwards;
    }

    @keyframes flashAnim {
      0% {
        background: rgba(255, 215, 0, 0.45);
        box-shadow: inset 0 0 80px rgba(255, 215, 0, 0.6);
      }

      100% {
        background: transparent;
        box-shadow: none;
      }
    }

    /* ============================================================
       FULLSCREEN MODE OVERRIDES
       ============================================================ */
    .fullscreen-mode #particles-canvas,
    .fullscreen-mode nav,
    .fullscreen-mode .promo-ticker-bar,
    .fullscreen-mode footer {
      display: none !important;
    }

    .fullscreen-mode body {
      padding: 0 !important;
      margin: 0 !important;
      overflow: hidden;
    }

    .fullscreen-mode .screen {
      margin: 0 !important;
      min-height: 100vh !important;
      width: 100vw !important;
      border-radius: 0 !important;
    }

    .fullscreen-mode #gameScreen {
      margin: 0 !important;
      min-height: 100vh !important;
      width: 100vw !important;
    }

    .fullscreen-mode #menuScreen {
      margin: 0 !important;
      min-height: 100vh !important;
      width: 100vw !important;
    }

    /* Close button (cross) - only visible in fullscreen mode */
    .fullscreen-close-btn {
      display: none;
      position: fixed;
      top: 16px;
      right: 20px;
      z-index: 9999;
      background: rgba(0, 0, 0, 0.7);
      border: 2px solid rgba(255, 255, 255, 0.4);
      color: #fff;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      font-size: 1.6rem;
      line-height: 1;
      cursor: pointer;
      transition: background 0.2s, transform 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
    }

    .fullscreen-close-btn:hover {
      background: rgba(200, 0, 0, 0.8);
      transform: scale(1.1);
    }

    .fullscreen-mode .fullscreen-close-btn {
      display: flex;
    }

    /* ============================================================
       OVERLAY BUTTONS (Kick Off / Half Time / Pause overlays)
       Previously unstyled — covers #koBtn, #resumeBtn, #quitBtn
       ============================================================ */
    .ov-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(1.8rem, 5vw, 2.8rem);
      letter-spacing: 6px;
      color: var(--gold);
      text-transform: uppercase;
      text-align: center;
      text-shadow: 0 0 22px rgba(255, 215, 0, 0.4);
    }

    .ov-sub {
      font-family: 'Oswald', sans-serif;
      font-size: clamp(0.7rem, 2vw, 0.85rem);
      letter-spacing: 1.5px;
      color: var(--off-white);
      text-transform: uppercase;
      text-align: center;
      white-space: pre-line;
      line-height: 1.6;
    }

    .ov-score {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(1.6rem, 4vw, 2.2rem);
      letter-spacing: 6px;
      color: var(--white);
    }

    .ov-btn {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(0.95rem, 2.4vw, 1.15rem);
      letter-spacing: 3px;
      padding: 13px 38px;
      border-radius: 4px;
      cursor: pointer;
      text-transform: uppercase;
      transition: all 0.2s;
      border: none;
    }

    .ov-btn.primary {
      background: linear-gradient(135deg, var(--gold-dark), var(--gold));
      color: var(--dark);
      box-shadow: 0 6px 24px rgba(255, 215, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
      font-weight: 700;
    }

    .ov-btn.primary:hover {
      transform: translateY(-2px) scale(1.03);
      box-shadow: 0 10px 32px rgba(255, 215, 0, 0.55);
    }

    .ov-btn.secondary {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--white);
    }

    .ov-btn.secondary:hover {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.4);
      transform: translateY(-1px);
    }

    /* ============================================================
       SEO CONTENT SECTION (below the menu screen)
       Keeps game functionality untouched — purely descriptive copy
       ============================================================ */
    .game-info-section {
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 760px;
      margin: 0 auto;
      padding: clamp(28px, 5vw, 48px) var(--page-padding) 8px;
      color: var(--off-white);
    }

    .page-h1 {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(1.4rem, 4vw, 3.5rem);
      letter-spacing: 3px;
      text-align: center;
      color: var(--gold);
      text-transform: uppercase;
      /* margin-bottom: clamp(18px, 4vw, 28px); */
      text-shadow: 0 0 16px rgba(255, 215, 0, 0.25);
    }

    .game-info-section h2 {
      font-family: 'Oswald', sans-serif;
      font-size: clamp(1rem, 2.6vw, 1.25rem);
      letter-spacing: 1px;
      color: var(--white);
      margin: clamp(20px, 4vw, 30px) 0 10px;
      font-weight: 600;
    }

    .game-info-section h3 {
      font-family: 'Oswald', sans-serif;
      font-size: clamp(0.82rem, 2vw, 0.95rem);
      letter-spacing: 0.6px;
      color: var(--gold-light);
      margin: 16px 0 8px;
      font-weight: 500;
      text-transform: uppercase;
    }

    .game-info-section p {
      font-family: 'Inter', sans-serif;
      font-size: clamp(0.85rem, 1.8vw, 0.95rem);
      line-height: 1.75;
      color: var(--text-muted);
      margin-bottom: 14px;
    }