/* GTA How To — "Leonida Nights"
   Night-time Vice City: deep navy, a sunset over the water, and one colour per game
   (GTA VI pink, GTA V teal, GTA Online violet). The sunset hero is the one loud
   moment; everything below it is quiet, list-based and easy to scan. */


:root {
  /* ground */
  --night: #0d0820;
  --panel: #150d2e;
  --panel-2: #1f1442;
  --rule: #2a1f52;
  --rule-strong: #43357a;
  /* text */
  --ink: #f4efff;
  --ink-2: #cdc4ea;
  --ink-3: #9d92c6;
  /* Leonida colours */
  --pink: #ff4f93;
  --orange: #ff8a3d;
  --gold: #ffcf4a;
  --teal: #21e6c1;
  --violet: #b47bff;
  --red: #ff5a67;
  --on-colour: #140a26; /* text on bright fills */
  --sunset: linear-gradient(100deg, #ff3d8b 0%, #ff6a5c 45%, #ffb13d 100%);
  --dusk: linear-gradient(180deg, #2a0f4f 0%, #6b1d6e 40%, #e84a6f 75%, #ffaa4d 100%);
  --c: var(--pink); /* current game colour */

  --r: 6px;
  --display: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font: 'Helvetica Now Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --wrap: 1160px;
  color-scheme: dark;
}
.accent-sunset { --c: var(--pink); }
.accent-teal { --c: var(--teal); }
.accent-violet { --c: var(--violet); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8ff7e3; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 1.6em 0 0.5em; text-wrap: balance; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; margin-top: 0.3em; }
h2 { font-size: clamp(1.35rem, 2.3vw, 1.6rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.17rem; font-weight: 700; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; }
code { background: var(--panel-2); padding: 0.1em 0.35em; border-radius: 4px; }
pre { background: #0a0618; border: 1px solid var(--rule); padding: 1rem; border-radius: var(--r); overflow: auto; }
pre code { background: none; padding: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: var(--r); z-index: 100; }
.skip:focus { left: 8px; color: #000; }
.grad { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: 32px 24px 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.2rem 0 0.4rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--rule-strong); }
.section-head h2 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.4rem; }
.section-head a { white-space: nowrap; font-weight: 700; font-size: 0.95rem; }
.card-grid + .section-head { margin-top: 3rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Small game marker used in lists, like a minimap blip label */
.shield, .kicker-game, .gl-game { display: inline-block; background: var(--c); color: var(--on-colour) !important; font-size: 0.72rem; font-weight: 700; line-height: 1; padding: 0.27rem 0.45rem; border-radius: 4px; white-space: nowrap; letter-spacing: 0.01em; text-decoration: none; }
.shield { vertical-align: 0.12em; }

/* ---------- Buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.6rem 1.1rem; border-radius: var(--r); border: 1px solid transparent; font: 800 0.95rem/1.2 var(--font); cursor: pointer; text-decoration: none; transition: filter 0.12s, border-color 0.12s; }
.btn-sunset { background: var(--sunset); color: var(--on-colour); }
.btn-sunset:hover { color: var(--on-colour); filter: brightness(1.08); }
.btn-teal { background: var(--teal); color: #04241e; }
.btn-teal:hover { color: #04241e; filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-2); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(0.92); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
.btn-link { background: none; border: 0; color: var(--teal); font: inherit; cursor: pointer; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; font-weight: 700; padding: 0.22rem 0.5rem 0.12rem; border-radius: 4px; background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--rule); }
.chip-game { background: var(--c); color: var(--on-colour); border-color: transparent; }
.chip-community { background: transparent; color: var(--teal); border-color: rgba(33, 230, 193, 0.45); }

/* ---------- Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--rule); }
/* Two layers that cross-fade, so the bar never flashes bare artwork mid-switch:
   ::before = the solid, blurred bar (scrolled); ::after = a faint top fade (at the very top,
   class set by app.js, keeps the links readable over bright artwork). Without JS: solid. */
.site-header::before, .site-header::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* Fades only after the page has settled (app.js adds .nav-anim), so arriving on a page never animates. */
.nav-anim .site-header { transition: border-color 0.25s ease; }
.nav-anim .site-header::before, .nav-anim .site-header::after { transition: opacity 0.25s ease; }
.site-header::before { background: rgba(13, 8, 32, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header::after { background: linear-gradient(180deg, rgba(13, 8, 32, 0.55) 0%, rgba(13, 8, 32, 0) 100%); opacity: 0; }
.nav-top .site-header { border-bottom-color: transparent; }
.nav-top .site-header::before { opacity: 0; }
.nav-top .site-header::after { opacity: 1; }
.nav-top .site-header .header-search input { background: rgba(13, 8, 32, 0.4); border-color: rgba(255, 255, 255, 0.18); }
.header-row { display: flex; align-items: center; gap: 1.6rem; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-text { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1; }
.logo-text span { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 0.12em; }
.main-nav { display: flex; gap: 1.4rem; height: 100%; }
.main-nav > a, .nav-drop > a { display: flex; align-items: center; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 0.95rem; border-bottom: 3px solid transparent; padding-top: 3px; }
.main-nav > a:hover, .nav-drop > a:hover { color: var(--ink); }
.main-nav a.is-current { color: var(--ink); border-bottom-color: var(--c); }
.nav-drop > a { height: 100%; }
.main-nav a.nav-sunset { --c: var(--pink); }
.main-nav a.nav-teal { --c: var(--teal); }
.main-nav a.nav-violet { --c: var(--violet); }
.header-search { flex: 1; max-width: 320px; margin-left: auto; position: relative; }
.header-search input, .hero-search input, .form input, .form textarea, .form select { width: 100%; background: var(--panel); border: 1px solid var(--rule-strong); color: var(--ink); border-radius: var(--r); padding: 0.6rem 0.9rem 0.5rem; font: inherit; }
.header-search input { border-color: var(--rule); transition: background-color 0.25s ease, border-color 0.25s ease; }
.header-search input:focus, .hero-search input:focus, .form :is(input, textarea, select):focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 79, 147, 0.22); }
.header-account { display: flex; gap: 0.5rem; align-items: center; }
.header-account .btn { padding: 0.5rem 0.95rem 0.4rem; font-size: 0.9rem; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sunset); color: var(--on-colour); font-weight: 700; }
details.menu, details.mobile-nav { position: relative; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.menu-pop, .mobile-pop { position: absolute; right: 0; top: calc(100% + 10px); background: var(--panel); border: 1px solid var(--rule-strong); border-radius: var(--r); padding: 0.35rem; min-width: 220px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7); display: grid; }
.menu-pop a, .menu-pop button, .mobile-pop a { color: var(--ink); text-decoration: none; padding: 0.5rem 0.75rem 0.4rem; border-radius: 4px; text-align: left; background: none; border: 0; font: inherit; font-size: 0.95rem; cursor: pointer; width: 100%; }
.menu-pop a:hover, .menu-pop button:hover, .mobile-pop a:hover { background: var(--panel-2); }
.menu-pop form { border-top: 1px solid var(--rule); margin-top: 0.3rem; padding-top: 0.3rem; }
.mobile-nav { display: none; }
.mobile-nav summary { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.95rem; padding: 0.45rem 0.7rem 0.35rem; border: 1px solid var(--rule-strong); border-radius: var(--r); }
.typeahead { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--rule-strong); border-radius: var(--r); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7); overflow: hidden; z-index: 5; }
.typeahead a { display: block; padding: 0.6rem 0.9rem 0.5rem; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.typeahead a:hover, .typeahead a.active { background: var(--panel-2); }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .mobile-nav { display: block; }
  .hide-sm { display: none; }
}
@media (max-width: 600px) {
  .header-row { gap: 0.8rem; }
  .header-search { display: none; }
  .header-account { margin-left: auto; }
  .wrap { padding: 0 16px; }
  .section { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Home hero (sits over the page artwork; dusk sky if there is none) */
.hero { position: relative; isolation: isolate; min-height: 500px; display: flex; align-items: center; background: var(--dusk); }
.hero > .wrap { width: 100%; }
.hero-content { padding-top: 72px; padding-bottom: 72px; position: relative; }
.hero-title { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 0.95; margin: 0 0 1.1rem; max-width: 14ch; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); }
.hero-sub { font-size: 1.18rem; max-width: 52ch; color: #fff; margin: 0; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.hero-search { display: flex; gap: 0.5rem; max-width: 620px; margin-top: 1.7rem; position: relative; }
.hero-search input { padding: 0.85rem 1.1rem 0.75rem; font-size: 1.05rem; }
.hero .hero-search input { background: rgba(13, 8, 32, 0.82); border-color: rgba(255, 255, 255, 0.25); }
.hero-search .btn { padding-left: 1.4rem; padding-right: 1.4rem; }
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-content { padding-top: 44px; padding-bottom: 56px; }
  .hero-title br { display: none; }
}

/* ---------- Game panels */
.game-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.game-tile { display: flex; flex-direction: column; gap: 0.2rem; min-height: 210px; padding: 1.35rem 1.45rem 1.2rem; color: var(--ink); text-decoration: none; background: var(--panel); border: 1px solid var(--rule); border-top: 4px solid var(--c); border-radius: var(--r); transition: border-color 0.15s; }
.game-tile:hover { color: var(--ink); border-color: var(--c); }
.game-tile-name { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.2vw, 2.6rem); letter-spacing: -0.03em; line-height: 1; color: var(--c); }
.game-tile-tag { font-weight: 600; color: var(--ink-2); }
.game-tile-newest { display: grid; gap: 0.15rem; margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--rule); }
.newest-label { font-size: 0.8rem; font-weight: 600; color: var(--ink-3); }
.newest-title { font-size: 0.97rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-tile-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; font-size: 0.9rem; font-weight: 700; color: var(--ink-2); }
.game-tile-browse { color: var(--c); }
.game-tile-browse::after { content: ''; display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.4em; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: rotate(45deg) translateY(-0.1em); }
@media (max-width: 820px) { .game-tiles { grid-template-columns: 1fr; gap: 10px; } .game-tile { min-height: 0; } }

.home-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; }
@media (max-width: 900px) { .home-cols { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Guide rows (scannable list, not a wall of cards) */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.home-cols .card-grid { grid-template-columns: 1fr; }
.card { position: relative; border-bottom: 1px solid var(--rule); }
.card-link { display: grid; gap: 0.3rem; padding: 1.05rem 0 1.1rem; color: inherit; text-decoration: none; height: 100%; }
.card-link:hover { color: inherit; }
.card-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--ink-3); }
.card-kicker a { color: inherit; text-decoration: none; }
.card-kicker a:hover { color: var(--ink); text-decoration: underline; }
.card-title { margin: 0.1rem 0 0; font-size: 1.12rem; line-height: 1.3; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--c); }
.card-desc { margin: 0; color: var(--ink-2); font-size: 0.97rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 1rem; font-size: 0.84rem; color: var(--ink-3); margin: 0.15rem 0 0; }
.card-lead .card-link { padding: 1.3rem 0 1.4rem; gap: 0.5rem; }
.card-lead .card-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; letter-spacing: -0.025em; }
.card-lead .card-desc { -webkit-line-clamp: 4; font-size: 1.05rem; max-width: 62ch; }
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }

