/* Wastedle - VI sunset palette x San Andreas menu typography */
:root {
  --ink: #0b0412;
  --night: #14081f;
  --panel: rgba(10, 5, 18, 0.82);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4ecff;
  --muted: #b9a9cf;
  --sa-blue: #9fb6d9;      /* San Andreas idle menu text */
  --sa-gold: #e8b23a;      /* "mission passed" gold */
  --pink: #ff4f9a;
  --orange: #ff8a3d;
  --yellow: #ffd23f;
  --teal: #22d3c5;
  --ok: #18b46b;
  --part: #e7a915;
  --no: #c8283f;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--night);
  color: var(--text);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 18px;
  line-height: 1.35;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Scene ---------- */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #14081f 0%, #2a0f45 28%, #6b1d6e 50%, #d8336f 66%, #ff7a45 76%, #ffb347 82%);
}
.sun {
  position: absolute; left: 68%; top: 52%;
  width: min(46vw, 420px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe066 0%, #ff9f43 45%, #ff4f9a 100%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px) bottom / 100% 45% no-repeat, linear-gradient(#000, #000) top / 100% 56% no-repeat;
          mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px) bottom / 100% 45% no-repeat, linear-gradient(#000, #000) top / 100% 56% no-repeat;
  filter: drop-shadow(0 0 60px rgba(255, 110, 120, 0.55));
}
.sea {
  position: absolute; left: 0; right: 0; bottom: 0; top: 82%;
  background: linear-gradient(180deg, #3b1450 0%, #120720 100%);
}
.sea::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 130, 160, 0.25) 0 2px, transparent 2px 14px);
  mask: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
}
.palms { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 60%; }
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: 0.16; mix-blend-mode: overlay;
}
.vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(0, 0, 0, 0.78) 100%),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
}

/* ---------- Top bar ---------- */
.topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
}
.brand-mini {
  background: none; border: 0; padding: 0;
  font-family: "Anton", Impact, sans-serif; font-size: 24px; letter-spacing: 1px;
  color: var(--pink); text-shadow: 2px 2px 0 #000;
}
.countdown {
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 15px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 79, 154, 0.5);
  text-align: center;
}
.countdown b { color: var(--yellow); }
.icon-btn { background: rgba(0, 0, 0, 0.5); border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 38px; }

