/* the page's fonts (Outfit, Manrope, JetBrains Mono; SIL Open Font License), latin, served here: not a
   stylesheet from another site holding the first paint back */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/webfonts/jetbrains-mono-latin.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: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/webfonts/manrope-latin.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: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/webfonts/manrope-latin.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: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/webfonts/manrope-latin.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: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/webfonts/manrope-latin.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: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/webfonts/outfit-latin.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: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/webfonts/outfit-latin.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: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/webfonts/outfit-latin.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: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/webfonts/outfit-latin.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;
}

/* gta.mics.dev's design tokens (gta-explorer/server/wwwroot/css/tokens.css), copied as they are: mics.dev's palette and fonts
   Everything else uses these; a literal colour, size or radius elsewhere is a bug to fix. */
:root {
  color-scheme: dark;

  /* ── palette (from mics.dev; do not replace) ── */
  --bg: #0a0a0f; --panel: #12121a; --panel-2: #15121f; --panel-3: #1b1826;
  --text: #ecebf3; --muted: #a09cb3; --dim: #9894ad; --faint: #8f8ba2; --white: #fff;
  --lilac: #c4b5fd; --lilac-2: #e9e4ff; --purple: #a855f7; --violet: #6d28d9;
  --line: rgba(196, 181, 253, .09); --line-2: rgba(196, 181, 253, .14); --line-3: rgba(196, 181, 253, .2);
  --grad: linear-gradient(135deg, #a855f7, #6d28d9);
  /* the pictures' backdrop, like the store's cover art */
  --art: radial-gradient(120% 95% at 50% 12%, #2d2048 0%, #1a1529 55%, #13111c 100%);

  /* ── surfaces, from the page up ── */
  --surface-0: var(--bg);        /* the page */
  --surface-1: var(--panel);     /* panels, cards, inputs */
  --surface-2: var(--panel-2);   /* raised: popovers, the sheet */
  --surface-3: var(--panel-3);   /* hover on a raised surface */
  --sunken: #0d0c13;             /* code, wells inside a panel */

  /* ── the one accent, in its states ── */
  --accent: var(--purple);
  --accent-text: var(--lilac);
  --accent-bg: rgba(168, 85, 247, .12);       /* selected */
  --accent-bg-strong: rgba(168, 85, 247, .2);
  --accent-line: rgba(168, 85, 247, .42);
  --hover: rgba(196, 181, 253, .05);          /* a quiet hover on anything */
  --hover-2: rgba(196, 181, 253, .08);

  /* ── states, muted so they sit beside the lilac ── */
  --success: #7fd1ae; --success-bg: rgba(127, 209, 174, .12);
  --warning: #e6c07b; --warning-bg: rgba(230, 192, 123, .12);
  --danger: #ef8f9f;  --danger-bg: rgba(239, 143, 159, .12);

  /* ── spacing: 4/8/12/16/24/32/48 ── */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;

  /* ── radii: small controls, controls and panels, big panels ── */
  --r-1: 8px; --r-2: 12px; --r-3: 16px; --r-pill: 999px;

  /* ── heights of controls ── */
  --h-sm: 32px; --h-md: 40px; --h-lg: 48px;

  /* ── elevation ── */
  --e-1: 0 1px 2px rgba(0, 0, 0, .3);
  --e-2: 0 10px 30px -10px rgba(0, 0, 0, .55);
  --e-3: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px var(--line-2);
  --e-glow: 0 24px 50px -24px rgba(109, 40, 217, .6);

  /* ── focus: one ring for everything a keyboard reaches ── */
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px rgba(196, 181, 253, .75);

  /* ── layers ── */
  --z-nav: 10; --z-sticky: 20; --z-topbar: 25; --z-modal: 30; --z-scrim: 35; --z-drawer: 40; --z-popover: 50; --z-toast: 60;

  /* ── motion: 150–250 ms, one curve ── */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --d-1: 150ms; --d-2: 200ms; --d-3: 250ms;

  /* ── type ── */
  --display: 'Outfit', 'Manrope', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --code: 'JetBrains Mono', ui-monospace, monospace;
  /* the scale (font shorthands; pair with the letter-spacing below where given) */
  --t-hero: 800 clamp(38px, 4.6vw, 62px)/1.02 var(--display);       --ls-hero: -.045em;
  --t-page: 800 clamp(30px, 3vw, 40px)/1.05 var(--display);         --ls-page: -.04em;
  --t-title: 700 22px/1.2 var(--display);                           --ls-title: -.02em;   /* a detail's name */
  --t-section: 600 17px/1.3 var(--display);                         --ls-section: -.01em; /* a block inside a page */
  --t-eyebrow: 600 13px/1.3 var(--body);                                                  /* what group a page is in */
  --t-body: 400 14px/1.55 var(--body);
  --t-body-strong: 600 14px/1.45 var(--body);
  --t-label: 600 13px/1.35 var(--body);                                                   /* controls, chips, tabs */
  --t-small: 500 12.5px/1.45 var(--body);
  --t-code: 500 13px/1.55 var(--code);
  --t-code-small: 500 12px/1.45 var(--code);

  /* ── layout ── */
  --side: 252px;
  --gutter: clamp(18px, 3vw, 44px);
}

/* the scale as classes, for markup that has no component of its own */
.t-hero { font: var(--t-hero); letter-spacing: var(--ls-hero); color: var(--white); }
.t-page { font: var(--t-page); letter-spacing: var(--ls-page); color: var(--white); }
.t-title { font: var(--t-title); letter-spacing: var(--ls-title); color: var(--white); }
.t-section { font: var(--t-section); letter-spacing: var(--ls-section); color: var(--text); }
.t-eyebrow { font: var(--t-eyebrow); color: var(--accent-text); }
.t-body { font: var(--t-body); color: var(--text); }
.t-small { font: var(--t-small); color: var(--muted); }
.t-code { font: var(--t-code); color: var(--text); }

/* GTA VI Explorer (six.mics.dev): gta.mics.dev's look, from tokens.css. A literal colour, size or radius here is a
   bug: use the tokens. One file, built after fonts.css and tokens.css (tools/build.py). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: var(--t-body); font-size: 15px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--lilac); text-decoration: none; }
a:hover { color: var(--lilac-2); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-1); }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--white); }
p { margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.ico { width: 18px; height: 18px; flex: none; }
.skiplink { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-1); background: var(--violet); color: var(--white); font-weight: 700; }
.skiplink:focus { top: 12px; }

/* ── the sample-data ribbon (local builds only) ── */
.ribbon { padding: 8px var(--gutter); background: var(--warning-bg); border-bottom: 1px solid rgba(230, 192, 123, .25); color: var(--warning); font: var(--t-small); text-align: center; }
.ribbon b { color: #f3d9a6; }

/* ── the bar along the top ── */
.bar { position: sticky; top: 0; z-index: var(--z-topbar); background: rgba(10, 10, 15, .82); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.bar-in { display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 var(--gutter); }
.brand { flex: none; display: flex; align-items: center; gap: 10px; color: var(--white); font: 700 17px/1 var(--display); letter-spacing: -.01em; }
.brand:hover { color: var(--white); }
.logo { font: 800 24px/1 var(--display); letter-spacing: -.04em; color: var(--white); }
.logo i { font-style: normal; color: var(--purple); }
.bar-links { display: flex; align-items: center; gap: 2px; min-width: 0; }
.bar-links a { position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--r-pill); color: var(--muted); font: 600 14.5px/1 var(--body); white-space: nowrap; transition: color var(--d-1), background var(--d-1); }
.bar-links a:hover { color: var(--white); background: var(--hover); }
.bar-links a[aria-current] { color: var(--white); }
.bar-links a[aria-current]::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 16px; height: 2px; margin-left: -8px; border-radius: 2px; background: var(--purple); }
.bar-end { display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; }
.icon-btn { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: transparent; color: var(--text); cursor: pointer; transition: background var(--d-1), border-color var(--d-1); }
.icon-btn:hover { background: var(--hover-2); border-color: var(--line-3); }
.icon-btn .ico { width: 20px; height: 20px; }

/* the search, in the bar */
.search { display: flex; align-items: center; gap: 10px; height: var(--h-md); padding: 0 12px 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface-1); color: var(--faint); transition: border-color var(--d-1), background var(--d-1); }
.search:focus-within { border-color: var(--accent-line); background: var(--surface-2); color: var(--lilac); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--text); font: 500 14.5px/1 var(--body); }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--faint); font: 600 12px/1 var(--code); }
.gsearch { position: relative; width: clamp(200px, 22vw, 300px); }
.gresults { position: absolute; top: calc(100% + 8px); right: 0; z-index: var(--z-popover); width: min(440px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow: auto; padding: 6px; border-radius: var(--r-2); background: var(--surface-2); box-shadow: var(--e-3); }
.gresults a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-1); color: var(--text); }
.gresults a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.gresults a small { flex: none; color: var(--faint); font: var(--t-small); }
.gresults a:hover, .gresults a[aria-selected="true"] { background: var(--accent-bg); color: var(--white); }
.gresults p { padding: 12px; color: var(--muted); font: var(--t-small); }
.search-btn { display: none; }

