/* Design note: an explorer's paper map on a desk. One memorable element: the compass,
   with each direction carrying its own ink (Sky blue, Abyss indigo, Past terracotta, Future teal). */
:root {
  --bg: #f7f1e8;
  --card: #fffaf2;
  --white: #fff;
  --ink: #2b2118;
  --muted: #6b5b4b;
  --accent: #c2562f;
  --accent-dark: #a2441f;
  --gold: #e0a03a;
  --gold-ink: #7a4d06;
  --line: #e6d9c6;
  --soft: #f1e6d6;
  --sky: #3a6a93;
  --abyss: #47427c;
  --past: var(--accent-dark);
  --future: #2b7363;
  --radius: 12px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .08);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --contours: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='rgba(107,91,75,.10)' stroke-width='1.2'%3E%3Cpath d='M-10 60c40-30 80 20 120-6s70-40 140-4'/%3E%3Cpath d='M-10 100c50-24 90 22 130-4s60-34 130 2'/%3E%3Cpath d='M-10 150c30-20 70 30 120 4s80-36 140 0'/%3E%3Cpath d='M-10 200c40-26 90 18 130-6s70-30 130 6'/%3E%3Ccircle cx='170' cy='120' r='18'/%3E%3Ccircle cx='170' cy='120' r='34'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section[id], article { scroll-margin-top: 16px; }

/* ---------- header ---------- */
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 700 18px/1.2 var(--serif); }
.brand:hover { color: var(--ink); }
.brand svg { width: 32px; height: 32px; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 16px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.top nav a:hover { color: var(--accent-dark); }
.top nav a.nav-play { color: var(--white); background: var(--accent); padding: 8px 16px; border-radius: 999px; }
.top nav a.nav-play:hover { background: var(--accent-dark); color: var(--white); }

/* ---------- hero + player ---------- */
.hero { padding: 24px 0 32px; }
.eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--gold-ink); letter-spacing: .02em; }
.hero h1 { font-size: 48px; margin-bottom: 8px; }
.hero .lede { color: var(--muted); margin: 0 0 24px; max-width: 70ch; font-size: 18px; }
.also-called { margin: 14px 0 0; max-width: 70ch; color: var(--muted); font-size: 15px; }
.part-of { margin: -4px 0 12px; color: var(--muted); font-size: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }

.stage {
  position: relative; width: 100%; height: 640px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.cover {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  background: radial-gradient(circle at 50% 45%, rgba(224, 160, 58, .20), transparent 55%), var(--contours), var(--card);
}
.cover-inner { display: grid; justify-items: center; gap: 24px; }
.cover-kicker { margin: 0; font: 700 22px/1.2 var(--serif); }
.cover-compass { display: grid; grid-template-columns: repeat(3, 116px); grid-template-rows: repeat(3, 92px); gap: 8px; }
.cover-compass .d {
  display: grid; place-items: center; align-content: center; gap: 2px; cursor: pointer;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-1);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cover-compass .d:hover { transform: translateY(-2px); border-color: currentColor; }
.cover-compass b { font-size: 26px; line-height: 1; }
.cover-compass span { font-weight: 600; font-size: 16px; color: var(--ink); }
.cover-compass small { font-size: 12px; color: var(--muted); }
.cover-compass .sky { grid-column: 2; grid-row: 1; color: var(--sky); background: var(--white); box-shadow: inset 0 -3px 0 var(--sky); }
.cover-compass .past { grid-column: 1; grid-row: 2; color: var(--past); background: var(--white); box-shadow: inset 0 -3px 0 var(--past); }
.cover-compass .mix { grid-column: 2; grid-row: 2; color: var(--gold-ink); background: var(--soft); border-style: dashed; }
.cover-compass .future { grid-column: 3; grid-row: 2; color: var(--future); background: var(--white); box-shadow: inset 0 -3px 0 var(--future); }
.cover-compass .abyss { grid-column: 2; grid-row: 3; color: var(--abyss); background: var(--white); box-shadow: inset 0 -3px 0 var(--abyss); }
.cover-note { color: var(--muted); font-size: 14px; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius); border: 2px solid var(--accent);
  background: var(--accent); color: var(--white); font-weight: 600; font-size: 17px; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn.big { min-height: 56px; padding: 0 32px; font-size: 18px; }
.btn.ghost { background: transparent; color: var(--accent-dark); }
.btn.ghost:hover { background: var(--soft); color: var(--accent-dark); }

.loader { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 16px; background: var(--card); text-align: center; color: var(--muted); }
[data-gf-state="loading"] .loader { display: grid; }
.loader-arrows { display: grid; grid-template-columns: repeat(3, 40px); grid-template-rows: repeat(3, 40px); }
.loader-arrows i { font-style: normal; font-size: 28px; display: grid; place-items: center; opacity: .2; animation: hop 1.2s infinite; }
.loader-arrows .n { grid-column: 2; grid-row: 1; color: var(--sky); animation-delay: 0s; }
.loader-arrows .e { grid-column: 3; grid-row: 2; color: var(--future); animation-delay: .3s; }
.loader-arrows .s { grid-column: 2; grid-row: 3; color: var(--abyss); animation-delay: .6s; }
.loader-arrows .w { grid-column: 1; grid-row: 2; color: var(--past); animation-delay: .9s; }
@keyframes hop { 0%, 60%, 100% { opacity: .2; transform: scale(1); } 20% { opacity: 1; transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .loader-arrows i { animation: none; opacity: .8; } html { scroll-behavior: auto; } }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.chip[aria-pressed="true"], .chip[data-gf-liked] { background: var(--accent); border-color: var(--accent); color: var(--white); }
.chip .count:empty { display: none; }
.share-msg { color: var(--muted); font-size: 14px; }

.topic-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.topic-label { font-size: 14px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.pill {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s;
}
.pill:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- numbers band ---------- */
.band { background: var(--ink); color: var(--card); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.stat { display: grid; gap: 4px; }
.stat b { font: 700 36px/1 var(--serif); color: var(--gold); }
.stat span { font-size: 14px; color: var(--line); }

/* ---------- sections ---------- */
.sec { padding-top: 64px; }
.sec > h2, .split-text h2 { font-size: 36px; margin-bottom: 16px; }
.intro { color: var(--muted); max-width: 70ch; margin: 0 0 24px; }
.note { color: var(--muted); font-size: 15px; margin: 16px 0 0; }

.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.split-text p { margin: 0 0 16px; max-width: 70ch; }
.sample { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 24px; display: grid; gap: 12px; }
.sample-tag { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sample-q { margin: 0; font: 700 28px/1.2 var(--serif); }
.sample-row { border-radius: 8px; padding: 12px 16px; }
.sample-row p { margin: 4px 0 0; font-size: 15px; }
.sample-row.sky { background: color-mix(in srgb, var(--sky) 8%, var(--white)); }
.sample-row.abyss { background: color-mix(in srgb, var(--abyss) 8%, var(--white)); }
.sample-dir { font-weight: 600; font-size: 14px; }
.sample-row.sky .sample-dir { color: var(--sky); }
.sample-row.abyss .sample-dir { color: var(--abyss); }
.sample-foot { margin: 0; font-size: 13px; color: var(--muted); }
.sample b, .sheet b, .dir-ex b { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--gold-ink); background: var(--soft); border-radius: 4px; padding: 0 4px; font-size: .9em; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 16px 16px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--white); font: 700 18px/1 var(--serif); margin-bottom: 12px; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 15px; color: var(--muted); }

.dir-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dir-card { --c: var(--accent); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
.dir-card.sky { --c: var(--sky); } .dir-card.abyss { --c: var(--abyss); } .dir-card.past { --c: var(--past); } .dir-card.future { --c: var(--future); }
.dir-card header { display: flex; align-items: center; gap: 12px; }
.dir-card header b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, var(--white)); color: var(--c); font-size: 22px; }
.dir-card h3 { font-size: 22px; flex: 1; }
.dir-time { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 4px 10px; }
.dir-wins { margin: 0; font-weight: 600; }
.dir-ex { margin: 0; font-size: 15px; color: var(--muted); }
.dir-play { justify-self: start; margin-top: 4px; background: none; border: 0; padding: 4px 0; font-weight: 600; color: var(--c); cursor: pointer; }
.dir-play:hover { text-decoration: underline; }

.guides { margin-top: 32px; }
.guides h3 { font-size: 22px; margin-bottom: 12px; }
.guides:not(:has(.guide-card)) { display: none; }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guide-card { --c: var(--accent); display: grid; gap: 4px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.guide-card:hover { border-color: var(--c); transform: translateY(-2px); color: var(--ink); }
.guide-card.sky { --c: var(--sky); } .guide-card.abyss { --c: var(--abyss); } .guide-card.past { --c: var(--past); } .guide-card.future { --c: var(--future); }
.guide-card b { color: var(--c); font-size: 22px; line-height: 1; }
.guide-card span { font-weight: 600; }
.more-sky .guide-card.sky, .more-abyss .guide-card.abyss, .more-past .guide-card.past, .more-future .guide-card.future { display: none; }
.guide-card small { font-size: 14px; color: var(--muted); }

.prose-cols { columns: 2 320px; column-gap: 48px; }
.prose-cols p { margin: 0 0 16px; break-inside: avoid; }

.table-wrap { overflow-x: auto; margin-bottom: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.sheet { border-collapse: collapse; width: 100%; font-size: 15px; }
.sheet th, .sheet td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet tbody tr:last-child > * { border-bottom: 0; }
.sheet thead th { background: var(--soft); font-size: 14px; }
.sheet thead .sky { color: var(--sky); } .sheet thead .abyss { color: var(--abyss); } .sheet thead .past { color: var(--past); } .sheet thead .future { color: var(--future); }
.sheet tbody th { font-weight: 600; width: 30%; }
.sheet small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

.tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tips li { display: grid; gap: 4px; padding: 16px 0 0; border-top: 2px solid var(--ink); }
.tips b { font: 700 18px/1.2 var(--serif); }
.tips span { color: var(--muted); font-size: 15px; }

.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.topic-card { display: grid; gap: 4px; text-align: left; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); cursor: pointer; transition: border-color .15s, transform .15s; }
.topic-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.topic-card b { font-size: 16px; }
.topic-card span { font-size: 13px; color: var(--muted); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; max-width: 900px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--future); font-weight: 600; }

.faq { display: grid; gap: 8px; max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 16px 48px 16px 16px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover h3 { color: var(--accent-dark); }
.faq h3 { font: 600 17px/1.4 var(--sans); }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--muted); }

/* ---------- article pages ---------- */
.prose > * { max-width: 70ch; }
.prose h2 { font-size: 28px; margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; margin: 32px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; width: fit-content; max-width: 100%; margin: 0 0 24px; font-size: 15px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--soft); font-weight: 600; }
.prose td b { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--gold-ink); }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid var(--gold); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- comments ---------- */
.talk { padding-top: 64px; padding-bottom: 64px; }
.talk h2 { font-size: 28px; margin-bottom: 8px; }
.talk .hint { color: var(--muted); margin: 0 0 24px; max-width: 70ch; }
.talk form { display: grid; gap: 12px; max-width: 70ch; background: var(--card); padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.field { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); font: 400 16px/1.5 var(--sans); color: var(--ink); }
.field textarea { min-height: 112px; resize: vertical; }
.form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.form-msg { color: var(--muted); font-size: 14px; }
.replying { font-size: 14px; color: var(--muted); }
.replying:empty { display: none; }
.comment-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; max-width: 70ch; }
.comment-list[data-gf-empty]::before { content: "No comments yet. What was your best Wonderhop Unlimited round, or your favourite rare answer?"; color: var(--muted); }
.comment-list[data-gf-off] { display: none; }
.comment { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.comment[data-gf-owner] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--white)); }
.comment header { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 14px; color: var(--muted); }
.comment header b { color: var(--ink); }
.owner-tag { font-size: 12px; font-weight: 600; color: var(--gold-ink); background: var(--soft); padding: 2px 8px; border-radius: 999px; }
.comment p { margin: 8px 0; white-space: pre-wrap; }
.comment .reply-btn { background: none; border: 0; padding: 0; color: var(--accent-dark); font-weight: 600; font-size: 14px; cursor: pointer; }
.replies { list-style: none; margin: 12px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); display: grid; gap: 8px; }
.replies:empty { display: none; }
[data-gf-reply-cancel] { display: none; }
[data-gf-replying] [data-gf-reply-cancel] { display: inline-flex; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--card); font-size: 14px; color: var(--muted); margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.foot-about { display: grid; gap: 12px; align-content: start; }
.foot-about p { margin: 0; max-width: 60ch; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col h2 { font: 600 14px/1.4 var(--sans); color: var(--ink); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.foot-col a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--accent-dark); }
.foot-base { border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 24px; }
.foot-base p { margin: 0; }