/* ---------- Screens ---------- */
main { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 8px 16px 40px; }
.screen { display: none; animation: fadeIn .35s ease; }
.screen.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Menu (San Andreas style) ---------- */
#screen-menu { text-align: left; padding-top: 4vh; }
.logo {
  margin: 0; line-height: .9;
  font-family: "Anton", Impact, sans-serif; font-weight: 400;
  font-size: clamp(72px, 16vw, 168px); letter-spacing: 2px;
  background: linear-gradient(180deg, #fff6a8 0%, #ffd23f 30%, #ff8a3d 62%, #ff4f9a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 3px #000;
  filter: drop-shadow(6px 6px 0 #000) drop-shadow(0 0 30px rgba(255, 79, 154, 0.45));
}
.tagline {
  margin: 10px 0 34px; font-size: 20px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: #fff; text-shadow: 2px 2px 0 #000;
}
.menu { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.menu-item {
  position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px;
  background: none; border: 0; padding: 6px 10px 6px 34px; text-align: left;
  color: var(--sa-blue);
  text-shadow: 3px 3px 0 #000;
  transition: color .12s, transform .12s;
}
.menu-item .mi-title {
  font-family: "Anton", Impact, sans-serif; font-size: clamp(34px, 6vw, 52px); text-transform: uppercase; letter-spacing: 1px;
}
.menu-item .mi-sub { font-size: 18px; font-weight: 600; color: #ffd6e8; opacity: 0; transition: opacity .12s; letter-spacing: .5px; text-shadow: 2px 2px 0 #000; }
.menu-item .mi-done { font-size: 15px; font-weight: 700; color: var(--ok); letter-spacing: 1px; text-transform: uppercase; }
.menu-item::before {
  content: ""; position: absolute; left: 6px; top: 50%; width: 0; height: 0; transform: translateY(-50%);
  border-left: 16px solid var(--pink); border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  opacity: 0; transition: opacity .12s;
  filter: drop-shadow(2px 2px 0 #000);
}
.menu-item.sel, .menu-item:focus-visible { color: #fff; transform: translateX(6px); outline: none; }
.menu-item.sel .mi-title, .menu-item:focus-visible .mi-title { text-shadow: 3px 3px 0 #000, 0 0 18px rgba(255, 79, 154, 0.9); }
.menu-item.sel .mi-sub { opacity: 1; }
.menu-item.sel::before, .menu-item:focus-visible::before { opacity: 1; }
.menu-hint { margin-top: 26px; color: #fff; opacity: .7; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 14px; text-shadow: 1px 1px 0 #000; }

/* ---------- Panels ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; backdrop-filter: blur(6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.panel-head h2 {
  margin: 0; font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 40px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--yellow); text-shadow: 3px 3px 0 #000;
}
.panel-head h2 small { font-family: "Barlow Condensed", sans-serif; font-size: 18px; color: var(--muted); letter-spacing: 2px; margin-left: 8px; }
.panel-head p { margin: 4px 0 16px; color: var(--muted); }

/* ---------- Guess input ---------- */
.guess-box { position: relative; display: flex; gap: 8px; margin-bottom: 14px; }
.guess-box input {
  flex: 1; min-width: 0; font: inherit; font-size: 20px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.06); border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 8px;
  padding: 10px 14px; outline: none;
}
.guess-box input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 79, 154, 0.25); }
.btn {
  font-family: "Anton", Impact, sans-serif; letter-spacing: 1px; text-transform: uppercase; font-size: 18px;
  border: 0; border-radius: 8px; padding: 10px 18px;
  background: linear-gradient(180deg, var(--pink), #d12b77); color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,.5);
  box-shadow: 0 4px 0 #7c1146;
}
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #7c1146; }
.btn.ghost { background: rgba(255,255,255,.08); box-shadow: none; border: 1px solid var(--line); }
.btn.teal { background: linear-gradient(180deg, var(--teal), #139c92); box-shadow: 0 4px 0 #0b5d57; }
.suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin: 4px 0 0; padding: 4px; list-style: none;
  background: #1b0e28; border: 1px solid var(--line); border-radius: 8px; max-height: 280px; overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
}
.suggest li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 19px; }
.suggest li span { color: var(--muted); font-size: 15px; white-space: nowrap; }
.suggest li.on, .suggest li:hover { background: rgba(255, 79, 154, 0.2); }

.hint { margin: 0 0 14px; padding: 10px 14px; border-left: 4px solid var(--teal); background: rgba(34, 211, 197, 0.1); border-radius: 0 8px 8px 0; font-weight: 600; }

/* ---------- Classic grid ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.t-ok { background: var(--ok); } .t-part { background: var(--part); } .t-no { background: var(--no); }
.c-ok { color: #4be39a; } .c-part { color: var(--yellow); } .c-no { color: #ff6b81; }
.table-wrap { overflow-x: auto; padding-bottom: 6px; }
.grid { min-width: 720px; display: flex; flex-direction: column; gap: 6px; }
.grid-head, .grid-row { display: grid; grid-template-columns: 1.5fr .8fr 1fr .7fr 1.1fr 1fr 1.4fr; gap: 6px; }
.grid-head div { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: 2px; border-bottom: 2px solid var(--line); }
.tile {
  min-height: 64px; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 6px; border-radius: 8px; font-weight: 700; font-size: 16px; line-height: 1.1;
  border: 2px solid rgba(0,0,0,.35); text-shadow: 1px 1px 0 rgba(0,0,0,.45);
  animation: flip .5s ease both;
}
.tile.name { background: rgba(255,255,255,.08); font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 17px; letter-spacing: .5px; }
.tile.ok { background: var(--ok); } .tile.part { background: var(--part); } .tile.no { background: var(--no); }
.tile .arrow { display: block; font-size: 20px; }
@keyframes flip { from { transform: rotateX(90deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Emoji ---------- */
.emoji-stage { display: flex; justify-content: center; gap: 14px; margin: 6px 0 20px; }
.emoji-card {
  width: 96px; height: 96px; display: grid; place-items: center; font-size: 52px;
  border-radius: 14px; background: rgba(255,255,255,.06); border: 2px solid var(--line);
}
.emoji-card.hidden { font-family: "Anton", Impact, sans-serif; font-size: 40px; color: rgba(255,255,255,.25); }
.emoji-card.new { animation: pop .4s ease; border-color: var(--pink); }
@keyframes pop { 0% { transform: scale(.6); } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }
.wrong-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wrong-list li { padding: 6px 12px; border-radius: 999px; background: rgba(200, 40, 63, .25); border: 1px solid rgba(200, 40, 63, .6); font-weight: 600; text-decoration: line-through; text-decoration-color: rgba(255,255,255,.5); }

/* ---------- Trivia ---------- */
.tq-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-size: 15px; }
.tq-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; margin: 8px 0 18px; }
.tq-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal), var(--yellow), var(--pink)); transform-origin: left; }
.tq-q { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: clamp(24px, 4vw, 32px); line-height: 1.15; margin: 0 0 18px; text-shadow: 2px 2px 0 #000; }
.tq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tq-opt {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: 10px; font-size: 19px; font-weight: 700;
  background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.16);
}
.tq-opt b { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.12); font-family: "Anton", Impact, sans-serif; font-weight: 400; }
.tq-opt:hover:not(:disabled) { border-color: var(--pink); }
.tq-opt.ok { background: rgba(24,180,107,.35); border-color: var(--ok); }
.tq-opt.bad { background: rgba(200,40,63,.35); border-color: var(--no); }
.tq-opt:disabled { cursor: default; }
.tq-fact { margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: rgba(255, 210, 63, .1); border-left: 4px solid var(--yellow); font-weight: 600; }
.tq-next { margin-top: 16px; text-align: right; }