/* the profile: "Sign in with Discord", or who is signed in */
.profile { display: flex; align-items: center; }
.btn-signin { display: inline-flex; align-items: center; gap: 8px; height: var(--h-md); padding: 0 16px; border: 0; border-radius: var(--r-pill); background: #5865f2; color: var(--white); font: 700 14px/1 var(--body); white-space: nowrap; cursor: pointer; transition: background var(--d-1); }
.btn-signin:hover { background: #4752c4; }
.me { position: relative; }
.me-btn { display: inline-flex; align-items: center; gap: 8px; height: var(--h-md); padding: 0 12px 0 4px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: transparent; cursor: pointer; }
.me-btn img { width: 32px; height: 32px; border-radius: 50%; }
.me-btn span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.me-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: var(--z-popover); min-width: 220px; padding: 6px; border-radius: var(--r-2); background: var(--surface-2); box-shadow: var(--e-3); }
.me-menu a, .me-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r-1); background: none; color: var(--text); font: 600 14px/1.2 var(--body); text-align: left; cursor: pointer; }
.me-menu a:hover, .me-menu button:hover { background: var(--hover-2); color: var(--white); }
.me-menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--line-2); }

/* ── the frame: the sections on the left, the page ── */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - 64px); }
.sidenav { position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); overflow-y: auto; padding: 20px 12px; border-right: 1px solid var(--line); }
.sidenav nav { display: flex; flex-direction: column; gap: 2px; }
.sidenav a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: var(--r-1); color: var(--muted); font: 600 14px/1.2 var(--body); transition: background var(--d-1), color var(--d-1); }
.sidenav a:hover { background: var(--hover); color: var(--white); }
.sidenav a[aria-current] { background: var(--accent-bg); color: var(--white); }
.sidenav a[aria-current] .ico { color: var(--lilac); }
.sidenav a span { flex: 1; }
.sidenav small { color: var(--faint); font: var(--t-code-small); }
.nav-sep { height: 1px; margin: 12px; background: var(--line-2); }
.scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: rgba(0, 0, 0, .55); }
main { min-width: 0; width: 100%; max-width: 1240px; padding: 28px var(--gutter) 64px; }
main:focus { outline: none; }
.shell.wide { grid-template-columns: minmax(0, 1fr); }
.shell.wide main { max-width: 1360px; margin: 0 auto; }