/* Recently updated list */
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list li { border-bottom: 1px solid var(--rule); }
.guide-list a { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.8rem; align-items: baseline; padding: 0.85rem 0 0.75rem; color: var(--ink); text-decoration: none; }
.guide-list a:hover .gl-title { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gl-game { grid-row: span 2; min-width: 3.6rem; text-align: center; }
.gl-title { font-weight: 700; line-height: 1.3; }
.gl-date { grid-column: 2; font-size: 0.84rem; color: var(--ink-3); white-space: nowrap; }

/* ---------- Game hub */
.game-hero { padding: 6px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, var(--night)) 0%, var(--night) 100%); }
.hub-sign { padding: 1.6rem 0 0.4rem; }
.hub-title { font-size: clamp(2.8rem, 7vw, 4.6rem); margin: 0; line-height: 0.95; }
.hub-title::after { content: ''; display: block; width: 72px; height: 5px; background: var(--c); margin-top: 0.9rem; border-radius: 2px; }
.hub-sign .lead { max-width: 62ch; margin: 0.9rem 0 0; }
.facts { display: flex; flex-wrap: wrap; gap: 0.6rem 2.6rem; margin: 1.2rem 0 0; }
.facts div { display: grid; gap: 0.05rem; }
.facts dt { font-size: 0.82rem; color: var(--ink-3); font-weight: 600; }
.facts dd { margin: 0; font-weight: 800; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: 1.5rem; border-bottom: 1px solid var(--rule); }
.cat-pills a { padding: 0.6rem 0 0.5rem; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 700; }
.cat-pills a:hover { color: var(--ink); }
.cat-pills a.active { color: var(--ink); border-bottom-color: var(--c); }
.pill-count { font-size: 0.8rem; color: var(--ink-3); margin-left: 0.2rem; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0.8rem 0 0; font-size: 0.86rem; color: var(--ink-3); }
.crumbs li + li::before { content: '/'; margin-right: 0.35rem; color: var(--rule-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Guide layout */
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; padding-top: 8px; }
.guide { min-width: 0; max-width: 720px; }
.guide-kicker { margin-top: 1.6rem; }
.guide-head h1 { margin: 0.6rem 0 0.8rem; }
.guide-head .lead { max-width: 60ch; margin: 0 0 1.2rem; }
.byline { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.9rem; color: var(--ink-3); align-items: center; padding: 0.8rem 0 0.7rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.byline a { color: var(--ink); }
.byline [data-bookmark] { margin-left: auto; border: 1px solid var(--rule-strong); border-radius: var(--r); padding: 0.35rem 0.8rem 0.25rem; color: var(--ink); font-weight: 700; font-size: 0.88rem; }
.byline [data-bookmark]:hover { border-color: var(--gold); }
.byline [data-bookmark].saved { color: var(--on-colour); background: var(--gold); border-color: var(--gold); }
.quick-answer { margin: 1.6rem 0; padding: 1.05rem 1.3rem 1.1rem; background: var(--panel); border-left: 5px solid var(--c); border-radius: 0 var(--r) var(--r) 0; }
.quick-answer h2 { margin: 0 0 0.3rem; font-size: 0.95rem; font-weight: 800; color: var(--c); letter-spacing: 0; }
.quick-answer p { margin: 0; font-size: 1.08rem; line-height: 1.55; }
.hero-img { margin: 1.4rem 0; }
.hero-img img { border-radius: var(--r); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: #000; margin: 1.2rem 0; }
.video video, .video iframe, .video img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.lite-yt .play { position: absolute; inset: 0; margin: auto; width: 72px; height: 50px; border-radius: 10px; border: 0; background: var(--sunset); color: var(--on-colour); cursor: pointer; display: grid; place-items: center; }
.lite-yt .play svg { margin: auto; }
.toc ul { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.toc li { margin: 0; font-size: 0.92rem; }
.toc a { display: block; padding: 0.32rem 0 0.25rem 0.85rem; border-left: 3px solid transparent; color: var(--ink-3); text-decoration: none; line-height: 1.35; }
.toc a:hover, .toc a.active { color: var(--ink); }
.toc-inline { display: none; border: 1px solid var(--rule); border-radius: var(--r); padding: 0.75rem 1rem 0.6rem; margin: 1.2rem 0; }
.toc-inline summary { font-weight: 700; }
.guide-side { position: relative; }
.toc-side { position: sticky; top: 88px; padding: 0.4rem 0; margin-top: 74px; }
.toc-side ul { border-left: 1px solid var(--rule); }
.toc-side a { margin-left: -1px; }
.toc-side .toc-title { margin-bottom: 0.5rem; }
.toc-title { font-size: 0.9rem; color: var(--ink); font-weight: 800; margin: 0 0 0.2rem; }
.toc-side a.active { border-left-color: var(--c); }
.sticky-ad { position: sticky; top: 88px; margin-top: 24px; }
.guide-side:has(.toc-side) .sticky-ad { position: static; }
@media (max-width: 1020px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-side { display: none; }
  .toc-inline { display: block; }
}

/* ---------- Prose */
.prose { font-size: 1.06rem; line-height: 1.68; }
.prose > :is(p, ul, ol, blockquote, h2, h3, h4) { max-width: 66ch; }
.prose thead:not(:has(th:not(:empty))) { display: none; }
.prose table:not(:has(thead th:not(:empty))) td:first-child { width: 11.5rem; font-weight: 700; color: #fff; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose li { margin: 0.3em 0; }
.prose li::marker { color: var(--c); }
.prose ol > li::marker { font-weight: 800; }
.prose h2 { margin-top: 2.1em; padding-top: 0.2rem; }
.prose h2, .prose h3 { position: relative; }
.prose .anchor { position: absolute; left: -1em; color: var(--rule-strong); text-decoration: none; opacity: 0; font-weight: 400; }
.prose :is(h2, h3):hover .anchor { opacity: 1; }
.prose strong { color: #fff; font-weight: 700; }
.prose figure { margin: 1.6rem 0; }
.prose figure img { border-radius: var(--r); }
.prose figcaption { color: var(--ink-3); font-size: 0.88rem; margin-top: 0.45rem; }
.prose blockquote { margin: 1.4rem 0; padding: 0.85rem 1.15rem 0.8rem; border-left: 5px solid var(--violet); background: var(--panel); border-radius: 0 var(--r) var(--r) 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.callout-tip { border-left-color: var(--teal) !important; }
.callout-note { border-left-color: var(--violet) !important; }
.callout-warning, .callout-important { border-left-color: var(--orange) !important; background: rgba(255, 138, 61, 0.08) !important; }
.callout-label { display: block; font-size: 0.92rem; font-weight: 800; color: var(--teal); margin-bottom: 0.1rem; }
.callout-note .callout-label { color: var(--violet); }
.callout-warning .callout-label, .callout-important .callout-label { color: var(--orange); }
.table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--rule); border-radius: var(--r); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; line-height: 1.5; }
.prose th, .prose td { padding: 0.6rem 0.85rem 0.5rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { background: var(--panel-2); font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

.faq { margin-top: 2.6rem; }
.faq details { border-bottom: 1px solid var(--rule); padding: 0.85rem 0 0.75rem; }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; color: var(--c); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq p { margin: 0.5rem 0 0.2rem; color: var(--ink-2); max-width: 66ch; }
.sources { margin-top: 2.4rem; }
.sources h2 { font-size: 1.1rem; }
.sources ul { padding-left: 1.2rem; margin: 0 0 0.8rem; }
.sources li { margin: 0.2rem 0; }
.helpful { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 2.4rem 0; padding: 1rem 1.2rem; background: var(--panel); border-radius: var(--r); }
.helpful span { font-weight: 700; margin-right: auto; }
.comments { margin-top: 2.4rem; }
.comment-form { display: grid; gap: 0.6rem; }
.comment-form textarea { width: 100%; background: var(--panel); border: 1px solid var(--rule-strong); color: var(--ink); border-radius: var(--r); padding: 0.7rem; font: inherit; }
.comment-form textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 79, 147, 0.22); }
.comment-form button { justify-self: end; }
.comment { border-top: 1px solid var(--rule); padding: 0.9rem 0; }
.comment-meta { font-size: 0.85rem; color: var(--ink-3); }
.comment p { margin: 0.3rem 0 0; white-space: pre-wrap; }

/* ---------- Ads: reserved space, clearly labelled, never jumpy */
.ad { margin: 24px auto; text-align: center; min-height: calc(var(--ad-h) + 20px); contain: layout; }
.ad-label { display: block; font-size: 0.72rem; color: var(--ink-3); margin-bottom: 4px; }
.ad-inner { min-height: var(--ad-h); display: flex; align-items: center; justify-content: center; }
.ad-inner:empty { background: rgba(255, 255, 255, 0.02); border-radius: var(--r); }
.ad-leaderboard { margin: 14px auto 0; max-width: 970px; }
.ad-incontent { margin: 2rem 0; padding: 0.4rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ad-sidebar { margin: 0; }
@media (max-width: 760px) {
  .ad { min-height: calc(var(--ad-hm) + 20px); }
  .ad-inner { min-height: var(--ad-hm); }
  .ad-sidebar, .ad-leaderboard { display: none; } /* mobile: provider's closable anchor unit instead */
  .crumbs li:last-child { display: none; }
}

/* ---------- MCP promo / AI page */
.mcp-promo { display: flex; gap: 2rem; align-items: center; justify-content: space-between; padding: 1.6rem 1.8rem; background: var(--panel); border-left: 5px solid var(--teal); border-radius: 0 var(--r) var(--r) 0; margin: 1rem 0 2rem; }
.mcp-promo h2 { margin: 0 0 0.4rem; font-size: 1.3rem; }
.mcp-promo p { margin: 0; color: var(--ink-2); max-width: 640px; }
@media (max-width: 760px) { .mcp-promo { flex-direction: column; align-items: flex-start; } }
.code-copy { display: flex; gap: 0.6rem; align-items: center; background: #0a0618; border: 1px solid var(--rule); border-radius: var(--r); padding: 0.5rem 0.5rem 0.5rem 1rem; margin: 1.2rem 0; }
.code-copy code { background: none; flex: 1; font-size: 0.95rem; overflow-x: auto; }

/* ---------- Search */
.search-results { list-style: none; padding: 0; margin: 1rem 0 0; }
.search-results li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.search-results a { display: flex; gap: 0.6rem; align-items: baseline; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.search-results a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.search-results p { margin: 0.3rem 0 0; font-size: 0.95rem; }
.big-404 { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; font-size: 8rem; line-height: 1; margin: 0; color: var(--panel-2); }
.not-found h1 { color: var(--red); font-size: clamp(2.6rem, 6vw, 4rem); margin-top: 0; }
.not-found .hero-search { margin-left: auto; margin-right: auto; }

/* ---------- Forms & account */
.auth-box { max-width: 440px; }
.form { display: grid; gap: 1rem; margin: 1.2rem 0; }
.form label { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.92rem; }
.form label.check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; }
.form label.check input { width: auto; margin-top: 0.3rem; accent-color: var(--pink); }
.form-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.form-row label { flex: 1; min-width: 200px; }
.form-row input { flex: 1; min-width: 180px; }
form.inline { display: inline; }
.flash { padding: 0.8rem 1rem 0.7rem; border-radius: 0 var(--r) var(--r) 0; margin: 1rem 0; border-left: 5px solid; background: var(--panel); }
.flash-error { border-color: var(--red); }
.flash-ok { border-color: var(--teal); }
.flash-warn { border-color: var(--orange); }
.plain-list { list-style: none; padding: 0; }
.plain-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.status { font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.5rem 0.1rem; border-radius: 4px; background: var(--panel-2); color: var(--ink-2); }
.status-published, .status-approved { color: var(--teal); }
.status-pending { color: var(--gold); }
.status-rejected { color: var(--red); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 1.5rem; }
.media-item { margin: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.media-item img, .media-item video { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--panel-2); }
.media-item figcaption { padding: 0.6rem; display: grid; gap: 0.4rem; font-size: 0.85rem; }
.media-item input { background: var(--night); border: 1px solid var(--rule); color: var(--ink-3); border-radius: 4px; padding: 0.3rem 0.5rem; font-size: 0.78rem; }
.mod-item { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 0.8rem 1rem; margin: 0.6rem 0; }
.mod-body { max-height: 360px; white-space: pre-wrap; }

/* ---------- Footer */
.site-footer { margin-top: 72px; border-top: 1px solid var(--rule); background: #0a0619; padding: 44px 0 52px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h3 { font-size: 0.92rem; font-weight: 800; color: var(--ink); margin: 0.2rem 0 0.6rem; }
.footer-grid a:not(.logo) { display: block; color: var(--ink-3); text-decoration: none; padding: 0.15rem 0; font-size: 0.93rem; }
.footer-grid a:not(.logo):hover { color: var(--ink); }
.footer-grid p { max-width: 42ch; margin-top: 1rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

.admin-table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.admin-table th, .admin-table td { padding: 0.6rem 0.8rem 0.5rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.admin-table th { background: var(--panel-2); font-weight: 700; }
.admin-table select { background: var(--panel); color: var(--ink); border: 1px solid var(--rule-strong); border-radius: 4px; padding: 0.35rem 0.5rem; font: inherit; }
.admin-table .form-row { gap: 0.4rem; flex-wrap: nowrap; }
.form-row > input:not([type=hidden]), .form-row > select { background: var(--panel); border: 1px solid var(--rule-strong); color: var(--ink); border-radius: var(--r); padding: 0.6rem 0.9rem 0.5rem; font: inherit; }
.form-row > input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 79, 147, 0.22); }

/* ---------- Guide editor */
.editor-bar { position: sticky; top: 64px; z-index: 40; background: rgba(21, 13, 46, 0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.editor-bar-row { display: flex; align-items: center; gap: 1rem; min-height: 56px; }
.editor-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor-actions { display: flex; gap: 0.5rem; align-items: center; }
.editor-actions select { background: var(--panel); color: var(--ink); border: 1px solid var(--rule-strong); border-radius: var(--r); padding: 0.55rem 0.9rem 0.45rem; font: inherit; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-top: 20px; }
.editor-main { min-width: 0; }
.editor fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.slug-row { display: flex; gap: 0.5rem; align-items: center; }
.slug-row input { flex: 1; }
.counter { float: right; font-size: 0.78rem; font-weight: 600; color: var(--ink-3); }
.counter-ok { color: var(--teal); }
.counter-low, .counter-high { color: var(--gold); }
.md-editor { border: 1px solid var(--rule-strong); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.md-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 5px; border-bottom: 1px solid var(--rule); background: var(--panel-2); position: sticky; top: 120px; z-index: 2; }
.md-toolbar button { background: transparent; border: 0; color: var(--ink); font: 700 0.84rem/1 var(--font); padding: 0.5rem 0.6rem 0.4rem; border-radius: 4px; cursor: pointer; }
.md-toolbar button:hover { background: var(--rule); }
#f-body { width: 100%; border: 0; background: transparent; color: var(--ink); font: 0.92rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 1rem; resize: vertical; min-height: 480px; }
#f-body:focus { outline: none; }
[data-wordcount] { padding: 0 1rem 0.6rem; margin: 0; }
.editor-section { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 0.8rem 1rem 0.7rem; margin: 1rem 0; }
.editor-section summary { font-weight: 700; }
.repeat-row { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 0.5rem; margin: 0.5rem 0; align-items: start; }
.repeat-row input, .repeat-row textarea { background: var(--night); border: 1px solid var(--rule); color: var(--ink); border-radius: 4px; padding: 0.5rem 0.7rem 0.4rem; font: inherit; width: 100%; }
.remove-row { color: var(--ink-3); padding: 0.5rem; }
.editor-footer { display: flex; gap: 0.6rem; justify-content: space-between; margin: 1.2rem 0; }
.editor-preview { position: sticky; top: 136px; align-self: start; max-height: calc(100vh - 156px); display: flex; flex-direction: column; background: var(--night); border: 1px solid var(--rule); border-radius: var(--r); }
.preview-head { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 1rem 0.6rem; border-bottom: 1px solid var(--rule); background: var(--panel); }
.preview-scroll { overflow-y: auto; padding: 0 1.2rem 1.2rem; }
.preview-scroll .quick-answer { margin-top: 1rem; }
@media (max-width: 1020px) {
  .editor-grid { grid-template-columns: 1fr; }
  .editor-preview { position: static; max-height: none; }
  .md-toolbar { top: 0; position: static; }
}
.media-dialog { width: min(900px, 94vw); max-height: 86vh; background: var(--panel); color: var(--ink); border: 1px solid var(--rule-strong); border-radius: var(--r); padding: 1rem 1.2rem; }
.media-dialog::backdrop { background: rgba(5, 2, 15, 0.7); }
.media-dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.media-upload-inline { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.media-upload-inline input:not([type=file]) { flex: 1; min-width: 200px; background: var(--night); border: 1px solid var(--rule-strong); color: var(--ink); border-radius: var(--r); padding: 0.55rem 0.9rem 0.45rem; font: inherit; }
.media-grid.picker { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.media-pick { background: var(--night); border: 1px solid var(--rule); border-radius: var(--r); padding: 0; overflow: hidden; cursor: pointer; color: var(--ink-3); text-align: left; font: 0.8rem/1.3 var(--font); }
.media-pick:hover { border-color: var(--pink); }
.media-pick img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.media-pick span { display: block; padding: 0.4rem 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor .form label:not(.check) { display: block; position: relative; }
.editor .form label > input, .editor .form label > textarea, .editor .form label > select { display: block; width: 100%; margin-top: 0.35rem; }
.editor .form label > .slug-row { margin-top: 0.35rem; }
.editor .counter { position: absolute; right: 0; top: 0.15rem; float: none; }
.editor .form label:not(.check) > .muted.small { display: block; font-weight: 400; margin-top: 0.1rem; }

/* ---------- Interactive maps */
.map-body .site-footer { margin-top: 0; }
.map-app { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: calc(100vh - 65px); height: calc(100dvh - 65px); border-bottom: 1px solid var(--rule); transition: grid-template-columns 0.22s ease; }
.map-side { position: relative; display: flex; flex-direction: column; gap: 0.9rem; overflow-y: auto; overflow-x: hidden; padding: 0.5rem 1rem 1.2rem; background: #110a27; border-right: 1px solid var(--rule); scrollbar-width: thin; }
.map-side-head { position: relative; }
.map-side-head .crumbs ol { margin-top: 0.4rem; padding-right: 2.4rem; }
.map-side-collapse { position: absolute; top: 0.35rem; right: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rule-strong); background: var(--panel); color: var(--ink-2); cursor: pointer; }
.map-side-collapse:hover { color: var(--ink); border-color: var(--ink-3); }
.map-title { font-size: 1.6rem; line-height: 1.1; margin: 0.45rem 0 0.35rem; }
.map-sync { margin: 0; color: var(--ink-3); line-height: 1.45; }

/* Search with a results dropdown */
.map-find { position: relative; }
.map-find-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); display: grid; pointer-events: none; }
.map-search { width: 100%; background: var(--panel); border: 1px solid var(--rule-strong); color: var(--ink); border-radius: 999px; padding: 0.6rem 0.9rem 0.5rem 2.4rem; font: inherit; }
.map-search::placeholder { color: var(--ink-3); }
.map-search:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 79, 147, 0.22); }
.map-results { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; max-height: min(60vh, 420px); overflow-y: auto; list-style: none; margin: 0; padding: 0.3rem; background: var(--panel); border: 1px solid var(--rule-strong); border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); }
.map-result { display: grid; grid-template-columns: auto 1fr auto; gap: 0.65rem; align-items: center; padding: 0.45rem 0.55rem; border-radius: 6px; cursor: pointer; }
.map-result:hover, .map-result.is-active { background: var(--panel-2); }
.map-result strong { display: block; font-size: 0.93rem; line-height: 1.25; }
.map-result small { display: block; color: var(--ink-3); font-size: 0.78rem; line-height: 1.3; }
.map-result em { font-style: normal; font-size: 0.72rem; font-weight: 700; color: var(--teal); }
.map-noresult { padding: 0.7rem; color: var(--ink-3); font-size: 0.9rem; }
.mr-chip, .map-chip, .mp-chip { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: var(--c); color: #120a24; }
.mr-chip { width: 26px; height: 26px; }

/* Quick actions */
.map-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.map-quick-btn { padding: 0.5rem 0.4rem 0.42rem; border-radius: 8px; border: 1px solid var(--rule-strong); background: var(--panel); color: var(--ink); font: 700 0.84rem/1.1 var(--font); cursor: pointer; }
.map-quick-btn:hover { border-color: var(--ink-3); }
.map-quick-btn[aria-pressed="true"] { background: var(--ink); color: #120a24; border-color: var(--ink); }

/* Category groups */
.map-groups { display: grid; gap: 0.3rem; }
.map-group + .map-group { border-top: 1px solid var(--rule); padding-top: 0.5rem; }
.map-group-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.15rem 0 0.25rem; }
.map-group-name { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0; border: 0; background: none; color: var(--ink-2); font: 700 0.86rem/1.2 var(--font); cursor: pointer; }
.map-group-name:hover { color: var(--ink); }
.map-group-name svg { width: 15px; height: 15px; transition: transform 0.18s ease; }
.map-group.is-folded .map-group-name svg { transform: rotate(-90deg); }
.map-group.is-folded .map-cat-list { display: none; }
.map-switch { position: relative; width: 34px; height: 20px; border-radius: 999px; border: 0; background: var(--rule-strong); cursor: pointer; transition: background-color 0.15s ease; flex-shrink: 0; }
.map-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transition: transform 0.15s ease; }
.map-switch[aria-checked="true"] { background: var(--pink); }
.map-switch[aria-checked="true"]::after { transform: translateX(14px); }
.map-cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.map-cat-row { display: grid; grid-template-columns: 1fr auto; align-items: center; border-radius: 8px; }
.map-cat-row:hover { background: var(--panel-2); }
.map-cat { display: grid; grid-template-columns: auto 1fr auto; gap: 0.6rem; align-items: center; width: 100%; padding: 0.38rem 0.3rem 0.38rem 0.35rem; border: 0; background: none; color: var(--ink); font: 500 0.93rem/1.25 var(--font); text-align: left; cursor: pointer; border-radius: 8px; }
.map-chip { width: 26px; height: 26px; transition: background-color 0.15s ease; }
.map-chip svg { width: 15px; height: 15px; }
.map-cat-count { font-size: 0.8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.map-cat-next { display: grid; place-items: center; width: 30px; height: 30px; margin-right: 0.15rem; border: 0; border-radius: 50%; background: none; color: var(--ink-3); cursor: pointer; }
.map-cat-next:hover { color: var(--ink); background: var(--rule); }
.map-cat-next svg { width: 16px; height: 16px; }
.map-cat-row.is-off .map-cat { color: var(--ink-3); }
.map-cat-row.is-off .map-chip { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1.5px var(--rule-strong); }
.map-cat-row.is-off .map-cat-label { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.25); }
.map-cat-row.is-done .map-cat-count { color: var(--teal); font-weight: 700; }

/* Every location (no-JS / crawler list) */
.map-all { border-top: 1px solid var(--rule); padding-top: 0.7rem; }
.map-all summary { cursor: pointer; font-weight: 700; font-size: 0.88rem; color: var(--ink-2); }
.map-list-h { font-size: 0.86rem; font-weight: 800; color: var(--ink); margin: 1rem 0 0.25rem; }
.map-list ul { list-style: none; margin: 0; padding: 0; }
.map-list a { display: block; padding: 0.28rem 0.4rem 0.2rem; border-radius: 4px; color: var(--ink-2); text-decoration: none; font-size: 0.9rem; }
.map-list a:hover { background: var(--panel-2); color: var(--ink); }
.map-list li.is-found a { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.3); }
.map-note { margin: 0; }

/* Stage */
.map-stage { position: relative; min-width: 0; }
.map-canvas { position: absolute; inset: 0; background: #0b1130; }
.map-side-toggle { position: absolute; z-index: 500; top: 12px; left: 12px; display: none; align-items: center; gap: 0.4rem; padding: 0.5rem 0.85rem 0.45rem 0.7rem; border-radius: 999px; border: 1px solid var(--rule-strong); background: rgba(13, 8, 32, 0.92); color: var(--ink); font: 700 0.88rem/1 var(--font); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.map-app.side-closed { grid-template-columns: 0 minmax(0, 1fr); }
.map-app.side-closed .map-side { visibility: hidden; }
.map-app.side-closed .map-side-toggle { display: inline-flex; }
.map-canvas.leaflet-container { font: inherit; background: #0b1130; }
.leaflet-control-zoom a { background: var(--panel) !important; color: var(--ink) !important; border-color: var(--rule) !important; }
.leaflet-bar { border: 1px solid var(--rule) !important; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5) !important; }

/* Pins: round, coloured by category, with the category icon. map.js shrinks them when zoomed out. */
.pin-wrap { display: grid; place-items: center; background: none; border: 0; }
.pin { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 2px solid #0d0820; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55); color: #120a24; font: 800 0.8rem/1 var(--font); transition: width 0.15s ease, height 0.15s ease, transform 0.15s ease; }
.pin > svg { width: 15px; height: 15px; }
.leaflet-marker-icon:hover .pin, .leaflet-marker-icon:focus-visible .pin { transform: scale(1.18); }
.pin.is-major { width: 32px; height: 32px; border-width: 2.5px; }
.pin.is-found { background: color-mix(in srgb, var(--c) 35%, #3a3550); color: rgba(18, 10, 36, 0.75); opacity: 0.75; }
.pin.is-draft { outline: 2px dashed #fff; outline-offset: 2px; }
.pin.is-ghost { animation: pulse-pin 1.2s infinite; }
@keyframes pulse-pin { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 25%, transparent); } }
.pins-dot .pin:not(.is-major) { width: 11px; height: 11px; border-width: 1.5px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.pins-dot .pin:not(.is-major) > * { display: none; }
.pins-small .pin:not(.is-major) { width: 21px; height: 21px; border-width: 1.5px; }
.pins-small .pin:not(.is-major) > svg { width: 12px; height: 12px; }
.pin-tip.leaflet-tooltip { background: #0d0820; color: var(--ink); border: 1px solid var(--rule-strong); border-radius: 6px; padding: 0.3rem 0.55rem 0.22rem; font: 700 0.82rem/1.2 var(--font); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5); }
.pin-tip.leaflet-tooltip-top::before { border-top-color: var(--rule-strong); }

/* Popup */
.gth-popup .leaflet-popup-content-wrapper { background: var(--panel); color: var(--ink); border: 1px solid var(--rule-strong); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); padding: 0; overflow: hidden; }
.gth-popup .leaflet-popup-tip { background: var(--panel); }
.gth-popup .leaflet-popup-content { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.gth-popup a.leaflet-popup-close-button { top: 10px; right: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-3); font-size: 20px; }
.gth-popup a.leaflet-popup-close-button:hover { color: var(--ink); background: var(--panel-2); }
.mp { padding: 0.9rem 1rem 0; border-top: 3px solid var(--c); }
.mp p { margin: 0; }
.mp-cat { display: flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; font-weight: 700; color: var(--c); padding-right: 1.6rem; }
.mp-chip { width: 22px; height: 22px; }
.mp-title { margin: 0.45rem 0 0.1rem; font-size: 1.15rem; line-height: 1.2; }
.mp-area { color: var(--ink-3); font-size: 0.84rem; }
.mp-img { display: block; width: 100%; border-radius: 6px; margin-top: 0.7rem; }
.mp .mp-text { margin-top: 0.6rem; color: var(--ink-2); }
.mp .mp-real { margin-top: 0.5rem; font-size: 0.82rem; color: var(--ink-3); }
.mp-guide { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.7rem; font-weight: 700; font-size: 0.88rem; color: var(--c); text-decoration: none; }
.mp-guide:hover { text-decoration: underline; }
.mp-found { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.8rem; padding: 0.55rem 0.7rem 0.5rem; border: 1px solid var(--rule-strong); border-radius: 8px; font-weight: 700; cursor: pointer; }
.mp-found:hover { border-color: var(--c); }
.mp-found:has(input:checked) { background: color-mix(in srgb, var(--c) 14%, transparent); border-color: var(--c); }
.mp-found input { width: 18px; height: 18px; margin: 0; accent-color: var(--c); }
.mp-found[data-error]::after { content: attr(data-error); margin-left: auto; font-size: 0.78rem; font-weight: 400; color: #ff8a8a; }
.mp-foot { display: flex; align-items: center; gap: 0.2rem; margin: 0.7rem -1rem 0; padding: 0.35rem 0.5rem; border-top: 1px solid var(--rule); background: rgba(0, 0, 0, 0.18); }
.mp-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; }
.mp-icon:hover { color: var(--ink); background: var(--panel-2); }
.mp-copied { font-size: 0.78rem; color: var(--teal); }
.mp-step { display: flex; align-items: center; margin-left: auto; }
.mp-count { min-width: 3.6em; text-align: center; font-size: 0.82rem; font-weight: 700; color: var(--c); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .map-app, .map-app.side-closed { grid-template-columns: 1fr; position: relative; }
  .map-side { position: absolute; z-index: 600; inset: 0 auto 0 0; width: min(340px, 88vw); transition: transform 0.2s; box-shadow: 0 0 40px rgba(0, 0, 0, 0.6); }
  .map-app.side-closed .map-side { transform: translateX(-105%); }
}
@media (prefers-reduced-motion: reduce) { .pin.is-ghost { animation: none; } .map-app { transition: none; } }

/* Map card on hub pages: a preview of the map beside the title and button */
.map-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin: 0.4rem 0 1.8rem; background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color 0.15s; }
.map-card:hover { color: var(--ink); border-color: var(--c); }
.map-card-img { position: relative; display: block; min-height: 230px; overflow: hidden; background: #2c66a5; }
.map-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.map-card:hover .map-card-img img { transform: scale(1.04); }
.map-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 72%, var(--panel) 100%); }
.map-card-text { display: grid; align-content: center; justify-items: start; gap: 0.6rem; padding: 1.7rem 1.9rem; }
.map-card-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.05; }
.map-card-desc { color: var(--ink-2); line-height: 1.5; }
.map-card .btn { margin-top: 0.4rem; }
@media (max-width: 760px) {
  .map-card { grid-template-columns: 1fr; }
  .map-card-img { min-height: 170px; }
  .map-card-img::after { background: linear-gradient(180deg, transparent 70%, var(--panel) 100%); }
  .map-card-text { padding: 1.1rem 1.2rem 1.3rem; }
}

/* Map editor */
.map-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
.map-canvas-editor { position: relative; height: 72vh; border-radius: var(--r); border: 1px solid var(--rule); overflow: hidden; }
.map-marker-form { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 1rem; margin: 0; align-self: start; }
.map-marker-form h2 { margin: 0; font-size: 1.1rem; }
@media (max-width: 960px) { .map-editor-grid { grid-template-columns: 1fr; } }

/* ---------- Insights */
.insights-totals { margin: 1rem 0 0.5rem; }
.insights-totals dd { font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.insights-chart { margin: 1rem 0 1.5rem; }
.insights-chart svg { width: 100%; height: auto; }
.insights-chart .bar { fill: var(--pink); opacity: 0.85; }
.insights-chart .bar:hover { opacity: 1; fill: var(--gold); }
.insights-chart .axis { stroke: var(--rule-strong); }
.insights-chart .tick { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.insights-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.views-bar { display: inline-block; min-width: 4.5rem; padding: 0.15rem 0.4rem; border-radius: 3px; background: linear-gradient(90deg, rgba(255, 79, 147, 0.28) var(--w), transparent var(--w)); }
.attention-reasons { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; margin: 0 0.5rem; }

/* ---------- Video agent */
.agent-checks { list-style: none; padding: 0; display: grid; gap: 0.3rem; margin: 1rem 0; }
.agent-checks li { padding-left: 1.6rem; position: relative; color: var(--ink-3); }
.agent-checks li::before { content: '\25CB'; position: absolute; left: 0.2rem; color: var(--gold); }
.agent-checks li.ok { color: var(--ink); }
.agent-checks li.ok::before { content: '\2713'; color: var(--teal); font-weight: 800; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.agent-card { display: grid; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; }
.agent-card:hover { color: var(--ink); border-color: var(--rule-strong); }
.agent-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.agent-card-body { display: grid; gap: 0.3rem; padding: 0.8rem 1rem 1rem; }
.agent-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1rem; }
@media (max-width: 860px) { .agent-cols { grid-template-columns: 1fr; } }
.agent-form { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 1rem; }
.agent-source { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.agent-actions { display: flex; gap: 0.8rem; }
.agent-error { margin: 0.3rem 0 0; color: #ff9aa5; }
.agent-review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
@media (max-width: 960px) { .agent-review { grid-template-columns: 1fr; } }
.agent-decision { margin: 1rem 0; }
.agent-draft { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.2rem 1.4rem; }
.agent-draft-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.8rem; margin: 0.3rem 0; }

/* Map credit line (required by the CC BY licence of gtadb.org tiles and data) */
.map-canvas.leaflet-container .leaflet-control-attribution { background: rgba(13, 8, 32, 0.85); color: var(--ink-3); font: 0.72rem/1.45 var(--font); padding: 3px 8px 2px; max-width: min(620px, 72vw); border-top-left-radius: 4px; }
.map-canvas.leaflet-container .leaflet-control-attribution a { color: var(--teal); }
.map-editor > .check { display: inline-flex; gap: 0.4rem; align-items: center; margin: 0 0 0.6rem; }

/* Page artwork (home + game hubs): a full-screen layer fixed to the viewport (works on iOS,
   unlike background-attachment: fixed). The content panel scrolls up over it. */
.page-art { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--night); }
/* The still image, shown until (or instead of) the 3D layers. With layers (data-bg) it's
   zoomed 3% about the centre, exactly like depth-art.js (uZoom 1.03), so the 3D version
   fades in on an identical frame instead of appearing to zoom in. */
.page-art::before { content: ''; position: absolute; inset: 0; background: var(--art-lg) var(--art-pos, right top) / cover no-repeat; }
.page-art[data-bg]::before { transform: scale(1.03); }
.page-art::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(13, 8, 32, 0.15); /* a light tint, so the art sits with the page */
}
.has-page-art { background: var(--night); }
.page-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.7s ease; }
.page-art canvas.is-ready { opacity: 1; }
/* The top of an art page is the artwork alone, no text on it. The header (title, intro,
   facts, tabs) is the first thing on the content panel, so it's always on a solid surface. */
.art-stage { position: relative; height: clamp(300px, 54vh, 600px); }
.panel-head { margin-bottom: 1.8rem; }
.panel-head .crumbs ol { margin-top: 0; }
.panel-head .hub-sign { padding: 0.9rem 0 0; }
.panel-head .hub-sign .lead { max-width: 62ch; }
/* Hub intro on the panel, matching the home page: title and intro on the left, the facts
   as a small spec list on the right, so the panel's width is used. */
.panel-head .hub-sign { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); column-gap: 3rem; align-items: end; }
.panel-head .hub-title { grid-column: 1; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.panel-head .hub-sign .lead { grid-column: 1; }
.panel-head .facts { grid-column: 2; grid-row: 1 / span 2; align-self: end; display: grid; gap: 0; margin: 0; }
.panel-head .facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 1.2rem; padding: 0.55rem 0; border-top: 1px solid var(--rule); }
.panel-head .facts div:last-child { border-bottom: 1px solid var(--rule); }
.panel-head .facts dd { text-align: right; }
@media (max-width: 860px) {
  .panel-head .hub-sign { grid-template-columns: 1fr; }
  .panel-head .facts { grid-column: 1; grid-row: auto; margin-top: 1.2rem; }
}
/* Home intro on the panel: headline and intro on the left, search on the right, so the
   panel's width is used instead of one tall column with empty space beside it. */
.home-head { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); column-gap: 3rem; align-items: end; margin-bottom: 2.2rem; }
.home-head .hero-title { grid-column: 1; margin: 0.2rem 0 0.8rem; max-width: 18ch; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.05; text-shadow: none; }
.home-head .hero-sub { grid-column: 1; color: var(--ink-2); text-shadow: none; }
.home-head .hero-search { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-top: 0; max-width: none; }
@media (max-width: 860px) {
  .home-head { grid-template-columns: 1fr; }
  .home-head .hero-search { grid-column: 1; grid-row: auto; margin-top: 1.4rem; }
}
/* Content sits on a centred panel; the artwork shows on both sides and below it.
   Panel is 32px wider than .wrap and padded 16px more, so its text lines up with the header. */
.art-content { padding: 8px 16px 72px; }
.art-content > .wrap { max-width: calc(var(--wrap) + 32px); padding: 32px 40px 40px; background: rgba(13, 8, 32, 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7); }
.has-page-art .site-footer { margin-top: 0; }
.home-body .home-cols { margin-top: 0.6rem; }
/* Artwork credit: a small line at the bottom of the page, under the content panel. */
.art-credit { max-width: calc(var(--wrap) + 32px); margin: 14px auto 0; padding: 0 4px; text-align: right; font-size: 0.72rem; color: rgba(244, 239, 255, 0.7); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
.art-content:has(.art-credit) { padding-bottom: 40px; }
@media (max-width: 760px) {
  .page-art::before { background-image: var(--art-sm); background-position: var(--art-pos, 68% top); }
  .art-content { padding: 0 0 48px; }
  .art-content > .wrap { padding: 24px 16px 32px; border-radius: 0; border-left: 0; border-right: 0; }
  .art-stage { height: 42vh; }
}

/* Category tabs swap the guide list in place (app.js); dim it briefly while loading. */
[data-swap="results"] { transition: opacity 0.15s ease; }
[data-swap="results"][aria-busy="true"] { opacity: 0.55; }

/* ---- Game details + series timeline (game hubs, /games) */
.all-games-link { margin: -0.6rem 0 2rem; text-align: right; font-weight: 600; }
.game-about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.game-about h2, .games-index h2 { margin: 0 0 1rem; font-size: 1.4rem; }
.game-details h3, .series-timeline h3 { margin: 1.6rem 0 0.4rem; font-size: 0.82rem; color: var(--ink-3); font-weight: 600; }
.gd-list { margin: 0; }
.gd-list div, .gd-releases tr { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--rule); }
.gd-list div:last-child, .gd-releases tr:last-child { border-bottom: 1px solid var(--rule); }
.gd-list dt, .gd-releases th { font-size: 0.86rem; color: var(--ink-3); font-weight: 600; text-align: left; }
.gd-list dd { margin: 0; font-weight: 700; }
.gd-list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; }
.gd-releases { width: 100%; border-collapse: collapse; }
.gd-releases td { font-weight: 700; }
.gd-releases td .muted { font-weight: 400; }
.gd-sequence { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1.4rem; }
.gd-sequence a { display: grid; gap: 0.15rem; padding: 0.8rem 1rem; border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); text-decoration: none; }
.gd-sequence a:hover { border-color: var(--c); }
.gd-sequence span { font-size: 0.8rem; color: var(--ink-3); }
.gd-next { grid-column: 2; text-align: right; }
.series-timeline ol { margin: 0; padding: 0; list-style: none; }
.series-timeline li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.6rem; padding: 0.32rem 0; }
.series-timeline .st-year { color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 600; }
.series-timeline a { color: var(--ink-2); text-decoration: none; }
.series-timeline a:hover { color: var(--ink); text-decoration: underline; }
.series-timeline li.is-current strong { color: var(--c); }
.series-timeline .st-group:first-of-type h3 { margin-top: 0.6rem; }
.games-index { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; }
.games-list { margin: 0; padding: 0; list-style: none; }
.games-list a { display: grid; grid-template-columns: 3.4rem 1fr auto; align-items: center; gap: 1rem; padding: 0.8rem 0.4rem; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.games-list li:last-child a { border-bottom: 1px solid var(--rule); }
.games-list a:hover { background: color-mix(in srgb, var(--c) 8%, transparent); }
.games-list a:hover strong { color: var(--c); }
.gl-year { font-weight: 700; color: var(--c); font-variant-numeric: tabular-nums; }
.gl-main { display: grid; gap: 0.1rem; }
.gl-main .muted { font-size: 0.88rem; }
.gl-count { font-size: 0.85rem; color: var(--ink-3); }
@media (max-width: 860px) {
  .game-about, .games-index { grid-template-columns: 1fr; }
  .gd-list div, .gd-releases tr { grid-template-columns: 7.5rem 1fr; }
}

/* ---- "All games" hover menu in the header */
.nav-drop { position: relative; display: flex; }
.nav-drop-panel { position: absolute; top: 100%; left: 50%; width: max-content; display: grid; grid-template-columns: repeat(3, auto); gap: 2rem; padding: 1.1rem 1.3rem 1.2rem; background: rgba(13, 8, 32, 0.97); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translate(-50%, -4px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s; }
/* invisible bridge so the menu doesn't close while the pointer crosses the gap */
.nav-drop-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-drop:hover .nav-drop-panel, .nav-drop:focus-within .nav-drop-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.nav-drop-col { display: grid; align-content: start; gap: 0.1rem; }
.nav-drop-head { font-size: 0.78rem; color: var(--ink-3); font-weight: 600; margin-bottom: 0.35rem; }
.nav-drop-col a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0.5rem; margin: 0 -0.5rem; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.nav-drop-col a:hover, .nav-drop-col a:focus-visible { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.nav-drop-col a[aria-current='page'] { color: var(--ink); }
.nav-drop-year { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (hover: none) { .nav-drop-panel { display: none; } }

/* ---- Shared artwork behind ordinary pages: the page content sits on one centred panel. */
.has-site-art { background: var(--night); }
.has-site-art .site-panel { max-width: calc(var(--wrap) + 32px); margin: 0 auto; padding-bottom: 40px; background: rgba(13, 8, 32, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7); overflow: clip; }
.has-site-art .site-panel--top { margin-top: clamp(120px, 24vh, 260px); }
.has-site-art .site-panel > section:first-child { background: none; }
.has-site-art .art-credit { margin-bottom: 40px; }
.has-site-art .site-footer { margin-top: 0; }
@media (max-width: 760px) {
  .has-site-art .site-panel { border-radius: 0; border-left: 0; border-right: 0; }
}

/* ---- Details box: regional dates, ratings, notes */
.gd-releases th .gd-note { display: block; margin-top: 0.15rem; font-weight: 400; font-size: 0.8rem; color: var(--ink-3); }
.gd-regions { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; }
.gd-regions li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.5rem; }
.gd-regions abbr { text-decoration: none; font-size: 0.78rem; font-weight: 600; color: var(--ink-3); padding-top: 0.12rem; cursor: help; }
.gd-ratings div { grid-template-columns: 9.5rem 1fr; }

/* ---- Page heading over the artwork (Rockstar-style): game name, big title, one action.
   No overlay on the art; a soft text shadow keeps it readable. */
.art-stage { display: flex; align-items: flex-end; }
.art-stage--compact { height: clamp(240px, 40vh, 420px); }
.stage-head { position: relative; width: 100%; max-width: calc(var(--wrap) + 32px); margin: 0 auto; padding: 0 40px 28px; }
.stage-eyebrow { margin: 0 0 0.35rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.stage-title { margin: 0; max-width: 22ch; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.02; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
.stage-action { margin-top: 1.1rem; }
.stage-action .hero-search { max-width: 560px; margin: 0; }
.stage-action .btn { border-radius: 999px; padding: 0.75rem 1.5rem; }
.has-site-art .art-credit, .art-content .art-credit { position: relative; }
@media (max-width: 760px) {
  .stage-head { padding: 0 16px 20px; }
  .art-stage--compact { height: 34vh; }
}

/* ---- Game wiki */
.wiki-nav { margin: 0.4rem 0 1.6rem; }
.wiki-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.6rem 2rem; }
.wiki-section-box h2 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.wiki-section-box h2 a { color: var(--ink); text-decoration: none; }
.wiki-section-box h2 a:hover { color: var(--c); }
.wiki-section-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.25rem; }
.wiki-section-box li a { color: var(--ink-2); text-decoration: none; }
.wiki-section-box li a:hover { color: var(--ink); text-decoration: underline; }
.wiki-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.wiki-card { display: grid; gap: 0.3rem; align-content: start; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); text-decoration: none; }
.wiki-card:hover { border-color: var(--c); }
.wiki-card strong { font-size: 1.1rem; }
.wiki-card-facts { font-size: 0.82rem; color: var(--c); font-weight: 600; }
.wiki-card-sum { color: var(--ink-2); font-size: 0.92rem; }
.wiki-empty { padding: 1.4rem 0; color: var(--ink-2); }
.wiki-entry { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.wiki-facts { padding: 0.2rem 0 0; }
.wiki-related { padding-left: 1.1rem; }
.wiki-sources { margin-top: 2rem; }
.wiki-back { margin-top: 2rem; font-weight: 600; }
.hub-wiki { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.2rem; margin: 0 0 1.8rem; padding: 0.9rem 1.1rem; border: 1px solid var(--rule); border-radius: 8px; }
.hub-wiki a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.hub-wiki a:hover { color: var(--ink); }
.hub-wiki .hub-wiki-title { color: var(--c); margin-right: 0.4rem; }
@media (max-width: 860px) { .wiki-entry { grid-template-columns: 1fr; } }

/* Top-nav wiki flyout: sections on the left, the hovered section's entries beside it */
.nav-wiki .nav-drop-panel { display: block; padding: 0.5rem; left: 0; transform: translate(0, -4px); }
.nav-wiki:hover .nav-drop-panel, .nav-wiki:focus-within .nav-drop-panel { transform: translate(0, 0); }
.nav-wiki-sections, .nav-wiki-entries { margin: 0; padding: 0; list-style: none; }
.nav-wiki-sections > li { position: relative; }
.nav-wiki-sections a { display: block; padding: 0.45rem 2rem 0.45rem 0.8rem; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.nav-wiki-sections a:hover, .nav-wiki-sections li:hover > a { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.nav-wiki-sections > li.has-sub > a::after { content: '›'; position: absolute; right: 0.8rem; color: var(--ink-3); }
.nav-wiki-entries { position: absolute; left: 100%; top: -0.5rem; min-width: 13rem; padding: 0.5rem; margin-left: 0.5rem; background: rgba(13, 8, 32, 0.97); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); display: none; }
.nav-wiki-entries::before { content: ''; position: absolute; left: -0.6rem; top: 0; bottom: 0; width: 0.6rem; }
.nav-wiki-sections > li:hover > .nav-wiki-entries, .nav-wiki-sections > li:focus-within > .nav-wiki-entries { display: block; }

/* ---- Media pages: videos, galleries, lightbox */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; margin-bottom: 2.4rem; }
.video-grid--wide { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.video-grid figure { margin: 0; }
.video-grid figcaption { margin-top: 0.5rem; font-weight: 700; }
.video-grid .video { margin: 0; }
.gallery-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.gallery-card { display: grid; gap: 0.25rem; color: var(--ink); text-decoration: none; }
.gallery-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--rule); }
.gallery-card:hover img { border-color: var(--c); }
.gallery-card span { font-size: 0.85rem; color: var(--ink-3); }
.media-group { margin-top: 1.6rem; }
.media-group h2 { font-size: 1.2rem; margin: 0 0 0.8rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.6rem; }
.media-grid a { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); }
.media-grid a:hover, .media-grid a:focus-visible { border-color: var(--c); }
.media-grid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.2s ease; }
.media-grid a:hover img { transform: scale(1.03); }
.media-credit { margin-top: 2rem; }
.wiki-gallery { margin-top: 2.4rem; }
.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgba(6, 3, 16, 0.94); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 0.7rem; max-height: 100vh; }
.lightbox img { max-width: 100%; max-height: 84vh; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: var(--ink-2); font-size: 0.9rem; }
.lightbox button { background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 0.4rem; opacity: 0.8; }
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lb-close { position: absolute; top: 12px; right: 16px; }
@media (max-width: 760px) { .lightbox { grid-template-columns: 40px 1fr 40px; } .video-grid--wide { grid-template-columns: 1fr; } }

/* ---- Official logos in page headings: square marks beside the title (Rockstar-style),
   wide wordmarks above it in place of the game's name. */
.stage-head--mark { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.stage-mark { flex: none; width: auto; height: clamp(96px, 12vw, 168px); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35)); }
.stage-text { min-width: 0; }
.stage-wordmark { display: block; width: auto; max-width: min(100%, 560px); height: clamp(30px, 3.6vw, 46px); object-fit: contain; object-position: left center; margin-bottom: 0.6rem; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)); }
@media (max-width: 560px) {
  .stage-head--mark { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stage-mark { height: 84px; }
}

/* Game hubs: the logo alone is the heading, so it's shown larger. */
.stage-head--logo-only .stage-mark { height: clamp(130px, 16vw, 220px); }
.stage-head--logo-only .stage-wordmark { height: clamp(44px, 6vw, 84px); max-width: min(100%, 820px); margin-bottom: 0; }
.stage-head--logo-only .stage-action { margin-top: 1.2rem; }

/* Radio station logos in the wiki */
.wiki-card-logo { width: auto; height: 64px; max-width: 160px; object-fit: contain; object-position: left center; margin-bottom: 0.4rem; }

/* ---- Game menu (primary) and filter chips (secondary) */
/* The game's tabs: the first row of the content panel, edge to edge, and sticky under the
   site header. --bt / --bx are the panel's top and side padding the bar reaches over. */
.game-nav { --bt: 32px; --bx: 40px; position: sticky; top: calc(var(--header-h, 65px) + 8px); z-index: 30; flex-wrap: nowrap; gap: 0 1.6rem; overflow-x: auto; scrollbar-width: none; margin: calc(-1 * var(--bt)) calc(-1 * var(--bx)) 1.8rem; padding: 0 var(--bx); background: transparent; border-bottom: 1px solid var(--rule); border-radius: 10px 10px 0 0; transition: box-shadow 0.2s ease, background-color 0.2s ease; }
.game-nav::-webkit-scrollbar { display: none; }
.game-nav a { flex-shrink: 0; padding: 1.05rem 0 0.9rem; font-size: 1rem; white-space: nowrap; }
.game-nav.is-stuck { --inset: 8px; margin-left: calc(var(--inset) - var(--bx)); margin-right: calc(var(--inset) - var(--bx)); padding: 0 calc(var(--bx) - var(--inset)); background: #0d0820; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 12px 28px -10px rgba(0, 0, 0, 0.85); }
.game-nav + .crumbs { margin-top: -0.6rem; margin-bottom: 0.4rem; }
.has-site-art .site-panel > .wrap { max-width: none; padding-left: 40px; padding-right: 40px; }
@supports not (overflow: clip) { .has-site-art .site-panel { overflow: visible; } }
@media (max-width: 760px) {
  .game-nav, .game-nav.is-stuck { --bx: 16px; --inset: 0px; border-radius: 0; }
  .art-content .game-nav { --bt: 24px; }
  .has-site-art .site-panel > .wrap { padding-left: 16px; padding-right: 16px; }
}
.chip-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip-nav a { display: inline-flex; align-items: center; gap: 0.15rem; padding: 0.32rem 0.8rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 0.86rem; font-weight: 600; }
.chip-nav a:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.3); }
.chip-nav a.active { color: var(--ink); border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.chip-nav a.active .pill-count { color: var(--ink-2); }
.wiki-nav { margin: 1.2rem 0 1.6rem; }
.game-nav + .chip-nav { margin-top: 1.2rem; }
.guides-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.6rem; margin: 2rem 0 1.2rem; }
.guides-head h2 { margin: 0; font-size: 1.4rem; }
.explore { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.explore h2 { margin: 0 0 1rem; font-size: 1.4rem; }
.explore-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.explore-card { display: grid; align-content: start; gap: 0.35rem; color: var(--ink); text-decoration: none; }
.explore-img { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); background: var(--panel-2); margin-bottom: 0.4rem; }
.explore-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.explore-card:hover .explore-img { border-color: var(--c); }
.explore-card:hover .explore-img img { transform: scale(1.04); }
.explore-card strong { font-size: 1.05rem; }
.explore-card span:last-child { color: var(--ink-2); font-size: 0.92rem; }

