/* Coco Mangoes Guides
   Look: an 1899 field ledger and wanted poster. Lamp-black ink on bone paper, a slab typeface
   like old wood type, mango orange for the brand, sage for "done", brass for rewards.
   Play mode switches to a dark campfire look so it doesn't glare next to the TV. */

@font-face { font-family: "Rokkitt"; src: url("/fonts/rokkitt.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Anton"; src: url("/fonts/anton.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #eee6d5;
  --paper-2: #e4d8c1;
  --card: #f8f3e8;
  --ink: #1e1a15;
  --ink-2: #554a3f;
  --ink-3: #675a4c;
  --rule: #d2c3a9;
  --rule-2: #bfae91;
  --mango: #e3880f;
  --mango-soft: #f6dcb0;
  --brass: #7a5713;
  --sage: #3d6b54;
  --sage-soft: #d6e2d6;
  --red: #a3271c;
  --red-soft: #f1d6cf;
  --btn-hover: #3a3027;
  --mango-hover: #f09a24;
  --danger-hover: #8a1f16;
  --danger-bg: #a3271c;
  --extra-bg: #e2e6ef;
  --extra-ink: #34405a;
  --extra-line: #4a5a80;
  --reward-bg: #f0e3c2;
  --tip-bg: #f3e6c4;
  --medal-bg: #f6ecd2;
  --act-bg: #fffaf0;
  --opt-on: #fff8ea;
  --stripe: #ddd0b6;
  --mast-bg: rgba(238, 230, 213, .94);
  --feature-bg: #1e1a15;
  --on-accent: #1e1a15;
  --night: #15110d;
  --night-2: #221b15;
  --night-3: #2f261e;
  --ember: #f2a63b;
  --cream: #f3eadb;
  --display: "Rokkitt", Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --lift: 0 1px 0 rgba(30, 26, 21, .05), 0 10px 28px -16px rgba(30, 26, 21, .35);
  --mast-h: 60px;
  --tab-h: 62px;
}
/* Dark theme: the same ledger, read by lamplight. "Match my device" follows the phone or computer;
   the moon button in the header (or My runs > Your settings) picks one for good. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #16120e; --paper-2: #221b15; --card: #1e1813;
    --ink: #f1e8d9; --ink-2: #cbbca7; --ink-3: #9e8f7b;
    --rule: #392f26; --rule-2: #54473a;
    --mango: #f0a03a; --mango-soft: #4d3516; --brass: #e3b45c;
    --sage: #5fa37f; --sage-soft: #1d3127; --red: #e2675a; --red-soft: #3b1f1a;
    --btn-hover: #d9cdb9; --mango-hover: #f5b45c; --danger-hover: #9c3025; --danger-bg: #b53a2e;
    --extra-bg: #1f2533; --extra-ink: #c4cde3; --extra-line: #6f7fa8;
    --reward-bg: #3a2f17; --tip-bg: #33291a; --medal-bg: #2f2716; --act-bg: #1b1611; --opt-on: #2a2118;
    --stripe: #2b231b; --mast-bg: rgba(22, 18, 14, .92); --feature-bg: #241d17;
    --lift: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 28px -16px rgba(0, 0, 0, .75);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #16120e; --paper-2: #221b15; --card: #1e1813;
  --ink: #f1e8d9; --ink-2: #cbbca7; --ink-3: #9e8f7b;
  --rule: #392f26; --rule-2: #54473a;
  --mango: #f0a03a; --mango-soft: #4d3516; --brass: #e3b45c;
  --sage: #5fa37f; --sage-soft: #1d3127; --red: #e2675a; --red-soft: #3b1f1a;
  --btn-hover: #d9cdb9; --mango-hover: #f5b45c; --danger-hover: #9c3025; --danger-bg: #b53a2e;
  --extra-bg: #1f2533; --extra-ink: #c4cde3; --extra-line: #6f7fa8;
  --reward-bg: #3a2f17; --tip-bg: #33291a; --medal-bg: #2f2716; --act-bg: #1b1611; --opt-on: #2a2118;
  --stripe: #2b231b; --mast-bg: rgba(22, 18, 14, .92); --feature-bg: #241d17;
  --lift: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 28px -16px rgba(0, 0, 0, .75);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--mast-h) + 12px); scroll-padding-bottom: calc(var(--tab-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--mango); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.25rem, 1.6rem + 3.2vw, 3.75rem); font-weight: 850; }
h2 { font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem); font-weight: 800; }
h3 { font-size: 1.3125rem; font-weight: 750; }
p { margin: 0 0 .8em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--mango-soft); }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--card); padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 10px; }
.muted { color: var(--ink-3); }
.fine { font-size: .875rem; color: var(--ink-3); }
.error { color: var(--red); font-weight: 600; }
.empty { color: var(--ink-2); }
#main { outline: none; min-height: 60vh; }
.boot { padding-block: 80px; color: var(--ink-3); }
.view { padding-bottom: 40px; }

/* one column on phones; minmax(0, 1fr) stops a wide screenshot from pushing the page sideways */
.hero, .feature, .continue-card, .split, .gta-band-in, .signup-band, .guide-head, .guide-cols, .step-cols, .ledger-head,
.gta-body, .how-step, .foot-in, .run-row, .route-opts, .seo-steps > li { grid-template-columns: minmax(0, 1fr); }

/* ---------------------------------------------------------------- buttons, chips, bars */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .6em 1.15em; border-radius: var(--r-sm);
  background: var(--ink); color: var(--card); border: 2px solid var(--ink);
  font: 750 1.0625rem/1.1 var(--display); letter-spacing: .01em; text-decoration: none; text-align: center;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--card); border-color: var(--ink); }
.btn-mango { background: var(--mango); border-color: var(--mango); color: var(--on-accent); }
.btn-mango:hover { background: var(--mango-hover); border-color: var(--mango-hover); }
.btn-danger { background: var(--danger-bg); border-color: var(--danger-bg); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); border-color: var(--danger-hover); }
.btn-sm { min-height: 38px; padding: .4em .85em; font-size: .975rem; }
.btn-lg { min-height: 54px; font-size: 1.1875rem; padding-inline: 1.4em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-decoration-color: var(--mango); text-decoration-thickness: 2px; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: .35em; }
.linkish:hover { text-decoration-color: var(--ink); }

.chip { border: 1.5px solid var(--rule-2); background: var(--card); border-radius: 999px; padding: .38em .9em; font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--card); }
.chips, .filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-s { display: inline-flex; align-items: center; gap: .3em; font: 600 .8125rem/1 var(--body); padding: .35em .6em; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); vertical-align: middle; }
.chip-extra { background: var(--extra-bg); color: var(--extra-ink); }
.chip-reward { background: var(--reward-bg); color: var(--brass); }
.tag { font-weight: 700; }
.tag-glitch { color: var(--red); }
.tag-done { color: var(--sage); }

.bar { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--sage); border-radius: inherit; transition: width .3s ease; }
.bar-thick { height: 14px; }

/* ---------------------------------------------------------------- masthead, tab bar, footer */
.mast { position: sticky; top: 0; z-index: 30; background: var(--mast-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.mast-in { height: var(--mast-h); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font: 850 1.375rem/1 var(--display); letter-spacing: -.01em; }
.brand-sub { font: 600 .8125rem/1 var(--body); color: var(--ink-3); padding-top: 4px; }
.mast-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--rule-2); background: transparent; color: var(--ink); }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn .ico { width: 20px; height: 20px; }
.ico-sun { display: none; }
:root[data-theme="dark"] .ico-sun { display: block; }
:root[data-theme="dark"] .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .ico-sun { display: block; }
  :root:not([data-theme]) .ico-moon { display: none; }
}
.acct-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px 0 6px; border-radius: 999px; border: 1.5px solid var(--rule-2); background: transparent; color: var(--ink); font: 700 .9375rem/1 var(--display); }
.acct-btn:hover { border-color: var(--ink); }
.acct-btn[hidden] { display: none; }
.acct-initial { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font: 800 .875rem/1 var(--display); }
.acct-initial:empty::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-3); box-shadow: 0 9px 0 -2px var(--ink-3); transform: translateY(-3px); }
.mast-nav { display: none; gap: 4px; }
.mast-nav a { text-decoration: none; font: 700 1.0625rem/1 var(--display); padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink-2); }
.mast-nav a:hover { color: var(--ink); background: var(--paper-2); }
.mast-nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--mango); border-radius: 0; }
body.loading .mast::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 40%; background: var(--mango); animation: load 1s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

.tabbar { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--rule); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font: 700 .75rem/1 var(--body); color: var(--ink-3); }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current] { color: var(--ink); }
.tabbar a[aria-current] svg { stroke: var(--ink); color: var(--mango); filter: drop-shadow(0 2px 0 var(--mango-soft)); }