/* the drawer: the sections, on a phone, a tablet, and on the front page */
.menu-btn { display: none; }
body.home .menu-btn { display: inline-grid; }
@media (max-width: 1099px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-grid; }
  .sidenav { position: fixed; top: 0; left: 0; bottom: 0; z-index: var(--z-drawer); width: min(300px, 86vw); height: 100%; background: var(--surface-1); border-right: 1px solid var(--line-2); transform: translateX(-102%); transition: transform var(--d-3) var(--ease); visibility: hidden; }
  .sidenav.open { transform: none; visibility: visible; }
}
@media (min-width: 1100px) {
  .shell.wide .sidenav { position: fixed; top: 0; left: 0; bottom: 0; z-index: var(--z-drawer); width: 300px; height: 100%; background: var(--surface-1); border-right: 1px solid var(--line-2); transform: translateX(-102%); transition: transform var(--d-3) var(--ease); visibility: hidden; }
  .shell.wide .sidenav.open { transform: none; visibility: visible; }
}
@media (prefers-reduced-motion: reduce) { .sidenav { transition: none !important; } }

/* ── page heads, crumbs, notes ── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--faint); font: var(--t-small); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--lilac); }
.crumbs [aria-current] { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.crumbs .sep { color: var(--line-3); }
.eyebrow { font: var(--t-eyebrow); color: var(--accent-text); }
.phead { margin-bottom: 24px; }
.phead .eyebrow { margin-bottom: 8px; }
.phead-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.phead h1 { font: var(--t-page); letter-spacing: var(--ls-page); }
.n { color: var(--faint); font: var(--t-code-small); }
.phead .n { font-size: 13px; }
.lead { max-width: 68ch; margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.note { margin-bottom: 20px; padding: 12px 16px; border-radius: var(--r-2); font: var(--t-small); font-size: 14px; }
.note-sample { background: var(--warning-bg); border: 1px solid rgba(230, 192, 123, .28); color: var(--warning); }
.note-sample b { color: #f3d9a6; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill); font: 700 11.5px/1 var(--body); letter-spacing: .02em; text-transform: uppercase; vertical-align: middle; }
.pill-sample { background: rgba(230, 192, 123, .16); color: var(--warning); border: 1px solid rgba(230, 192, 123, .35); }
.sample-text { color: var(--warning); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h-lg); padding: 0 22px; border: 1px solid transparent; border-radius: var(--r-pill); font: 700 15px/1 var(--body); white-space: nowrap; cursor: pointer; transition: background var(--d-2) var(--ease), border-color var(--d-2), color var(--d-2); }
.btn .ico { width: 20px; height: 20px; }
.btn-primary { background: var(--violet); color: var(--white); }
.btn-primary:hover { background: #7c3aed; color: var(--white); }
.btn-discord { background: #5865f2; color: var(--white); }
.btn-discord:hover { background: #4752c4; color: var(--white); }
.btn-ghost { border-color: var(--line-3); color: var(--lilac-2); }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--hover); color: var(--white); }
.linkish { padding: 0; border: 0; background: none; color: var(--lilac); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ── the front page ── */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; min-height: min(calc(100vh - 220px), 560px); padding: 16px 0 48px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { max-width: 13ch; font: 800 clamp(42px, 5.6vw, 82px)/.96 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.hero-lead { max-width: 46ch; margin: 24px 0 30px; color: var(--muted); font-size: 17.5px; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-plate { position: relative; padding: clamp(24px, 3.4vw, 44px); border: 1px solid var(--line-2); border-radius: 22px;
  background: linear-gradient(rgba(196, 181, 253, .07) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(196, 181, 253, .07) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(120% 90% at 70% 0%, #2d2048 0%, #15121f 60%, #100e18 100%); overflow: hidden; }
.hero-plate::before, .hero-plate::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--lilac); opacity: .55; pointer-events: none; }
.hero-plate::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.hero-plate::after { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }
.plate-label { margin-bottom: 14px; color: var(--lilac); font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }

/* the countdown */
.cd-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 6px 14px; border: 1px solid var(--line-2); border-radius: var(--r-2); background: rgba(10, 10, 15, .5); }
.cd-unit b { color: var(--white); font: 800 clamp(30px, 3.6vw, 52px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cd-unit small { color: var(--muted); font: var(--t-small); }
.cd-note { margin-top: 14px; color: var(--faint); font: var(--t-small); }
.cd-out { color: var(--white); font: 800 clamp(28px, 3vw, 40px)/1.1 var(--display); letter-spacing: -.03em; }
.countdown.done .cd-units, .countdown.done .cd-note { display: none; }
.cd-page { max-width: 760px; margin: 12px 0 28px; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface-1); }
.cd-page .cd-unit b { font-size: clamp(34px, 6vw, 72px); }
.cd-after { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; color: var(--muted); }

/* blocks of the front page */
.block { padding: 40px 0; border-top: 1px solid var(--line-2); }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 20px; }
.block-head h2 { font: 800 clamp(26px, 3vw, 38px)/1.05 var(--display); letter-spacing: -.035em; }
.block-head p { color: var(--muted); }
.block.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tile { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line-2); border-radius: var(--r-3); background: var(--surface-1); color: var(--text); overflow: hidden; transition: border-color var(--d-2), transform var(--d-2) var(--ease); }
.tile:hover { border-color: var(--accent-line); color: var(--text); transform: translateY(-2px); }
.tile-pic { display: block; aspect-ratio: 16 / 9; background: var(--art); overflow: hidden; }
.tile-pic img { width: 100%; height: 100%; object-fit: cover; }
.tile-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.tile-title { display: flex; align-items: center; gap: 8px; color: var(--white); font: var(--t-section); }
.tile-title .ico { color: var(--lilac); }
.tile-blurb { color: var(--muted); font: var(--t-small); font-size: 13.5px; }
.tile-n { margin-top: 6px; color: var(--lilac); font: var(--t-code-small); }
.nopic { display: grid; place-items: center; width: 100%; height: 100%; background: var(--art); }
.nopic-ico { width: 34%; height: 34%; max-width: 64px; max-height: 64px; color: rgba(196, 181, 253, .45); stroke-width: 1.2; }

.facts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact-k { color: var(--muted); font: var(--t-label); }
.fact-v { color: var(--text); font-weight: 600; }
.fact-src { display: inline-flex; align-items: center; gap: 4px; font: var(--t-small); white-space: nowrap; }
.fact-src .ico { width: 13px; height: 13px; }

.nlist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.nrow a { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--text); transition: background var(--d-1); }
.nrow a:hover { background: var(--hover); color: var(--text); }
.nrow time { color: var(--faint); font: var(--t-code-small); }
.nrow-kind { justify-self: start; color: var(--lilac); font: var(--t-small); }
.nrow-title { grid-column: 1 / -1; color: var(--white); font: var(--t-section); font-size: 17px; }
.nrow p { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.nlist-page .nrow-title { font-size: 20px; }

.notify { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin: 24px 0 0; padding: 32px; border: 1px solid var(--line-2); border-radius: 22px; background: radial-gradient(100% 140% at 0% 0%, rgba(109, 40, 217, .28), transparent 60%), var(--surface-1); }
.notify h2 { font: 800 clamp(24px, 2.6vw, 32px)/1.1 var(--display); letter-spacing: -.03em; }
.notify p { margin-top: 8px; color: var(--muted); max-width: 52ch; }

/* ── a section's list ── */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.filters .search { flex: 0 1 320px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: var(--h-sm); padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: transparent; color: var(--muted); font: var(--t-label); cursor: pointer; transition: background var(--d-1), color var(--d-1), border-color var(--d-1); }
.chip:hover { color: var(--white); border-color: var(--line-3); }
.chip[aria-pressed="true"] { background: var(--accent-bg-strong); border-color: var(--accent-line); color: var(--white); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.card a { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line-2); border-radius: var(--r-3); background: var(--surface-1); color: var(--text); overflow: hidden; transition: border-color var(--d-2), transform var(--d-2) var(--ease); }
.card a:hover { border-color: var(--accent-line); color: var(--text); transform: translateY(-2px); }
.card-pic { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--art); overflow: hidden; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-3) var(--ease); }
.card a:hover .card-pic img { transform: scale(1.04); }
.card-pic .pill { position: absolute; top: 10px; left: 10px; background: rgba(20, 16, 6, .78); }
.card-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.card-name { color: var(--white); font: var(--t-body-strong); font-size: 15px; }
.card-meta { color: var(--muted); font: var(--t-small); }
.section.characters .card-pic, .section.clothes .card-pic, .section.radio .card-pic { aspect-ratio: 1; }
.empty-filter { padding: 32px 0; color: var(--muted); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 560px; margin: 24px auto; padding: 48px 24px; border: 1px dashed var(--line-3); border-radius: 22px; text-align: center; }
.empty-state h2, .empty-state h1 { font: 800 28px/1.15 var(--display); letter-spacing: -.03em; }
.empty-state p { color: var(--muted); margin-bottom: 8px; }
.empty-ico { width: 44px; height: 44px; color: var(--lilac); stroke-width: 1.4; }
.notfound { margin-top: 10vh; }
.notfound h1 { font-size: 40px; }