/* Game hub logo stays put like the background; the content panel scrolls up over it. */
.art-stage--pinned { position: sticky; top: var(--header-h, 65px); z-index: 0; }
.art-stage--pinned + .art-content { position: relative; z-index: 1; }

/* ---- Guides: overview shows the newest few; the guides page has the full list + chips */
.guides-all { font-weight: 700; font-size: 0.92rem; }
.guides-more { margin: 1.6rem 0 0; text-align: center; }
.guides-chips { margin: 1.2rem 0 1.6rem; }

/* ---- Floating scrollbar (see app.js): no track, no width taken from the page */
html.custom-scroll { scrollbar-width: none; }
html.custom-scroll::-webkit-scrollbar { width: 0; height: 0; }
.scroll-thumb { position: fixed; top: 0; right: 3px; z-index: 90; width: 6px; border-radius: 6px; background: rgba(244, 239, 255, 0.38); opacity: 0; transition: opacity 0.3s ease, width 0.15s ease, background-color 0.15s ease; cursor: grab; }
.scroll-thumb.is-active, .scroll-thumb:hover { opacity: 1; }
.scroll-thumb:hover, .scroll-thumb.is-drag { width: 9px; background: rgba(244, 239, 255, 0.6); }
.scroll-thumb.is-drag { cursor: grabbing; }
.scroll-thumb[hidden], .lb-open .scroll-thumb { display: none; }
/* Inner scroll areas (tables, code) get a slim, trackless native scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(244, 239, 255, 0.3) transparent; }

/* ---- Home: game picker as GTA box-art panels */
.cover-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 14px; margin: 0 0 2.6rem; background: #07040f; border-radius: 4px; }
.cover-panel { display: grid; grid-template-rows: auto 1fr; color: var(--ink); text-decoration: none; }
.cover-panel { perspective: 900px; }
.cover-art { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform 0.35s ease, box-shadow 0.35s ease; will-change: transform; }
.cover-panel.is-tilting .cover-art { transition: transform 0.08s linear, box-shadow 0.35s ease; box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.8); }
/* The white inner frame sits above the (zooming) image so hover never hides it */
.cover-art::after { content: ''; position: absolute; inset: 8px; z-index: 2; border: 2px solid rgba(255, 255, 255, 0.85); pointer-events: none; }
/* A soft highlight that follows the cursor */
.cover-art::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.22), transparent 55%); }
.cover-panel.is-tilting .cover-art::before { opacity: 1; }
.cover-logo, .cover-name { z-index: 3; }
.cover-art > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.cover-panel:hover .cover-art > img:first-child, .cover-panel:focus-visible .cover-art > img:first-child { transform: scale(1.05); }
.cover-logo { position: absolute; left: 22px; bottom: 22px; width: auto; max-width: calc(100% - 44px); height: 64px; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55)); }
.accent-sunset .cover-logo { height: 120px; }
.cover-name { position: absolute; left: 22px; bottom: 18px; font-size: 2.4rem; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6); }
.cover-info { display: grid; align-content: start; gap: 0.3rem; padding: 0.9rem 0.3rem 0.3rem; }
.cover-tag { font-size: 0.8rem; font-weight: 700; color: var(--c); }
.cover-newest { font-weight: 700; line-height: 1.3; }
.cover-panel:hover, .cover-panel:focus-visible { color: var(--ink); }
.cover-panel:hover .cover-newest, .cover-panel:focus-visible .cover-newest { color: var(--c); }
.cover-panel, .cover-panel:hover { text-decoration: none; }
.cover-count { font-size: 0.85rem; color: var(--ink-3); }