/* ---------- plain pages ---------- */
.page { padding-top: 48px; padding-bottom: 64px; }
.page h1 { font-size: 36px; margin-bottom: 16px; }
.page .prose { padding-top: 16px; }
.page .updated, .page .hint { color: var(--muted); font-size: 14px; margin: 0; }
.contact-box { max-width: 70ch; display: grid; gap: 12px; background: var(--card); padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); margin: 24px 0; }
.contact-box .g-select { width: 100%; }
.mail-card { max-width: 70ch; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); margin: 24px 0 0; }
.mail-card a { font-weight: 600; font-size: 18px; }
.mail-card span { color: var(--muted); font-size: 14px; }

/* ---------- tablets ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid, .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .sample { max-width: 560px; }
}
/* ========== the game (inside the iframe) ========== */
body.embed { background: var(--card); height: 100vh; overflow: hidden; }
.g { height: 100vh; display: flex; flex-direction: column; }
.g-screen { flex: 1; min-height: 0; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; }
.g-center { margin: auto; width: 100%; max-width: 560px; display: grid; gap: 16px; }
.g-title { font: 700 28px/1.2 var(--serif); text-align: center; margin: 0; }
.g-sub { text-align: center; color: var(--muted); margin: 0; font-size: 15px; }
.g-compass { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 420px; margin: 0 auto; width: 100%; }
.g-dir {
  display: grid; justify-items: center; gap: 2px;
  padding: 12px 8px; min-height: 84px;
  border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  cursor: pointer; box-shadow: var(--shadow-1); text-align: center;
  transition: border-color .15s, transform .15s;
}
.g-dir:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-2px); }
.g-dir:disabled { opacity: .45; cursor: not-allowed; }
.g-dir .ar { font-size: 24px; line-height: 1; color: var(--accent); }
.g-dir .nm { font-weight: 600; font-size: 16px; }
.g-dir .ds { font-size: 12px; color: var(--muted); line-height: 1.3; }
.g-dir.sky { grid-column: 2; }
.g-dir.past { grid-column: 1; grid-row: 2; }
.g-dir.mix { grid-column: 2; grid-row: 2; background: var(--soft); }
.g-dir.future { grid-column: 3; grid-row: 2; }
.g-dir.abyss { grid-column: 2; grid-row: 3; }
.g-daily {
  display: grid; justify-items: center; gap: 2px; width: 100%; max-width: 420px; margin: 0 auto;
  padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--gold); background: var(--soft);
  cursor: pointer; box-shadow: var(--shadow-1); text-align: center; font: inherit; color: var(--ink);
  transition: border-color .15s, transform .15s;
}
.g-daily:hover { border-color: var(--accent); transform: translateY(-2px); }
.g-daily-t { font-weight: 700; font-size: 16px; color: var(--gold-ink); }
.g-daily-s { font-size: 13px; color: var(--muted); line-height: 1.3; }
.cover-daily {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--gold); background: var(--soft);
  font: 600 15px/1 var(--sans); color: var(--gold-ink); cursor: pointer;
}
.cover-daily:hover { border-color: var(--accent); color: var(--accent-dark); }
.cover-daily-link {
  min-height: 44px; padding: 0 8px; border: 0; background: none; cursor: pointer;
  font: 500 14px/1.3 var(--sans); color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.cover-daily-link:hover { color: var(--accent-dark); }
.dir-guide { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; }
.g-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.g-select { min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 15px; }
.g-stats { text-align: center; color: var(--muted); font-size: 14px; margin: 0; }
.g-keys { text-align: center; color: var(--muted); font-size: 12px; margin: 0; }

.g-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.g-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; background: var(--soft); font-weight: 600; }
.g-badge b { color: var(--accent); }
.g-pts { font-weight: 600; }
.g-timer { height: 6px; background: var(--soft); }
.g-timer i { display: block; height: 100%; width: 100%; background: var(--gold); transition: width .1s linear; }
.g-timer.low i { background: var(--accent); }
.g-q { font: 700 28px/1.2 var(--serif); text-align: center; margin: 0; }
.g-goal { text-align: center; color: var(--muted); margin: 0; font-size: 15px; }
.g-goal small { display: block; font-size: 13px; }
.g-form { display: flex; gap: 8px; }
.g-input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px;
  border-radius: var(--radius); border: 2px solid var(--line); background: #fff; font-size: 18px;
}
.g-input:focus { border-color: var(--accent); outline: none; }
.g-msg { min-height: 24px; text-align: center; font-size: 15px; color: var(--accent-dark); margin: 0; }
.g-shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.g-secs { text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; margin: 0; }