/* the map */
.map-fig { margin: 0 0 28px; }
.map-stage { position: relative; display: block; max-width: 1000px; border: 1px solid var(--line-2); border-radius: var(--r-3); overflow: hidden; background: var(--sunken); }
.map-stage img { width: 100%; height: auto; }
.map-fig .map-stage { width: min(100%, calc(72vh * var(--ar, 1))); }
.map-stage.small { max-width: 420px; }
.pin { position: absolute; display: flex; align-items: center; gap: 6px; transform: translate(-7px, -7px); color: var(--white); }
.pin-dot { width: 14px; height: 14px; border: 2px solid var(--white); border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px rgba(168, 85, 247, .3); }
.pin-name { padding: 3px 8px; border-radius: var(--r-pill); background: rgba(10, 10, 15, .8); font: 600 12px/1.2 var(--body); white-space: nowrap; }
.pin:hover .pin-dot, .pin:focus-visible .pin-dot { background: var(--lilac); }
.pin.dim { opacity: .2; }
.map-note { margin-top: 10px; font: var(--t-small); color: var(--muted); }
.regions-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 8px 0 14px; }
.regions-head h2 { font: var(--t-title); letter-spacing: var(--ls-title); }
.regions-head a { display: inline-flex; align-items: center; gap: 4px; font: var(--t-small); }
.regions-head .ico { width: 13px; height: 13px; }
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.region { display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--surface-1); text-align: left; cursor: pointer; transition: border-color var(--d-1), background var(--d-1); }
.region:hover { border-color: var(--line-3); background: var(--surface-2); }
.region[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-bg); }
.region b { color: var(--white); font: var(--t-section); }
.region span { color: var(--muted); font: var(--t-small); font-size: 13.5px; }
.region small { margin-top: 4px; color: var(--lilac); font: var(--t-code-small); }