/* ---- Home: Leonida's cast */
.cast { margin-top: 3rem; }
.cast-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 0.9rem; }
.cast-card { display: grid; gap: 0.15rem; color: var(--ink); text-decoration: none; }
.cast-img { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; border: 1px solid var(--rule); margin-bottom: 0.35rem; }
.cast-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 0.4s ease; }
.cast-card:hover .cast-img { border-color: var(--pink); }
.cast-card:hover .cast-img img { transform: scale(1.05); }
.cast-card strong { font-size: 0.95rem; line-height: 1.2; }
.cast-card span:last-child { font-size: 0.8rem; color: var(--ink-3); }

/* ---- Home: every game's logo */
.series-strip { margin: 3rem 0 1rem; }
.series-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.series-logos a { display: flex; align-items: center; justify-content: center; height: 76px; padding: 0 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 -1px -1px 0; opacity: 0.72; transition: opacity 0.15s ease, transform 0.15s ease; color: var(--ink); text-decoration: none; font-weight: 700; }
.series-logos a:hover { opacity: 1; transform: translateY(-2px); }
.series-logos img { max-height: 30px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.series-logos a:first-child img { max-height: 52px; }
.series-logos a:hover { background: rgba(255, 255, 255, 0.04); }
@media (max-width: 860px) {
  .cover-panels { grid-template-columns: 1fr; }
  .cover-art { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) { .cover-art { transform: none !important; } .cover-panel:hover .cover-art > img:first-child { transform: none; } }

/* ---- Home: "Start here" story grid (lead story + picture cards) */
.home-stories { margin-top: 0.4rem; }
.home-stories .section-head a, .home-lists .section-head a, .cast .section-head a, .series-strip .section-head a { text-decoration: none; font-weight: 700; font-size: 0.92rem; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 1.4rem; }
.story { display: grid; align-content: start; gap: 0.4rem; color: var(--ink); text-decoration: none; }
.story:hover { color: var(--ink); }
.story-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; border: 1px solid var(--rule); background: var(--panel-2); margin-bottom: 0.35rem; }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.story:hover .story-img { border-color: var(--c); }
.story:hover .story-img img { transform: scale(1.04); }
.story-kicker { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 700; color: var(--ink-3); }
.story-title { font-size: 1.05rem; line-height: 1.3; }
.story:hover .story-title { color: var(--c); }
.story--lead { grid-column: span 2; grid-row: span 2; }
.story--lead .story-img { aspect-ratio: 16 / 10; }
.story--lead .story-title { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -0.025em; }
.story--lead .story-desc { color: var(--ink-2); font-size: 1rem; line-height: 1.55; max-width: 62ch; }

/* ---- Home: latest + community lists with thumbnails */
.home-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; margin-top: 3rem; }
.thumb-list { list-style: none; margin: 0; padding: 0; }
.thumb-list li + li { border-top: 1px solid var(--rule); }
.thumb-list a { display: grid; grid-template-columns: 112px 1fr; gap: 1rem; align-items: center; padding: 0.8rem 0; color: var(--ink); text-decoration: none; }
.thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; border: 1px solid var(--rule); background: var(--panel-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-text { display: grid; gap: 0.15rem; min-width: 0; }
.thumb-kicker { font-size: 0.75rem; font-weight: 700; color: var(--c); }
.thumb-title { font-weight: 700; line-height: 1.3; }
.thumb-list a:hover .thumb-title { color: var(--c); }
.thumb-list a:hover .thumb { border-color: var(--c); }
.thumb-list time { font-size: 0.8rem; color: var(--ink-3); }
.home-empty { padding: 0.6rem 0; line-height: 1.6; }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr 1fr; }
  .story--lead { grid-column: 1 / -1; grid-row: auto; }
  .home-lists { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 520px) { .story-grid { grid-template-columns: 1fr; } }

