/* ============================================================================
   TwinEagles Arcade — Future look (site 1.60.0)
   Loaded right after te-arcade.css on every game and on /games.php. It only
   restyles: neon-glass panels, a holographic grid behind the tables, HUD
   corner brackets, Orbitron headings and angled energy buttons. No game logic.

   Colours come from --tf-accent (neon) and --tf-accent2 (station gold). The
   table themes below and each holiday skin (partials/holiday-*.php) set those
   two, so Sci-Fi, Horror, Halloween etc. keep their own colours in the new look.
   Fonts are bundled in /fonts (OFL), so nothing loads from outside the site.
   ============================================================================ */

@font-face{font-family:'Orbitron';font-style:normal;font-weight:400 900;font-display:swap;
  src:url('/fonts/Orbitron-latin-var.woff2') format('woff2')}
@font-face{font-family:'Exo 2';font-style:normal;font-weight:100 900;font-display:swap;
  src:url('/fonts/Exo2-latin-var.woff2') format('woff2')}

:root{
  /* the "Station" table is now a holographic deck instead of green felt */
  --te-felt-a:#0d2346; --te-felt-b:#060f22;
}
body.te-game{
  --tf-accent:#3BE8FF;           /* neon cyan */
  --tf-accent2:#E7C258;          /* station gold, a touch brighter */
  --tf-hot:#FF4FD8;              /* magenta spark, used sparingly */
  --tf-ink:#030814;
  --tf-glass:rgba(9,20,42,.66);
  --tf-glass-hi:rgba(18,36,70,.72);
  --tf-line:color-mix(in srgb, var(--tf-accent) 30%, transparent);
  --tf-line-hi:color-mix(in srgb, var(--tf-accent) 70%, transparent);
  --tf-glow:0 0 0 1px color-mix(in srgb, var(--tf-accent) 22%, transparent),
            0 0 24px -6px color-mix(in srgb, var(--tf-accent) 55%, transparent);
  --tf-head:'Orbitron','Exo 2',system-ui,sans-serif;
  --tf-body:'Exo 2',system-ui,sans-serif;

  /* re-point each game's own palette so its existing rules pick up the look */
  --gold:var(--tf-accent2);
  --surface:rgba(14,30,60,.62);
  --card:var(--tf-glass);
  --border:color-mix(in srgb, var(--tf-accent) 24%, #22324d);
  --text:#EAF6FF;
  --muted:#A6BBD6;
}

/* ---- Table-theme accents (picker in the crumb bar) ---------------------- */
body.te-game[data-te-theme="scifi"]{--tf-accent:#5CC8FF;--tf-accent2:#9BE7FF}
body.te-game[data-te-theme="horror"]{--tf-accent:#FF3B4E;--tf-accent2:#E2333F;--tf-hot:#FF8A3D}
body.te-game[data-te-theme="sports"]{--tf-accent:#7CFF9B;--tf-accent2:#F2F2F2}
body.te-game[data-te-theme="movies"]{--tf-accent:#FFB648;--tf-accent2:#E2B13C;--tf-hot:#FF5A5A}
body.te-game[data-te-theme="throwback"]{--tf-accent:#29E6FF;--tf-accent2:#FF6EC7}
body.te-game[data-te-theme="country"]{--tf-accent:#F6C453;--tf-accent2:#F6C453;--tf-hot:#E07A3A}

/* ---- Space backdrop + holographic grid floor ---------------------------- */
body.te-game :is(main,.main,.wrap,.game-crumb,#terGuest){ font-family:var(--tf-body); }
body.te-game{
  background:
    radial-gradient(900px 480px at 50% -12%, color-mix(in srgb, var(--tf-accent) 16%, transparent), transparent 62%),
    radial-gradient(700px 520px at 88% 110%, color-mix(in srgb, var(--tf-hot) 10%, transparent), transparent 60%),
    radial-gradient(circle at 50% 30%, #0b1733 0%, var(--tf-ink) 72%) !important;
}
body.te-game::before{
  content:""; position:fixed; left:-25%; right:-25%; bottom:0; height:46vh; z-index:-1; pointer-events:none;
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--tf-accent) 22%, transparent) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg,  color-mix(in srgb, var(--tf-accent) 22%, transparent) 0 1px, transparent 1px 64px);
  transform:perspective(420px) rotateX(62deg); transform-origin:50% 100%;
  -webkit-mask-image:linear-gradient(to top, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
          mask-image:linear-gradient(to top, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
  opacity:.75;
}
@media (prefers-reduced-motion:no-preference){
  body.te-game::before{ animation:tfGrid 9s linear infinite; }
}
@keyframes tfGrid{ from{ background-position:0 0,0 0 } to{ background-position:0 0,0 64px } }
body.te-game::after{ opacity:.05 !important; }

/* ---- Crumb bar = HUD strip --------------------------------------------- */
body.te-game .game-crumb{
  background:linear-gradient(90deg, rgba(3,8,20,.85), rgba(10,24,50,.7) 50%, rgba(3,8,20,.85)) !important;
  border-bottom:1px solid var(--tf-line) !important;
  box-shadow:0 1px 0 color-mix(in srgb, var(--tf-accent) 18%, transparent), 0 8px 24px -14px var(--tf-accent) !important;
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  position:relative;
}
body.te-game .game-crumb::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px; pointer-events:none;
  background:linear-gradient(90deg, transparent, var(--tf-accent), transparent);
  opacity:.8;
}
@media (prefers-reduced-motion:no-preference){
  body.te-game .game-crumb::after{ background-size:40% 100%; background-repeat:no-repeat;
    background-image:linear-gradient(90deg, transparent, var(--tf-accent), transparent);
    animation:tfScan 5s ease-in-out infinite; }
}
@keyframes tfScan{ 0%{ background-position:-40% 0 } 100%{ background-position:140% 0 } }
body.te-game .header-title,
body.te-game .game-crumb h1{
  font-family:var(--tf-head) !important; font-weight:800 !important; letter-spacing:.08em; text-transform:uppercase;
  color:var(--tf-accent) !important;
  text-shadow:0 0 6px color-mix(in srgb, var(--tf-accent) 70%, transparent), 0 0 22px color-mix(in srgb, var(--tf-accent) 40%, transparent) !important;
}
body.te-game .game-crumb a.back{ color:var(--muted); }
body.te-game .game-crumb a.back:hover{ color:var(--tf-accent); }
body.te-game .te-theme-pick{ color:var(--muted); font-family:var(--tf-head); font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; }
body.te-game .te-theme-pick select{
  background:rgba(6,14,30,.9); color:var(--text); border:1px solid var(--tf-line-hi); border-radius:4px;
  font-family:var(--tf-body); letter-spacing:0; text-transform:none; box-shadow:var(--tf-glow);
}

/* ---- Glass panels with HUD corner brackets ----------------------------- */
body.te-game .card,
body.te-game .card-shell,
body.te-game .start-card,
body.te-game .q-card,
body.te-game .result-card,
body.te-game .gate,
body.te-game:not(.te-solitaire) .panel,
body.te-hub .game-card,
body.te-hub .hol-games,
body.te-hub .lock-note{
  --b:color-mix(in srgb, var(--tf-accent) 85%, transparent);
  background:
    linear-gradient(var(--b),var(--b)) top left/16px 2px,
    linear-gradient(var(--b),var(--b)) top left/2px 16px,
    linear-gradient(var(--b),var(--b)) top right/16px 2px,
    linear-gradient(var(--b),var(--b)) top right/2px 16px,
    linear-gradient(var(--b),var(--b)) bottom left/16px 2px,
    linear-gradient(var(--b),var(--b)) bottom left/2px 16px,
    linear-gradient(var(--b),var(--b)) bottom right/16px 2px,
    linear-gradient(var(--b),var(--b)) bottom right/2px 16px,
    linear-gradient(160deg, var(--tf-glass-hi), var(--tf-glass) 60%) !important;
  background-repeat:no-repeat !important;
  border:1px solid var(--tf-line) !important;
  border-radius:6px !important;
  box-shadow:var(--tf-glow), inset 0 1px 0 rgba(255,255,255,.06), 0 18px 40px -20px rgba(0,0,0,.8) !important;
  backdrop-filter:blur(10px) saturate(1.2); -webkit-backdrop-filter:blur(10px) saturate(1.2);
}
body.te-game .card-title,
body.te-game .start-title,
body.te-game .gate-title,
body.te-game .result-grade,
body.te-game .lb-title,
body.te-hub .page-title,
body.te-hub .hol-games-title{
  font-family:var(--tf-head) !important; letter-spacing:.05em;
  color:var(--tf-accent2) !important;
  text-shadow:0 0 14px color-mix(in srgb, var(--tf-accent2) 45%, transparent);
}
body.te-game .card-icon,
body.te-game .start-icon,
body.te-game .gate-icon{ filter:drop-shadow(0 0 10px color-mix(in srgb, var(--tf-accent) 70%, transparent)); }
body.te-game .card-sub, body.te-game .q-meta, body.te-game .result-sub{ color:var(--muted) !important; }
body.te-game .badge-daily, body.te-game .badge{
  font-family:var(--tf-head); font-size:.66rem !important; letter-spacing:.14em; text-transform:uppercase;
  background:color-mix(in srgb, var(--tf-accent) 12%, transparent) !important;
  color:var(--tf-accent) !important; border:1px solid var(--tf-line-hi) !important; border-radius:3px !important;
}
/* scores, counts, timers read like a HUD */
body.te-game .q-count, body.te-game .q-score, body.te-game .result-score, body.te-game .result-big,
body.te-game .moves, body.te-game .seat-chips, body.te-game .pot,
body.te-game .lb-pts, body.te-game .lb-rank, body.te-game .status b{
  font-family:var(--tf-head); font-variant-numeric:tabular-nums; letter-spacing:.04em;
}
body.te-game .result-score, body.te-game .result-big{
  color:var(--tf-accent) !important;
  text-shadow:0 0 10px color-mix(in srgb, var(--tf-accent) 60%, transparent), 0 0 30px color-mix(in srgb, var(--tf-accent) 30%, transparent);
}

/* ---- Buttons: angled energy cells -------------------------------------- */
body.te-game :is(main,.main,.wrap) .btn, body.te-hub :is(main,.main,.wrap) .btn{
  font-family:var(--tf-head); font-weight:700; letter-spacing:.08em; text-transform:uppercase; font-size:.78rem !important;
  border-radius:3px !important;
  clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);
}
body.te-game :is(main,.main,.wrap) .btn-gold, body.te-game :is(main,.main,.wrap) .btn:not(.secondary):not(.btn-outline):not(.btn-red):not(.btn-gold){
  background:linear-gradient(180deg, color-mix(in srgb, var(--tf-accent2) 70%, #fff), var(--tf-accent2) 50%, color-mix(in srgb, var(--tf-accent2) 70%, #000)) !important;
  color:#120c02 !important; border:none !important; text-shadow:none;
  box-shadow:0 0 18px -2px color-mix(in srgb, var(--tf-accent2) 70%, transparent) !important;
}
body.te-game :is(main,.main,.wrap) .btn-gold:hover, body.te-game :is(main,.main,.wrap) .btn:not(.secondary):not(.btn-outline):not(.btn-red):hover{ filter:brightness(1.12) saturate(1.1); }
body.te-game :is(main,.main,.wrap) .btn-outline, body.te-game :is(main,.main,.wrap) .btn.secondary{
  background:color-mix(in srgb, var(--tf-accent) 8%, transparent) !important;
  color:var(--tf-accent) !important;
  border:1px solid var(--tf-line-hi) !important;
  box-shadow:inset 0 0 14px -6px var(--tf-accent) !important;
}
body.te-game :is(main,.main,.wrap) .btn-outline:hover, body.te-game :is(main,.main,.wrap) .btn.secondary:hover{
  background:color-mix(in srgb, var(--tf-accent) 20%, transparent) !important; color:#fff !important;
}
body.te-game :is(main,.main,.wrap) .btn-red{ font-family:var(--tf-head); box-shadow:0 0 16px -4px #ef4444 !important; }
body.te-game :is(main,.main,.wrap) .btn:focus-visible, body.te-game .opt:focus-visible, body.te-game .theme-btn:focus-visible,
body.te-game .cell:focus-visible, body.te-game .tile:focus-visible, body.te-game .key:focus-visible{
  outline:2px solid var(--tf-accent) !important; outline-offset:3px;
}

/* ---- Theme chips / picker buttons / tabs ------------------------------- */
body.te-game .theme-btn{
  font-family:var(--tf-head); font-size:.68rem !important; letter-spacing:.1em; text-transform:uppercase;
  border-radius:3px !important; border:1px solid var(--tf-line) !important;
  color:var(--muted) !important; background:rgba(6,14,30,.55) !important;
}
body.te-game .theme-btn:hover{ color:var(--text) !important; border-color:var(--tf-line-hi) !important; }
body.te-game .theme-btn[aria-pressed="true"]{
  color:#04101c !important; background:var(--tf-accent) !important; border-color:var(--tf-accent) !important;
  box-shadow:0 0 16px -2px var(--tf-accent) !important;
}
body.te-game .pick-btn{
  border-radius:3px !important; border:1px solid var(--tf-line-hi) !important; color:var(--tf-accent) !important;
  background:rgba(6,14,30,.7) !important; font-family:var(--tf-head);
}
body.te-game .pick-btn:hover:not(:disabled){ background:var(--tf-accent) !important; color:#04101c !important; }
body.te-game .picker select, body.te-game select{
  background:rgba(6,14,30,.85); color:var(--text); border:1px solid var(--tf-line-hi) !important; border-radius:4px;
}
body.te-game .tabbtn{ font-family:var(--tf-head); font-size:.7rem !important; letter-spacing:.1em; text-transform:uppercase; }
body.te-game .tabbtn.active{ color:var(--tf-accent) !important; border-bottom-color:var(--tf-accent) !important;
  text-shadow:0 0 10px color-mix(in srgb, var(--tf-accent) 60%, transparent); }

/* ---- Trivia ------------------------------------------------------------- */
body.te-game .opt{
  border-radius:4px; border-color:var(--tf-line) ; background:rgba(8,18,38,.7);
  font-family:var(--tf-body); font-weight:600; position:relative; color:var(--text);
}
body.te-game .opt:hover:not(:disabled){
  border-color:var(--tf-accent); background:color-mix(in srgb, var(--tf-accent) 12%, rgba(8,18,38,.7));
  box-shadow:0 0 16px -6px var(--tf-accent);
}
body.te-game .opt.correct{ box-shadow:0 0 18px -4px #22c55e; }
body.te-game .opt.wrong{ box-shadow:0 0 18px -4px #ef4444; }
body.te-game .q-text{ font-family:var(--tf-body); font-weight:700; }
body.te-game .timer-bar{ background:rgba(255,255,255,.08); height:6px; border-radius:0; }
body.te-game .timer-fill{
  background:linear-gradient(90deg, var(--tf-accent), var(--tf-accent2)) ;
  box-shadow:0 0 12px var(--tf-accent); border-radius:0;
}
body.te-game .timer-fill.urgent{ background:linear-gradient(90deg,#ff3b4e,#ff8a3d); box-shadow:0 0 12px #ff3b4e; }
body.te-game .start-rules{ background:rgba(3,8,20,.55) !important; border:1px solid var(--tf-line); border-radius:4px; }

/* ---- Crossword / word find grids, scramble tiles, keyboard -------------- */
body.te-game .cell{
  border-radius:3px; border-color:var(--tf-line);
  background:rgba(8,18,38,.72);
  box-shadow:inset 0 0 10px -4px color-mix(in srgb, var(--tf-accent) 60%, transparent);
}
body.te-game .cell.black{ background:#01040b; border-color:#01040b; box-shadow:none; }
body.te-game .cell.active{ background:color-mix(in srgb, var(--tf-accent) 26%, transparent); border-color:var(--tf-accent);
  box-shadow:0 0 14px -2px var(--tf-accent), inset 0 0 8px color-mix(in srgb, var(--tf-accent) 40%, transparent); }
body.te-game .cell.highlighted{ background:color-mix(in srgb, var(--tf-accent) 12%, rgba(8,18,38,.72)); }
body.te-game .cell.sel{ background:color-mix(in srgb, var(--tf-accent) 35%, transparent); border-color:var(--tf-accent); }
body.te-game .cell.start{ outline-color:var(--tf-accent); }
body.te-game .cell-letter, body.te-game .tile, body.te-game .blank-cell, body.te-game .key{ font-family:var(--tf-head); }
body.te-game .cell-letter{ font-weight:700; }
body.te-game .cell.found{ box-shadow:0 0 10px -3px currentColor; }
body.te-game .clue-item:hover, body.te-game .clue-item.active{ background:color-mix(in srgb, var(--tf-accent) 12%, transparent); }
body.te-game .clue-num{ color:var(--tf-accent) !important; font-family:var(--tf-head); }
body.te-game .clue-section, body.te-game .word-list h3, body.te-game .tiles-label{
  font-family:var(--tf-head); letter-spacing:.14em; color:var(--tf-accent) !important;
}
body.te-game .tile, body.te-game .key{
  border-radius:3px; border-color:var(--tf-line); background:rgba(8,18,38,.78);
  box-shadow:inset 0 -2px 0 color-mix(in srgb, var(--tf-accent) 35%, transparent);
}
body.te-game .tile:hover, body.te-game .key:hover{
  border-color:var(--tf-accent); background:color-mix(in srgb, var(--tf-accent) 16%, rgba(8,18,38,.78));
  box-shadow:0 0 14px -4px var(--tf-accent), inset 0 -2px 0 var(--tf-accent);
}
body.te-game .blank-cell{ border-bottom-color:var(--tf-accent); }
body.te-game .blank-cell.filled{ border-bottom-color:var(--tf-accent2); color:#fff;
  text-shadow:0 0 10px color-mix(in srgb, var(--tf-accent) 70%, transparent); }

/* ---- Hear the Clip ------------------------------------------------------ */
body.te-game .play-btn{
  background:radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tf-accent) 60%, #fff), var(--tf-accent) 55%, color-mix(in srgb, var(--tf-accent) 50%, #000)) !important;
  color:#03101c !important;
  box-shadow:0 0 0 6px color-mix(in srgb, var(--tf-accent) 14%, transparent), 0 0 36px -2px var(--tf-accent) !important;
}
body.te-game .guess-input{ border-radius:4px; border-color:var(--tf-line); background:rgba(6,14,30,.8); font-family:var(--tf-body); }
body.te-game .guess-input:focus{ border-color:var(--tf-accent); box-shadow:0 0 14px -4px var(--tf-accent); }
body.te-game .pip{ border-color:var(--tf-line-hi); }

/* ---- Card tables (poker, solitaire, UNO) -------------------------------- */
body.te-poker:not([data-te-theme]) .board,
body.te-poker:not([data-te-theme]) .seats,
body.te-solitaire:not([data-te-theme]) .panel{
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--tf-accent) 9%, transparent) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg,  color-mix(in srgb, var(--tf-accent) 9%, transparent) 0 1px, transparent 1px 32px),
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--tf-accent) 14%, transparent), transparent 60%),
    linear-gradient(160deg, var(--te-felt-a), var(--te-felt-b)) !important;
  border:1px solid var(--tf-line-hi) !important;
  box-shadow:var(--tf-glow), inset 0 0 40px rgba(0,0,0,.55) !important;
}
body.te-game .seat{ border-radius:4px; background:rgba(6,14,30,.75); border-color:var(--tf-line); }
body.te-game .seat.turn, body.te-game .opp.active{
  border-color:var(--tf-accent) !important; box-shadow:0 0 0 1px var(--tf-accent), 0 0 18px -2px var(--tf-accent) !important;
}
body.te-game .opp{ border-radius:4px; }
/* card faces get a faint holographic foil that catches the light on hover */
body.te-game .pcard[data-te]::after{
  content:""; position:absolute; inset:0; pointer-events:none; border-radius:inherit;
  background:linear-gradient(115deg, transparent 30%, rgba(59,232,255,.16) 45%, rgba(255,79,216,.12) 55%, transparent 70%);
  background-size:250% 100%; background-position:100% 0; mix-blend-mode:multiply; opacity:.9;
  transition:background-position .6s ease;
}
body.te-game .pcard[data-te]:hover::after{ background-position:0 0; }
body.te-game .pcard[data-te]::before{ border-color:color-mix(in srgb, var(--tf-accent) 30%, transparent) !important; }
/* the Station deck's back is the new circuit crest (a holiday skin swaps in its own via --tf-cardback) */
body.te-game:not([data-te-theme]) .pcard.back,
body.te-game:not([data-te-theme]) .pcard.facedown,
body.te-game:not([data-te-theme]) .pile.back:not(.empty),
body.te-game:not([data-te-theme]) .pile.deck{
  background:var(--tf-cardback, url(/game/te-cardback-future.svg)) center/cover no-repeat, #050b1a !important;
  border-color:color-mix(in srgb, var(--tf-accent) 60%, transparent) !important;
  box-shadow:0 3px 8px rgba(0,0,0,.5), 0 0 10px -3px var(--tf-accent) !important;
}
body.te-game .pile.empty, body.te-game .pile.found, body.te-game .pile.waste:not(.faceup){
  border-color:var(--tf-line) !important;
  box-shadow:inset 0 0 12px -4px var(--tf-accent);
}
body.te-game .pcard.selected, body.te-game .pile.selected{ box-shadow:0 0 0 2px var(--tf-accent), 0 0 18px var(--tf-accent) !important; }
/* UNO: cards glow in their own colour */
body.te-game .hcard{ border-radius:8px !important; }
body.te-game .hcard.c-red, body.te-game .pile.c-red{ box-shadow:0 0 16px -4px #ef4444, inset 0 0 14px rgba(255,255,255,.14) !important; }
body.te-game .hcard.c-blue, body.te-game .pile.c-blue{ box-shadow:0 0 16px -4px #3b82f6, inset 0 0 14px rgba(255,255,255,.14) !important; }
body.te-game .hcard.c-green, body.te-game .pile.c-green{ box-shadow:0 0 16px -4px #22c55e, inset 0 0 14px rgba(255,255,255,.14) !important; }
body.te-game .hcard.c-yellow, body.te-game .pile.c-yellow{ box-shadow:0 0 16px -4px #eab308, inset 0 0 14px rgba(255,255,255,.14) !important; }
body.te-game .hcard.c-wild, body.te-game .pile.c-wild{ box-shadow:0 0 18px -3px var(--tf-hot), inset 0 0 14px rgba(255,255,255,.18) !important; }
body.te-game .hcard.disabled{ box-shadow:none !important; }
body.te-game .status, body.te-game .status-line, body.te-game .phase-tag{ font-family:var(--tf-head); letter-spacing:.06em; }

/* ---- Guest / sign-in strip --------------------------------------------- */
body.te-game #terGuest{
  border-radius:4px !important;
  border-color:color-mix(in srgb, var(--tf-accent2) 45%, transparent) !important;
  background:rgba(6,14,30,.72) !important; color:var(--text) !important;
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
}

/* ---- Games hub (/games.php) -------------------------------------------- */
body.te-hub .page-title{ font-size:2rem; text-transform:uppercase; letter-spacing:.12em; }
body.te-hub .page-sub{ color:var(--muted); }
body.te-hub .game-card{ transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
body.te-hub .game-card:not(.game-soon):hover{
  transform:translateY(-4px); border-color:var(--tf-accent) !important;
  box-shadow:0 0 0 1px var(--tf-accent), 0 0 34px -6px var(--tf-accent), 0 20px 40px -20px #000 !important;
}
body.te-hub .game-icon{ filter:drop-shadow(0 0 12px color-mix(in srgb, var(--tf-accent) 70%, transparent)); }
body.te-hub .game-title{ font-family:var(--tf-head); font-size:.92rem; letter-spacing:.06em; text-transform:uppercase; color:#fff; }
body.te-hub .game-badge{ font-family:var(--tf-head); font-size:.6rem; letter-spacing:.08em; border-radius:3px; }
body.te-hub .badge-anytime{ background:color-mix(in srgb, var(--tf-accent) 12%, transparent); color:var(--tf-accent); border-color:var(--tf-line-hi); }
body.te-hub .badge-daily{ background:color-mix(in srgb, var(--tf-accent2) 14%, transparent); color:var(--tf-accent2); border-color:color-mix(in srgb, var(--tf-accent2) 55%, transparent); }

/* ---- Phones ------------------------------------------------------------- */
@media (max-width:560px){
  body.te-game::before{ height:34vh; opacity:.4; }
  body.te-game .header-title, body.te-game .game-crumb h1{ letter-spacing:.04em; font-size:.92rem !important; }
  body.te-game :is(main,.main,.wrap) .btn, body.te-hub :is(main,.main,.wrap) .btn{ letter-spacing:.05em; }
  body.te-game .card, body.te-game .card-shell, body.te-game .start-card, body.te-game .q-card,
  body.te-hub .game-card{ backdrop-filter:none; -webkit-backdrop-filter:none; }
}
@media (prefers-reduced-motion:reduce){
  body.te-game *, body.te-hub *{ transition-duration:.01ms !important; }
}
/* browsers without color-mix() (older iOS): keep a readable fallback */
@supports not (color:color-mix(in srgb, red 50%, blue)){
  body.te-game{ --tf-line:rgba(59,232,255,.3); --tf-line-hi:rgba(59,232,255,.7); --border:#24456a;
    --tf-glow:0 0 0 1px rgba(59,232,255,.22), 0 0 24px -6px rgba(59,232,255,.55); }
}

/* ---- 1.63.0: Sound switch in the crumb bar (game/te-sfx.js) ------------- */
body.te-game .te-sfx-btn{
  margin-left:auto; display:inline-flex; align-items:center; gap:6px; min-height:32px; padding:4px 10px;
  background:rgba(6,14,30,.85); color:var(--muted); border:1px solid var(--tf-line); border-radius:4px;
  font:600 .68rem/1 var(--tf-head); letter-spacing:.1em; text-transform:uppercase; cursor:pointer;
}
body.te-game .te-sfx-btn[aria-pressed="true"]{ color:var(--tf-accent); border-color:var(--tf-line-hi); box-shadow:var(--tf-glow); }
body.te-game .te-sfx-btn:focus-visible{ outline:2px solid var(--tf-accent); outline-offset:2px; }
body.te-game .te-sfx-btn + .te-theme-pick{ margin-left:8px; }
@media (max-width:560px){ body.te-game .te-sfx-btn{ padding:4px 8px; font-size:0; gap:0 } body.te-game .te-sfx-btn span{ font-size:1rem } }

/* 1.71.0: on narrow phones the crumb bar (sound, table theme, classic look) must not push the page sideways */
@media (max-width:480px){ body.te-game .game-crumb{ flex-wrap:wrap; height:auto; min-height:44px; row-gap:4px; padding-block:4px; } body.te-game .te-theme-pick select{ max-width:42vw; } }