/* ---------- Result banner (mission passed homage) ---------- */
.result { margin-top: 20px; text-align: center; padding: 20px 10px; border-top: 1px solid var(--line); }
.passed {
  font-family: "Anton", Impact, sans-serif; font-size: clamp(40px, 8vw, 64px); line-height: 1; text-transform: uppercase;
  color: var(--sa-gold); -webkit-text-stroke: 2px #000; text-shadow: 4px 4px 0 #000;
  animation: slam .5s cubic-bezier(.2, 1.6, .4, 1) both;
}
.passed.fail { color: #ff4060; }
.respect { margin-top: 6px; font-family: "Anton", Impact, sans-serif; font-size: 26px; color: #fff; text-shadow: 3px 3px 0 #000; letter-spacing: 1px; }
.result p { color: var(--muted); }
.result .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
@keyframes slam { from { transform: scale(2.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.stat-card { padding: 16px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.stat-card h3 { margin: 0 0 10px; font-family: "Anton", Impact, sans-serif; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; color: var(--teal); }
.stat-card dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 0; }
.stat-card dt { color: var(--muted); } .stat-card dd { margin: 0; font-weight: 800; }

/* ---------- Prose ---------- */
.prose h3 { font-family: "Anton", Impact, sans-serif; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; color: var(--teal); margin: 18px 0 6px; }
.prose p, .prose li { color: #e6dcf5; }

/* ---------- Footer / toast ---------- */
.foot { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 0 16px 24px; font-size: 13px; color: rgba(255,255,255,.55); text-align: center; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; z-index: 10;
  background: #000; color: #fff; border: 1px solid var(--pink); padding: 10px 18px; border-radius: 8px; font-weight: 700;
  transition: .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .countdown { font-size: 13px; padding: 5px 10px; }
  .brand-mini { font-size: 20px; }
  .panel { padding: 16px 14px; }
  .tq-opts { grid-template-columns: 1fr; }
  .emoji-card { width: 80px; height: 80px; font-size: 42px; }
  .menu-item .mi-sub { display: none; }
  .menu-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }


html { -webkit-text-size-adjust: 100%; }
button, .chip, .tq-opt, .menu-item { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.muted { color: var(--muted); } .small { font-size: 15px; }

.panel-head { display: flex; align-items: center; gap: 12px; }
.panel-head h2 { flex: 1; min-width: 0; }
.panel-head .count { color: var(--muted); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 15px; white-space: nowrap; }
.back-btn {
  flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255,255,255,.06); font-size: 24px; line-height: 1; display: grid; place-items: center;
}
.back-btn:hover { border-color: var(--pink); }
.lead { margin: 6px 0 12px; color: var(--muted); }

/* game picker chips */
.picker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.picker-label { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.chip {
  min-width: 44px; height: 36px; padding: 0 12px; border-radius: 999px; font-weight: 800; font-size: 16px; letter-spacing: .5px;
  background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.18); color: var(--muted);
}
.chip.on { background: rgba(255, 79, 154, .22); border-color: var(--pink); color: #fff; }
.chip-all { margin-left: 4px; }
.menu-picker { margin: -14px 0 26px; }
.menu-picker .chip { background: rgba(0,0,0,.45); }

/* sticky guess input */
.sticky-guess { position: sticky; top: 0; z-index: 6; margin: 0 -20px 12px; padding: 10px 20px; background: linear-gradient(180deg, rgba(10,5,18,.96) 80%, rgba(10,5,18,0)); }
.sticky-guess .guess-box { margin: 0; }
.suggest li { min-height: 48px; align-items: center; }
.suggest .s-game { flex: none; font-size: 14px; font-weight: 800; color: var(--teal); border: 1px solid rgba(34,211,197,.5); border-radius: 6px; padding: 1px 7px; }

/* hints */
.hints { margin: 0 0 14px; }
.hints:empty { display: none; }
.hint-list { display: flex; flex-direction: column; gap: 8px; }
.hint-list:empty { display: none; }
.hint-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-left: 4px solid var(--teal); background: rgba(34, 211, 197, 0.1); border-radius: 0 8px 8px 0; font-weight: 600; }
.hint-n { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); }
.big-emoji { font-size: 26px; letter-spacing: 4px; }
.hint-pic img { display: block; width: 180px; max-width: 60vw; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); }
.hint-btn { margin-top: 10px; background: linear-gradient(180deg, var(--yellow), #d9a400); color: #1b0e28; text-shadow: none; box-shadow: 0 4px 0 #7a5c00; }
.hint-btn small { font-family: "Barlow Condensed", sans-serif; font-weight: 800; }
.hint-later { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* classic tiles: label only visible in card layout */
.tile { flex-direction: column; gap: 2px; }
.tile-k { display: none; }
.tile-v { display: block; }
.tile .arrow { display: inline; margin-right: 4px; }

/* trivia */
.tq-left.urgent { color: #ff6b81; }
.tq-next.start { text-align: left; }
.tq-opt { min-height: 56px; }
.squares { font-size: 28px; letter-spacing: 2px; }

/* ---------- phones ---------- */
@media (max-width: 700px) {
  main { padding: 4px 12px 32px; }
  .topbar { padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); }
  .panel { padding: 14px 14px 18px; border-radius: 12px; }
  .panel-head h2 { font-size: 30px; }
  .lead { font-size: 16px; margin-bottom: 10px; }
  .sticky-guess { margin: 0 -14px 10px; padding: 8px 14px; }
  .guess-box input { font-size: 18px; padding: 10px 12px; }
  .guess-box .btn { padding: 10px 14px; }
  .legend { font-size: 14px; gap: 4px 12px; }

  /* classic: one card per guess instead of a wide table */
  .table-wrap { overflow: visible; }
  .grid { min-width: 0; gap: 10px; }
  .grid-head { display: none; }
  .grid-row { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
  .tile { min-height: 62px; font-size: 15px; padding: 6px 4px; }
  .tile.name { grid-column: 1 / -1; min-height: 40px; font-size: 19px; background: transparent; border: 0; justify-content: flex-start; padding: 2px 4px; text-shadow: 2px 2px 0 #000; }
  .tile-k { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; opacity: .85; }
  .tile-v { font-size: 15px; }

  .emoji-stage { gap: 10px; }
  .emoji-card { width: 84px; height: 84px; font-size: 44px; }
  .tq-opts { grid-template-columns: 1fr; }
  .tq-q { font-size: 24px; }
  .result .row { flex-direction: column; align-items: stretch; }
  .result .row .btn { width: 100%; }
  .passed { font-size: 44px; }
  .stats { grid-template-columns: 1fr; }
  .menu-picker { margin: -18px 0 20px; }
  .chip { height: 34px; min-width: 42px; padding: 0 10px; font-size: 15px; }
  .foot { font-size: 12px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .grid-row { grid-template-columns: repeat(2, 1fr); }
  .emoji-card { width: 72px; height: 72px; font-size: 38px; }
}
@media (max-width: 700px) {
  .picker { gap: 5px; }
  .picker-label { width: 100%; margin: 0 0 2px; font-size: 11px; }
  .chip { height: 34px; min-width: 0; flex: 1 1 0; padding: 0 4px; font-size: 14px; }
  .chip-all { margin-left: 0; }
}
.hint-item:has(.hint-pic) { flex-direction: column; align-items: flex-start; }

.picker-label { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 2px; }
.select-all { background: none; border: 0; padding: 4px 0; color: var(--teal); font: inherit; font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.picker .chip { flex: 0 0 auto; min-width: 52px; }
@media (max-width: 700px) { .picker .chip { flex: 1 1 0; min-width: 0; } }
/* picture hint + credit */
.hint-pic { margin: 0; }
.hint-pic figcaption { margin-top: 4px; font-size: 12px; color: var(--muted); }
.hint-pic figcaption a { color: inherit; }
.result-pic { display: inline-block; margin: 14px auto 0; }
.result-pic img { width: 160px; margin: 0 auto; }
/* full game names on chips */
.picker .chip { font-size: 15px; padding: 0 12px; }
@media (max-width: 700px) {
  .picker { display: grid; grid-template-columns: repeat(3, 1fr); }
  .picker-label { grid-column: 1 / -1; }
  .picker .chip { width: 100%; height: 38px; font-size: 13px; padding: 0 4px; white-space: nowrap; }
}
@media (max-width: 700px) {
  .picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .picker .chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; letter-spacing: 0; padding: 0 2px; }
  .panel, .screen, main { min-width: 0; max-width: 100%; }
}
.hint-pic img { height: auto; }
@media (max-width: 700px) { .passed { font-size: clamp(30px, 10vw, 44px); -webkit-text-stroke-width: 1.5px; } .respect { font-size: 22px; } }


:root { --ok: #0f8a50; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* contrast + non-colour signals on tiles */
.tile.part { color: #1b0e28; text-shadow: none; }
.tile-ic { display: inline-block; margin-right: 4px; font-weight: 900; }
.legend i { display: inline-grid; place-items: center; width: 18px; height: 18px; font-style: normal; font-size: 12px; font-weight: 900; color: #fff; vertical-align: -3px; }
.legend i.t-part { color: #1b0e28; }
.tq-opt.ok::after, .tq-opt.bad::after { margin-left: auto; font-size: 22px; font-weight: 900; }
.tq-opt.ok::after { content: "✓"; } .tq-opt.bad::after { content: "✗"; }

/* touch targets ≥ 44px */
.chip, .icon-btn, .back-btn { min-height: 44px; }
.icon-btn { width: 44px; height: 44px; }
.select-all { padding: 12px 6px; }

/* finished game: hide the dead input, result sits right under the header */
.is-done .sticky-guess { display: none; }
.is-done .hints { display: none; }
#screen-trivia.is-running .picker-host { display: none; }

/* compact game picker inside game screens */
.picker-details { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); }
.picker-details summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-weight: 700; color: var(--muted); }
.picker-details summary::-webkit-details-marker { display: none; }
.picker-details summary b { color: #fff; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-details .sum-edit { color: var(--teal); font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.picker-details[open] .sum-edit { visibility: hidden; }
.picker-details .picker { padding: 0 12px 12px; margin: 0; }

/* suggestions + toast never hidden by the on-screen keyboard */
.suggest { max-height: min(280px, 40dvh); }
.toast { bottom: max(24px, env(safe-area-inset-bottom)); }
@media (pointer: coarse) { .toast { top: calc(env(safe-area-inset-top) + 64px); bottom: auto; transform: translate(-50%, -20px); } .toast.show { transform: translate(-50%, 0); } }

/* menu readability over the sunset */
.menu { padding: 10px 14px 10px 0; border-radius: 0 14px 14px 0; background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.25) 70%, transparent); }

/* emoji rendering */
.emoji-card, .big-emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* landscape notches */
main, .topbar { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

@media (max-width: 700px) {
  .panel { backdrop-filter: none; background: rgba(10, 5, 18, .9); }
  .tile-k { font-size: 11px; opacity: 1; }
  .menu-item { flex-direction: column; gap: 0; padding-top: 4px; padding-bottom: 4px; }
  .menu-item .mi-sub { display: block; opacity: .9; font-size: 15px; color: #ffd6e8; }
  .menu-item.sel .mi-sub { opacity: 1; }
  .menu-item::before { top: 26px; }
  .menu-picker { margin: 18px 0 0; }
  main, .topbar { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .picker .chip { min-height: 44px; height: 44px; }
}
.menu-picker { margin: 22px 0 0; max-width: 640px; } @media (max-width: 700px) { .menu-picker { margin: 18px 0 0; } }
.menu { width: fit-content; max-width: 100%; padding-right: 48px; }

/* hard-edged pause-menu look */
:root { --radius: 3px; }
.screen { animation: none; }
.tagline { text-transform: none; letter-spacing: .5px; font-size: 21px; }
.sun { filter: none; }
.menu-item.sel .mi-title, .menu-item:focus-visible .mi-title { text-shadow: 3px 3px 0 #000; }
.menu-item.sel, .menu-item:focus-visible { color: #fff; }
.menu { border-radius: 0; }
.panel { border-radius: 3px; box-shadow: none; backdrop-filter: none; background: rgba(9, 8, 12, .9); border: 2px solid #000; outline: 1px solid rgba(255,255,255,.08); }
.btn, .btn.ghost, .back-btn, .icon-btn, .chip, .tq-opt, .tile, .emoji-card, .stat-card, .suggest, .suggest li, .toast, .countdown, .picker-details, .hint-item, .tq-fact, .wrong-list li, .grid-row, .guess-box input, .hint-pic img { border-radius: 3px; }
.guess-box input:focus { box-shadow: none; outline: 2px solid var(--yellow); outline-offset: 0; border-color: #000; }
.countdown { letter-spacing: .5px; border-color: rgba(255,255,255,.25); }
.chip.on { background: #ff4f9a; border-color: #000; color: #fff; }
.picker-label span { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--muted); }
.hint-item { border-left: 0; border: 1px solid rgba(34, 211, 197, .45); background: rgba(34, 211, 197, .08); border-radius: 3px; }
.hint-n { text-transform: none; letter-spacing: 0; font-size: 14px; }
.tq-fact { border-left: 0; border: 1px solid rgba(255, 210, 63, .5); background: rgba(255, 210, 63, .08); }
.tq-fact b { color: var(--yellow); }
.hint-later { font-style: italic; }
.icon-btn { color: #fff; display: grid; place-items: center; }
.menu-item .mi-done { text-transform: none; letter-spacing: 0; }

/* single logo, drawn as two crisp text layers (no stroke on clipped gradients, no filters) */
.topbar-spacer { width: 44px; height: 44px; flex: none; }
.logo { position: relative; display: inline-block; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; -webkit-text-stroke: 0; filter: none; }
.logo-back { display: block; color: #000; -webkit-text-stroke: 7px #000; text-shadow: 7px 7px 0 #000, 0 0 34px rgba(255, 79, 154, .5); }
.logo-front { position: absolute; inset: 0; -webkit-text-stroke: 0; }
.logo-front span { -webkit-text-stroke: 0; color: transparent; -webkit-background-clip: text; background-clip: text; }
.l-a { background-image: linear-gradient(180deg, #ffffff 0%, #c9f7ff 45%, #22d3c5 100%); }
.l-b { background-image: linear-gradient(180deg, #fff6a8 0%, #ffd23f 30%, #ff8a3d 62%, #ff4f9a 100%); }
.logo .logo-back, .logo .logo-front { background: none; }
.logo-front span { display: inline-block; line-height: .9; } .logo-back { line-height: .9; }

.topbar { justify-content: flex-end; }
.badge-new { display: inline-block; margin-left: 6px; padding: 1px 5px 0; border-radius: 2px; background: var(--yellow); color: #1b0e28; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; line-height: 1.5; vertical-align: 2px; text-shadow: none; }
.chip.on .badge-new { background: #fff; }
@media (max-width: 700px) { .badge-new { margin-left: 4px; padding: 0 4px; font-size: 10px; } }
.picker-details .picker-label span { display: none; } .picker-details .picker-label:not(:has(button)) { display: none; }
/* mode title is the page's h1 on /classic/ etc. */
.panel-head h1 { margin: 0; flex: 1; min-width: 0; font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 40px; letter-spacing: 1px; text-transform: uppercase; color: var(--yellow); text-shadow: 3px 3px 0 #000; }
.panel-head h1 small { font-family: "Barlow Condensed", sans-serif; font-size: 18px; color: var(--muted); letter-spacing: 2px; margin-left: 8px; }
@media (max-width: 700px) { .panel-head h1 { font-size: 30px; } }
p.logo { margin: 0; }
/* short text about each page, under the game */
.seo-about { position: relative; z-index: 1; max-width: 980px; margin: 8px auto 24px; padding: 18px 20px; background: rgba(9, 8, 12, .86); border: 2px solid #000; border-radius: 3px; color: #e6dcf5; }
.seo-about h2 { margin: 0 0 8px; font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 26px; letter-spacing: .5px; color: var(--teal); }
.seo-about p { margin: 0 0 10px; }
.seo-about p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .seo-about { margin: 8px 12px 20px; padding: 14px; } }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.foot-nav a { color: #fff; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; padding: 8px 2px; }
.foot-nav a[aria-current="page"] { color: var(--yellow); }
.foot p { margin: 0; }
/* content pages (answers archive, later characters and quiz) */
.topbar-page { justify-content: flex-start; }
.home-link { color: #fff; font-weight: 800; font-size: 17px; text-decoration: none; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.2); border-radius: 3px; }
.page-main { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 8px 16px 32px; }
.page-article h1 { margin: 4px 0 4px; font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: clamp(30px, 6vw, 44px); line-height: 1.05; color: var(--yellow); text-shadow: 3px 3px 0 #000; text-transform: none; }
.page-article h2 { margin: 26px 0 10px; font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 28px; color: var(--teal); }
.page-article p { color: #e6dcf5; }
.page-article a { color: #fff; }
.crumbs { margin: 0; font-size: 15px; color: var(--muted) !important; }
.crumbs a { color: var(--muted) !important; }
.ans-date { margin: 0 0 14px; color: var(--muted) !important; font-weight: 700; }
.spoiler { margin: 8px 0; border: 1px solid rgba(255,255,255,.16); border-radius: 3px; background: rgba(255,255,255,.04); }
.spoiler summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 8px 14px; font-weight: 800; list-style: none; }
.spoiler summary::-webkit-details-marker { display: none; }
.spoiler summary::before { content: "+"; display: inline-block; width: 18px; color: var(--teal); font-weight: 900; }
.spoiler[open] summary::before { content: "\2212"; }
.spoiler > div { padding: 0 14px 12px 32px; }
.spoiler.answer { border-color: rgba(255, 210, 63, .45); }
.spoiler.answer summary { color: var(--yellow); }
.ans-name { font-family: "Anton", Impact, sans-serif; font-size: 28px; color: #fff !important; margin: 4px 0 10px; }
.ans-pic { margin: 0 0 10px; }
.ans-pic img { display: block; width: 160px; height: auto; border-radius: 3px; border: 2px solid #000; }
.ans-pic figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ans-pic figcaption a { color: inherit; }
.ans-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.ans-facts dt { color: var(--muted); } .ans-facts dd { margin: 0; font-weight: 700; }
.ans-emoji { font-size: 30px; letter-spacing: 6px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.ans-trivia { padding-left: 22px; }
.ans-trivia li { margin-bottom: 14px; }
.ans-trivia .q { margin: 0 0 4px; font-weight: 700; color: #fff !important; }
.ans-play { margin-top: 26px; }
.ans-play .btn { display: inline-block; text-decoration: none; }
.ans-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ans-nav a { font-weight: 800; padding: 10px 4px; }
.ans-list { list-style: none; padding: 0; margin: 14px 0 0; }
.ans-list li { border-bottom: 1px solid var(--line); }
.ans-list a { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; font-weight: 700; }
.ans-list .no { font-family: "Anton", Impact, sans-serif; font-weight: 400; color: var(--yellow); min-width: 46px; }
.tag-today { margin-left: auto; font-size: 12px; font-weight: 800; text-transform: uppercase; background: var(--pink); color: #fff; padding: 2px 6px; border-radius: 2px; }

a.menu-item { text-decoration: none; }
.hint-answers { display: inline-block; margin-top: 10px; color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.ans-warn { margin: 22px 0 4px; font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--yellow) !important; }
.ans-opts { margin: 4px 0 6px 18px; padding: 0; color: #e6dcf5; }
.ans-opts li { margin: 2px 0; }
.ans-more { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 10px 0 0; }
.ans-more a { font-weight: 700; padding: 6px 0; }
.ans-today { margin-top: 26px; }
.spoiler summary::before { content: "+" / ""; }
.spoiler[open] summary::before { content: "\2212" / ""; }
.yesterday-link { color: var(--teal); font-weight: 700; padding: 8px 0; display: inline-block; }
/* character pages */
.char-top { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; margin-top: 10px; }
.char-pic img { width: 200px; }
.char-bio { font-size: 19px; margin-top: 0; }
.char-links { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; }
.char-links a { display: inline-block; padding: 8px 0; font-weight: 700; }
.char-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.char-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 3px; background: rgba(255,255,255,.03); min-height: 44px; }
.char-grid img { width: 80px; height: 80px; border-radius: 3px; border: 2px solid #000; }
.page-article h2 small { font-family: "Barlow Condensed", sans-serif; font-size: 16px; color: var(--muted); }
.ans-name a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) { .char-top { grid-template-columns: 1fr; } .char-pic img { width: 160px; } }
/* the game (with its suggestion list) must stack above the "about" block and the footer that follow it */
main#app { z-index: 3; }
.suggest { z-index: 20; }

/* social profile links under the footer menu */
.foot-social { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; }
.foot-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid rgba(255,255,255,.35); border-radius: 3px; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.foot-social a:hover, .foot-social a:focus-visible { border-color: var(--yellow); color: var(--yellow); }