/* ---- Story spacing: image, pill, title and summary each get room */
.story { gap: 0; }
.story-img { margin-bottom: 1rem; }
.story-kicker { margin-bottom: 0.6rem; }
.story-title { line-height: 1.35; }
.story--lead .story-img { margin-bottom: 1.25rem; }
.story--lead .story-kicker { margin-bottom: 0.75rem; }
.story--lead .story-desc { margin-top: 0.85rem; }
.story-grid { row-gap: 2.4rem; }

/* Game badges: a fixed-height box with the text centred, so it never sits high or low */
.shield, .kicker-game, .gl-game { display: inline-flex; align-items: center; justify-content: center; height: 20px; padding: 0 0.45rem; line-height: 1; vertical-align: middle; }
/* Centre the capitals, not the font's line box: the box reserves descender space below the
   baseline, which leaves all-caps text ~1.3px high at this size. Measured, then offset in em. */
.shield, .kicker-game, .gl-game { padding-top: 0.22em; }

/* ---- Home hero search: one frosted pill (icon, field, button inside), so the field and
   button share a shape and height instead of a hard box next to a round button. */
.hero-search--bar { display: flex; align-items: center; gap: 0.4rem; width: min(100%, 560px); max-width: none; margin: 0; padding: 6px 6px 6px 18px; border-radius: 999px; background: rgba(13, 8, 32, 0.55); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.55); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.hero-search--bar:focus-within { border-color: rgba(255, 79, 147, 0.75); box-shadow: 0 0 0 3px rgba(255, 79, 147, 0.22), 0 12px 32px -12px rgba(0, 0, 0, 0.55); }
.hero-search--bar .search-icon { flex: none; color: rgba(244, 239, 255, 0.7); }
.hero-search--bar input, .hero-search--bar input:focus { flex: 1; min-width: 0; background: transparent; border: 0; box-shadow: none; padding: 0.55rem 0.3rem; font-size: 1.02rem; color: #fff; }
.hero-search--bar input::placeholder { color: rgba(244, 239, 255, 0.62); }
.stage-action .hero-search--bar .btn { flex: none; border-radius: 999px; padding: 0.7rem 1.4rem; }

/* ---- Header search vs the home hero search: hidden while the hero one is in view, then it
   slides in. The space stays reserved so the nav never shifts. */
.header-search { transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0s; }
body:has(.hero-search--bar):not(.hero-search-gone) .header-search { opacity: 0; transform: translateY(-10px) scale(0.98); visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s; }
@media (prefers-reduced-motion: reduce) { .header-search { transition: none !important; } }

/* Gradient buttons: the gradient spans the 1px border too (the colour classes set the
   background shorthand, which resets origin), so no wrapped-colour sliver at the edges. */
.btn[class*="btn-"] { background-origin: border-box; }

/* Gradient buttons: a light sweeps left to right across them on hover */
.btn-sunset, .btn-teal { position: relative; overflow: hidden; isolation: isolate; }
.btn-sunset::after, .btn-teal::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg);
}
.btn-sunset:hover::after, .btn-teal:hover::after, .btn-sunset:focus-visible::after, .btn-teal:focus-visible::after {
  transform: translateX(330%) skewX(-18deg); transition: transform 1.3s cubic-bezier(0.35, 0.6, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) { .btn-sunset::after, .btn-teal::after { display: none; } }