.foot { background: var(--paper-2); border-top: 1px solid var(--rule); margin-top: 32px; font-size: .9375rem; color: var(--ink-2); }
.foot-in { display: grid; gap: 24px; padding-block: 32px; }
.foot-name { font: 800 1.25rem/1 var(--display); color: var(--ink); }
.foot-links { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-notes p { margin-bottom: .6em; }
.foot-supporters { font-style: italic; }
.noscript { padding-block: 60px; }

/* ---------------------------------------------------------------- home */
.hero { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 12px; }
.hero h1 { max-width: 15ch; }
.lede { font-size: 1.125rem; color: var(--ink-2); max-width: 60ch; }
.search { display: flex; gap: 8px; margin: 18px 0 14px; }
.search input { flex: 1; min-width: 0; min-height: 54px; padding: 0 16px; font-size: 1.0625rem; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-sm); }
.search input::placeholder { color: var(--ink-3); }
.search .btn { min-height: 54px; }
.chapter-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; font-size: .9375rem; }
.chapter-pick label { font-weight: 700; }
.chapter-pick select, .set-grid select, .set-grid input:not([type="radio"]):not([type="checkbox"]), .gta-form select, .tip-form select, .report-form select { min-height: 40px; padding: 0 10px; border: 1.5px solid var(--rule-2); border-radius: var(--r-sm); background: var(--card); }
.chapter-hint { color: var(--ink-3); flex-basis: 100%; }