.g-score { text-align: center; font: 700 48px/1 var(--serif); color: var(--accent); margin: 0; }
.g-you { text-align: center; margin: 0; font-size: 18px; }
.g-rank { text-align: center; margin: 0; color: var(--muted); font-size: 14px; }
.g-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.g-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 15px; }
.g-list li.me { border-color: var(--accent); background: #fdeee6; font-weight: 600; }
.g-list .meter { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--soft); overflow: hidden; }
.g-list .meter i { display: block; height: 100%; background: var(--gold); }
.g-list .v { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.g-h { font: 600 14px/1.4 var(--sans); color: var(--muted); margin: 8px 0 0; text-transform: none; }
.g-more { background: none; border: 0; color: var(--accent-dark); font-weight: 600; cursor: pointer; padding: 4px 0; font-size: 14px; justify-self: start; }

.g-total { text-align: center; font: 700 48px/1 var(--serif); margin: 0; }
.g-total small { font-size: 22px; color: var(--muted); }
.g-emoji { text-align: center; font-size: 28px; letter-spacing: 4px; margin: 0; }
.g-recap { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.g-recap li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.g-recap .ar { color: var(--accent); font-weight: 600; }
.g-recap .p { font-weight: 600; font-variant-numeric: tabular-nums; }
.g-recap .a { color: var(--muted); }
.g-copy { width: 100%; min-height: 96px; border-radius: 8px; border: 1px solid var(--line); padding: 8px; font: 14px/1.4 var(--sans); }
.g-note { text-align: center; color: var(--muted); font-size: 14px; margin: 0; }


/* ---------- phones ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top nav { gap: 12px; font-size: 14px; }
  .top nav a:not(.nav-play) { display: none; }
  .brand span { font-size: 16px; }
  .hero { padding: 16px 0 24px; }
  .hero h1 { font-size: 32px; }
  .hero .lede { font-size: 16px; margin-bottom: 16px; }
  .stage { height: 600px; border-radius: 8px; }
  .cover-compass { grid-template-columns: repeat(3, 92px); grid-template-rows: repeat(3, 80px); }
  .cover-kicker { font-size: 18px; }
  .btn { width: 100%; }
  .actions .chip { flex: 1 1 auto; justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat b { font-size: 28px; }
  .sec { padding-top: 48px; }
  .sec > h2, .split-text h2 { font-size: 28px; }
  .prose h2, .talk h2 { font-size: 22px; }
  .steps, .dir-grid, .guide-grid, .tips, .checks { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet { font-size: 14px; }
  .sheet thead { display: none; }
  .sheet tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .sheet tbody tr:last-child { border-bottom: 0; }
  .sheet tbody th { grid-column: 1 / -1; border-bottom: 0; padding-bottom: 0; }
  .sheet td { border-bottom: 0; }
  .sheet td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
  .sheet th, .sheet td, .prose th, .prose td { padding: 8px 12px; }
  .sheet tbody th { width: auto; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .page h1 { font-size: 28px; }
  .g-screen { padding: 16px; }
  .g-title, .g-q { font-size: 22px; }
  .g-dir { min-height: 76px; padding: 8px 4px; }
  .g-score, .g-total { font-size: 36px; }
  .g-form { flex-direction: column; }
  .g-form .btn { width: 100%; }
}
.g-dir.sky .ar { color: var(--sky); } .g-dir.abyss .ar { color: var(--abyss); } .g-dir.past .ar { color: var(--past); } .g-dir.future .ar { color: var(--future); }
.g-dir.mix .ar { color: var(--gold-ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
