/* COPYRIGHT: © 2026 Vibe-Verse Phonics by Vibe Verse Edu. All rights reserved. DMCA: support@vibeverseedu.com */
*,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0
    }

    :root {
      --cyan: #06b6d4;
      --pink: #ec4899;
      --purple: #8b5cf6;
      --gold: #fbbf24;
      --dark: #0f172a;
      --darker: #060c18;
      --text: #f8fafc;
      --muted: #94a3b8;
      --dim: #64748b;
      --border: rgba(255, 255, 255, 0.08);
      --font: 'Outfit', sans-serif
    }

    body {
      font-family: var(--font);
      background: var(--dark);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased
    }

    a {
      color: var(--cyan);
      text-decoration: none
    }

    .accent {
      background: linear-gradient(90deg, var(--cyan), var(--pink));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text
    }

    /* NAV */
    .site-nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 24px;
      background: rgba(15, 23, 42, 0.85);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border)
    }

    .nav-brand {
      font-weight: 900;
      font-size: 18px;
      letter-spacing: 1px;
      background: linear-gradient(90deg, var(--cyan), var(--pink));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text
    }

    .nav-links {
      display: flex;
      gap: 20px;
      list-style: none
    }

    .nav-links a {
      color: var(--muted);
      font-weight: 600;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 1.5px
    }

    .nav-links a:hover {
      color: var(--cyan)
    }

    .nav-cta {
      padding: 8px 18px;
      font-size: 12px;
      font-weight: 800;
      border-radius: 30px;
      background: linear-gradient(135deg, var(--cyan), var(--pink));
      color: white;
      text-transform: uppercase;
      letter-spacing: 1px
    }

    /* EMAIL GATE */
    #emailGate {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 80px 24px;
      background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(6, 182, 212, 0.15) 0%, transparent 70%), var(--dark)
    }

    .gate-card {
      max-width: 460px;
      width: 100%;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 40px;
      text-align: center;
      backdrop-filter: blur(10px)
    }

    .gate-card h1 {
      font-size: 32px;
      font-weight: 900;
      margin-bottom: 8px
    }

    .gate-card .sub {
      color: var(--muted);
      font-size: 14px;
      margin-bottom: 24px;
      line-height: 1.6
    }

    .gate-card input,
    .gate-card select {
      width: 100%;
      padding: 12px 16px;
      border-radius: 10px;
      border: 2px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.06);
      color: white;
      font-family: var(--font);
      font-size: 14px;
      margin-bottom: 12px;
      outline: none
    }

    .gate-card input:focus,
    .gate-card select:focus {
      border-color: var(--cyan)
    }

    .gate-card input::placeholder {
      color: var(--dim)
    }

    .gate-card select {
      appearance: none;
      cursor: pointer
    }

    .gate-card option {
      background: var(--dark);
      color: white
    }

    .btn-play {
      width: 100%;
      padding: 14px;
      border: none;
      border-radius: 10px;
      background: linear-gradient(135deg, var(--cyan), var(--pink));
      color: white;
      font-family: var(--font);
      font-weight: 800;
      font-size: 16px;
      cursor: pointer;
      letter-spacing: .5px;
      transition: transform .15s, box-shadow .15s
    }

    .btn-play:hover {
      transform: scale(1.02);
      box-shadow: 0 0 30px rgba(6, 182, 212, 0.3)
    }

    .gate-privacy {
      font-size: 11px;
      color: var(--dim);
      margin-top: 12px
    }

    /* TWO-PATH GATE (COPPA) */
    .gate-paths {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 8px
    }

    .gate-path-btn {
      width: 100%;
      padding: 16px;
      border: 2px solid var(--border);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.04);
      color: white;
      font-family: var(--font);
      font-weight: 700;
      font-size: 16px;
      cursor: pointer;
      transition: all .2s
    }

    .gate-path-student {
      background: linear-gradient(135deg, var(--cyan), var(--pink));
      border-color: transparent;
      font-size: 18px
    }

    .gate-path-student:hover {
      transform: scale(1.02);
      box-shadow: 0 0 30px rgba(6, 182, 212, 0.3)
    }

    .gate-path-adult {
      background: rgba(255, 255, 255, 0.06)
    }

    .gate-path-adult:hover {
      border-color: var(--cyan);
      background: rgba(255, 255, 255, 0.08)
    }

    .gate-divider {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--dim);
      font-size: 12px
    }

    .gate-divider::before,
    .gate-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border)
    }

    .age-confirm {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 12px;
      cursor: pointer;
      text-align: left
    }

    .age-confirm input[type="checkbox"] {
      width: auto;
      margin: 0;
      accent-color: var(--cyan)
    }

    .btn-back {
      width: 100%;
      padding: 10px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: transparent;
      color: var(--muted);
      font-family: var(--font);
      font-weight: 600;
      font-size: 13px;
      cursor: pointer;
      margin-top: 8px;
      transition: color .2s
    }

    .btn-back:hover {
      color: var(--cyan)
    }

    #gateForm {
      flex-direction: column;
      gap: 0
    }

    /* GAME AREA */
    #gameArea {
      display: none;
      flex-direction: column;
      height: 100vh;
      width: 100vw;
      overflow: hidden;
      padding-top: 48px
    }

    #info-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 6px 16px;
      background: rgba(15, 23, 42, 0.75);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      min-height: 40px;
      flex-wrap: wrap;
      gap: 4px;
      overflow: visible
    }

    #info-bar > div:last-child,
    #info-bar > .info-actions {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      justify-content: flex-end;
      align-items: center
    }

    .phase-label {
      font-size: .7rem;
      color: var(--dim);
      text-transform: uppercase;
      letter-spacing: 1px
    }

    .turn-label {
      font-size: 1rem;
      font-weight: 800;
      color: #fff;
      background: linear-gradient(90deg, #ca8a04, #eab308);
      padding: 4px 16px;
      border-radius: 20px;
      box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
      text-transform: uppercase;
      letter-spacing: 1px;
      animation: turnPulse 2s infinite;
      transition: all 0.3s ease;
    }

    @keyframes turnPulse {
      0% {
        box-shadow: 0 0 5px rgba(234, 179, 8, 0.4);
      }

      50% {
        box-shadow: 0 0 15px rgba(234, 179, 8, 0.8);
        background: linear-gradient(90deg, #d97706, #f59e0b);
      }

      100% {
        box-shadow: 0 0 5px rgba(234, 179, 8, 0.4);
      }
    }

    .action-btn {
      padding: 5px 12px;
      font-size: .8rem;
      font-weight: 700;
      border-radius: 20px;
      cursor: pointer;
      font-family: var(--font);
      border: none;
      color: white;
      transition: transform .15s, box-shadow .15s, opacity .15s
    }

    .action-btn:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3)
    }

    .action-btn:disabled {
      opacity: .4;
      cursor: not-allowed
    }

    #btn-attack {
      background: linear-gradient(to right, var(--cyan), var(--pink))
    }

    #btn-end-turn {
      background: linear-gradient(to right, var(--purple), var(--pink))
    }

    #btn-retreat {
      background: linear-gradient(to right, var(--purple), var(--cyan))
    }

    #btn-sound {
      background: #475569
    }

    /* BOARD */
    #game-board {
      flex: 1;
      position: relative;
      display: flex;
      flex-direction: column;
      background: var(--darker)
    }

    .field-half {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 6px;
      position: relative;
      z-index: 5;
      padding: 6px
    }

    .field-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px
    }

    .zone {
      border: 2px dashed rgba(255, 255, 255, 0.25);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.05);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      transition: border-color .2s
    }

    .zone-label {
      font-size: .55rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: rgba(255, 255, 255, 0.4);
      position: absolute;
      bottom: 3px
    }

    .active-zone {
      width: 100px;
      height: 140px;
      border-color: rgba(250, 204, 21, 0.5)
    }

    .bench-slot {
      width: 68px;
      height: 96px
    }

    .deck-zone,
    .discard-zone {
      width: 56px;
      height: 78px
    }

    .prize-zone {
      width: 130px;
      height: 68px
    }

    .zone.highlight {
      border-color: #22c55e !important;
      background: rgba(34, 197, 94, 0.12) !important;
      box-shadow: 0 0 12px rgba(34, 197, 94, 0.3)
    }

    .bench-zone {
      display: flex;
      gap: 6px
    }

    /* CARDS */
    .game-card {
      width: 100%;
      height: 100%;
      border-radius: 6px;
      background: #fff;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      cursor: pointer;
      position: relative;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
      user-select: none;
      -webkit-user-select: none;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .game-card:hover {
      transform: scale(1.6) translateY(-10px);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
      z-index: 100;
    }

    .game-card img.card-art {
      width: 100%;
      flex: 1;
      object-fit: cover;
      background: #334155;
      pointer-events: none;
      -webkit-user-drag: none;
      user-drag: none
    }

    .card-art-wrap {
      position: relative;
      flex: 1;
      display: flex;
      overflow: hidden
    }

    .card-art-overlay {
      position: absolute;
      inset: 0;
      z-index: 2;
      background: transparent;
      pointer-events: auto;
      user-select: none;
      -webkit-user-select: none
    }

    .card-footer {
      background: var(--dark);
      padding: 2px 4px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1px
    }

    .card-name {
      font-size: .5rem;
      font-weight: 700;
      color: #e2e8f0;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%
    }

    .card-hp {
      font-size: .5rem;
      color: var(--muted)
    }

    .hp-bar {
      width: 100%;
      height: 3px;
      background: #334155;
      border-radius: 2px;
      overflow: hidden
    }

    .hp-bar-fill {
      height: 100%;
      background: #22c55e;
      border-radius: 2px;
      transition: width .5s
    }

    .hp-bar-fill.low {
      background: #ef4444
    }

    .energy-pips {
      display: flex;
      gap: 2px;
      flex-wrap: wrap;
      justify-content: center
    }

    .energy-pip {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--gold);
      border: 1px solid rgba(255, 255, 255, 0.3)
    }

    /* HAND */
    #player-hand {
      position: relative;
      z-index: 10;
      background: rgba(15, 23, 42, 0.75);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-top: 1px solid var(--border);
      padding: 8px 16px;
      display: flex;
      gap: 0;
      justify-content: center;
      align-items: flex-end;
      min-height: 120px;
      overflow-x: auto
    }

    .hand-card {
      width: 74px;
      height: 104px;
      flex-shrink: 0;
      border-radius: 6px;
      background: #fff;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      cursor: pointer;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
      position: relative;
      transition: transform 0.3s ease, box-shadow 0.2s ease, margin 0.2s ease;
      user-select: none;
      -webkit-user-select: none;
      margin-left: -20px;
      transform-origin: bottom center;
    }

    .hand-card:first-child {
      margin-left: 0;
    }

    .hand-card:hover {
      transform: scale(1.6) translateY(-20px) rotate(0deg) !important;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
      z-index: 100;
      margin-right: 20px;
      margin-left: 0px;
    }

    .hand-card.selected {
      transform: translateY(-16px);
      box-shadow: 0 0 0 3px var(--gold), 0 12px 24px rgba(0, 0, 0, 0.6)
    }

    .hand-card img {
      width: 100%;
      flex: 1;
      object-fit: cover;
      background: #334155;
      pointer-events: none
    }

    .hand-footer {
      background: var(--dark);
      padding: 2px 3px;
      text-align: center
    }

    .hand-name {
      font-size: .48rem;
      color: #e2e8f0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis
    }

    .hand-type {
      font-size: .42rem;
      color: var(--dim)
    }

    .card-badge {
      position: absolute;
      top: 3px;
      right: 3px;
      padding: 1px 5px;
      border-radius: 8px;
      font-size: .42rem;
      font-weight: 700;
      background: rgba(0, 0, 0, 0.7);
      color: var(--gold)
    }

    /* Holographic Shimmer Effect */
    .game-card::after,
    .hand-card::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 200%;
      height: 200%;
      background: linear-gradient(to bottom right,
          rgba(255, 255, 255, 0) 0%,
          rgba(255, 255, 255, 0.4) 50%,
          rgba(255, 255, 255, 0) 100%);
      transform: translate(-100%, -100%) rotate(30deg);
      transition: transform 0.6s ease-out;
      pointer-events: none;
      z-index: 10;
    }

    .game-card:hover::after,
    .hand-card:hover::after {
      transform: translate(100%, 100%) rotate(30deg);
    }

    /* OPP HAND */
    #opp-hand {
      display: flex;
      gap: 3px;
      justify-content: center;
      padding: 4px
    }

    .opp-hand-card {
      width: 36px;
      height: 50px;
      border-radius: 4px;
      background-image: url('assets/card_back.png');
      background-size: cover;
      background-position: center;
      border: 1px solid rgba(255, 255, 255, 0.2);
      transform: rotate(180deg)
    }

    /* PRIZE SLOTS */
    .prize-slots {
      display: flex;
      flex-direction: row;
      gap: 4px;
      align-items: center;
      justify-content: center;
      height: 100%
    }

    .prize-slot {
      width: 36px;
      height: 50px;
      background-image: url('assets/card_back.png');
      background-size: cover;
      background-position: center;
      border-radius: 4px;
      border: 1px solid rgba(255, 255, 255, 0.3)
    }

    .prize-slot.taken {
      background-image: none;
      background: rgba(255, 255, 255, 0.05);
      border: 2px dashed rgba(255, 255, 255, 0.2)
    }

    .deck-interior {
      width: 46px;
      height: 64px;
      background-image: url('assets/card_back.png');
      background-size: cover;
      background-position: center;
      border-radius: 5px;
      border: 1px solid rgba(255, 255, 255, 0.3)
    }

    .deck-count {
      font-size: .6rem;
      color: var(--muted);
      margin-top: 2px
    }

    /* TUTORIAL BOX */
    #tutorial-box {
      position: fixed;
      bottom: 130px;
      left: 16px;
      width: 290px;
      background: rgba(30, 41, 59, 0.95);
      border: 2px solid var(--gold);
      border-radius: 16px;
      padding: 14px;
      z-index: 250;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
      display: none;
      backdrop-filter: blur(10px)
    }

    #tutorial-box.active {
      display: flex;
      gap: 10px;
      align-items: flex-start
    }

    .tut-mascot {
      font-size: 2rem;
      flex-shrink: 0
    }

    /* ===== ANIMATIONS ===== */
    .floating-dmg {
      position: absolute;
      color: #ef4444;
      font-size: 2.5rem;
      font-weight: 900;
      text-shadow: 0 0 4px #000, 0 0 10px #000;
      z-index: 300;
      pointer-events: none;
      animation: floatUp 1s ease-out forwards;
    }

    @keyframes floatUp {
      0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
      }

      20% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
      }

      100% {
        transform: translateY(-80px) scale(1);
        opacity: 0;
      }
    }

    .ko-shatter {
      animation: shatter 0.8s forwards;
    }

    @keyframes shatter {
      0% {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1) sepia(0);
      }

      50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.8;
        filter: brightness(1.5) sepia(1) hue-rotate(-50deg);
      }

      100% {
        transform: scale(0) rotate(-15deg);
        opacity: 0;
        filter: brightness(0);
        display: none;
      }
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
      .active-zone {
        width: 80px;
        height: 112px;
      }

      .bench-slot {
        width: 56px;
        height: 78px;
      }

      .deck-zone,
      .discard-zone {
        width: 45px;
        height: 63px;
      }

      .prize-zone {
        width: 115px;
        height: 56px;
      }

      .hand-card {
        width: 60px;
        height: 84px;
        margin-left: -15px;
      }

      .hand-card:hover {
        transform: scale(1.4) translateY(-15px);
      }

      .action-btn {
        font-size: 0.7rem;
        padding: 3px 8px;
      }

      .turn-label {
        font-size: 0.8rem;
        padding: 2px 10px;
      }

      .game-card .card-name {
        font-size: 0.45rem;
      }

      .game-card .card-hp {
        font-size: 0.4rem;
      }
    }

    /* ── Tablet breakpoint (iPad) ── */
    @media (min-width: 769px) and (max-width: 1024px) {
      #gameArea { padding-top: 52px; }
      #info-bar { padding: 8px 20px; height: 44px; }
      .game-card { width: 90px; height: 126px; }
      .zone { min-width: 96px; min-height: 132px; }
      .hand-card { width: 82px; height: 114px; }
      #player-hand { min-height: 130px; padding: 10px 24px; }
      .action-btn { font-size: 0.85rem; padding: 6px 14px; }
      .turn-label { font-size: 0.95rem; }
    }

    /* ── Loading / Splash Screen ── */
    #loading-screen {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: var(--darker);
      transition: opacity 0.6s ease;
    }
    #loading-screen.fade-out {
      opacity: 0;
      pointer-events: none;
    }
    #loading-screen img {
      width: 140px;
      margin-bottom: 24px;
      animation: loadPulse 1.8s ease-in-out infinite;
    }
    @keyframes loadPulse {
      0%, 100% { transform: scale(1); opacity: 0.85; }
      50% { transform: scale(1.08); opacity: 1; }
    }
    .load-bar {
      width: 200px;
      height: 6px;
      background: rgba(255,255,255,0.1);
      border-radius: 3px;
      overflow: hidden;
    }
    .load-bar-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(to right, var(--cyan), var(--pink));
      border-radius: 3px;
      animation: loadFill 1.8s ease-in-out forwards;
    }
    @keyframes loadFill {
      to { width: 100%; }
    }

    .tut-body p {
      font-size: .85rem;
      line-height: 1.4;
      color: #e2e8f0;
      margin-bottom: 8px
    }

    .tut-body button {
      background: var(--gold);
      color: var(--dark);
      border: none;
      padding: 5px 16px;
      border-radius: 20px;
      font-weight: 700;
      cursor: pointer;
      font-family: var(--font);
      font-size: .8rem
    }

    .step-counter {
      font-size: .65rem;
      color: var(--dim);
      margin-bottom: 4px
    }

    /* OVERLAYS */
    .overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.88);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 200
    }

    .overlay.hidden {
      display: none
    }

    .modal {
      background: rgba(30, 41, 59, 0.85);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 2px solid var(--gold);
      border-radius: 20px;
      padding: 36px;
      text-align: center;
      max-width: 480px;
      width: 90%;
      box-shadow: 0 0 50px rgba(250, 204, 21, 0.2)
    }

    .modal h1 {
      font-size: 2rem;
      font-weight: 900;
      margin-bottom: 10px
    }

    .modal p {
      color: var(--muted);
      margin-bottom: 20px;
      font-size: .95rem
    }

    /* PROMPT */
    #action-prompt {
      position: fixed;
      top: 94px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(15, 23, 42, 0.85);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 2px solid var(--purple);
      border-radius: 12px;
      padding: 8px 18px;
      font-size: .8rem;
      color: #a5b4fc;
      z-index: 50;
      display: none
    }

    #action-prompt.visible {
      display: block
    }

    /* USAGE STRIKE */
    #usage-overlay .modal {
      border: 3px solid var(--gold);
      background: var(--darker)
    }

    /* WATERMARK */
    .watermark {
      position: fixed;
      bottom: 4px;
      right: 8px;
      font-size: 9px;
      color: rgba(255, 255, 255, 0.15);
      z-index: 999;
      pointer-events: none;
      user-select: none
    }

    /* CTA MODAL */
    #ctaModal {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.92);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 300
    }

    #ctaModal.visible {
      display: flex
    }

    .cta-card {
      max-width: 500px;
      width: 90%;
      background: linear-gradient(135deg, #1e293b, var(--dark));
      border: 2px solid var(--cyan);
      border-radius: 20px;
      padding: 40px;
      text-align: center
    }

    .cta-card h2 {
      font-size: 28px;
      font-weight: 900;
      margin-bottom: 12px
    }

    .cta-card p {
      color: var(--muted);
      font-size: 15px;
      margin-bottom: 24px;
      line-height: 1.6
    }

    .cta-buttons {
      display: flex;
      gap: 12px;
      justify-content: center;
      flex-wrap: wrap
    }

    .cta-buttons a {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 28px;
      border-radius: 10px;
      font-weight: 800;
      font-size: 15px;
      font-family: var(--font);
      text-decoration: none;
      transition: transform .15s
    }

    .cta-primary {
      background: linear-gradient(135deg, var(--cyan), var(--pink));
      color: white
    }

    .cta-secondary {
      background: transparent;
      border: 2px solid var(--border);
      color: var(--text)
    }

    .cta-buttons a:hover {
      transform: scale(1.03)
    }

    /* FOOTER */
    .game-footer {
      text-align: center;
      padding: 6px;
      font-size: 10px;
      color: #334155;
      background: var(--darker);
      border-top: 1px solid var(--border)
    }

    /* PROTECTION */
    .art-shield {
      position: absolute;
      inset: 0;
      z-index: 10;
      pointer-events: auto;
      background: transparent
    }

    @media(max-width:768px) {
      .nav-links {
        display: none
      }

      .gate-card {
        padding: 28px 20px
      }

      .gate-card h1 {
        font-size: 24px
      }
    }

    /* FOOTER */
    .site-footer {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 8px;
      text-align: center;
      font-size: 11px;
      color: var(--dim);
      background: rgba(15, 23, 42, 0.85);
      backdrop-filter: blur(10px);
      z-index: 100;
      border-top: 1px solid var(--border);
      pointer-events: none;
    }

    /* === PHONICS TRACKER BAR (6.1) === */
    .phonics-tracker {
      position: relative;
      z-index: 90;
      background: rgba(15, 23, 42, 0.92);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 0.75rem;
      transition: max-height 0.3s ease;
      overflow: hidden;
    }

    .tracker-summary {
      padding: 6px 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      color: #94a3b8;
    }

    .tracker-pattern {
      color: #e2e8f0;
    }

    .tracker-toggle {
      margin-left: auto;
      transition: transform 0.3s;
    }

    .phonics-tracker.collapsed .tracker-detail {
      display: none;
    }

    .phonics-tracker.collapsed .tracker-toggle {
      transform: rotate(-90deg);
    }

    .tracker-detail {
      padding: 4px 16px 8px;
      display: flex;
      flex-wrap: wrap;
      gap: 6px 16px;
    }

    .tracker-row {
      color: #cbd5e1;
      font-size: 0.7rem;
    }

    /* === PHONICS REPORT CARD (6.2) === */
    .phonics-report {
      background: #1e293b;
      border: 2px solid #06b6d4;
      border-radius: 12px;
      padding: 16px;
      margin: 16px 0;
      text-align: left;
    }

    .phonics-report h2 {
      color: #fbbf24;
      font-size: 1.1rem;
      margin-bottom: 8px;
      text-align: center;
      background: none;
      -webkit-text-fill-color: initial;
    }

    .report-summary {
      color: #94a3b8;
      font-size: 0.85rem;
      text-align: center;
      margin-bottom: 12px;
    }

    .report-row {
      display: flex;
      gap: 8px;
      padding: 4px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      font-size: 0.8rem;
      align-items: center;
    }

    .report-pattern {
      font-weight: 900;
      min-width: 28px;
      color: #e2e8f0;
    }

    .report-words {
      flex: 1;
      color: #cbd5e1;
    }

    .report-level {
      color: #64748b;
      font-style: italic;
      font-size: 0.75rem;
    }

    .btn-print-report {
      display: block;
      margin: 12px auto 0;
      padding: 8px 20px;
      background: #06b6d4;
      color: white;
      border: none;
      border-radius: 8px;
      font-weight: 700;
      cursor: pointer;
      font-size: 0.85rem;
    }

    .btn-print-report:hover {
      background: #0891b2;
    }

    /* === HEAR IT AGAIN BUTTON (6.3) === */
    .btn-hear-again {
      display: block;
      margin: 10px auto 0;
      padding: 6px 16px;
      background: transparent;
      border: 1px solid #64748b;
      color: #94a3b8;
      border-radius: 8px;
      cursor: pointer;
      font-size: 0.8rem;
    }

    .btn-hear-again:hover {
      border-color: #06b6d4;
      color: #06b6d4;
    }

    /* === 7.1 EAL/BILINGUAL TOGGLE === */
    #btn-eal {
      background: #334155;
      font-size: .75rem;
      padding: 4px 10px;
    }
    .eal-translation {
      margin-top: 8px;
      padding: 6px 10px;
      background: rgba(6,182,212,0.12);
      border: 1px solid rgba(6,182,212,0.3);
      border-radius: 8px;
      font-size: .85rem;
      color: #67e8f9;
      text-align: center;
    }
    .eal-translation .eal-lang-label {
      font-size: .65rem;
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: 1px;
      display: block;
      margin-bottom: 2px;
    }

    /* === 7.2 DIFFICULTY SELECTOR === */
    #difficulty-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.92);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 250;
    }
    #difficulty-overlay.hidden { display: none; }
    .difficulty-card {
      background: rgba(30,41,59,0.95);
      backdrop-filter: blur(16px);
      border: 2px solid var(--gold);
      border-radius: 20px;
      padding: 32px;
      max-width: 420px;
      width: 90%;
      text-align: center;
    }
    .difficulty-card h2 {
      font-size: 1.3rem;
      font-weight: 900;
      margin-bottom: 16px;
      background: none;
      -webkit-text-fill-color: initial;
      color: var(--gold);
    }
    .difficulty-option {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      margin: 6px 0;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 10px;
      cursor: pointer;
      transition: border-color .2s, background .2s;
    }
    .difficulty-option:hover {
      border-color: var(--cyan);
      background: rgba(6,182,212,0.08);
    }
    .difficulty-option.selected {
      border-color: var(--gold);
      background: rgba(250,204,21,0.08);
    }
    .difficulty-option input[type="checkbox"] {
      accent-color: var(--gold);
      width: 18px;
      height: 18px;
    }
    .difficulty-option .diff-label {
      font-weight: 700;
      color: #e2e8f0;
      font-size: .9rem;
    }
    .difficulty-option .diff-examples {
      font-size: .75rem;
      color: #64748b;
      margin-left: auto;
    }
    .difficulty-min-msg {
      font-size: .75rem;
      color: #94a3b8;
      margin-top: 10px;
    }
    .difficulty-min-msg.error {
      color: #f87171;
    }
    .btn-start-game {
      margin-top: 16px;
      padding: 10px 28px;
      background: linear-gradient(135deg, var(--cyan), var(--pink));
      color: white;
      border: none;
      border-radius: 12px;
      font-weight: 800;
      font-size: 1rem;
      cursor: pointer;
      font-family: var(--font);
    }
    .btn-start-game:disabled {
      opacity: .4;
      cursor: not-allowed;
    }

    /* === 7.3 TEACHER MODE === */
    body.teacher-mode .opp-hand-card {
      background: rgba(30,41,59,0.6) !important;
    }
    body.teacher-mode #zoom-overlay .modal {
      max-width: 600px;
      padding: 40px;
    }
    body.teacher-mode #zoom-overlay .modal img {
      max-height: 400px;
    }
    body.teacher-mode .usage-phonics-pattern {
      font-size: 2rem;
      font-weight: 900;
    }
    body.teacher-mode #usage-overlay .modal {
      max-width: 560px;
    }

    /* === 7.4 WORD WALL === */
    #wordwall-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.92);
      display: none;
      align-items: flex-start;
      justify-content: center;
      z-index: 250;
      overflow-y: auto;
      padding: 24px 12px;
    }
    #wordwall-overlay.visible { display: flex; }
    .wordwall-card {
      background: rgba(30,41,59,0.95);
      backdrop-filter: blur(16px);
      border: 2px solid var(--cyan);
      border-radius: 20px;
      padding: 28px;
      max-width: 640px;
      width: 95%;
      text-align: center;
    }
    .wordwall-card h2 {
      font-size: 1.4rem;
      font-weight: 900;
      margin-bottom: 16px;
      background: none;
      -webkit-text-fill-color: initial;
      color: var(--gold);
    }
    .ww-group {
      margin-bottom: 16px;
      text-align: left;
    }
    .ww-group-title {
      font-weight: 900;
      font-size: .9rem;
      padding: 4px 12px;
      border-radius: 6px;
      display: inline-block;
      margin-bottom: 8px;
      color: white;
    }
    .ww-group-title.ww-ar { background: #EC4899; }
    .ww-group-title.ww-or { background: #f97316; }
    .ww-group-title.ww-er { background: #22c55e; }
    .ww-group-title.ww-ir { background: #3b82f6; }
    .ww-group-title.ww-ur { background: #a855f7; }
    .ww-words {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .ww-word {
      padding: 6px 12px;
      border-radius: 8px;
      font-size: .8rem;
      font-weight: 700;
      color: white;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.12);
    }
    .ww-word .ww-card-name {
      display: block;
      font-size: .6rem;
      font-weight: 400;
      color: #94a3b8;
      margin-top: 2px;
    }
    .btn-print-wall {
      margin-top: 16px;
      padding: 8px 20px;
      background: #06b6d4;
      color: white;
      border: none;
      border-radius: 8px;
      font-weight: 700;
      cursor: pointer;
      font-size: .85rem;
    }
    .btn-print-wall:hover { background: #0891b2; }
    .btn-close-wall {
      margin-top: 10px;
      padding: 6px 16px;
      background: transparent;
      border: 1px solid #475569;
      color: #94a3b8;
      border-radius: 8px;
      cursor: pointer;
      font-size: .8rem;
    }
    .btn-close-wall:hover { border-color: #94a3b8; color: #e2e8f0; }