/* GTA Mandy — one stylesheet, no framework. Dark sea-teal with a Keys-sunset accent. */
:root {
  --bg: #0e1c20;
  --bg-2: #122429;
  --card: #162b31;
  --card-2: #1c353c;
  --line: rgba(183, 214, 207, 0.16);
  --line-2: rgba(183, 214, 207, 0.28);
  --text: #edf4f1;
  --muted: #a3bab5;
  --sun: #ff7a59;
  --sun-2: #ffa37f;
  --sun-ink: #24110a;
  --mint: #74e0c5;
  --pink: #ff5c8a;
  --sand: #f5ead3;
  --sand-2: #e9d9b8;
  --ink: #2b2217;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 520px at 85% -120px, rgba(255, 122, 89, 0.16), transparent 60%),
    radial-gradient(900px 480px at -10% 0, rgba(116, 224, 197, 0.08), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 1.0625rem/1.68 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--sun-2); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: break-word; }
p, li, dd, dt { overflow-wrap: break-word; }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card-2); padding: 0.1em 0.35em; border-radius: 5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--sun); color: var(--sun-ink); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 10px; }

/* ── header */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 28, 32, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.15rem/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand b { color: var(--sun); font-weight: 800; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--card); }
.nav a[aria-current="page"] { color: var(--sun-ink); background: var(--sun); }