.feature { background: var(--feature-bg); color: var(--cream); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; display: grid; align-self: start; box-shadow: var(--lift); }
.feature-img { display: block; aspect-ratio: 16 / 9; background: var(--night-3); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 18px 20px 22px; }
.feature-label { font-size: .875rem; color: var(--ember); font-weight: 700; margin-bottom: .4em; }
.feature h2 { font-size: 1.75rem; color: #fff; }
.feature h2 a { text-decoration: none; }
.feature-reward { display: flex; gap: .4em; align-items: center; color: #f3d68f; font-weight: 700; }
.feature-meta { display: flex; gap: .4em; align-items: center; color: #cbbfae; font-size: .9375rem; }

.results { padding-block: 8px 12px; }
.results > h2 { margin-top: 12px; }
.note-card { background: var(--card); border: 1.5px dashed var(--rule-2); border-radius: var(--r); padding: 20px; margin: 12px 0; }
.note-card h2 { font-size: 1.5rem; }
.vhead { margin-top: 24px; }
.vresults { display: grid; gap: 12px; }
.vresult { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px; }
.vresult h3 { font-size: 1.1875rem; }
.vresult-meta { font-size: .8125rem; color: var(--ink-3); font-weight: 700; margin-bottom: .3em; }
.vmoments { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.vmoment { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; text-decoration: none; padding: 8px 10px; border-radius: var(--r-sm); background: var(--paper); }
.vmoment:hover { background: var(--paper-2); }
.vmoment b { font: 800 1rem/1.4 var(--display); color: var(--brass); }
.vmoment span { font-size: .9375rem; }
.vmoment em { grid-column: 2; font-style: normal; font-size: .8125rem; font-weight: 700; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--mango); }

.continue { padding-block: 16px; }
.continue-list { display: grid; gap: 12px; }
.continue-card { display: grid; gap: 12px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 16px; }
.continue-card h3 { margin-bottom: .2em; }
.continue-card h3 a { text-decoration: none; }
.continue-card p { color: var(--ink-2); margin-bottom: .5em; }

.shelf { padding-block: 24px 8px; }
.shelf-head { margin-bottom: 14px; }
.shelf-head p { color: var(--ink-2); margin: 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.filter-row { margin-bottom: 14px; }

.gcard { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; transition: border-color .15s ease, transform .15s ease; }
.gcard:hover { border-color: var(--ink); }
.gcard-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.gcard-img { position: relative; aspect-ratio: 16 / 9; background: var(--paper-2); }
.gcard-img img { width: 100%; height: 100%; object-fit: cover; }
.gcard-img.no-img, .feature-img.no-img, .guide-head-img.no-img, .how-img.no-img { background: repeating-linear-gradient(-45deg, var(--paper-2) 0 12px, var(--stripe) 12px 24px); }
.gcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gcard h3 { font-size: 1.1875rem; margin: 0; }
.gcard-reward { display: flex; gap: .35em; align-items: flex-start; color: var(--brass); font-weight: 650; font-size: .9375rem; margin: 0; }
.gcard-reward.muted { color: var(--ink-3); font-weight: 500; }
.gcard-meta { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8125rem; color: var(--ink-3); }
.gcard-meta li { display: inline-flex; align-items: center; gap: .3em; }
.gcard-prog { font-size: .8125rem; color: var(--sage); font-weight: 700; margin: 0; }
.gcard-compact .gcard-img { display: none; }
.gcard-compact { border-left: 4px solid var(--rule-2); }
.gcard-compact:hover { border-left-color: var(--mango); }
.gcard-compact h3 { font-size: 1.0625rem; }
.gcard-compact.is-locked { border-left-color: var(--ink-3); }
.gcard.is-locked .gcard-img img { filter: blur(14px) grayscale(.6); transform: scale(1.1); }
.gcard-lock { position: absolute; inset: auto 8px 8px 8px; display: inline-flex; align-items: center; gap: .35em; background: rgba(30, 26, 21, .82); color: var(--cream); font-size: .8125rem; font-weight: 700; padding: .35em .6em; border-radius: var(--r-sm); width: max-content; }

.planner { padding-block: 24px 8px; }
.planner .chips { margin-bottom: 14px; }
.plan-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.plan-item { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--rule); border-left: 6px solid var(--mango); background: var(--card); text-decoration: none; }
.plan-item:hover { border-color: var(--ink); border-left-color: var(--mango); }
.plan-time { font: 800 1.125rem/1 var(--display); color: var(--brass); }
.plan-title { font: 750 1.125rem/1.2 var(--display); }
.plan-what { font-size: .9375rem; color: var(--ink-2); }
.split { display: grid; gap: 18px; padding-block: 28px 8px; }
.daytip { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 20px 22px; position: relative; }
.daytip h2 { font-size: 1.375rem; }
.daytip blockquote { margin: 0 0 10px; padding-left: 14px; border-left: 4px solid var(--mango); font: 600 1.25rem/1.4 var(--display); }
.daytip blockquote p { margin: 0; }
.daytip-src { font-size: .875rem; color: var(--ink-3); margin: 0; }
.vote-box { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 20px 22px; }
.poll fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.poll legend, .poll h3 { font: 800 1.375rem/1.15 var(--display); margin-bottom: 10px; padding: 0; }
.poll-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); border: 1.5px solid var(--rule); margin-bottom: 6px; background: var(--paper); cursor: pointer; }
.poll-opt:hover { border-color: var(--ink-3); }
.poll-opt:has(input:checked) { border-color: var(--ink); background: var(--opt-on); }
.poll-opt input { accent-color: var(--ink); width: 18px; height: 18px; }
.poll-done { display: flex; gap: .5em; align-items: flex-start; color: var(--sage); }

.gta-band { margin-top: 32px; background: linear-gradient(115deg, #1a0b2e 0%, #4b1650 48%, #b23466 100%); color: #fff; }
.gta-band-in { display: grid; gap: 16px; padding-block: 28px; align-items: center; }
.gta-band h2 { font-family: "Anton", var(--display); font-weight: 400; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); letter-spacing: .01em; margin-bottom: .2em; }
.gta-band p { color: #f2d9ec; margin: 0; max-width: 56ch; }
.gta-band .gta-band-count { font: 400 1.125rem/1 "Anton", var(--display); color: #ffd37a; letter-spacing: .04em; margin-bottom: .5em; }
.btn-neon { background: #ff3d81; border-color: #ff3d81; color: #1a0b2e; }
.btn-neon:hover { background: #ff6a9e; border-color: #ff6a9e; }

.signup-band { display: grid; gap: 12px; margin-top: 32px; padding-block: 24px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.signup-band p { color: var(--ink-2); margin: 0; }
.signup, .inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.signup input, .inline-form input { flex: 1 1 220px; min-height: 46px; padding: 0 14px; border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--card); }
.signup-msg { flex-basis: 100%; margin: 0; font-size: .9375rem; color: var(--ink-2); min-height: 0; }
.signup-msg:empty { display: none; }
.form-thanks { color: var(--sage); font-weight: 700; margin: 0; }
.request { display: grid; gap: 8px; margin-top: 12px; }
.request label { font-weight: 700; }

/* ---------------------------------------------------------------- guide page */
.crumbs { display: flex; gap: 8px; font-size: .875rem; color: var(--ink-3); padding-top: 18px; }
.crumbs a { color: var(--ink-2); }
.guide-head { display: grid; gap: 18px; padding: 10px 0 18px; }
.guide-head-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); box-shadow: var(--lift); }
.guide-head-img img { width: 100%; height: 100%; object-fit: cover; }
.stamps { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.stamp-chip { display: inline-flex; align-items: center; gap: .3em; font: 750 .875rem/1 var(--display); letter-spacing: .02em; padding: .45em .7em; border: 2px solid var(--ink); border-radius: 4px; }
.stamp-red { border-color: var(--red); color: var(--red); }
.stamp-sage { border-color: var(--sage); color: var(--sage); }
.guide-reward { display: flex; gap: .45em; align-items: flex-start; font-size: 1.0625rem; color: var(--brass); }
.guide-reward strong { color: var(--ink); }
.facts { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .9375rem; color: var(--ink-2); }
.facts a { display: inline-flex; gap: .35em; align-items: center; }
.fact-btn { display: inline-flex; align-items: center; gap: .4em; padding: .45em .7em; border-radius: var(--r-sm); border: 1.5px solid var(--rule-2); background: var(--card); color: var(--ink); }
.fact-btn:hover { border-color: var(--ink); }
.fact-btn .ico:last-child { color: var(--ink-3); }

.notice { border-radius: var(--r); padding: 18px 20px; margin: 4px 0 20px; }
.notice h2 { font-size: 1.375rem; }
.notice p { max-width: 70ch; }
.notice-spoiler { background: var(--card); border: 2px dashed var(--ink-3); }
.notice-glitch { background: var(--red-soft); border-left: 6px solid var(--red); }
.report-q { font-weight: 700; margin-bottom: 8px; }
.report-done { display: flex; gap: .5em; align-items: flex-start; color: var(--sage); font-weight: 600; margin: 0; }
.report-form { display: grid; gap: 10px; margin-top: 12px; max-width: 520px; }
.report-form label, .tip-form label, .set-grid label, .save-load, .gta-form label:not(.poll-opt) { display: grid; gap: 4px; font-weight: 650; font-size: .9375rem; }
.report-form textarea, .tip-form textarea, .tip-form input, .save-load textarea, .gta-form input:not([type="radio"]) { width: 100%; padding: 10px 12px; border: 1.5px solid var(--rule-2); border-radius: var(--r-sm); background: var(--card); font-weight: 400; }
.report-form [aria-pressed="true"], [data-works][aria-pressed="true"] { outline: 3px solid var(--mango); }

.guide-cols { display: grid; gap: 22px; }
.guide-side { order: -1; }          /* on phones the Start button comes before the long list of steps */
.routes { margin-bottom: 26px; }
.route-opts { display: grid; gap: 10px; }
.route-opt { position: relative; display: grid; gap: 2px; padding: 14px 16px; border: 2px solid var(--rule); border-radius: var(--r); background: var(--card); cursor: pointer; }
.route-opt:hover { border-color: var(--ink-3); }
.route-opt.on, .route-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 6px 0 0 var(--mango); }
.route-opt input { position: absolute; opacity: 0; pointer-events: none; }
.route-opt:has(input:focus-visible) { outline: 3px solid var(--mango); outline-offset: 2px; }
.route-name { font: 800 1.25rem/1.1 var(--display); }
.route-time { font-size: .875rem; color: var(--brass); font-weight: 700; }
.route-desc { font-size: .9375rem; color: var(--ink-2); }
.route-why { font-size: .9375rem; color: var(--ink-2); margin-top: 10px; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; border-top: 1px solid var(--rule); }
.steps li { border-bottom: 1px solid var(--rule); }
.steps a { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; padding: 12px 4px; text-decoration: none; align-items: start; }
.steps a:hover { background: var(--card); }
.steps-n { grid-row: span 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 1rem/1 var(--display); border: 2px solid var(--ink); background: var(--card); }
.steps-t { font-weight: 650; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.steps-w { grid-column: 2; font-size: .875rem; color: var(--ink-3); }
.steps-r { grid-column: 2; font-size: .875rem; color: var(--brass); font-weight: 650; }
.steps li.done .steps-n { background: var(--sage); border-color: var(--sage); color: #fff; }
.steps li.done .steps-t { color: var(--ink-3); }
.steps li.current .steps-n { background: var(--mango); border-color: var(--mango); color: var(--on-accent); }

.start-card, .side-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; }
.start-card { border: 2px solid var(--ink); display: grid; gap: 10px; }
.start-card .fine { margin: 0; }
.start-prog { font-weight: 700; margin: 0; }
.start-best { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.start-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9375rem; }
.side-card { margin-top: 16px; }
.side-card h2 { font-size: 1.375rem; display: flex; align-items: center; gap: .35em; }
.when-can { font-size: .9375rem; }
.prereq { border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 12px; }
.prereq p { font-size: .9375rem; margin-bottom: 8px; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--r-sm); overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 12px; font-weight: 650; font-size: .875rem; }
.seg button + button { border-left: 1.5px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.prereq-a { margin: 8px 0 0; padding: 8px 10px; border-radius: var(--r-sm); font-size: .9375rem; }
.prereq-a.yes { background: var(--sage-soft); }
.prereq-a.no { background: var(--red-soft); }
.prereq-a.unknown { background: var(--mango-soft); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist label, .act, .li label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.checklist input, .act input, .li input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { flex: none; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 5px; display: grid; place-items: center; background: var(--card); color: transparent; margin-top: 1px; }
.box .ico { width: 16px; height: 16px; stroke-width: 3; }
input:checked + .box { background: var(--sage); border-color: var(--sage); color: #fff; }
input:focus-visible + .box { outline: 3px solid var(--mango); outline-offset: 2px; }
.cl-text { display: grid; }
.trophy-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; }
.trophy-list li { display: grid; gap: 2px; font-size: .9375rem; }
.trophy-list strong { font-family: var(--display); font-size: 1.0625rem; }
.trophy-list small { color: var(--ink-2); }
.cl-text small { color: var(--ink-3); font-size: .8125rem; }

/* ---------------------------------------------------------------- one step */
.step-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 16px; }
.back-link { display: inline-flex; align-items: center; gap: .3em; font-weight: 650; text-decoration: none; color: var(--ink-2); max-width: 100%; }
.back-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42ch; }
.step-progress { flex: 1 1 200px; display: grid; gap: 4px; font: 700 .875rem/1 var(--body); color: var(--ink-2); }
.dots { display: flex; gap: 6px; overflow-x: auto; padding: 14px 2px 10px; scrollbar-width: thin; }
.dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 750 .8125rem/1 var(--display); text-decoration: none; border: 1.5px solid var(--rule-2); background: var(--card); color: var(--ink-3); }
.dot.done { background: var(--sage); border-color: var(--sage); color: #fff; }
.dot.here { border: 2.5px solid var(--ink); color: var(--ink); background: var(--mango-soft); }
.step-cols { display: grid; gap: 20px; }
.step-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 20px 18px; box-shadow: var(--lift); }
.step-card.is-done { border-color: var(--sage); }
.step-kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.step-no { font: 800 1.0625rem/1 var(--display); color: var(--brass); margin-right: 4px; }
.step-title { font-size: clamp(1.875rem, 1.5rem + 1.8vw, 2.625rem); font-weight: 850; }
.step-facts { display: grid; gap: 8px; margin: 14px 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.step-facts div { background: var(--paper); border-radius: var(--r-sm); padding: 10px 12px; border-left: 4px solid var(--mango); }
.step-facts dt { display: flex; gap: .4em; align-items: center; font-size: .8125rem; font-weight: 700; color: var(--ink-3); margin-bottom: 2px; }
.step-facts dd { margin: 0; font-weight: 650; }
.step-text { font-size: 1.125rem; line-height: 1.6; max-width: 68ch; }
.acts { border: 0; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.acts legend { font: 800 1.25rem/1 var(--display); margin-bottom: 10px; padding: 0; }
.act { padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: var(--r-sm); background: var(--act-bg); font-size: 1.0625rem; }
.act:has(input:checked) { background: var(--sage-soft); border-color: var(--sage); }
.act:has(input:checked) > span:last-child { text-decoration: line-through; text-decoration-color: rgba(61, 107, 84, .6); }
.note { border-radius: var(--r-sm); padding: 12px 14px; margin: 12px 0; }
.note h2 { font-size: 1.0625rem; display: flex; gap: .35em; align-items: center; margin-bottom: .25em; }
.note p { margin: 0; }
.note-tip { background: var(--tip-bg); border-left: 4px solid var(--brass); }
.note-warn { background: var(--red-soft); border-left: 4px solid var(--red); }
.note-community { background: var(--extra-bg); border-left: 4px solid var(--extra-line); }
.more { margin: 14px 0; border: 1.5px solid var(--rule); border-radius: var(--r-sm); background: var(--paper); }
.more summary { cursor: pointer; padding: 12px 14px; font-weight: 700; }
.more > *:not(summary) { margin-inline: 14px; }
.more ul { padding-left: 1.4em; }
.more-src { font-size: .875rem; color: var(--ink-3); }
.step-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.step-actions .btn-lg { flex: 1 1 260px; }
.done-note { display: flex; flex-wrap: wrap; gap: .4em; align-items: center; color: var(--sage); font-weight: 650; margin: 12px 0 0; }
.step-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; border-top: 1px solid var(--rule); margin-top: 20px; padding-top: 12px; font-size: .875rem; color: var(--ink-3); }

.moment { margin: 0; }
.moment-play { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: var(--night-3); }
.moment-play img, .moment-play video { width: 100%; height: 100%; object-fit: cover; display: block; }
.moment-play.tall { aspect-ratio: 9 / 16; width: min(100%, calc(72vh * 9 / 16)); margin-inline: auto; }
.moment-play.tall img, .moment-play.tall video { object-fit: contain; background: #000; }
.moment-play.no-img::before { content: "Screenshot not made yet"; position: absolute; inset: 0; display: grid; place-items: center; color: #a89a87; font-size: .9375rem; }
.moment-badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: .45em; padding: .55em .9em; border-radius: 999px; background: rgba(21, 17, 13, .86); color: #fff; font: 750 1rem/1 var(--display); }
.moment-badge .ico { color: var(--ember); }
.moment-play:hover .moment-badge { background: var(--ink); outline: 2px solid var(--ember); }
.moment-frame { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.moment-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.moment figcaption { font-size: .875rem; color: var(--ink-3); margin-top: 8px; }
.moment-extra { background: var(--extra-bg); border-radius: var(--r); padding: 16px; font-size: .9375rem; }
.moment-extra-title { display: flex; gap: .4em; align-items: center; font-weight: 750; }
.moment-inline { margin: 4px 0 14px; }
.moment-side { display: none; }
.upnext { margin-top: 18px; }
.upnext h2 { font-size: 1.125rem; }
.upnext ol { padding-left: 1.6em; margin: 0; display: grid; gap: 6px; color: var(--ink-2); }
.img-missing { display: grid; place-items: center; min-height: 120px; background: var(--paper-2); color: var(--ink-3); border-radius: var(--r-sm); font-size: .875rem; }

/* ---------------------------------------------------------------- play mode (dark, big text) */
body.playing { background: var(--night); padding-bottom: 0; }
body.playing .mast, body.playing .foot, body.playing .tabbar { display: none; }
body.playing .view { padding-bottom: 0; }
.play { --scale: 1; min-height: 100vh; min-height: 100dvh; background: radial-gradient(120% 60% at 50% 115%, rgba(242, 166, 59, .16), transparent 60%), var(--night); color: var(--cream); display: flex; flex-direction: column; }
.play a { color: inherit; }
.play-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); }
.play-exit { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--night-3); flex: none; }
.play-exit .ico { width: 22px; height: 22px; }
.play-title { flex: 1; min-width: 0; display: grid; }
.play-goal { font-size: .8125rem; color: #b6a893; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-count { font: 800 1.125rem/1.2 var(--display); color: #fff; }
.play-timer { display: inline-flex; align-items: center; gap: .35em; font: 700 1rem/1 var(--body); font-variant-numeric: tabular-nums; color: var(--ember); }
.play-bar { margin: 0 14px; background: var(--night-3); height: 6px; }
.play-bar i { background: var(--ember); }
.play-body { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 22px 18px 140px; outline: none; font-size: calc(1rem * var(--scale)); }
.play-where { display: inline-flex; align-items: center; gap: .45em; font: 750 calc(1.125rem * var(--scale))/1.2 var(--display); color: #111; background: var(--ember); padding: .45em .75em; border-radius: var(--r-sm); margin-bottom: 14px; }
.play-step { font-size: calc(clamp(2rem, 1.5rem + 3.5vw, 3.25rem) * var(--scale)); font-weight: 850; color: #fff; line-height: 1.05; }
.play-done-badge { display: inline-grid; place-items: center; width: 1em; height: 1em; border-radius: 50%; background: var(--sage); color: #fff; margin-right: .3em; vertical-align: -.1em; }
.play-done-badge .ico { width: .6em; height: .6em; stroke-width: 3.2; }
.play-facts { display: grid; gap: 8px; margin: 16px 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.play-facts div { background: var(--night-2); border-radius: var(--r-sm); padding: 10px 12px; border-left: 4px solid var(--ember); }
.play-facts dt { display: flex; gap: .35em; align-items: center; font-size: calc(.8125rem * var(--scale)); color: #b6a893; font-weight: 700; }
.play-facts dd { margin: 0; font-weight: 650; font-size: calc(1.0625rem * var(--scale)); }
.play-text { font-size: calc(1.3125rem * var(--scale)); line-height: 1.55; color: #f3eadb; }
.play-acts { display: grid; gap: 8px; margin: 16px 0; }
.play .act { background: var(--night-2); border-color: var(--night-3); font-size: calc(1.125rem * var(--scale)); }
.play .box { background: var(--night); border-color: #8f816d; }
.play .act:has(input:checked) { background: #1f3329; border-color: var(--sage); }
.play .note-tip { background: #33291a; border-color: var(--ember); }
.play .note-warn { background: #3a1d18; border-color: #e0614f; }
.play-shot { margin: 4px 0 16px; }
.play-shot figcaption { color: #b6a893; }
.play-shot .moment-play { border: 1.5px solid var(--night-3); }
.play-video { margin: 18px 0; border: 1.5px solid var(--night-3); border-radius: var(--r); }
.play-video summary { cursor: pointer; padding: 12px 14px; display: flex; gap: .5em; align-items: center; font-weight: 700; color: #e9dcc8; }
.play-video .moment { padding: 0 12px 12px; }
.play-video figcaption, .play-video .moment-extra { color: #b6a893; }
.play-video .moment-extra { background: var(--night-2); }
.play-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; font-size: .9375rem; color: #b6a893; }
.play-tools .linkish { font: 800 1.125rem/1 var(--display); min-width: 44px; min-height: 44px; justify-content: center; text-decoration: none; border: 1.5px solid var(--night-3); border-radius: var(--r-sm); }
.play-auto { display: inline-flex; gap: .5em; align-items: center; }
.play-auto input { width: 20px; height: 20px; accent-color: var(--ember); }
.play-awake { flex-basis: 100%; }
.play-voice { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--night-3); background: var(--night-2); color: var(--cream); font: 700 .9375rem/1 var(--body); }
.play-voice[aria-pressed="true"] { border-color: var(--ember); color: var(--ember); }
.play-voice-hint { flex-basis: 100%; margin: 0; color: #e9dcc8; }
.play-voice-hint[hidden], .play-mic[hidden] { display: none; }
.play-mic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ember); border: 1.5px solid var(--ember); animation: mic 1.6s ease-in-out infinite; }
@keyframes mic { 50% { box-shadow: 0 0 0 6px rgba(242, 166, 59, .18); } }
.play-dock { position: fixed; inset: auto 0 0 0; display: grid; grid-template-columns: 56px auto auto 1fr; gap: 8px; padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: rgba(21, 17, 13, .96); border-top: 1px solid var(--night-3); }
.play-btn { min-height: 60px; border-radius: var(--r); border: 1.5px solid var(--night-3); background: var(--night-2); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 750 1rem/1 var(--display); padding: 0 12px; }
.play-btn[disabled] { opacity: .35; }
.play-btn[aria-pressed="true"] { border-color: var(--ember); color: var(--ember); }
.play-main { background: var(--ember); border-color: var(--ember); color: #1a1209; font-size: 1.375rem; font-weight: 850; }
.play-main .ico { width: 1.3em; height: 1.3em; stroke-width: 2.6; }
.play :focus-visible { outline-color: var(--ember); }

/* ---------------------------------------------------------------- windows */
.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-lg); background: transparent; color: var(--ink); overflow: visible; }
.modal::backdrop { background: rgba(21, 17, 13, .62); }
.modal-card { position: relative; background: var(--card); border-radius: var(--r-lg); max-height: calc(100dvh - 24px); overflow: auto; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.modal-body { padding: 26px 22px 22px; }
.modal-body h2 { padding-right: 36px; }
.modal-body h3 { font-size: 1.125rem; margin-top: 18px; }
.modal-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); display: grid; place-items: center; z-index: 2; }
.modal-x:hover { background: var(--paper-2); }
.modal[open] .modal-card { animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.ticks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.ticks li { display: flex; gap: .55em; align-items: flex-start; }
.ticks .ico { color: var(--sage); margin-top: .15em; }
.supporters { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.supporters li { background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: .25em .75em; font-weight: 650; }
.modal-support .btn-row { margin: 16px 0 6px; }
.stuck-choices { display: grid; gap: 8px; margin: 14px 0; }
.stuck-choice { text-align: left; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--rule-2); background: var(--paper); font-weight: 650; }
.stuck-choice:hover { border-color: var(--ink); }
.stuck-choice.on { border-color: var(--ink); background: var(--mango-soft); }
.stuck-result { border-top: 1px solid var(--rule); padding: 12px 0; }
.stuck-result h3 { font-size: 1.125rem; margin: 0 0 .25em; }
.stuck-src { font-size: .8125rem; color: var(--ink-3); }
.stuck-tip { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 12px; }
.stuck-tip summary { cursor: pointer; font-weight: 700; }
.tip-form { display: grid; gap: 10px; margin-top: 12px; }
.modal-poster { width: min(620px, calc(100vw - 24px)); }
.poster-name { margin-bottom: 12px; }
.poster-name label { font-weight: 700; display: block; margin-bottom: 4px; }
.poster-preview { background: var(--paper-2); border-radius: var(--r); padding: 10px; margin-bottom: 14px; display: grid; place-items: center; min-height: 200px; }
.poster-preview img { width: 100%; max-width: 420px; border-radius: 4px; box-shadow: var(--lift); }

/* the finish moment: one stamp, pressed onto the paper */
.cele { text-align: center; }
.cele h2 { padding: 0; font-size: 2rem; }
.cele-kicker { font: 800 1rem/1 var(--display); color: var(--sage); margin: 6px 0 8px; }
.cele-reward { display: inline-flex; gap: .4em; align-items: center; color: var(--brass); font-weight: 700; }
.stamp { display: grid; place-items: center; margin: 4px auto 16px; width: max-content; transform: rotate(-8deg); }
.stamp span { display: block; font: 900 3.5rem/1 var(--display); color: var(--red); border: 6px solid var(--red); outline: 2px solid var(--red); outline-offset: 4px; padding: .1em .45em .05em; border-radius: 6px; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.modal-cele[open] .stamp { animation: stamp .42s cubic-bezier(.2, 1.6, .4, 1) .08s both; }
@keyframes stamp { from { transform: rotate(-8deg) scale(2.2); opacity: 0; } 60% { opacity: 1; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
.cele-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 8px; }
.cele-times div { background: var(--paper); border-radius: var(--r-sm); padding: 12px; }
.cele-times dt { font-size: .8125rem; color: var(--ink-3); font-weight: 700; }
.cele-times dd { margin: 2px 0 0; font: 850 1.5rem/1.1 var(--display); }
.cele-times small { font: 600 .8125rem/1 var(--body); color: var(--ink-3); }
.cele-note { color: var(--ink-2); }
.cele-medals ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cele-medals li { display: inline-flex; gap: .4em; align-items: center; background: var(--tip-bg); border-radius: 999px; padding: .35em .8em; }
.cele .btn-row { justify-content: center; margin: 14px 0; }
.cele-next { text-align: left; border-top: 1px solid var(--rule); padding-top: 12px; }
.cele-next ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.cele-next li { display: grid; }
.cele-next small { color: var(--ink-3); }
.cele-support { font-size: .9375rem; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 12px; margin: 12px 0 0; }

/* ---------------------------------------------------------------- my runs */
.page-head { padding: 22px 0 6px; }
.page-head p { color: var(--ink-2); max-width: 70ch; }
.runs-sec { padding: 18px 0; border-top: 1px solid var(--rule); }
.runs-sec:first-of-type { border-top: 0; }
.run-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.run-row { display: grid; gap: 10px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; }
.run-row h3 { font-size: 1.1875rem; margin-bottom: .15em; }
.run-row h3 a { text-decoration: none; }
.run-row p { margin: 0 0 .3em; color: var(--ink-2); font-size: .9375rem; }
.run-times strong { color: var(--ink); }
.medals { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.medal { display: grid; gap: 2px; justify-items: start; padding: 12px 14px; border-radius: var(--r); border: 1.5px dashed var(--rule-2); color: var(--ink-3); }
.medal-ico { font-size: 1.75rem; filter: grayscale(1); opacity: .45; }
.medal strong { font-family: var(--display); font-size: 1.0625rem; }
.medal small { font-size: .8125rem; }
.medal.got { border: 1.5px solid var(--brass); background: var(--medal-bg); color: var(--ink); }
.medal.got .medal-ico { filter: none; opacity: 1; }
.set-grid { display: grid; gap: 14px; max-width: 640px; }
.set-grid fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.set-grid legend { font-weight: 650; font-size: .9375rem; margin-bottom: 4px; width: 100%; }
.set-grid .radio, .set-grid .check { display: inline-flex; gap: .5em; align-items: center; font-weight: 500; }
.set-grid input[type="radio"], .set-grid input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ink); }
.set-grid input[type="text"], .set-grid input:not([type]) { min-height: 42px; }
.save-load { margin: 14px 0 10px; max-width: 640px; }
.save-load textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8125rem; }
.danger p { color: var(--ink-2); }

/* ---------------------------------------------------------------- ledger */
.ledger-head { display: grid; gap: 18px; padding: 22px 0 12px; }
.ledger-intro p { color: var(--ink-2); max-width: 60ch; }
.ledger-total { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 10px; align-content: start; }
.ledger-sum { display: flex; align-items: baseline; gap: 12px; margin: 0; color: var(--ink-2); font-weight: 650; }
.ledger-pct { font: 900 3rem/1 var(--display); color: var(--ink); }
.lsec { padding: 16px 0; border-top: 2px solid var(--ink); }
.lsec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lsec-head h2 { margin: 0; }
.lsec-count { font: 800 1.125rem/1 var(--display); color: var(--ink-2); margin: 0; white-space: nowrap; }
.lsec-note { font-size: .9375rem; color: var(--ink-2); margin: 6px 0 10px; }
.lgroup { border-bottom: 1px solid var(--rule); }
.lgroup summary { display: grid; grid-template-columns: 28px 1fr auto; grid-template-areas: "ico name count" "pips pips pips"; gap: 4px 10px; align-items: center; padding: 12px 2px; cursor: pointer; list-style: none; }
.lgroup summary::-webkit-details-marker { display: none; }
.lg-ico { grid-area: ico; font-size: 1.25rem; }
.lg-name { grid-area: name; font: 800 1.1875rem/1.1 var(--display); }
.lg-count { grid-area: count; font-weight: 750; color: var(--ink-2); }
.pips { grid-area: pips; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.pips i { height: 8px; border-radius: 2px; background: var(--paper-2); border: 1px solid var(--rule-2); }
.pips i.on { background: var(--sage); border-color: var(--sage); }
.litems { list-style: none; padding: 0; margin: 0 0 8px; }
.li { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 9px 2px; border-bottom: 1px dashed var(--rule); }
.li label { flex: 1; }
.li-text { display: grid; }
.li-text b { font-family: var(--display); font-weight: 800; }
.li-text small { color: var(--sage); font-size: .8125rem; font-weight: 650; }
.li.done .li-text { color: var(--ink-2); }
.li-go { font-size: .875rem; font-weight: 700; white-space: nowrap; }

/* ---------------------------------------------------------------- GTA 6 (its own neon-dusk look) */
.gta { background: #12081f; color: #f6e9f3; margin-bottom: -40px; padding-bottom: 40px; }
main:has(.gta) + .foot { margin-top: 0; }
.gta-hero { position: relative; overflow: hidden; min-height: 520px; display: grid; align-items: end; }
.gta-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.gta-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 8, 31, 0) 30%, rgba(18, 8, 31, .82) 78%, #12081f 100%); }
.gta-hero-in { position: relative; z-index: 1; padding-block: 120px 28px; }
.gta-tag { display: inline-block; font: 700 .8125rem/1 var(--body); letter-spacing: .03em; padding: .45em .7em; border: 1.5px solid #ffd37a; color: #ffd37a; border-radius: 4px; }
.gta h1 { font-family: "Anton", var(--display); font-weight: 400; font-size: clamp(2.75rem, 1.8rem + 5vw, 5.5rem); line-height: .98; letter-spacing: .01em; color: #fff; margin: 14px 0 12px; text-shadow: 0 2px 30px rgba(255, 61, 129, .45); }
.gta-sub { font-size: 1.125rem; max-width: 60ch; color: #f2d9ec; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 560px; margin-top: 20px; }
.countdown div { background: rgba(18, 8, 31, .7); border: 1.5px solid rgba(255, 61, 129, .55); border-radius: var(--r); padding: 12px 6px 10px; text-align: center; backdrop-filter: blur(4px); }
.countdown b { display: block; font: 400 clamp(2rem, 1.4rem + 3vw, 3.25rem)/1 "Anton", var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .8125rem; color: #ffb8d2; font-weight: 700; }
.gta-body { display: grid; gap: 24px; padding-block: 28px 12px; }
.gta-body h2 { font-family: "Anton", var(--display); font-weight: 400; letter-spacing: .01em; color: #fff; }
.gta-body a { color: #fff; text-decoration-color: #ff3d81; }
.gta-signup, .gta-what { background: #1d0f30; border: 1px solid #3a2152; border-radius: var(--r-lg); padding: 20px; }
.gta-what ul { padding-left: 1.2em; display: grid; gap: 6px; }
.gta-what .fine { color: #b9a3c4; }
.gta-form { display: grid; gap: 12px; }
.gta-form label { color: #f6e9f3; }
.gta-form input:not([type="radio"]), .gta-form select { background: #12081f; border-color: #4a2b66; color: #fff; min-height: 46px; }
.gta-form fieldset { border: 0; padding: 0; margin: 0; }
.gta-form legend { font-weight: 700; margin-bottom: 8px; }
.gta .poll-opt { background: #12081f; border-color: #3a2152; }
.gta .poll-opt:has(input:checked) { border-color: #ff3d81; background: #2a1033; }
.gta .poll-opt input { accent-color: #ff3d81; }
.gta .signup-msg { color: #ffb8d2; }
.gta-done { color: #9ff0c9; font-weight: 600; }

/* ---------------------------------------------------------------- how it's made */
.how-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 22px; counter-reset: how; }
.how-step { display: grid; gap: 14px; counter-increment: how; }
.how-img { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.how-img img { width: 100%; height: 100%; object-fit: cover; }
.how-text h2::before { content: counter(how) ". "; color: var(--brass); }
.how-note { font-style: italic; color: var(--ink-2); border-left: 4px solid var(--mango); padding-left: 12px; }
.compare { padding-top: 26px; }
.compare-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.compare-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px; }
.compare-coco { color: var(--sage); }
.how-tips, .how-request { padding-top: 26px; }
.tips-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.tips-list li { background: var(--card); border-left: 4px solid var(--extra-line); border-radius: var(--r-sm); padding: 12px 14px; }
.tips-list p { margin: 0 0 4px; }
.tips-list small { color: var(--ink-3); }
.tip-form-wide { max-width: 640px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; margin-top: 16px; }
.tip-form-wide h3 { margin: 0; }

/* ---------------------------------------------------------------- toast, errors */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; background: var(--ink); color: var(--card); padding: 12px 16px; border-radius: var(--r-sm); font-weight: 600; max-width: calc(100vw - 32px); transition: opacity .2s ease, transform .2s ease; box-shadow: var(--lift); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.playing .toast { bottom: 100px; background: var(--cream); color: var(--night); }
.page-error { padding-block: 60px; }

/* ---------------------------------------------------------------- the public guide pages (/guides/...) */
.seo-guide { padding-bottom: 40px; }
.seo-guide h1 { margin-top: 10px; }
.seo-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.seo-steps { padding-left: 0; list-style: none; counter-reset: st; display: grid; gap: 16px; }
.seo-steps > li { counter-increment: st; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.seo-steps h2 { font-size: 1.375rem; }
.seo-steps h2::before { content: counter(st) ". "; color: var(--brass); }
.seo-steps img { border-radius: var(--r-sm); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--paper-2); }
.seo-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9375rem; color: var(--ink-2); }
.seo-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.seo-list a { font-weight: 650; }
.seo-list small { color: var(--ink-3); display: block; }
.seo-cat { margin-top: 26px; }

/* ---------------------------------------------------------------- accounts (optional sign-in) */
.acct-btn.is-in .acct-initial { background: var(--mango); color: var(--on-accent); }
.acct-who { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; }
.acct-who p { margin: 0; }
.acct-initial-lg { width: 48px; height: 48px; font-size: 1.375rem; background: var(--mango); color: var(--on-accent); flex: none; }
.acct-name { font: 800 1.375rem/1.1 var(--display); }
.sync-line { font-size: .9375rem; color: var(--ink-2); }
.acct-admin:empty { display: none; }
.acct-admin { margin-top: 10px; }
.acct-out { margin: 16px 0 0; font-size: .9375rem; }
.check { display: inline-flex; gap: .55em; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.signin-why { background: var(--mango-soft); border-radius: var(--r-sm); padding: 10px 12px; font-weight: 650; }
.signin-age { margin: 4px 0 14px; }
.signin-btns { display: grid; gap: 10px; margin-bottom: 14px; }
.btn-provider { width: 100%; justify-content: center; }
.signin-email { display: grid; gap: 6px; margin-bottom: 12px; }
.signin-email label { font-weight: 650; font-size: .9375rem; }
.profile-form, .enter-form, .admin-form { display: grid; gap: 12px; }
.profile-form label:not(.radio), .enter-form label:not(.check), .admin-form label:not(.radio):not(.check) { display: grid; gap: 4px; font-weight: 650; font-size: .9375rem; }
.profile-form fieldset, .admin-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.profile-form legend, .admin-form legend { font-weight: 650; font-size: .9375rem; margin-bottom: 4px; width: 100%; padding: 0; }
.profile-form .radio, .admin-form .radio { display: inline-flex; gap: .5em; align-items: center; }
.profile-form .radio input, .admin-form .radio input { width: 18px; height: 18px; accent-color: var(--ink); }
.profile-form input[name="name"], .enter-form input[type="url"], .enter-form textarea, .admin-form input:not([type="radio"]):not([type="checkbox"]), .admin-form textarea, .admin-form select, .admin-find input {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--rule-2); border-radius: var(--r-sm); background: var(--card); font-weight: 400;
}
.enter-form input[type="file"] { font-weight: 400; font-size: .9375rem; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 16px; }
.cmp div { background: var(--paper); border-radius: var(--r-sm); padding: 10px 12px; }
.cmp dt { font-size: .8125rem; font-weight: 700; color: var(--ink-3); }
.cmp dd { margin: 2px 0 0; font: 750 1.0625rem/1.25 var(--display); overflow-wrap: anywhere; }

/* the leaderboard: a ranked list with the video time drawn in as a line to beat */
.board-route { font-size: .9375rem; color: var(--ink-2); margin-bottom: 10px; }
.board-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 2px; }
.board-row { display: grid; grid-template-columns: 2.25em minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: var(--r-sm); }
.board-row:nth-child(odd) { background: var(--paper); }
.board-rank { font: 850 1.125rem/1 var(--display); color: var(--brass); text-align: right; }
.board-name { font-weight: 650; overflow-wrap: anywhere; }
.board-name em { font-style: normal; font-weight: 600; color: var(--ink-3); }
.board-name small { display: block; font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.board-time { font: 800 1.0625rem/1 var(--display); font-variant-numeric: tabular-nums; }
.board-row.is-me { background: var(--mango-soft); box-shadow: inset 4px 0 0 var(--mango); }
.board-mark { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 6px 8px; border-top: 2px dashed var(--brass); border-bottom: 2px dashed var(--brass); margin: 4px 0; font: 750 .9375rem/1.2 var(--display); color: var(--brass); }
.board-mark small { font: 500 .8125rem/1.2 var(--body); color: var(--ink-3); }
.board-gap { text-align: center; color: var(--ink-3); line-height: 1; }
.board .btn { margin-bottom: 10px; }
.fact-community { display: inline-flex; align-items: center; gap: .35em; }
.fact-community[hidden] { display: none; }
.glitch-stats { margin: 0 0 12px; }
.glitch-tally { display: grid; gap: 6px; font-size: .9375rem; }
.split-bar { display: block; height: 10px; border-radius: 999px; background: var(--red); overflow: hidden; max-width: 320px; }
.split-bar i { display: block; height: 100%; background: var(--sage); }
.poll-bars { list-style: none; padding: 0; margin: 12px 0 4px; display: grid; gap: 8px; }
.poll-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 3.25em; gap: 2px 10px; align-items: center; font-size: .9375rem; }
.pb-label { grid-column: 1 / -1; }
.pb-label em { font-style: normal; color: var(--ink-3); }
.pb-bar { height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.pb-bar i { display: block; height: 100%; background: var(--ink-3); border-radius: inherit; }
.poll-bars li.mine .pb-bar i { background: var(--mango); }
.pb-n { font: 800 .9375rem/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.cele-board { margin: 4px 0 10px; color: var(--ink-2); }
.cele-rank { display: inline-flex; gap: .4em; align-items: center; color: var(--ink); font-weight: 600; }
.cele-rank .ico { color: var(--brass); }

/* Coco's challenge: a notice pinned to the board */
.challenges { padding-block: 24px 8px; }
.challenge { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 18px 18px 16px; margin-bottom: 12px; box-shadow: 6px 6px 0 var(--mango-soft); }
.challenge-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; }
.challenge-kind { font: 750 .875rem/1 var(--display); letter-spacing: .02em; padding: .45em .7em; border: 2px solid var(--ink); border-radius: 4px; }
.challenge-when { font: 800 1rem/1.5 var(--display); color: var(--red); }
.challenge h3 { font-size: 1.625rem; }
.challenge-prize { display: flex; gap: .45em; align-items: flex-start; color: var(--brass); }
.challenge-prize strong { color: var(--ink); }
.challenge-meta { font-size: .9375rem; color: var(--ink-2); }
.challenge-entered { display: flex; gap: .5em; align-items: flex-start; font-weight: 650; color: var(--sage); }
.challenge-entered.rejected { color: var(--red); }
.challenge-next, .challenge-past { display: flex; gap: .45em; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); margin: 6px 0; }
.challenge-past .ico { color: var(--brass); }
.notice-inline { background: var(--mango-soft); border-radius: var(--r-sm); padding: 10px 12px; }
.enter-time { display: grid; background: var(--paper); border-radius: var(--r-sm); padding: 10px 12px; }
.enter-time strong { font: 850 1.75rem/1.1 var(--display); }
.enter-time small { color: var(--ink-3); }
.rules-text { font-size: .9375rem; }
.rules-text p { margin-bottom: .7em; }
.acct-sec .acct-who { margin-top: 0; }
.acct-sec h3 { margin-top: 18px; font-size: 1.125rem; }
.entry-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.entry-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 10px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-sm); }
.entry-list small { color: var(--ink-3); flex-basis: 100%; }
.entry-status { font: 700 .8125rem/1 var(--body); padding: .35em .6em; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.entry-status.approved { background: var(--sage-soft); color: var(--sage); }
.entry-status.rejected { background: var(--red-soft); color: var(--red); }
.acct-delete { margin-top: 14px; }
.acct-delete summary { cursor: pointer; color: var(--ink-2); font-size: .9375rem; }
.acct-delete p { color: var(--ink-2); font-size: .9375rem; margin: 8px 0; }

/* Coco's challenge desk (#/admin) */
.admin-new summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.admin-new summary::-webkit-details-marker { display: none; }
.admin-new summary h2 { margin: 0; }
.admin-new summary::after { content: "+"; font: 800 1.5rem/1 var(--display); color: var(--ink-3); }
.admin-new[open] summary::after { content: "−"; }
.admin-new[open] summary { margin-bottom: 14px; }
.admin-form { max-width: 720px; }
.admin-form textarea[name="rules"] { font-size: .875rem; line-height: 1.45; }
.admin-dates { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.admin-ch { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px; }
.admin-ch-head { display: grid; gap: 10px; }
.admin-ch-head p { margin: 0 0 .3em; }
.admin-ch-state { font: 750 .8125rem/1 var(--display); letter-spacing: .02em; }
.admin-ch-state.open { color: var(--sage); }
.admin-ch-state.ended { color: var(--red); }
.admin-ch-state.soon { color: var(--brass); }
.admin-entries { border-top: 1px solid var(--rule); margin-top: 12px; padding-top: 12px; }
.admin-entry-list, .admin-reports, .admin-players { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.admin-entry { border: 1px solid var(--rule); border-left: 5px solid var(--rule-2); border-radius: var(--r-sm); padding: 10px 12px; background: var(--paper); }
.admin-entry.approved { border-left-color: var(--sage); }
.admin-entry.rejected { border-left-color: var(--red); }
.admin-entry p { margin: 4px 0; }
.admin-entry-who { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.admin-entry-who .entry-status { margin-left: auto; }
.admin-note { font-style: italic; color: var(--ink-2); }
.admin-reports li { display: grid; gap: 2px; padding: 8px 10px; border-left: 4px solid var(--sage); background: var(--card); border-radius: var(--r-sm); font-size: .9375rem; }
.admin-reports li.bad { border-left-color: var(--red); }
.admin-players li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center; padding: 8px 10px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-sm); }
.admin-find { margin-bottom: 12px; max-width: 420px; }
.admin-poll { margin-bottom: 16px; }
.admin-poll h3 { font-size: 1.125rem; }
.admin-proof { width: 100%; border-radius: var(--r-sm); background: var(--paper-2); }
.modal-proof { width: min(900px, calc(100vw - 24px)); }
.claim-steps { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 14px; max-width: 560px; }
.claim-steps li { display: grid; gap: 6px; justify-items: start; }
.claim-steps small { color: var(--ink-2); font-size: .9375rem; }
.admin-id code { font-size: .875rem; background: var(--paper-2); padding: 4px 6px; border-radius: 4px; overflow-wrap: anywhere; }

/* badges: struck coins and lawman's stars (drawn in js/badges.js) */
.badge-svg { display: block; flex: none; overflow: visible; }
.badge-svg.is-locked { filter: grayscale(1) contrast(.85); opacity: .5; }
.bchip { position: relative; display: inline-flex; align-items: center; vertical-align: -.3em; margin-left: 2px; }
.bchip svg { display: block; }
.bchip-place svg { border-radius: 50%; box-shadow: 0 0 0 2px var(--ring, #e8b730); }
.bchip b { font: 900 .6875rem/1 var(--display); color: var(--ink); margin-left: 2px; }
.board-who { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.board-badges { display: inline-flex; gap: 3px; }
.signin-founding { display: flex; gap: 12px; align-items: center; background: var(--medal-bg); border: 1.5px solid var(--brass); border-radius: var(--r); padding: 10px 12px; margin: 0 0 14px; }
.signin-founding p { margin: 0; font-size: .9375rem; }
.my-badges { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.my-badges li { display: flex; gap: 14px; align-items: center; background: var(--medal-bg); border: 1.5px solid var(--brass); border-radius: var(--r); padding: 12px 14px; }
.my-badges strong { display: block; font: 800 1.125rem/1.2 var(--display); }
.my-badges small { display: block; color: var(--ink-2); margin: 4px 0 8px; }

/* the before/after challenge: the coin you can earn sits beside the notice */
.challenge-target { display: grid; gap: 16px; align-items: start; }
.challenge-target.is-soon { box-shadow: 6px 6px 0 var(--reward-bg); }
.challenge-coin { display: grid; justify-items: center; gap: 6px; text-align: center; }
.challenge-coin p { margin: 0; font: 700 .9375rem/1.25 var(--display); color: var(--brass); max-width: 18ch; }
.challenge-main > h3 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); }
.challenge-goal, .challenge-status { display: flex; gap: .5em; align-items: flex-start; }
.challenge-goal .ico { color: var(--brass); }
.challenge-status { font-weight: 650; color: var(--sage); background: var(--sage-soft); border-radius: var(--r-sm); padding: 10px 12px; }
.challenge-status.bad { color: var(--red); background: var(--red-soft); }
.challenge-status.done { color: var(--ink); background: var(--medal-bg); }
.challenge-target .btn-row { margin: 6px 0 10px; }

/* entering it: three steps, your code word on a scrap of paper, a drawing of the photo to take */
.modal-target { width: min(620px, calc(100vw - 24px)); }
.target-steps { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: none; }
.target-steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 .8125rem/1.15 var(--body); color: var(--ink-3); text-align: center; position: relative; }
.target-steps li + li::before { content: ""; position: absolute; top: 15px; right: calc(50% + 18px); width: calc(100% - 30px); height: 2px; background: var(--rule-2); }
.target-steps li span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--rule-2); background: var(--card); font: 800 1rem/1 var(--display); }
.target-steps li.done { color: var(--sage); }
.target-steps li.done span { background: var(--sage); border-color: var(--sage); color: #fff; }
.target-steps li.done span .ico { width: 16px; height: 16px; stroke-width: 3; }
.target-steps li.here { color: var(--ink); }
.target-steps li.here span { background: var(--mango); border-color: var(--mango); color: var(--on-accent); }
.target-now { margin: 0 0 10px; }
.how-list { padding-left: 1.3em; display: grid; gap: 6px; margin: 0 0 14px; }
.challenge-how { margin: 12px 0 14px; padding: 12px 14px 2px; border: 1px dashed var(--line); border-radius: var(--r-sm); }
.challenge-how h4 { margin: 0 0 8px; font-size: 1rem; }
.challenge-how .how-list { margin-bottom: 10px; }
.code-card { position: relative; display: grid; justify-items: center; gap: 2px; margin: 8px auto 16px; padding: 16px 18px 12px; max-width: 360px; background: #fbf4e4; color: #1e1a15; border: 1px solid #d2c3a9; border-radius: 3px; box-shadow: 0 10px 22px -14px rgba(30, 26, 21, .6); transform: rotate(-1.2deg); }
.code-card::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e2675a, #8a1f16); box-shadow: 0 2px 3px rgba(0, 0, 0, .35); }
.code-label { font: 700 .8125rem/1 var(--body); color: #7d6f60; }
.code-word { font: 900 clamp(1.75rem, 1.4rem + 2vw, 2.375rem)/1.1 var(--display); letter-spacing: .08em; overflow-wrap: anywhere; text-align: center; }
.code-hint { font-size: .8125rem; color: #554a3f; text-align: center; }
.shot-diagram { display: block; width: 100%; max-width: 420px; height: auto; margin: 4px auto 10px; color: var(--ink); }
.shot-tips { font-size: .9375rem; }
.shot-tips sup a { text-decoration: none; font-weight: 800; color: var(--brass); padding: 0 2px; }
.shot-form { display: grid; gap: 12px; border-top: 1px solid var(--rule); padding-top: 14px; }
.shot-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.shot-pick .btn { position: relative; flex: 1 1 200px; }
.shot-pick .btn:focus-within { outline: 3px solid var(--mango); outline-offset: 2px; }
.shot-preview { max-height: 260px; width: auto; max-width: 100%; border-radius: var(--r-sm); border: 1px solid var(--rule); margin: 0 auto; }
.cash-label, .shot-form > label { display: grid; gap: 4px; font-weight: 650; font-size: .9375rem; }
.cash-label small { font-weight: 400; color: var(--ink-3); }
.cash-in { display: flex; align-items: center; max-width: 260px; border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--card); }
.cash-in span { padding: 0 4px 0 12px; font: 800 1.25rem/1 var(--display); color: var(--brass); }
.cash-in input { flex: 1; min-width: 0; min-height: 46px; border: 0; background: transparent; font: 800 1.25rem/1 var(--display); padding: 0 12px 0 2px; font-variant-numeric: tabular-nums; }
.cash-in input:focus { outline: none; }
.cash-in:focus-within { outline: 3px solid var(--mango); outline-offset: 2px; }
.shot-form input[type="url"] { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--rule-2); border-radius: var(--r-sm); background: var(--card); font-weight: 400; }
.cmp dd small { display: block; font: 500 .8125rem/1.3 var(--body); color: var(--ink-3); }
.target-done { display: grid; justify-items: center; text-align: center; gap: 10px; }
.target-done-line { font: 700 1.125rem/1.35 var(--display); max-width: 40ch; }
.target-withdraw { margin-top: 14px; }
.hall-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.hall-list li { display: grid; grid-template-columns: 4.5em minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 10px; border-radius: var(--r-sm); }
.hall-list li:nth-child(odd) { background: var(--paper); }
.hall-list li.is-me { background: var(--mango-soft); }
.hall-no { font: 800 .9375rem/1 var(--display); color: var(--brass); }
.hall-name { font-weight: 650; }
.hall-name small { margin-left: 6px; font-size: .75rem; color: var(--ink-3); }
.hall-name em { font-style: normal; color: var(--ink-3); }
.hall-place { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 900 .8125rem/1 var(--display); color: #1e1a15; background: #e8b730; }
.hall-place.p2 { background: #c3c8cc; }
.hall-place.p3 { background: #c97a3f; }
.report-time { display: grid; gap: 10px; }
.report-time fieldset { border: 0; padding: 0; margin: 0; }
.report-time label:not(.poll-opt) { display: grid; gap: 4px; font-weight: 650; font-size: .9375rem; }
.report-time textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--rule-2); border-radius: var(--r-sm); background: var(--card); }

/* Coco's desk: the photo checks */
.db-update { background: var(--mango-soft); border: 2px solid var(--mango); border-radius: var(--r); padding: 16px 18px; margin: 10px 0 16px; }
.db-update h2 { font-size: 1.5rem; }
.db-update .claim-steps { margin: 12px 0; }
.admin-jump { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9375rem; font-weight: 650; }
.admin-target { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.admin-ch-badge { display: none; }
.admin-shout { display: flex; gap: .45em; align-items: flex-start; color: var(--brass); }
.admin-shout strong { color: var(--ink); }
.admin-code strong.ok { color: var(--sage); }
.admin-code strong.bad { color: var(--red); }
.admin-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0; }
.admin-shot { margin: 0; display: grid; gap: 4px; }
.admin-shot-btn { padding: 0; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--paper-2); overflow: hidden; aspect-ratio: 4 / 3; }
.admin-shot-btn img { width: 100%; height: 100%; object-fit: cover; }
.admin-shot-gone, .admin-shot.empty { display: grid; place-items: center; aspect-ratio: 4 / 3; border: 1.5px dashed var(--rule-2); border-radius: var(--r-sm); color: var(--ink-3); font-size: .875rem; text-align: center; padding: 8px; }
.admin-shot.empty figcaption { color: var(--ink-3); }
.admin-shot figcaption { font-size: .875rem; }
.admin-shot figcaption small { display: block; color: var(--ink-3); }
.admin-flags { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; font-size: .9375rem; }
.admin-flags li { display: flex; gap: .45em; align-items: flex-start; padding: 6px 10px; border-radius: var(--r-sm); }
.flag-bad { background: var(--red-soft); color: var(--red); font-weight: 650; }
.flag-warn { background: var(--mango-soft); color: var(--ink); }
.flag-info { background: var(--paper-2); color: var(--ink-2); }
.flag-ok, .admin-flags-ok { background: var(--sage-soft); color: var(--sage); }
.admin-flags-ok { display: flex; gap: .45em; align-items: center; padding: 6px 10px; border-radius: var(--r-sm); font-size: .9375rem; }
.admin-howto { margin: 12px 0; font-size: .9375rem; }
.admin-howto summary { cursor: pointer; font-weight: 700; }
.admin-howto ol, .admin-howto ul { padding-left: 1.3em; display: grid; gap: 4px; margin-top: 8px; }

/* ---------------------------------------------------------------- #/admin: the admin password */
.admin-lock { padding-block: 48px 64px; max-width: 36rem; }
.admin-lock > p { color: var(--ink-2); }
.admin-lock .claim-steps { max-width: none; }
.admin-lock-form { display: grid; gap: 12px; margin: 20px 0 16px; max-width: 26rem; }
.admin-lock-form label:not(.check) { display: grid; gap: 4px; font-weight: 650; font-size: .9375rem; }
.admin-lock-form input[name^="pw"], .admin-lock-form input[name="old"] {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--rule-2); border-radius: var(--r-sm); background: var(--card); color: inherit; font: inherit; font-weight: 400;
}
.admin-lock-form .btn { justify-self: start; }
.admin-lock-form .btn-row .btn { justify-self: auto; }
.admin-lock-form .signup-msg:empty { display: none; }
.admin-show { font-weight: 500; font-size: .9375rem; }
.modal .admin-lock-form { margin: 12px 0 0; }
.admin-lock-form .fine { color: var(--ink-2); }
.admin-lockbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 8px 0 4px; font-size: .9375rem; }
.visits-lede { font-size: 1.0625rem; margin: 4px 0 16px; max-width: 70ch; }
.table-scroll { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
.stat-table { border-collapse: collapse; width: 100%; max-width: 760px; min-width: 340px; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.stat-table.stat-days th[scope="row"] { white-space: nowrap; }
.stat-table caption { text-align: left; font-weight: 700; font-size: 1.0625rem; padding: 0 0 6px; }
.stat-table th, .stat-table td { padding: 7px 0 7px 14px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
.stat-table th[scope="row"], .stat-table thead th:first-child, .stat-table td[colspan] { padding-left: 0; text-align: left; font-weight: 600; white-space: normal; }
.stat-table td[colspan] { font-weight: 400; color: var(--ink-3); }
.stat-table thead th { font-size: .8125rem; color: var(--ink-3); font-weight: 650; }

/* the first-visit welcome and the quick tour */
.welcome { position: fixed; z-index: 55; left: 12px; right: 12px; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 0 18px 40px -18px rgba(21, 17, 13, .55); transform: translateY(16px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.welcome.in { transform: none; opacity: 1; }
.welcome p { margin: 0 0 8px; }
.welcome-title { font: 850 1.25rem/1.1 var(--display); }
.welcome-mark { width: 40px; height: 40px; flex: none; }
.tour-shade { position: fixed; inset: 0; z-index: 70; background: transparent; }
.tour-shade.dim { background: rgba(21, 17, 13, .62); }
.tour-hole { position: fixed; z-index: 71; border-radius: var(--r); box-shadow: 0 0 0 3px var(--mango), 0 0 0 200vmax rgba(21, 17, 13, .62); pointer-events: none; transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease, opacity .2s; }
.tour-hole.still { transition: opacity .2s; }
.tour-card { position: fixed; z-index: 72; width: min(360px, calc(100vw - 32px)); padding: 16px 18px 14px; background: var(--card); color: var(--ink); border-radius: var(--r); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .6); }
.tour-card h2 { font-size: 1.375rem; margin-bottom: .25em; }
.tour-card p { margin: 0 0 12px; }
.tour-card.docked { left: 12px; right: 12px; width: auto; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); }
.tour-card.docked.dock-top { bottom: auto; top: calc(var(--mast-h) + 10px); }
.tour-count { font: 700 .8125rem/1 var(--body); color: var(--brass); margin-bottom: 8px !important; }
.tour-skip { margin-left: auto; font-size: .9375rem; color: var(--ink-2); }

@media (max-width: 480px) {
  .mast-in { gap: 8px; }
  .brand-sub, .acct-label { display: none; }
  .brand-word { font-size: 1.1875rem; }
  .acct-btn { padding: 0 5px; }
  .mast-tools { gap: 6px; }
}

/* ---------------------------------------------------------------- bigger screens */
@media (min-width: 720px) {
  html { scroll-padding-bottom: 12px; }
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .mast-nav { display: flex; }
  .wrap { padding-inline: 24px; }
  .toast { bottom: 24px; }
  .welcome { left: auto; right: 24px; bottom: 24px; width: 380px; }
  .tour-card.docked { left: 16px; right: auto; width: 360px; bottom: 24px; }
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; padding-top: 44px; gap: 40px; }
  .split { grid-template-columns: 1fr 1fr; }
  .gta-band-in { grid-template-columns: 1fr auto; }
  .signup-band { grid-template-columns: 1fr minmax(0, 1.1fr); align-items: center; }
  .foot-in { grid-template-columns: 1fr 1.4fr; }
  .continue-card, .run-row { grid-template-columns: 1fr auto; align-items: center; }
  .admin-ch-head { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .admin-ch-head:has(.admin-ch-badge) { grid-template-columns: auto minmax(0, 1fr) auto; }
  .admin-ch-badge { display: block; }
  .challenge-target { grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 22px 24px 18px; }
  .challenge-coin { padding-top: 6px; }
  .route-opts { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .guide-head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
  .step-card { padding: 26px 28px; }
  .ledger-head { grid-template-columns: 1fr minmax(280px, 380px); align-items: end; }
  .lgroup summary { grid-template-columns: 28px 160px 1fr auto; grid-template-areas: "ico name pips count"; }
  .gta-body { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .how-step { grid-template-columns: 300px 1fr; align-items: center; }
  .seo-steps > li { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .play-body { padding-top: 34px; }
}
@media (min-width: 1024px) {
  .guide-cols { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .guide-side { position: sticky; top: calc(var(--mast-h) + 16px); order: 0; }
  .step-cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .step-side { position: sticky; top: calc(var(--mast-h) + 16px); }
  .moment-inline { display: none; }
  .moment-side { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .mast, .tabbar, .foot, .step-actions, .play-dock { display: none !important; }
  body { background: #fff; }
}

/* tips and guide requests on the live site: the "email it to Coco" step */
.mail-done p { margin: 0 0 .6rem; }
.mail-done .fine { font-weight: 400; color: var(--ink-2); }
.gta-form .gta-msg { margin: .6rem 0 0; font-weight: 700; color: #ffb4a8; }
