/* Barlow and Barlow Condensed, self-hosted (SIL OFL 1.1, see /fonts/OFL.txt). */
/* Barlow and Barlow Condensed, self-hosted (SIL Open Font License 1.1, see /fonts/OFL.txt). */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/barlow-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/barlow-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/barlow-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/barlow-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-condensed-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-condensed-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ==========================================================================
   gta6spots design system. Look taken from the game's menus, rebuilt in CSS:
   condensed caps for things you press, light grotesk for reading, square boxes,
   white = selected, key badges and right-aligned prompts. No game art or fonts.
   Reference page: /styleguide
   ========================================================================== */
:root {
  --bg: #0e0b13;
  --dusk: linear-gradient(170deg, #241a2e 0%, #3b2747 45%, #5a3862 100%);
  --glass: rgba(16, 14, 22, .74);
  --glass-2: rgba(32, 28, 42, .82);
  --panel: rgba(22, 17, 30, .86);
  --edge: rgba(255, 255, 255, .2);
  --edge-2: rgba(255, 255, 255, .5);
  --line: rgba(255, 255, 255, .12);
  --text: #f4f2f7;
  --muted: #aba3b8;
  --ink: #0b0b0e;
  --pink: #ff5fa8;
  --link: #ff9ccb;
  --teal: #45d6b5;
  --violet: #a78bfa;
  --gold: #ffd166;
  --ok: #45d6b5;
  --err: #ff6b6b;
  --ocean: #2c67a4;
  --sel: linear-gradient(90deg, #fafafa 40%, rgba(250, 250, 250, .42));
  --cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --read: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--text); font: 400 16px/1.55 var(--read); background: radial-gradient(130% 70% at 10% -10%, rgba(90, 56, 98, .55), transparent 60%), var(--bg); background-attachment: fixed; }
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .015em; line-height: 1.02; }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin: 0 0 .35em; }
h2 { font-size: 1.6rem; margin: 1.6em 0 .55em; }
h3 { font-size: 1.15rem; margin: .2em 0; }
p { margin: .6em 0; }
strong, b { font-weight: 600; }
main { max-width: 1200px; margin: 0 auto; padding: 0 20px 56px; }
.small { font-size: .86rem; color: var(--muted); }
.narrow { max-width: 720px; }
.pre { white-space: pre-wrap; word-break: break-word; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
/* scroll bars: the game's thin square bar, white thumb on a dim track */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, .08); }
::-webkit-scrollbar-thumb { background: rgba(244, 244, 246, .55); border-radius: 0; }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background: #f4f4f6; }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: rgba(244, 244, 246, .55) rgba(255, 255, 255, .08); } }
::selection { background: var(--pink); color: #fff; }

/* crumb: small caps label with a trailing slash, like "COLLECTIBLE CARDS /" */
.crumb, .crumbs { font: 700 .95rem/1.2 var(--cond); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.crumb::after { content: " /"; }
.crumbs { padding-top: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- key badge ---------- */
kbd, .kbd { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 4px; background: #f4f4f6; color: #111; font: 700 .8rem/1 var(--cond); text-transform: uppercase; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); vertical-align: 1px; }

/* ---------- buttons ---------- */
input, select, textarea, button { font: inherit; color: inherit; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; padding: 0 16px; border: 1px solid #f4f4f6; border-radius: 2px; background: #f4f4f6; color: var(--ink); font: 700 1rem/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
button:hover, .btn:hover { background: var(--sel), #fff; color: var(--ink); }
button:active, .btn:active { transform: translateY(1px); }
button kbd, .btn kbd { background: #111; color: #fff; box-shadow: none; }
button.secondary, .btn.ghost { background: var(--glass); color: var(--text); border-color: var(--edge); }
button.secondary:hover, .btn.ghost:hover { background: var(--glass-2); color: #fff; border-color: var(--edge-2); }
button.secondary kbd, .btn.ghost kbd { background: #f4f4f6; color: #111; }
button.danger { background: transparent; color: var(--err); border-color: var(--err); }
button.danger:hover { background: var(--err); color: var(--ink); }
.link-button, button.link-button { display: inline; min-height: 0; padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-transform: none; letter-spacing: 0; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { background: none; color: #fff; }
/* prompt: label first, then the key, like the in-game button prompts */
.prompt, button.prompt { display: inline-flex; align-items: center; gap: 8px; min-height: 0; padding: 4px 0; border: 0; background: none; color: var(--text); font: 700 1.05rem/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; text-shadow: 0 1px 6px rgba(0, 0, 0, .85); }
.prompt:hover, button.prompt:hover { background: none; color: #fff; }
.prompt:hover kbd { background: var(--pink); color: #fff; }
button.prompt kbd { background: #f4f4f6; color: #111; }
.prompt[aria-pressed="false"] { opacity: .55; text-decoration: line-through; text-decoration-thickness: 2px; }
.prompt.off { opacity: .4; text-decoration: line-through; text-decoration-thickness: 2px; pointer-events: none; }

/* ---------- text fields ---------- */
input[type=text], input[type=url], input[type=search], input[type=password], input[type=number], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--edge); border-radius: 2px; background: var(--glass); color: var(--text); font: 400 1rem/1.4 var(--read); transition: background .15s, color .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); font-weight: 300; }
input[type=text]:focus, input[type=url]:focus, input[type=search]:focus, input[type=password]:focus, input[type=number]:focus, textarea:focus, select:focus {
  outline: 0; border-color: #fff; background: linear-gradient(90deg, #fafafa 30%, #c4c1ca); color: var(--ink);
}
input:focus::placeholder, textarea:focus::placeholder { color: #55525c; }
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 18px top 50%, right 12px top 50%; background-size: 6px 6px; background-repeat: no-repeat; }
select:focus { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%), linear-gradient(90deg, #fafafa 30%, #c4c1ca); background-position: right 18px top 50%, right 12px top 50%, 0 0; background-size: 6px 6px, 6px 6px, 100% 100%; }
select option, select optgroup { background: #1b1622; color: var(--text); }
/* search field with an icon and a key badge */
.field { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 12px; border: 1px solid var(--edge); border-radius: 2px; background: var(--glass); transition: background .15s; }
.field input { flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 0; background: none !important; color: var(--text); }
.field input:focus { color: var(--ink); }
.field > .ic { opacity: .75; }
.field:focus-within { background: linear-gradient(90deg, #fafafa 30%, #c4c1ca); border-color: #fff; color: var(--ink); }
.field:focus-within kbd { background: #111; color: #fff; }
/* check box and switch */
input[type=checkbox] { appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border: 2px solid #fff; border-radius: 2px; background: transparent; display: inline-grid; place-items: center; cursor: pointer; }
input[type=checkbox]:checked { background: #fff; }
input[type=checkbox]:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
input[type=checkbox].switch { width: 30px; height: 17px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .28); position: relative; transition: background .15s; }
input[type=checkbox].switch::after { content: ""; position: absolute; top: 2.5px; left: 3px; width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; transform: none; transition: transform .15s; }
input[type=checkbox].switch:checked { background: var(--pink); }
input[type=checkbox].switch:checked::after { transform: translateX(12px); }
input[type=radio] { accent-color: var(--pink); }

/* ---------- menus: rows with the white fade when picked ---------- */
.menu-rows { display: flex; flex-direction: column; }
.menu-rows a, .menu-rows button, .menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 40px; padding: 0 14px; border: 0; border-radius: 0; background: transparent; color: #e4e0ea; font: 400 1.02rem/1.2 var(--read); text-transform: none; letter-spacing: 0; text-align: left; text-decoration: none; }
.menu-rows a:hover, .menu-rows button:hover, .menu-rows .on, .menu-row:hover { background: var(--sel); color: var(--ink); }
.menu-rows small { font: 600 .92rem/1 var(--cond); color: var(--muted); }
.menu-rows a:hover small, .menu-rows .on small { color: #3a3a42; }
.menu-rows .ico { width: 20px; text-align: center; opacity: .85; }
/* settings row: label left, value right (with a switch, ‹ › or a slider) */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 12px; border-bottom: 1px solid var(--line); color: #e4e0ea; cursor: pointer; }
.set-row:hover { background: var(--sel); color: var(--ink); }
.set-row .v { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tab, .tag { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border: 1px solid var(--edge); border-radius: 2px; background: var(--glass); color: var(--text); font: 700 .95rem/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.tab:hover, .tag:hover { border-color: var(--edge-2); color: #fff; }
.tab.on, .tag-on, .tag.tag-on { background: #f4f4f6; border-color: #f4f4f6; color: var(--ink); }
.tab .n, .tag .n { font-weight: 500; opacity: .65; }
.tab[class*="t-"]::before, .tag[class*="t-"]::before { width: 1em; height: 1em; background-color: var(--c); }
.tab.on[class*="t-"]::before { background-color: currentColor; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tags .tag { min-height: 24px; padding: 0 8px; font-size: .82rem; }
/* A search to try: the words as typed, not a tag name. */
.tag.q { font: 500 .9rem/1 var(--read); text-transform: none; letter-spacing: 0; }
.tab-row { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 2px; }


/* ---------- panels, notices, HUD ---------- */
.panel, .card-form, .filters { background: var(--panel); border: 1px solid var(--line); border-radius: 2px; }
.notice { margin: 14px 0; padding: 11px 16px 11px 14px; border-left: 3px solid var(--violet); background: rgba(10, 8, 14, .86); }
.notice.ok { border-left-color: var(--ok); }
.notice.err { border-left-color: var(--err); }
.notice.approx { border-left-color: var(--gold); max-width: 75ch; }
.warn { color: var(--gold); }
.empty { color: var(--muted); }
/* HUD bar: icon circle + thin bar, like health / stamina / stealth */
.hud { display: grid; gap: 7px; }
.hud-bar { display: grid; grid-template-columns: 22px minmax(90px, 170px) 1fr; align-items: center; gap: 10px; color: var(--muted); font: 600 .98rem/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
a.hud-bar:hover { color: #fff; }
.hud-bar .ico { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--c, var(--pink)); font-size: .8rem; }
.hud-bar .bar { height: 7px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4); }
.hud-bar .bar i { display: block; height: 100%; width: 0; background: var(--c, var(--pink)); transition: width .3s; }
.hud-bar b { color: var(--text); font-weight: 700; }
.hud-pink { --c: var(--pink); } .hud-teal { --c: var(--teal); } .hud-violet { --c: var(--violet); }
/* slider: pink fill, grey track, white tick at the value */
.slider { position: relative; display: block; height: 6px; background: rgba(255, 255, 255, .3); }
.slider i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--pink); }
.slider i::after { content: ""; position: absolute; right: -1px; top: -3px; width: 2px; height: 12px; background: #fff; }
/* pickup-style toast */
.toast { position: fixed; z-index: 3000; top: 84px; left: 20px; min-width: 260px; max-width: calc(100vw - 40px); padding: 12px 16px 12px 14px; border-left: 3px solid var(--teal); background: rgba(8, 8, 12, .97); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); transform: translateX(-130%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.toast.show { transform: none; }
.toast .crumb { color: var(--teal); }
.toast b { display: block; margin: 4px 0 2px; font: 700 1.35rem/1 var(--cond); text-transform: uppercase; }
.toast span { color: var(--muted); font-size: .85rem; font-weight: 300; }

/* ---------- top banner and header ---------- */
.top-banner { position: relative; padding: 5px 16px; background: linear-gradient(90deg, #ff5fa8, #ff9a6a); color: var(--ink); text-align: center; font: 700 .92rem/1.3 var(--cond); text-transform: uppercase; letter-spacing: .04em; }
.top-banner a, .top-banner span { color: var(--ink); text-decoration: none; }
.top-banner a:hover { text-decoration: underline; }
.top-banner .ad-label { margin-left: 8px; font-weight: 500; opacity: .7; }
.site-header { position: relative; z-index: 1500; display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 8px 20px; background: linear-gradient(180deg, rgba(0, 0, 0, .94), rgba(0, 0, 0, .78)); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.logo { flex: none; color: var(--text); font: 700 1.4rem/1 var(--cond); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; }
.logo span { color: var(--pink); background: linear-gradient(90deg, #ff5fa8 0%, #ff7a8a 50%, #ff9a6a 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo:hover { color: #fff; }
.site-search { flex: 0 1 300px; margin-left: auto; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a { padding: 6px 9px; color: var(--text); font: 700 1.1rem/1 var(--cond); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; opacity: .92; }
.main-nav > a:hover { opacity: 1; color: #fff; }
.main-nav > a.on { color: var(--pink); opacity: 1; }
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; color: var(--text); font: 700 1.1rem/1 var(--cond); text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { --i: url("/icons/caret-down.svg"); width: .7em; height: .7em; background-color: currentColor; }
.nav-menu[open] summary, .nav-menu summary:hover { color: var(--pink); }
.nav-panel { position: absolute; top: calc(100% + 10px); left: 0; z-index: 1600; width: 300px; padding: 10px 0 6px; background: rgba(12, 10, 16, .96); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, .6); }
.nav-panel .crumb { display: block; padding: 2px 14px 8px; }
.nav-panel .sep { height: 1px; margin: 6px 0; background: var(--line); }
.nav-panel .nav-button { justify-content: space-between; }
.nav-panel .nav-button::after { content: "Off"; font: 600 .95rem/1 var(--cond); text-transform: uppercase; color: var(--muted); }
.nav-panel .nav-button[aria-pressed="true"]::after { content: "On"; color: var(--pink); }
.nav-panel .nav-button:hover::after { color: #3a3a42; }
.admin-link { color: var(--gold) !important; }

/* search suggestions and recent searches under the header's search field (site.js) */
.site-search { position: relative; }
.suggest { position: absolute; top: calc(100% + 6px); right: 0; z-index: 1600; width: max(100%, 340px); max-height: 440px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: none; padding: 6px 0; background: rgba(12, 10, 16, .96); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, .6); color: #e4e0ea; cursor: default; }
.suggest[hidden] { display: none; }
.suggest.sg-static { width: 340px; max-width: 100%; }
.sg-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 14px 6px; }
.sg-head[hidden] { display: none; }
.sg-head .crumb { padding: 0; }
.sg-clear { min-height: 0; padding: 4px 0; border: 0; background: none; color: var(--muted); font: 600 .92rem/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.sg-clear:hover { color: var(--pink); }
.sg-clear[hidden] { display: none; }
.sg-item { display: flex; align-items: stretch; }
.suggest .menu-rows a { flex: 1; min-width: 0; justify-content: flex-start; min-height: 44px; }
.sg-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .menu-rows a > .ic, .suggest .menu-rows a > .ti { flex: none; width: 18px; color: var(--muted); }
.suggest .menu-rows a > .ti::before { margin: 0; }
.suggest .menu-rows a:hover > .ic, .suggest .menu-rows a.on > .ic { color: var(--ink); }
.suggest .menu-rows .sg-del { flex: none; width: 44px; padding: 0; justify-content: center; color: var(--muted); }
.suggest .menu-rows .sg-del .ic { width: 14px; height: 14px; }
.send-btn { flex: none; }
.phone-only { display: none !important; }

/* ---------- hero and lists ---------- */
.hero { padding: 26px 0 8px; }
.hero p { max-width: 72ch; margin: 0; color: #d9d4e0; font-weight: 300; font-size: 1.05rem; }
.hero .notice { margin-top: 14px; }
.place-list ul { columns: 3 230px; column-gap: 24px; padding: 0; list-style: none; }
.place-list li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); }
.inline-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.inline-list a { display: inline-flex; min-height: 30px; align-items: center; padding: 0 11px; border: 1px solid var(--edge); background: var(--glass); color: var(--text); font: 700 .95rem/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.inline-list a:hover { background: var(--sel); color: var(--ink); }

/* ---------- poster: CSS stand-in for a picture (the site never stores thumbnails) ---------- */
.poster { position: relative; overflow: hidden; background: radial-gradient(120% 80% at 50% 115%, color-mix(in srgb, var(--c) 70%, transparent), transparent 62%), linear-gradient(180deg, #2a1846 0%, #5b2a6e 48%, color-mix(in srgb, var(--c) 55%, #ff8a5c) 100%); }
.poster::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 4px); }
.poster::before { position: absolute; left: 50%; top: 50%; width: 2.4rem; height: 2.4rem; transform: translate(-50%, -50%); background-color: rgba(255, 255, 255, .9); }

/* ---------- spot tiles (the video wall on the map pages) ---------- */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.spot-tile { position: relative; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .12s; }
.spot-tile > a { display: block; color: var(--text); text-decoration: none; }
.spot-tile .poster { aspect-ratio: 9 / 14; }
.poster.has-cover { background: #2a1846; }
.poster.has-cover::before, .poster.has-cover::after { display: none; }
.poster.has-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot-tile .meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 8px 10px 9px; background: rgba(8, 8, 12, .84); border-top: 1px solid rgba(255, 255, 255, .1); transition: background .12s, color .12s; }
.spot-tile .meta b { display: block; font: 700 1.02rem/1.05 var(--cond); text-transform: uppercase; letter-spacing: .02em; }
.spot-tile .meta span { display: block; margin-top: 2px; color: var(--muted); font-size: .76rem; font-weight: 300; }
.spot-tile .meta span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--c); vertical-align: 1px; }
.spot-tile:hover, .spot-tile.hl { outline-color: #fff; }
.spot-tile:hover .meta, .spot-tile.hl .meta { background: var(--sel); color: var(--ink); }
.spot-tile:hover .meta span, .spot-tile.hl .meta span { color: #3a3a42; }
.spot-tile .count { position: absolute; z-index: 3; top: 8px; right: 8px; padding: 2px 6px; background: rgba(0, 0, 0, .6); font: 600 .8rem/1.3 var(--cond); text-transform: uppercase; letter-spacing: .04em; }
.spot-tile .approx { position: absolute; z-index: 3; top: 8px; left: 8px; padding: 2px 6px; border: 1px dashed var(--gold); background: rgba(0, 0, 0, .55); color: var(--gold); font: 700 .74rem/1.2 var(--cond); text-transform: uppercase; letter-spacing: .05em; }
.spot-tile button.found-toggle.mini { position: absolute; z-index: 3; top: 38px; right: 8px; width: 26px; height: 26px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 2px #fff; color: transparent; font-size: 0; }
.spot-tile button.found-toggle.mini[aria-pressed="true"] { background: var(--teal); box-shadow: none; }
.spot-tile button.found-toggle.mini[aria-pressed="true"]::after { --i: url("/icons/check.svg"); position: absolute; inset: 0; margin: auto; width: 13px; height: 13px; background-color: #04221b; }
.spot-tile.is-found .poster { opacity: .55; }

/* ---------- video cards (the real embeds) ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
/* wide pages (/guides): no 1200px column, so the cover grid fills the window, with bigger cards */
main.wide, main.wide + .site-footer { max-width: none; }
main.wide + .site-footer p { max-width: 110ch; }
.page-head { max-width: 1160px; }
.guides-grid { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.video-card { display: flex; flex-direction: column; overflow: hidden; background: rgba(14, 11, 19, .88); border: 1px solid var(--line); border-radius: 2px; }
.video-meta { padding: 10px 12px 12px; }
.video-meta h3 { font-size: 1.12rem; }
.video-meta p { margin: 5px 0 0; }
.place-link { font: 700 .95rem/1.2 var(--cond); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.embed { position: relative; width: 100%; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-wide { aspect-ratio: 16 / 9; }
.embed-vertical { aspect-ratio: 9 / 16; max-height: 640px; }
.embed-instagram { aspect-ratio: 9 / 17; }
.embed-threads { aspect-ratio: 4 / 5; }
.embed-click { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 4px), linear-gradient(180deg, #2a1846 0%, #5b2a6e 50%, #c2577f 100%); }
.embed-click.embed-vertical { max-height: 420px; }
.embed-load { max-width: 92%; white-space: normal; line-height: 1.1; padding: 8px 14px; }
.embed-load::before { --i: url("/icons/play.svg"); width: 1em; height: 1em; background-color: currentColor; }
.embed-note { margin: 0; font-size: .78rem; color: rgba(255, 255, 255, .75); }
/* A post cover (our own illustration, public/covers) stands in for the embed; it links to the original. */
.embed.has-cover { display: block; overflow: hidden; background: #2a1846; }
.embed.has-cover.embed-vertical { aspect-ratio: 4 / 5; max-height: none; }
.embed-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.embed-open { max-width: 92%; white-space: normal; line-height: 1.1; padding: 8px 14px; }
.embed-open::after { --i: url("/icons/arrow-right.svg"); width: 1em; height: 1em; background-color: currentColor; }
.video-card.spoiler:not(.revealed) .embed-cover { filter: blur(16px); }
.show-spoilers .video-card.spoiler .embed-cover { filter: none; }
.spoiler-flag { margin: 8px 12px 0; color: var(--gold); font: 700 .85rem/1 var(--cond); text-transform: uppercase; letter-spacing: .05em; }
.video-card.spoiler:not(.revealed) .video-meta h3 { filter: blur(6px); user-select: none; }
.show-spoilers .video-card.spoiler .video-meta h3 { filter: none; user-select: auto; }
.found-by, .found-by strong { color: var(--gold); }
.video-meta h3 a { color: inherit; text-decoration: none; }
.video-meta h3 a:hover { text-decoration: underline; }
.video-card.spoiler:not(.revealed) .spoil-text { filter: blur(6px); user-select: none; }
.show-spoilers .video-card.spoiler .spoil-text { filter: none; user-select: auto; }
.revealed .spoiler-reveal, .show-spoilers .spoiler-reveal { display: none; }

/* ---------- a guide's own page (/guide/:id/:slug): the post beside what it shows and its key points ---------- */
.guide-page { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; margin-top: 14px; padding: 18px; }
.guide-media { align-self: start; }
.guide-body h1 { margin: 0 0 8px; }
.guide-body h2 { margin: 24px 0 10px; }
.guide-body > p { max-width: 72ch; }
.guide-body .spoiler-flag { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.key-points { display: flex; flex-direction: column; gap: 6px; max-width: 80ch; margin: 0; padding: 0; list-style: none; }
.key-points li { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 12px; background: rgba(255, 255, 255, .04); border-left: 2px solid var(--line); }
.key-points.untimed li { grid-template-columns: minmax(0, 1fr); }
.kp-time { font: 700 1rem/1 var(--cond); font-variant-numeric: tabular-nums; color: var(--teal); text-decoration: none; }
a.kp-time:hover { text-decoration: underline; }
/* A long video shown at one of its map spots: the moment it opens at and what is here. */
.spot-moment { display: flex; gap: 10px; align-items: baseline; margin: 0 0 6px; padding: 8px 10px; background: rgba(255, 255, 255, .04); border-left: 2px solid var(--teal); }
.video-spots a { font-weight: 600; }
.spot-rows .spot-row { padding: 10px 0; border-top: 1px solid var(--line); }
.spot-rows .spot-row:first-of-type { border-top: 0; }

/* ---------- forms ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 18px 0; padding: 14px; }
.filters label { display: flex; flex: 1 1 170px; flex-direction: column; gap: 6px; }
.filters .clear { align-self: center; }
.filters label, .card-form label, .label-text { font: 700 .95rem/1.2 var(--cond); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.card-form { display: flex; flex-direction: column; gap: 14px; margin: 18px 0; padding: 18px; }
.card-form h2 { margin: 0; }
.card-form label { display: flex; flex-direction: column; gap: 6px; }
.card-form label.check, label.check { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; color: var(--text); font: 400 1rem/1.3 var(--read); text-transform: none; letter-spacing: 0; }
.card-form fieldset { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 2px; }
.card-form legend { padding: 0 6px; font: 700 .95rem/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.card-form > button[type=submit], .card-form .actions button { align-self: flex-start; }
.tag-group { display: flex; flex-direction: column; gap: 4px; }
.tag-group .small { margin: 0; }
.tag-boxes { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.coords { display: flex; gap: 8px; }
.coords label { flex: 1; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pin-field { display: flex; flex-direction: column; gap: 8px; }
.pin-status { margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; }

/* ---------- numbers and tables ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 18px 0; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--pink); color: var(--muted); font: 600 .95rem/1.2 var(--cond); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.stat-n { color: var(--text); font: 700 2.4rem/1 var(--cond); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.stat-link:hover { background: var(--sel); color: var(--ink); }
.stat-link:hover .stat-n { color: var(--ink); }
.chart { width: 100%; height: auto; }
.chart rect { fill: var(--pink); }
.chart text { fill: var(--muted); font: 500 12px var(--cond); }
.stats-table, .admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.stats-table th, .admin-table th { padding: 8px 10px; border-bottom: 1px solid var(--edge); color: var(--muted); font: 700 .92rem/1.2 var(--cond); text-transform: uppercase; letter-spacing: .04em; text-align: left; }
.stats-table td, .admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.stats-table tbody tr:hover td { background: rgba(255, 255, 255, .05); }
.admin-table { display: block; overflow-x: auto; }
.found-of, .found-count { font-weight: 700; font-family: var(--cond); font-size: 1.1em; letter-spacing: .02em; }
.slot-list { padding-left: 1.1em; }
.slot-list li { margin-bottom: 6px; }
.prose p { color: #e2dde8; }
.search-tips h2 { margin-top: 1.6em; }
.synonyms { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 18px; padding-left: 1.1em; color: #e2dde8; }
.finders { padding-left: 1.4em; }
.finders li { margin-bottom: 4px; }

/* ---------- missions, cheats, trophies ---------- */
.done-bar { font: 700 1.1rem/1.2 var(--cond); text-transform: uppercase; letter-spacing: .04em; }
.item-group h2 { margin-top: 1.4em; }
.item-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.item-list li { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.item-list li:hover { background: rgba(255, 255, 255, .04); }
.item-list li.is-done .item-name { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--teal); }
.item-num { margin-right: 4px; color: var(--muted); font: 600 1rem/1 var(--cond); font-variant-numeric: tabular-nums; }
.item-name { color: var(--text); font-weight: 500; text-decoration: none; }
a.item-name:hover { color: var(--link); }
.item-desc { margin-top: 3px; }
button.done-toggle, button.found-toggle { background: var(--glass); color: var(--text); border-color: var(--edge); margin-right: 8px; }
button.done-toggle:hover, button.found-toggle:hover { background: var(--glass-2); color: #fff; }
button.done-toggle[aria-pressed="true"], button.found-toggle[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #04221b; }
button.done-toggle:not(.box)[aria-pressed="true"]::before, button.found-toggle[aria-pressed="true"]:not(.spot-tile .mini)::before { --i: url("/icons/check.svg"); width: 1em; height: 1em; background-color: currentColor; }
button.done-toggle.mini, button.found-toggle.mini { min-height: 24px; padding: 0 8px; font-size: .8rem; }
.mission-list li.spoil:not(.unlocked) .item-name { filter: blur(6px); user-select: none; }
.show-spoilers .mission-list li.spoil .item-name { filter: none; user-select: auto; }
/* a mission's videos open under its row */
.item-videos { margin-top: 6px; }
.item-videos summary { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font: 700 .85rem/1.6 var(--cond); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; list-style: none; }
.item-videos summary::-webkit-details-marker { display: none; }
.item-videos[open] summary { color: #fff; }
.item-videos .video-grid { margin-top: 10px; }
.mission-list li:target { background: rgba(255, 95, 168, .12); }
li.is-found > a { color: var(--muted); text-decoration: line-through; }
.cheat-input { margin: 10px 0 14px; }
.grade { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 2px; color: var(--ink); font: 700 .78rem/1.4 var(--cond); text-transform: uppercase; letter-spacing: .05em; }
.grade-platinum { background: #d9e4ef; } .grade-gold { background: #f2c14e; } .grade-silver { background: #b8bcc6; } .grade-bronze { background: #c98a55; }
.unverified { margin-left: 4px; color: var(--gold); font: 600 .78rem/1 var(--cond); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- admin review ---------- */
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.review-grid .embed-vertical { max-width: 360px; }
.caption { max-height: 200px; overflow: auto; padding: 8px 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.reject-form { margin-top: 16px; }

/* ---------- footer ---------- */
.site-footer { max-width: 1200px; margin: 0 auto; padding: 22px 20px 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.site-footer p { margin: 6px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: #fff; }

/* ---------- maps (Leaflet) ---------- */
.map-wrap { position: relative; overflow: hidden; border: 1px solid var(--line); }
.map { height: min(70vh, 620px); background: var(--ocean); }
.small-map .map { height: 360px; }
.map.pick { cursor: crosshair; }
.leaflet-container { background: var(--ocean); font: 400 14px/1.4 var(--read); }
.leaflet-popup-content-wrapper { border-radius: 2px; background: rgba(12, 10, 16, .96); color: var(--text); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.leaflet-popup-tip { background: rgba(12, 10, 16, .96); }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-popup-content strong, .leaflet-popup-content > div > a:first-child { font: 700 1.1rem/1.1 var(--cond); text-transform: uppercase; letter-spacing: .02em; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.leaflet-control-attribution { background: rgba(0, 0, 0, .65) !important; color: var(--muted); font-size: 10px; }
.leaflet-control-attribution a { color: #d9d4e0; }
.leaflet-bar { border: 0 !important; border-radius: 0 !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .35) !important; }
.leaflet-bar a, .leaflet-bar a:hover { width: 32px; height: 32px; border-radius: 0 !important; border-color: rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .66); color: #fff; font: 700 18px/30px var(--cond); }
.leaflet-bar a:hover { background: #f4f4f6; color: var(--ink); }
.map-toggle { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(0, 0, 0, .66); color: #fff; font: 700 .92rem/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
/* picture pin: a little poster on a stalk, with the video count */
.pic-pin { display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%); }
.pic-pin .ph { position: relative; width: 36px; height: 48px; border: 2px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .6); }
.pic-pin .ph .poster { position: absolute; inset: 0; }
.pic-pin .ph .poster::before { width: 1.05rem; height: 1.05rem; }
.pic-pin .tail { width: 2px; height: 8px; background: #fff; }
.pic-pin .tail::after { content: ""; display: block; width: 6px; height: 6px; margin: 6px 0 0 -2px; border-radius: 50%; background: #fff; }
.pic-pin .cnt { position: absolute; top: -9px; right: -11px; min-width: 20px; height: 18px; padding: 0 4px; display: grid; place-items: center; background: #fff; color: var(--ink); font: 700 .8rem/1 var(--cond); }
.pic-pin.approx .ph { border-style: dashed; border-color: var(--gold); }
.pic-pin.approx .tail, .pic-pin.approx .tail::after { background: var(--gold); }
.pic-pin.found { opacity: .45; }
.pic-pin.found .cnt { background: var(--teal); }
.pic-pin.hl .ph { transform: scale(1.22); border-color: var(--pink); }
.pic-pin.hl .cnt { background: var(--pink); color: #fff; }
.pic-pin.new .ph { border-color: var(--pink); }
.pic-pin.new .ph .poster { --i: url("/icons/plus.svg"); }
.map-cluster { display: grid; place-items: center; width: 32px; height: 32px; transform: translate(-50%, -50%) rotate(45deg); background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25), 0 6px 16px rgba(0, 0, 0, .5); cursor: pointer; }
.map-cluster b { transform: rotate(-45deg); color: var(--ink); font: 700 1rem/1 var(--cond); }
.leaflet-marker-icon.g6-icon { width: 0 !important; height: 0 !important; overflow: visible; background: none; border: 0; }

/* ---------- map pages: split list + map (body.app) ---------- */
body.app { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--bg); }
html:has(> body.app) { overscroll-behavior: none; }
body.app > main { flex: 1; min-height: 0; width: 100%; max-width: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(440px, 44%) 1fr; }
.list-panel { min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: none; padding: 20px 22px 0; background: var(--dusk); background-attachment: local; }
.list-panel .hero { padding: 0 0 14px; }
.list-panel h1 .line, .list-panel .as-h1 .line, .list-panel .hero p .line { display: block; }
.list-panel h1 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
.list-panel .hero p { font-size: .98rem; }
.list-panel h2 { margin: 26px 0 10px; font-size: 1.5rem; }
.list-panel .tab-row { margin-top: 16px; }
.list-panel .video-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.list-panel .site-footer { margin: 28px -22px 0; padding: 18px 22px 30px; background: rgba(0, 0, 0, .35); }
/* list panel tabs, the pause-menu row: Spots, Missions, Collectibles, Trophies, Cheats, Progress: one row that scrolls sideways when it doesn't fit.
   The line under it is a shadow so the scroll box doesn't clip the current tab's pink bar. */
.panel-tabs { position: relative; display: flex; gap: 10px; margin: -4px 0 16px; box-shadow: inset 0 -1px var(--line); overflow-x: auto; scrollbar-width: none; }
.panel-tabs::-webkit-scrollbar { display: none; }
.ptab { flex: none; position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 0 10px; color: var(--muted); font: 700 1.12rem/1 var(--cond); text-transform: uppercase; letter-spacing: .01em; text-decoration: none; }
.ptab small { font: 600 .8rem/1 var(--cond); opacity: .8; }
.ptab:hover { color: #fff; }
.ptab.on { color: #fff; }
.ptab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--pink); }
/* next-mission objective */
.objective { display: grid; gap: 8px; margin: 0 0 18px; padding: 12px 14px; background: rgba(8, 6, 12, .45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.objective .crumb { color: var(--pink); }
.obj-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.obj-name { color: var(--text); font: 700 1.35rem/1.05 var(--cond); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; }
.obj-name:hover { color: var(--link); }
.objective .done-toggle { margin: 0; flex: none; }
.objective .hud-bar { grid-template-columns: 22px minmax(90px, 150px) 1fr; }
.as-h1, .list-panel .as-h1 { margin: 0 0 .35em; font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
/* checklists (missions, trophies, cheats): chapters that fold (.fold below), rows with the tick box on the right */
.done-scope { margin-top: 10px; }
.done-scope .grade { margin: 0; font-size: .9rem; }
/* trophies and cheats: rows that open in place */
.l-rows { margin: 0 0 12px; padding: 0; list-style: none; }
.l-row { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 14px; padding: 10px 14px 10px 6px; transition: background-color .15s; }
.l-row:hover { background: rgba(255, 255, 255, .04); }
.l-item { min-width: 0; }
.l-item > summary { display: grid; gap: 5px; cursor: pointer; list-style: none; }
.l-item > summary::-webkit-details-marker { display: none; }
.l-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.l-caret { width: 12px; height: 12px; color: var(--muted); transition: transform .2s; }
.l-item:not([open]) .l-caret { transform: rotate(-90deg); }
:is(.m-row, .l-row) .item-name { color: var(--text); font: 500 1.02rem/1.35 var(--read); }
.l-item > summary:hover .item-name, .l-item[open] .item-name { color: #fff; }
:is(.m-row, .l-row).is-done .item-name { color: var(--muted); }
.l-desc { padding-left: 20px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.l-head + .pad, .l-head + .l-code, .l-head + .l-noinput { margin-left: 20px; }
.l-vids { display: inline-flex; align-items: center; gap: 4px; color: var(--pink); font: 700 .8rem/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; }
.l-noinput { color: var(--muted); font: 600 .8rem/1.2 var(--cond); text-transform: uppercase; letter-spacing: .05em; }
.l-unknown .item-name { color: #b9b2c4; }
.l-body { padding: 10px 0 4px 20px; }
.l-body > p.small { margin: 0 0 6px; }
.l-links a { display: inline-flex; align-items: center; gap: 5px; }
.done-scope.hide-done :is(.m-row, .l-row).is-done, .done-scope.hide-done .m-chapter.complete { display: none; }
/* cheat inputs as d-pad prompts: one key per press, the arrow turned to point the way */
.pad { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.pad-k { width: 22px; height: 22px; min-width: 0; padding: 0; }
.pad-k .ic { width: 12px; height: 12px; }
.pad-up .ic { transform: rotate(-90deg); }
.pad-down .ic { transform: rotate(90deg); }
.pad-left .ic { transform: rotate(180deg); }
.pad.big { gap: 5px; }
.pad.big .pad-k { width: 36px; height: 36px; border-radius: 5px; }
.pad.big .pad-k .ic { width: 18px; height: 18px; }
.l-code { color: var(--text); font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .l-caret { transition: none; } }
/* fold: a row that folds open, with a name, a count and a progress bar (checklist chapters, collectible types).
   The bar is teal unless the row sets --bar. */
.fold { border-top: 1px solid var(--line); }
.fold > summary { display: grid; grid-template-columns: 1fr auto 72px 14px; align-items: center; gap: 12px; padding: 14px 4px; cursor: pointer; list-style: none; color: var(--text); font: 700 1.1rem/1.15 var(--cond); text-transform: uppercase; letter-spacing: .03em; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { --i: url("/icons/caret-down.svg"); width: 14px; height: 14px; background-color: var(--muted); transition: transform .2s; }
.fold:not([open]) > summary::after { transform: rotate(-90deg); }
.fold > summary:hover .fold-name { color: #fff; }
.fold-count { color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.fold-bar { height: 5px; background: rgba(255, 255, 255, .14); }
.fold-bar i { display: block; height: 100%; width: 0; background: var(--bar, var(--teal)); transition: width .3s; }
@media (prefers-reduced-motion: reduce) { .fold-bar i, .fold > summary::after { transition: none; } }
.m-chapter.complete .fold-name { color: var(--muted); }
.m-chapter.complete .fold-count { color: var(--teal); }
/* collectibles tab: a row per type that folds open (one at a time) to its spots; the map follows */
.collect-list { margin-top: 4px; border-bottom: 1px solid var(--line); }
.c-type { --bar: var(--c); }
.c-type[open] > summary .fold-name { color: #fff; }
.fold-name small { margin-left: 4px; color: var(--muted); font: 500 .88rem/1 var(--cond); letter-spacing: .03em; }
.c-none { font-size: .85rem; opacity: .75; }
.c-none + .fold-bar { visibility: hidden; }
.c-body { padding: 0 4px 16px; }
.c-body > p.small { margin: 0 0 10px; }
.c-spots { display: grid; gap: 4px; margin: 0 0 10px; padding: 0; list-style: none; }
.c-spots li { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; padding: 8px 10px; border-left: 3px solid var(--c); background: rgba(0, 0, 0, .2); }
.c-spots li > a { color: var(--text); font-weight: 600; text-decoration: none; }
.c-spots li > a:hover { color: var(--link); }
.c-spots li > .small { grid-column: 1; }
.c-spots li > .found-toggle { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.c-spots li.hl { background: rgba(255, 255, 255, .08); }
.c-more { display: inline-flex; align-items: center; gap: 6px; }
/* mission rows: a story path, numbered, the next one marked */
.m-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.m-tools label.check { gap: 8px; font: 500 .86rem/1 var(--read); text-transform: none; letter-spacing: 0; color: #d9d4e0; }
.m-row { position: relative; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 14px; padding: 10px 14px; transition: background-color .15s; }
.m-row::before { content: ""; position: absolute; left: 26px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.m-row:first-child::before { top: 50%; }
.m-row:last-child::before { bottom: 50%; }
/* with its videos open, the marker and tick stay level with the name */
.m-row:has(.item-videos[open]) { align-items: start; }
.m-row:first-child:has(.item-videos[open])::before { top: 23px; }
.m-row:last-child:has(.item-videos[open])::before { bottom: calc(100% - 23px); }
.m-row.is-done::before { background: rgba(69, 214, 181, .55); }
.m-row:hover { background: rgba(255, 255, 255, .04); }
.m-dot { position: relative; z-index: 1; width: 26px; height: 26px; display: grid; place-items: center; background: #2a1f35; border: 2px solid var(--edge); color: var(--muted); font: 700 .82rem/1 var(--cond); font-variant-numeric: tabular-nums; }
/* done: the marker keeps its grey number; the tick on the right carries the check */
.m-row.spoil:not(.unlocked) .m-dot b { display: none; }
.m-row.spoil:not(.unlocked) .m-dot::after { --i: url("/icons/lock.svg"); width: 12px; height: 12px; background-color: var(--muted); }
.show-spoilers .m-row.spoil:not(.unlocked) .m-dot b { display: inline; }
.show-spoilers .m-row.spoil:not(.unlocked) .m-dot::after { display: none; }
.m-body { min-width: 0; }
.m-row.spoil:not(.unlocked) .item-name { color: var(--muted); }
.m-next { display: none; color: var(--pink); font: 700 .78rem/1.2 var(--cond); text-transform: uppercase; letter-spacing: .08em; }
.m-row.is-next { background: rgba(255, 95, 168, .1); }
.m-row.is-next .m-next { display: block; }
.m-row.is-next .item-name { color: #fff; font: 700 1.25rem/1.15 var(--cond); text-transform: uppercase; letter-spacing: .02em; }
.m-row.is-next .m-dot { border-color: var(--pink); color: #fff; animation: m-blip 1.8s ease-out infinite; }
@keyframes m-blip { 0% { box-shadow: 0 0 0 0 rgba(255, 95, 168, .55); } 100% { box-shadow: 0 0 0 10px rgba(255, 95, 168, 0); } }
.m-checked { color: var(--teal); font: 600 .78rem/1 var(--cond); text-transform: uppercase; letter-spacing: .05em; }
:is(.m-row, .l-row) button.done-toggle.box { width: 30px; height: 30px; min-height: 30px; margin: 0; padding: 0; display: grid; place-items: center; background: transparent; border: 2px solid var(--edge-2); border-radius: 0; font-size: 0; }
:is(.m-row, .l-row) button.done-toggle.box:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
:is(.m-row, .l-row) button.done-toggle.box[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); }
/* the hidden label is still a flex/grid item with the button's gap, so pin the check to the exact centre */
:is(.m-row, .l-row) button.done-toggle.box { position: relative; gap: 0; }
.spot-tile button.found-toggle.mini { gap: 0; }
:is(.m-row, .l-row) button.done-toggle.box[aria-pressed="true"]::before { --i: url("/icons/check.svg"); position: absolute; inset: 0; margin: auto; width: 17px; height: 17px; background-color: #04221b; }
:is(.m-row, .l-row) button.done-toggle.box.pop { animation: m-pop .35s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes m-pop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .m-row.is-next .m-dot, :is(.m-row, .l-row) button.done-toggle.box.pop { animation: none; } }
.list-panel:has(.spot-view:not([hidden])) .panel-tabs { display: none; }

/* a spot opened inside the list panel */
.spot-bar { position: sticky; top: -20px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -20px -22px 14px; padding: 12px 22px; background: rgba(30, 22, 40, .78); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.spot-bar .prompt { font-size: 1rem; text-shadow: none; }
.spot-detail h1 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); outline: 0; }
.spot-detail h1 .kicker { display: block; margin-bottom: 4px; color: var(--muted); font-size: .95rem; letter-spacing: .05em; }
.spot-detail h1 .kicker.inline { display: inline; margin: 0; font-size: inherit; letter-spacing: inherit; }
.spot-acts { display: flex; align-items: center; gap: 12px; }
.spot-acts .found-toggle { margin: 0; }
.spot-detail .video-grid { margin-top: 14px; }
.list-panel.is-loading { cursor: progress; }
body.app:has(.spot-view:not([hidden])) .spot-info { display: none; }
.list-panel.is-loading .list-view, .list-panel.is-loading .spot-view { opacity: .6; transition: opacity .15s; }
/* search as you type (panel.js): the results replace the Spots list until the field is cleared */
.list-view.searching > :not(.search-live) { display: none; }
.search-live .title-row:first-child { margin-top: 4px; }
.search-live .video-grid { margin-top: 8px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 24px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.title-row h2 { margin: 0; }
.title-row label.check { gap: 8px; font-size: .86rem; color: #d9d4e0; }
.title-row small { color: var(--muted); font: 500 1rem/1 var(--cond); text-transform: uppercase; letter-spacing: .03em; }
.set-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 0 0 12px; }
.map-pane { position: relative; min-height: 0; overflow: hidden; }
.map-pane .map { position: absolute; inset: 0; height: auto; }
.map-rail { position: absolute; z-index: 800; top: 14px; left: 14px; display: grid; gap: 2px; padding: 4px; background: rgba(0, 0, 0, .62); }
.map-rail a { position: relative; width: 40px; height: 40px; display: grid; place-items: center; color: #fff; font-size: 1.05rem; text-decoration: none; }
.map-rail a::before { width: 1.15rem; height: 1.15rem; background-color: currentColor; }
.map-rail a:hover { background: rgba(255, 255, 255, .14); }
.map-rail a.on { background: rgba(255, 255, 255, .18); }
.map-rail a.on::after { content: ""; position: absolute; left: -4px; top: 4px; bottom: 4px; width: 3px; background: var(--pink); }
.map-rail .tip { position: absolute; left: 50px; top: 50%; transform: translateY(-50%); padding: 5px 9px; background: #f4f4f6; color: var(--ink); font: 700 .9rem/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; }
.map-rail a:hover .tip, .map-rail a:focus-visible .tip { opacity: 1; }
.map-where { position: absolute; z-index: 1100; top: 14px; right: 14px; }
.map-where summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border: 1px solid var(--edge); background: rgba(0, 0, 0, .66); font: 700 1rem/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.map-where summary::-webkit-details-marker { display: none; }
.map-where .nav-panel { width: 280px; max-height: calc(100dvh - 230px); overflow-y: auto; overscroll-behavior: none; }
.map-prompts { position: absolute; z-index: 800; right: 16px; bottom: 34px; display: grid; justify-items: end; gap: 8px; }
.map-pane .leaflet-top.leaflet-right { top: 56px; }
.spot-info { position: absolute; z-index: 820; top: 14px; left: 14px; width: 280px; padding: 12px 14px 14px; background: rgba(28, 20, 36, .93); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); --ay: 50%; }
/* callout pointer toward the picked pin (map.js sets the side and --ay) */
.spot-info::before { content: ""; position: absolute; top: var(--ay); width: 0; height: 0; margin-top: -9px; border: 9px solid transparent; }
.spot-info.side-right::before { left: -18px; border-right-color: rgba(28, 20, 36, .85); }
.spot-info.side-left::before { right: -18px; border-left-color: rgba(28, 20, 36, .85); }
.spot-info.off-screen { visibility: hidden; }
.spot-info h4 { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .18); font-size: 1.3rem; }
.spot-info h4 a { color: var(--text); text-decoration: none; }
.spot-info h4 a:hover { color: var(--link); }
.spot-info p { margin: 0 0 10px; color: #e2dce8; font-size: .9rem; font-weight: 300; }
.spot-info .ibar { display: flex; align-items: center; gap: 10px; color: #cfc8d8; font-size: .85rem; }
.spot-info .ibar .slider { flex: 1; }
.spot-info .ibar b { min-width: 18px; text-align: right; font-weight: 500; color: #fff; }
.spot-info .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.spot-info .acts .btn, .spot-info .acts button { min-height: 32px; padding: 0 12px; font-size: .92rem; }
.spot-info button.found-toggle { margin: 0; }
/* minimap: the rounded radar from the in-game HUD */
.radar { position: absolute; z-index: 800; left: 16px; bottom: 30px; width: 250px; }
.radar .frame { position: relative; height: 160px; overflow: hidden; border-radius: 14px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .55), 0 0 0 4px rgba(255, 255, 255, .18), 0 10px 30px rgba(0, 0, 0, .5); cursor: pointer; }
.radar .mini { position: absolute; inset: 0; background: var(--ocean); }
.radar .frame::after { content: ""; position: absolute; inset: 0; z-index: 500; border-radius: 14px; box-shadow: inset 0 0 18px rgba(0, 0, 0, .55); pointer-events: none; }
.radar .north { position: absolute; z-index: 600; top: 5px; left: 50%; width: 18px; height: 18px; display: grid; place-items: center; transform: translateX(-50%); border-radius: 50%; background: rgba(0, 0, 0, .6); font: 700 .72rem/1 var(--cond); pointer-events: none; }
.radar .me { position: absolute; z-index: 600; left: 50%; top: 50%; width: 20px; height: 20px; transform: translate(-50%, -50%); pointer-events: none; filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000) drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); }
.radar .me .ic { display: block; width: 100%; height: 100%; color: #fff; transform: rotate(45deg); }
.radar .area { position: absolute; left: 2px; bottom: calc(100% + 10px); white-space: nowrap; font: 700 1.15rem/1 var(--cond); text-transform: uppercase; letter-spacing: .03em; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.radar .area small { display: block; margin-top: 3px; color: #e6e6ea; font: 500 .85rem/1 var(--cond); letter-spacing: .05em; }
.radar .gps { position: absolute; z-index: 600; left: 8px; bottom: 8px; max-width: calc(100% - 16px); overflow: hidden; padding: 4px 7px; background: rgba(0, 0, 0, .72); font: 700 .8rem/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.radar .gps::before { --i: url("/icons/map-pin.svg"); width: .95em; height: .95em; margin-right: .3em; vertical-align: -.12em; background-color: var(--violet); }
.radar.big { width: min(420px, calc(100% - 330px)); }
.radar.big .frame { height: 300px; }
.blip { width: 9px; height: 9px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px #fff, 0 1px 3px rgba(0, 0, 0, .6); }
.blip.way { width: 13px; height: 13px; transform: translate(-50%, -50%) rotate(45deg); border-radius: 2px; background: var(--violet); }

/* frosted glass: dark boxes over the map blur what's behind them, like the game's HUD panels */
.map-rail, .map-where summary, .leaflet-bar, .map-toggle, .spot-info, .nav-panel, .radar .gps, .radar .north, .leaflet-control-attribution, .spot-tile .count, .spot-tile .approx, .spot-tile .meta {
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
}
.map-rail { background: rgba(8, 6, 12, .42); }
.map-where summary { background: rgba(8, 6, 12, .45); }
.leaflet-bar a, .leaflet-bar a:hover { background: rgba(8, 6, 12, .45); }
.map-toggle { background: rgba(8, 6, 12, .45); }
.spot-info { background: rgba(28, 20, 36, .72); }
.nav-panel { background: rgba(12, 10, 16, .82); }
.radar .gps { background: rgba(8, 6, 12, .5); }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .main-nav > a, .nav-menu summary { padding: 6px 6px; font-size: 1rem; }
  .site-search { flex-basis: 220px; }
}
@media (max-width: 1080px) {
  .phone-only { display: flex !important; }
  .nav-menu summary .label-more { display: none; }
}
@media (max-width: 760px) {
  .guide-page { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 12px; }
  .guide-media { max-width: 420px; }
  .key-points li { grid-template-columns: 3.6em minmax(0, 1fr); gap: 10px; }
  main { padding: 0 14px 48px; }
  .site-header { flex-wrap: wrap; gap: 10px; padding: 8px 14px; }
  .site-search { order: 5; flex: 1 1 100%; margin-left: 0; }
  .suggest { width: 100%; }
  .send-btn { margin-left: auto; }
  .nav-menu { position: static; }
  .nav-panel { top: calc(100% + 6px); left: 14px; right: 14px; width: auto; }
  .send-btn .long, .site-search kbd { display: none; }
  .review-grid { grid-template-columns: 1fr; }
  .map { height: 60vh; }
  h1 { font-size: 2rem; }
  .set-rows { grid-template-columns: 1fr; }
  .toast { top: auto; bottom: 20px; }
}
/* phone: map full screen, the list as a sheet over the bottom half */
@media (max-width: 860px) {
  body.app > main { display: block; position: relative; }
  body.app .map-pane { position: absolute; inset: 0; }
  body.app .list-panel { position: absolute; z-index: 900; left: 0; right: 0; bottom: 0; height: 52%; padding: 8px 14px 0; border-top: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 -10px 30px rgba(0, 0, 0, .6); background: #2c2036; }
  body.app .list-panel::before { content: ""; display: block; width: 44px; height: 4px; margin: 0 auto 12px; background: rgba(255, 255, 255, .35); }
  body.app .list-panel .video-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.list-panel .site-footer { margin: 24px -14px 0; padding: 16px 14px 28px; }
  /* an open spot: the bar sits flush on the sheet's top edge (no top padding or handle above it, so nothing shows through when stuck;
     1px over the edge: iOS rounds the sticky bar and the clip apart, leaving a hairline of text above it)
     and bleeds 14px each side, the sheet's side padding (wider let the sheet drag sideways) */
  body.app .list-panel:has(.spot-view:not([hidden])) { padding-top: 0; }
  body.app .list-panel:has(.spot-view:not([hidden]))::before { display: none; }
  body.app .list-panel .spot-bar { top: -1px; margin: -1px -14px 14px; padding-top: 13px; padding-left: 14px; padding-right: 14px; }
  .map-rail, .spot-info, .radar, .map-prompts .wide-only, .map-pane .leaflet-control-zoom { display: none; }
  .map-where { left: 14px; right: auto; }
  .map-where .nav-panel { left: 0; right: auto; max-height: 32dvh; }
  .map-prompts { top: 14px; bottom: auto; right: 14px; display: flex; gap: 12px; }
  .map-prompts .prompt { font-size: .95rem; }
  .map-prompts kbd { display: none; }
  .map-pane .leaflet-control-attribution { font-size: 9px; }
  .map-pane .leaflet-bottom { bottom: 52%; }
  .wall { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .tab-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tab-row::-webkit-scrollbar { display: none; }
}
/* short screens: smaller radar so it clears the rail */
@media (max-height: 820px) and (min-width: 861px) {
  .radar .frame { height: 120px; }
  .radar { width: 210px; }
  .radar.big .frame { height: 220px; }
  .spot-info p { font-size: .85rem; }
  .spot-info { width: 260px; }
}
@media (prefers-reduced-motion: reduce) { .toast, .hud-bar .bar i { transition: none; } }

.topic-nav { margin: 8px 0 0; }

/* ---------- /styleguide only ---------- */
.sg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0; }
.sg-dark { padding: 16px; background: url("/tiles/2/7_7.jpg") center / cover, var(--ocean); }
.sg-pad { padding: 18px; }
.sg-swatch { display: grid; gap: 6px; width: 150px; font-size: .85rem; color: var(--muted); }
.sg-swatch i { height: 56px; border: 1px solid var(--line); }
.sg-pink i { background: var(--pink); } .sg-teal i { background: var(--teal); } .sg-violet i { background: var(--violet); } .sg-gold i { background: var(--gold); } .sg-err i { background: var(--err); }
.sg-dusk i { background: var(--dusk); } .sg-glass i { background: var(--glass); } .sg-ocean i { background: var(--ocean); }
.sg-static { position: static; }
.sg-wall { max-width: 520px; }
.slider i.sg-w60 { width: 60%; } .fold-bar i.sg-w40 { width: 40%; } .fold-bar i.sg-w100 { width: 100%; } .hud-bar .bar i.sg-w40 { width: 40%; } .hud-bar .bar i.sg-w15 { width: 15%; }
.ti::before { margin-right: .35em; width: 1em; height: 1em; vertical-align: -.14em; background-color: var(--c); }

/* Icons: Phosphor (MIT, public/icons, fill weight; check and plus are bold). Each is a CSS mask,
   so it takes the colour of the text or tag: <i class="ic ic-name"></i> in markup, and pseudo-elements
   below that draw var(--i). */
.ic { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -.14em; background-color: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ic-arrow-bend-up-right { --m: url("/icons/arrow-bend-up-right.svg"); }
.ic-arrow-right { --m: url("/icons/arrow-right.svg"); }
.ic-basketball { --m: url("/icons/basketball.svg"); }
.ic-bird { --m: url("/icons/bird.svg"); }
.ic-bug { --m: url("/icons/bug.svg"); }
.ic-car { --m: url("/icons/car.svg"); }
.ic-cards { --m: url("/icons/cards.svg"); }
.ic-caret-down { --m: url("/icons/caret-down.svg"); }
.ic-caret-left { --m: url("/icons/caret-left.svg"); }
.ic-check { --m: url("/icons/check.svg"); }
.ic-crosshair { --m: url("/icons/crosshair.svg"); }
.ic-detective { --m: url("/icons/detective.svg"); }
.ic-clock-counter-clockwise { --m: url("/icons/clock-counter-clockwise.svg"); }
.ic-diamond { --m: url("/icons/diamond.svg"); }
.ic-door-open { --m: url("/icons/door-open.svg"); }
.ic-egg { --m: url("/icons/egg.svg"); }
.ic-flag-banner { --m: url("/icons/flag-banner.svg"); }
.ic-flower-lotus { --m: url("/icons/flower-lotus.svg"); }
.ic-game-controller { --m: url("/icons/game-controller.svg"); }
.ic-gear { --m: url("/icons/gear.svg"); }
.ic-graduation-cap { --m: url("/icons/graduation-cap.svg"); }
.ic-house { --m: url("/icons/house.svg"); }
.ic-lightning { --m: url("/icons/lightning.svg"); }
.ic-lock { --m: url("/icons/lock.svg"); }
.ic-magnifying-glass { --m: url("/icons/magnifying-glass.svg"); }
.ic-map-pin { --m: url("/icons/map-pin.svg"); }
.ic-money { --m: url("/icons/money.svg"); }
.ic-mountains { --m: url("/icons/mountains.svg"); }
.ic-navigation-arrow { --m: url("/icons/navigation-arrow.svg"); }
.ic-newspaper { --m: url("/icons/newspaper.svg"); }
.ic-paw-print { --m: url("/icons/paw-print.svg"); }
.ic-play { --m: url("/icons/play.svg"); }
.ic-plus { --m: url("/icons/plus.svg"); }
.ic-scan { --m: url("/icons/scan.svg"); }
.ic-t-shirt { --m: url("/icons/t-shirt.svg"); }
.ic-terminal { --m: url("/icons/terminal.svg"); }
.ic-trophy { --m: url("/icons/trophy.svg"); }
.ic-user { --m: url("/icons/user.svg"); }
.ic-vault { --m: url("/icons/vault.svg"); }
.ic-waves { --m: url("/icons/waves.svg"); }
.ic-x { --m: url("/icons/x.svg"); }
.tab[class*="t-"]::before, .tag[class*="t-"]::before, .poster::before, .map-rail a::before, .ti::before,
.nav-menu summary::after, .fold > summary::after, .spot-tile button.found-toggle.mini[aria-pressed="true"]::after,
.m-row.spoil:not(.unlocked) .m-dot::after, :is(.m-row, .l-row) button.done-toggle.box[aria-pressed="true"]::before,
.radar .gps::before, button.done-toggle:not(.box)[aria-pressed="true"]::before, button.found-toggle[aria-pressed="true"]:not(.spot-tile .mini)::before, .embed-load::before, .embed-open::after {
  content: ""; display: inline-block; flex: none; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}

/* One colour and one icon per tag (src/taxonomy.ts). Used as classes because the CSP blocks style attributes. */
.t-none { --c: #9ca3af; --i: url("/icons/map-pin.svg"); }
.t-card { --c: #ff4fa3; --i: url("/icons/cards.svg"); }
.t-cocaine-flamingo { --c: #ff7ab8; --i: url("/icons/bird.svg"); }
.t-waink-scan { --c: #fde047; --i: url("/icons/scan.svg"); }
.t-underwater { --c: #38bdf8; --i: url("/icons/waves.svg"); }
.t-meditation-spot { --c: #2fd5c8; --i: url("/icons/flower-lotus.svg"); }
.t-basketball-hoop { --c: #fb923c; --i: url("/icons/basketball.svg"); }
.t-stunt-jump { --c: #ffb347; --i: url("/icons/arrow-bend-up-right.svg"); }
.t-collectible { --c: #f472b6; --i: url("/icons/diamond.svg"); }
.t-robbery { --c: #ff6b6b; --i: url("/icons/vault.svg"); }
.t-vehicle { --c: #a3e635; --i: url("/icons/car.svg"); }
.t-secret { --c: #a78bfa; --i: url("/icons/detective.svg"); }
.t-easter-egg { --c: #c084fc; --i: url("/icons/egg.svg"); }
.t-weapon { --c: #f87171; --i: url("/icons/crosshair.svg"); }
.t-money { --c: #4ade80; --i: url("/icons/money.svg"); }
.t-outfit { --c: #f9a8d4; --i: url("/icons/t-shirt.svg"); }
.t-property { --c: #fbbf24; --i: url("/icons/house.svg"); }
.t-activity { --c: #34d399; --i: url("/icons/flag-banner.svg"); }
.t-animal { --c: #86efac; --i: url("/icons/paw-print.svg"); }
.t-stunt { --c: #fdba74; --i: url("/icons/lightning.svg"); }
.t-glitch { --c: #e879f9; --i: url("/icons/bug.svg"); }
.t-scenery { --c: #7dd3fc; --i: url("/icons/mountains.svg"); }
.t-interior { --c: #cbd5e1; --i: url("/icons/door-open.svg"); }
.t-tutorial { --c: #93c5fd; --i: url("/icons/graduation-cap.svg"); }
.t-mission { --c: #f43f5e; --i: url("/icons/game-controller.svg"); }
.t-mechanics { --c: #a5b4fc; --i: url("/icons/gear.svg"); }
.t-character { --c: #fda4af; --i: url("/icons/user.svg"); }
.t-news { --c: #e5e7eb; --i: url("/icons/newspaper.svg"); }
.t-cheat { --c: #22d3ee; --i: url("/icons/terminal.svg"); }
.t-trophy { --c: #facc15; --i: url("/icons/trophy.svg"); }
.sg-narrow { max-width: 560px; }