/* ── page + hero */
.page { padding: 28px 0 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.hero { display: grid; gap: 32px; align-items: center; padding: 18px 0 30px; }
.hero-ticket { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.kicker { margin: 0 0 10px; color: var(--sun-2); font: 700 0.8rem/1.3 var(--body); letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 { margin: 0 0 16px; font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 800; letter-spacing: -0.025em; }
.lede { margin: 0 0 14px; font-size: clamp(1.08rem, 2.1vw, 1.25rem); line-height: 1.6; max-width: 44rem; color: #f4f8f6; }
.updated { margin: 0 0 20px; color: var(--muted); font-size: 0.9rem; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  background: var(--sun); color: var(--sun-ink); font: 700 0.98rem/1 var(--body);
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--sun-2); color: var(--sun-ink); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-line:hover { background: var(--card); color: var(--text); border-color: var(--muted); }
.btn .count:empty { display: none; }
.btn .count { color: var(--muted); font-weight: 600; }
.heart { width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--heart) center / contain no-repeat; mask: var(--heart) center / contain no-repeat;
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-10-9.3C.4 8.4 2.3 4 6.4 4c2.2 0 3.7 1.2 4.6 2.6l1 1.5 1-1.5C13.9 5.2 15.4 4 17.6 4c4.1 0 6 4.4 4.4 7.7C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E"); }
[data-like][aria-pressed="true"] { border-color: var(--pink); color: var(--pink); }
[data-like][aria-pressed="true"] .count { color: var(--pink); }
.msg { min-height: 1.4em; margin: 10px 0 0; color: var(--mint); font-size: 0.92rem; }
.msg.err { color: var(--sun-2); }

/* ── work-order ticket */
.ticket {
  position: relative; color: var(--ink); background: var(--sand);
  border-radius: 6px; padding: 26px 24px 22px; box-shadow: var(--shadow);
  transform: rotate(1.4deg);
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(43, 34, 23, 0.07) 31px 32px);
}
.ticket::before {
  content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 14px;
  background: radial-gradient(circle at 7px 7px, var(--bg) 6px, transparent 6.5px) 0 0 / 20px 14px repeat-x;
}
.ticket-top { display: flex; justify-content: space-between; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px dashed rgba(43, 34, 23, 0.35); font: 800 0.95rem/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; }
.ticket dl { margin: 0; display: grid; gap: 6px; }
.ticket dl div { display: grid; grid-template-columns: 6.2rem 1fr; gap: 10px; }
.ticket dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7a6750; padding-top: 3px; }
.ticket dd { margin: 0; font-weight: 600; }
.stamp {
  display: inline-block; margin: 16px 0 0; padding: 6px 12px; transform: rotate(-5deg);
  border: 3px solid #d9472b; border-radius: 6px; color: #d9472b;
  font: 800 0.95rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9;
}

/* polaroid pinned above the ticket */
.ticket-wrap { position: relative; padding-top: 236px; }
.polaroid {
  position: absolute; top: 4px; right: 44px; z-index: 2; width: 172px; padding: 9px 9px 0;
  background: #fbf8f1; color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
  transform: rotate(5deg); transition: transform .15s ease;
}
.polaroid:hover { color: var(--ink); transform: rotate(3deg) scale(1.03); }
.polaroid::before { content: ""; position: absolute; top: -11px; left: 50%; width: 74px; height: 22px; transform: translateX(-50%) rotate(-5deg); background: rgba(245, 234, 211, 0.75); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
/* crop: x 630–910, y 225–575 of the 1280×720 still, so the subtitle and watermark stay out */
.polaroid-img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #1c2a2d; }
.polaroid-img img { position: absolute; width: 457.14%; max-width: none; height: auto; left: -225%; top: -64.29%; }
.polaroid-cap { display: block; padding: 8px 2px 10px; text-align: center; font: 700 0.85rem/1.1 var(--display); }
.photo-credit { margin: 14px 0 0; color: var(--muted); font-size: 0.78rem; }
.photo-credit a { color: var(--muted); }

/* a guide page's picture beside its headline */
.hero-art { margin: 0; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-art figcaption { margin-top: 8px; color: var(--muted); font-size: 0.82rem; }
.hero-video .yt img { aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
.hero-polaroid { display: grid; justify-items: center; }
.hero-polaroid .polaroid { position: relative; top: auto; right: auto; width: 230px; margin-top: 14px; }

/* quick-answer cards */
.answers { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 14px; }
.answers a { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); text-decoration: none; transition: transform .12s ease, border-color .12s ease; }
.answers a:hover { transform: translateY(-2px); border-color: var(--sun); color: var(--text); }
.ans-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #1c2a2d; }
.ans-img img { width: 100%; height: 100%; object-fit: cover; }
/* the Mandy still, cropped to x 560–1040, y 220–490 */
.ans-still img { position: absolute; width: 266.7%; max-width: none; height: auto; left: -116.7%; top: -81.5%; }
.ans-tt { display: grid; place-items: center; color: #fff; font: 800 1.2rem/1 var(--display);
  background: radial-gradient(120% 90% at 15% 0%, rgba(37, 244, 238, 0.35), transparent 60%), radial-gradient(120% 90% at 95% 100%, rgba(254, 44, 85, 0.4), transparent 60%), #101418; }
.ans-q { padding: 12px 14px 4px; font: 700 1.04rem/1.3 var(--display); }
.ans-a { padding: 0 14px 14px; color: var(--muted); font-size: 0.93rem; line-height: 1.45; }

/* player polls */
.poll { padding: 22px; border: 1px solid var(--line-2); border-radius: calc(var(--r) + 4px); background: linear-gradient(135deg, rgba(255, 122, 89, 0.12), rgba(116, 224, 197, 0.07)); }
.poll h2 { font-size: 1.5rem; }
.poll-kicker { margin: 0 0 6px !important; color: var(--sun-2); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.poll-options { display: grid; gap: 10px; margin: 14px 0 12px; }
.poll-opt { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); color: var(--text); font: 600 1rem/1.3 var(--body); text-align: left; cursor: pointer; }
.poll-opt:hover { border-color: var(--sun); }
.poll-opt:disabled { cursor: progress; }
.poll-bar { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(116, 224, 197, 0.16); transition: width .5s ease; }
.voted .poll-bar { width: var(--pct, 0%); }
.poll-opt.mine { border-color: var(--mint); }
.poll-opt.mine .poll-bar { background: rgba(116, 224, 197, 0.3); }
.poll-label, .poll-pct { position: relative; }
.poll-pct { color: var(--muted); font-variant-numeric: tabular-nums; }
.poll-meta { margin: 0 !important; color: var(--muted); font-size: 0.9rem; }

/* ── facts strip */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 10px; margin: 6px 0 36px; padding: 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.facts dt { color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; font: 700 1.05rem/1.3 var(--display); }

/* ── article layout */
.layout { display: grid; gap: 40px; }
.toc { display: none; }
.content { min-width: 0; max-width: 46rem; }
@media (min-width: 1080px) {
  .layout { grid-template-columns: 14.5rem minmax(0, 1fr); }
  .toc { display: block; position: sticky; top: 92px; align-self: start; font-size: 0.92rem; }
  .toc p { margin: 0 0 8px; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
  .toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
  .toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
  .toc a:hover { color: var(--text); }
  .toc a.on { color: var(--text); border-left-color: var(--sun); }
}

.block { margin: 0 0 44px; }
.block h2 { margin: 0 0 14px; font-size: clamp(1.55rem, 3.2vw, 2rem); font-weight: 800; }
.block h3 { margin: 0 0 6px; font-size: 1.12rem; font-weight: 700; }
.block p { margin: 0 0 14px; }
.more a { font-weight: 700; text-decoration: none; }
.note { color: var(--muted); font-size: 0.92rem; border-left: 3px solid var(--line-2); padding-left: 12px; }

/* steps */
.steps { list-style: none; margin: 18px 0 14px; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.steps li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.steps li p { margin: 0; color: #dfe9e5; }
.steps h3 a { color: var(--text); }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); font: 800 1rem/1 var(--display); }
[data-checklist] li { grid-template-columns: 40px minmax(0, 1fr) 32px; }
.tick { display: grid; place-items: center; align-self: start; cursor: pointer; }
.tick input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 4px 0 0; border: 2px solid var(--line-2); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.tick input:checked { background: var(--mint); border-color: var(--mint); }
.tick input:checked::after { content: ""; width: 12px; height: 7px; border: 3px solid var(--bg); border-top: 0; border-right: 0; transform: translateY(-2px) rotate(-45deg); }
[data-checklist] li.done { opacity: 0.62; }
[data-checklist] li.done .step-n { background: var(--mint); }
.checklist-bar { color: var(--muted); font-size: 0.92rem; }

/* pair */
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 12px; margin: 16px 0; }
.pair-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; border-top: 3px solid var(--mint); }
.pair-card:nth-child(2) { border-top-color: var(--sun); }
.pair-card p { margin: 0; }

/* reports */
.reports { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.report { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.report p:last-child { margin: 0; }
.tag { display: inline-block; margin: 0 0 8px !important; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.report-mission .tag { background: rgba(116, 224, 197, 0.14); color: var(--mint); }
.report-wide .tag { background: rgba(116, 224, 197, 0.1); color: #a8eedb; }
.report-players .tag { background: rgba(255, 122, 89, 0.14); color: var(--sun-2); }
.report-single .tag { background: rgba(255, 92, 138, 0.14); color: #ff8fb0; }
.report-rumour .tag { background: rgba(163, 186, 181, 0.14); color: var(--muted); }
.cast h3 { color: var(--text); }

/* cast */
.cast { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 12px; }
.cast li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.cast .role { margin: 0 0 4px; color: var(--sun-2); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.cast h3 a { color: var(--text); text-decoration: none; }
.cast h3 a:hover { color: var(--sun-2); }
.cast p:last-child { margin: 0; font-size: 0.97rem; color: #dfe9e5; }

/* figures */
.diagram { margin: 0 0 44px; }
.diagram .frame { border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.diagram img { width: 100%; }
.swipe { display: none; }
@media (max-width: 700px) {
  .diagram img { width: 680px; max-width: none; }
  .swipe { display: inline; }
}
.diagram figcaption { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }

/* illustrations */
.photo { margin: 0 0 40px; }
.photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); }
.photo figcaption { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }

/* video grid */
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 18px; margin-top: 16px; }
.vid h3 { margin: 12px 0 2px; font-size: 1.05rem; }
.vid p { margin: 0 0 6px; font-size: 0.95rem; color: #dfe9e5; }
.vid .vid-meta { color: var(--muted); font-size: 0.85rem; }

/* TikTok cards */
.tts { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 14px; margin: 16px 0 12px; }
.tt { margin: 0; }
.tt-play, .tt iframe { display: block; width: 100%; border-radius: var(--r); border: 1px solid var(--line); }
.tt-play, .tt iframe { aspect-ratio: 9 / 16; } /* same box, so nothing jumps when the player loads */
.tt iframe { border: 0; background: #000; }
.tt-play {
  position: relative; overflow: hidden; text-decoration: none; color: #fff;
  background: radial-gradient(120% 70% at 20% 0%, rgba(37, 244, 238, 0.28), transparent 60%),
              radial-gradient(120% 70% at 90% 100%, rgba(254, 44, 85, 0.32), transparent 60%), #101418;
}
.tt-play:hover { color: #fff; border-color: var(--sun); }
.tt-mark { position: absolute; top: 12px; left: 14px; font: 800 0.8rem/1 var(--display); letter-spacing: 0.04em; opacity: 0.85; }
.tt-caption { position: absolute; left: 14px; right: 14px; bottom: 44px; font: 600 0.95rem/1.35 var(--body); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.tt-handle { position: absolute; left: 14px; bottom: 16px; color: var(--muted); font-size: 0.85rem; }
.tt-button { position: absolute; left: 50%; top: 40%; width: 58px; height: 58px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255, 255, 255, 0.16); border: 2px solid rgba(255, 255, 255, 0.7); }
.tt-button::after { content: ""; position: absolute; left: 22px; top: 16px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.tt figcaption { margin-top: 8px; color: var(--muted); font-size: 0.88rem; }

/* video facade */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--line); }
.yt-play { position: absolute; inset: 0; display: block; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: opacity .15s; }
.yt-play:hover img { opacity: 1; }
.yt-button { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%); border-radius: 14px; background: var(--sun); box-shadow: var(--shadow); }
.yt-button::after { content: ""; position: absolute; left: 31px; top: 16px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--sun-ink); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-credit { color: var(--muted); font-size: 0.88rem; margin-top: 10px; }

/* related + faq */
.related ul, .related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 10px; }
.related a, .related-list a { display: block; height: 100%; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); font-weight: 600; text-decoration: none; }
.related a:hover, .related-list a:hover { border-color: var(--sun); color: var(--text); }
.related a::after, .related-list a::after { content: " →"; color: var(--sun); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 1.6rem/1 var(--display); color: var(--sun); }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { display: inline; margin: 0; font-size: 1.08rem; }
.faq details p { margin: 0 0 18px; color: #dfe9e5; }

/* legal / prose pages */
.page-legal .hero { padding-bottom: 10px; }
.prose { max-width: 46rem; }
.prose p { margin: 0 0 16px; }

/* ── comments */
.talk { margin-top: 16px; padding: 26px; background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); max-width: 46rem; }
.talk h2 { margin: 0 0 6px; font-size: 1.6rem; }
.talk-prompt { margin: 0 0 18px; color: var(--muted); }
.talk-form { display: grid; gap: 12px; margin-bottom: 26px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--card); color: var(--text); font: 400 1rem/1.5 var(--body);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hint { color: var(--muted); font-size: 0.88rem; }
.replying { margin: 0; padding: 8px 12px; background: var(--card); border-radius: var(--r-sm); font-size: 0.92rem; }
.text-btn { background: none; border: 0; padding: 0; color: var(--mint); font: 600 0.9rem/1.4 var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.text-btn:hover { color: var(--sun-2); }
.talk-list { display: grid; gap: 12px; }
.empty { color: var(--muted); margin: 0; }
.note-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.note-card header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 0.92rem; }
.note-card header strong { font-size: 1rem; }
.note-card time { color: var(--muted); }
.owner { background: var(--sun); color: var(--sun-ink); border-radius: 999px; padding: 1px 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.note-card p { margin: 0 0 8px; white-space: pre-wrap; }
.replies { display: grid; gap: 10px; margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--line-2); }
.replies .note-card { background: var(--card-2); }

/* ── footer */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 36px 0 28px; color: var(--muted); font-size: 0.93rem; }
.foot-top { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); margin-bottom: 18px; }
.foot-top p { max-width: 28rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: start; }
.site-foot nav a { color: var(--text); text-decoration: none; }
.site-foot nav a:hover { color: var(--sun-2); }
.fine { margin: 6px 0; font-size: 0.85rem; }
.fine a, .fine .text-btn { color: var(--muted); }
.fine .text-btn { font: inherit; }
@media (min-width: 860px) { .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }

/* ── the Mandy Loyalty Test (/test, /t/<id>; static/game.js) */
.game-hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.game-sample .invoice { margin: 0 auto; transform: rotate(1.6deg); }
.game-app { margin: 0 0 44px; max-width: 46rem; scroll-margin-top: 90px; }
.game-link .game-app { margin-top: 8px; }
.game-about { color: var(--muted); font-size: 0.92rem; max-width: 46rem; }
.g-card { background: var(--card); border: 1px solid var(--line-2); border-radius: calc(var(--r) + 4px); padding: 24px; box-shadow: var(--shadow); }
.g-card + .g-card { margin-top: 18px; }
.g-card h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; }
.g-card h2:focus { outline: none; }
.g-card h3 { margin: 28px 0 8px; font-size: 1.15rem; }
.g-card p { margin: 0 0 12px; }
.g-card .field { margin: 6px 0 4px; }
.g-card .field input { width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 400 1.05rem/1.4 var(--body); }
.g-card .field input:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.2); }
.g-kicker { margin: 0 0 8px !important; color: var(--sun-2); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.g-loading p { margin: 0; color: var(--muted); }
.g-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.g-back { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 1.1rem; cursor: pointer; }
.g-back:hover { border-color: var(--sun); }
.g-dots { flex: 1; display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.g-dots li { flex: 1; height: 6px; border-radius: 3px; background: var(--line-2); }
.g-dots li.done { background: var(--mint); }
.g-dots li.now { background: var(--sun); }
.g-count { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.g-qtext { font-size: clamp(1.45rem, 4.2vw, 1.95rem) !important; line-height: 1.25; }
.g-opts, .g-targets { display: grid; gap: 10px; margin: 18px 0 14px; }
.g-targets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-opt {
  min-height: 58px; padding: 14px 18px; text-align: left; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); color: var(--text);
  font: 600 1.06rem/1.35 var(--body); transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
@media (hover: hover) { .g-opt:hover { border-color: var(--sun); transform: translateY(-1px); } }
.g-opt:disabled { cursor: default; transform: none; }
.g-opt.was { border-color: var(--muted); }
.g-opt.on { border-color: var(--sun); background: rgba(255, 122, 89, 0.2); }
.g-targets .g-opt { text-align: center; font: 700 1.1rem/1.2 var(--display); }
.g-fifth, .g-skip { color: var(--muted); font-size: 0.88rem; }
.g-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 6px; }
.g-score { margin-bottom: 2px !important; color: var(--sun); font-size: clamp(2.6rem, 9vw, 4rem) !important; }
.g-band { margin-bottom: 4px !important; font: 800 1.35rem/1.2 var(--display); }
.g-roast { color: var(--muted); font-style: italic; }
.g-matched { color: var(--mint); font-weight: 700; }
.g-misses { margin: 0 0 12px; color: #dfe9e5; font-size: 0.95rem; }
.g-misses summary { cursor: pointer; color: var(--mint); font-weight: 600; }
.g-misses ul { margin: 8px 0 0; padding-left: 1.2em; }
.g-share { margin: 4px 0 0; }
.g-share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.g-share .btn { min-height: 42px; padding: 9px 15px; font-size: 0.93rem; }
.g-tip { color: var(--muted); font-size: 0.9rem; border-left: 3px solid var(--sun); padding-left: 12px; }
.g-link { padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); background: var(--bg-2); font: 600 1rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.g-private { margin-top: 24px; padding-top: 4px; border-top: 1px solid var(--line); }
.g-rows { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.g-row { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.g-row-main { display: flex; align-items: baseline; gap: 12px; }
.g-rank { color: var(--muted); font-variant-numeric: tabular-nums; }
.g-name { flex: 1; min-width: 0; font: 700 1.12rem/1.3 var(--display); overflow-wrap: anywhere; }
.g-pct { color: var(--sun); font: 800 1.45rem/1 var(--display); }
.g-row-meta { margin: 4px 0 0 !important; color: var(--muted); font-size: 0.92rem; }
.g-detail { margin-top: 10px; }
.g-mine ul { margin: 0; padding-left: 1.2em; }
/* the invoice: the result as a plumber's bill, on the work-order paper */
.invoice {
  position: relative; max-width: 30rem; margin: 20px 0 10px; padding: 26px 22px 20px;
  color: var(--ink); background: var(--sand); border-radius: 6px; box-shadow: var(--shadow); transform: rotate(-0.7deg);
}
.invoice::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 14px; background: radial-gradient(circle at 7px 7px, var(--card) 6px, transparent 6.5px) 0 0 / 20px 14px repeat-x; }
.game-sample .invoice::before { background-image: radial-gradient(circle at 7px 7px, var(--bg) 6px, transparent 6.5px); }
.inv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 6px !important; font: 800 1.35rem/1.1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.inv-unl { color: #7a6750; font: 700 0.78rem/1 var(--body); letter-spacing: 0.08em; }
.inv-meta { margin: 0 0 2px !important; color: #7a6750; font-size: 0.85rem; font-weight: 600; overflow-wrap: anywhere; }
.inv-lines { display: grid; gap: 6px; margin: 14px 0 0; padding: 12px 0 0; border-top: 2px dashed rgba(43, 34, 23, 0.35); }
.inv-lines div { display: flex; justify-content: space-between; gap: 14px; font-size: 0.92rem; line-height: 1.35; }
.inv-lines dt { color: #6b5a45; }
.inv-lines dd { margin: 0; font-weight: 700; text-align: right; }
.inv-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 0 0 !important; padding-top: 12px; border-top: 2px dashed rgba(43, 34, 23, 0.35); font: 800 1.05rem/1 var(--display); text-transform: uppercase; }
.inv-total strong { color: #d9472b; font-size: 2.5rem; }
.invoice .stamp { margin-top: 12px; }
.inv-foot { margin: 12px 0 0 !important; color: #7a6750; font-size: 0.78rem; }
/* "the game won't let you" */
.g-toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 40; width: min(30rem, calc(100% - 32px)); margin: 0; padding: 14px 18px;
  color: var(--ink); background: var(--sand); border-radius: var(--r); box-shadow: var(--shadow); font-weight: 700;
  transform: translate(-50%, 160%); transition: transform .25s ease;
}
.g-toast.on { transform: translate(-50%, 0); }
/* reveal mode: full screen, 9:16, tap to step, made to be screen-recorded */
.rv-open, .rv-open body { overflow: hidden; }
.reveal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: #071013; }
.rv-frame {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  width: min(100vw, calc(100dvh * 9 / 16)); height: 100dvh; padding: 70px 28px 104px; cursor: pointer; user-select: none; -webkit-user-select: none;
  background: radial-gradient(90% 50% at 90% 0%, rgba(255, 122, 89, 0.3), transparent 70%), radial-gradient(80% 40% at 0% 100%, rgba(116, 224, 197, 0.14), transparent 70%), var(--bg);
}
.rv-stage { display: grid; gap: 18px; }
.rv-stage p { margin: 0; }
.rv-kicker { color: var(--sun-2); font: 700 0.95rem/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; }
.rv-big { font: 800 clamp(2.3rem, 9vw, 3.3rem)/1.05 var(--display); overflow-wrap: anywhere; }
.rv-q { font: 800 clamp(1.6rem, 6.4vw, 2.3rem)/1.2 var(--display); }
.rv-guess, .rv-pick { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(255, 255, 255, 0.06); }
.rv-guess span, .rv-pick span { color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.rv-guess b, .rv-pick b { font: 800 1.55rem/1.2 var(--display); }
.rv-pick { animation: rv-in .35s ease both; }
.rv-pick.hit { border-color: var(--mint); background: rgba(116, 224, 197, 0.14); }
.rv-pick.miss { border-color: var(--pink); background: rgba(255, 92, 138, 0.14); }
.rv-note { color: var(--sun-2); font-size: 1.15rem; font-weight: 700; animation: rv-in .35s .15s ease both; }
.rv-score { color: var(--sun); font: 800 clamp(5rem, 26vw, 8rem)/1 var(--display); }
.rv-band { font: 800 2rem/1.15 var(--display); }
.rv-small { color: var(--muted); font-size: 1.1rem; }
.rv-mark { position: absolute; left: 0; right: 0; bottom: 36px; margin: 0; text-align: center; color: var(--sun); font: 800 1.3rem/1 var(--display); }
.rv-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.45); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; }
@keyframes rv-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
/* the test on guide pages: a promo card, a home card, and the line after the Provoke or Defuse vote */
.game-promo { padding: 22px; border: 1px solid rgba(255, 122, 89, 0.55); border-radius: calc(var(--r) + 4px); background: linear-gradient(135deg, rgba(255, 122, 89, 0.18), rgba(255, 92, 138, 0.08)); }
.game-promo h2 { font-size: 1.5rem; }
.game-promo .g-actions { margin-bottom: 0; }
.game-strip { display: flex; align-items: center; gap: 16px 20px; padding: 14px 18px; }
.game-strip p { flex: 1; margin: 0; }
.game-strip .poll-kicker { display: inline; margin: 0 8px 0 0 !important; }
.game-strip .btn { flex: none; }
@media (max-width: 560px) { .game-strip { flex-direction: column; align-items: stretch; } .game-strip .btn { justify-content: center; text-align: center; } }
.ans-game { display: grid; place-items: center; text-align: center; color: var(--ink); font: 800 1.45rem/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em;
  background: repeating-linear-gradient(180deg, transparent 0 23px, rgba(43, 34, 23, 0.08) 23px 24px), var(--sand); }
.ans-game span { padding: 6px 12px; border: 3px solid #d9472b; border-radius: 6px; color: #d9472b; transform: rotate(-5deg); }
.poll-next { margin: 12px 0 0 !important; font-weight: 600; }

/* ── small screens */
@media (max-width: 860px) {
  .hero-ticket, .game-hero { grid-template-columns: 1fr; }
  .ticket { transform: none; max-width: 30rem; }
}
@media (max-width: 640px) {
  .head-row { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 0; min-height: 0; }
  .nav { margin: 0 -4px; }
  .nav a { padding: 7px 10px; font-size: 0.9rem; }
  html { scroll-padding-top: 116px; }
  .page { padding-top: 18px; }
  .steps li { padding: 14px; gap: 12px; grid-template-columns: 34px minmax(0, 1fr); }
  [data-checklist] li { grid-template-columns: 34px minmax(0, 1fr) 30px; }
  .step-n { width: 32px; height: 32px; font-size: 0.92rem; }
  .talk { padding: 18px; }
  .ticket dl div { grid-template-columns: 5.4rem 1fr; }
  .g-card { padding: 18px; }
  .g-targets { grid-template-columns: 1fr; }
  .game-sample { display: none; }
  .invoice { padding: 22px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