/* ── an item's page ── */
.item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.item.has-media { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-template-areas: 'head head' 'media body'; align-items: start; }
.item.has-media .item-head { grid-area: head; }
.item.has-media .media { grid-area: media; }
.item.has-media .item-body { grid-area: body; }
.item-head .eyebrow { margin-bottom: 8px; }
.item-head h1 { font: var(--t-page); letter-spacing: var(--ls-page); overflow-wrap: anywhere; }
.item-head h1 .pill { margin-left: 6px; position: relative; top: -6px; }
.item-meta { margin-top: 8px; color: var(--muted); font-size: 16px; }
.media { margin: 0; }
.media img { width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: var(--r-3); background: var(--art); }
.media figcaption { margin-top: 8px; color: var(--faint); font: var(--t-small); }
.item-characters.has-media, .item-clothes.has-media, .item-radio.has-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.item-body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.item-body h2 { margin-bottom: 10px; font: var(--t-section); }
.facts-grid { display: flex; flex-wrap: wrap; gap: 1px; margin: 0; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--line-2); overflow: hidden; }
.fact { flex: 1 1 150px; padding: 12px 14px; background: var(--surface-1); }
.fact dt { color: var(--muted); font: var(--t-small); }
.fact dd { margin: 4px 0 0; color: var(--white); font: var(--t-body-strong); font-size: 15px; overflow-wrap: anywhere; }
.prose { max-width: 70ch; color: var(--text); font-size: 16px; line-height: 1.7; }
.prose p + p, .prose ul, .prose h2 { margin-top: 16px; }
.prose h2 { font: var(--t-title); letter-spacing: var(--ls-title); margin-top: 28px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 8px; }
.source { padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--surface-1); font-size: 14px; }
.source h2 { margin-bottom: 6px; font-size: 15px; }
.source p + p { margin-top: 6px; }
.source a { display: inline-flex; align-items: center; gap: 4px; }
.source .ico { width: 13px; height: 13px; }
.tracks ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.tracks li { display: grid; grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.t-n { color: var(--faint); font: var(--t-code-small); padding-top: 2px; }
.t-a { color: var(--muted); }
.t-t { color: var(--white); font-weight: 600; }
.tracks .muted { margin-top: 10px; font: var(--t-small); }
.related { margin-top: 48px; }
.related h2 { margin-bottom: 16px; font: var(--t-title); letter-spacing: var(--ls-title); }
.stepper { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.stepper a { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 48%; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-2); color: var(--white); font-weight: 600; transition: border-color var(--d-1), background var(--d-1); }
.stepper a:hover { border-color: var(--accent-line); background: var(--hover); color: var(--white); }
.stepper a span { display: flex; flex-direction: column; min-width: 0; }
.stepper a span, .stepper small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper small { color: var(--faint); font: var(--t-small); }
.stepper .next { margin-left: auto; text-align: right; }

/* ── the footer ── */
.foot { border-top: 1px solid var(--line-2); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; max-width: 1360px; margin: 0 auto; padding: 32px var(--gutter) 40px; color: var(--muted); font-size: 14px; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; max-width: 62ch; }
.foot-links { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px 22px; max-width: 420px; }
.foot-links a { color: var(--lilac); font-weight: 600; }

/* ── narrower screens ── */
@media (max-width: 1240px) { .bar-links { display: none; } }
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 32px; }
  .block.two { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .item.has-media, .item-characters.has-media, .item-clothes.has-media, .item-radio.has-media { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'media' 'body'; }
}
@media (max-width: 760px) {
  .bar-in { gap: 12px; }
  .gsearch { position: absolute; top: 64px; left: 0; right: 0; width: auto; padding: 10px 16px; background: var(--surface-1); border-bottom: 1px solid var(--line-2); }
  .gsearch:not(.open) { display: none; }
  .gsearch .gresults { left: 16px; right: 16px; width: auto; }
  .search kbd { display: none; }
  .search-btn { display: inline-grid; }
  .brand-name { font-size: 15px; }
  .btn-signin span { display: none; }
  .btn-signin { width: 40px; padding: 0; justify-content: center; }
  .me-btn span { display: none; }
  .me-btn { padding: 0 4px; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  main { padding-top: 20px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-lead { font-size: 16px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .cd-units { gap: 6px; }
  .cd-unit { padding: 12px 2px 10px; }
  .cd-unit b { font-size: clamp(24px, 8vw, 34px); }
  .cd-page .cd-unit b { font-size: clamp(26px, 9vw, 40px); }
  .facts li { grid-template-columns: minmax(0, 1fr) auto; }
  .fact-v { grid-column: 1 / -1; grid-row: 2; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-body { padding: 10px 11px 12px; }
  .card-name { font-size: 14px; }
  .filters .search { flex: 1 1 100%; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tile { flex-direction: row; }
  .tile-pic { flex: none; width: 104px; aspect-ratio: auto; }
  .tile-body { padding: 12px 14px; }
  .notify { padding: 22px; }
  .notify .btn { width: 100%; }
  .tracks li { grid-template-columns: 26px minmax(0, 1fr); }
  .t-t { grid-column: 2; }
  .stepper a { max-width: 50%; padding: 10px 12px; }
  .pin-name { display: none; }
}
@media (max-width: 380px) { .brand-name { display: none; } }
.item:not(.has-media) .item-body { max-width: 760px; }
.pipe { font-family: system-ui, sans-serif; font-weight: 400; margin: 0 .04em; }

