@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&display=swap');
/* GTA VI Kingdom — shared theme. Pricedown appears only as pre-rendered images (font licence §2.2/§4.3). */
:root {
  --black: #000;
  --ink: #09070d;
  --panel: #110d18;
  --panel-2: #191322;
  --line: #2a2133;
  --line-2: #3a2e47;
  --cream: #fff7ed;
  --muted: #a99db8;
  --pink: #ff4fa3;
  --orange: #ff7a3d;
  --purple: #1a0b2e;
  --good: #46e0a0;
  --amber: #ffc24a;
  --bad: #ff5b6b;
  --grad: linear-gradient(100deg, var(--pink), var(--orange));
  /* Display face: Inter Tight stands in for Neue Haas Display (desktop licence can't be web-embedded).
     To switch after buying a Monotype web licence: add @font-face for 'Neue Haas Display' and put it first here. */
  --display: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --display-track: -.01em;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --r: 12px;
  /* selected / highlighted things glow all the way round instead of a side bar */
  --glow: 0 0 0 1px rgba(255, 79, 163, .55), 0 0 16px rgba(255, 79, 163, .4);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--black); color: var(--cream); font: 14px/1.5 var(--body); }
a { color: var(--pink); }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* header */
.k-top {
  display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: var(--black);
  border-bottom: 1px solid var(--line); position: relative; z-index: 1000; min-height: 58px;
}
.k-brand { display: block; line-height: 0; flex: none; }
.k-brand img { height: 40px; width: auto; display: block; }
.k-nav { display: flex; gap: 2px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.k-nav::-webkit-scrollbar { display: none; }
.k-nav a {
  font: 800 14px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; padding: 10px 12px; border-radius: 8px; white-space: nowrap;
}
.k-nav a:hover { color: var(--cream); background: var(--panel); }
.k-nav a { position: relative; }
.k-nav { padding: 10px 0 12px; margin: -10px 0 -12px 8px; }
.k-nav a.on { color: #fff; text-shadow: 0 0 14px rgba(255, 79, 163, .55); }
.k-nav a.on::after, .tab.on::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 3px; border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 6px rgba(255, 79, 163, 1), 0 0 14px rgba(255, 79, 163, .85), 0 0 26px rgba(255, 79, 163, .55), 0 0 40px rgba(255, 122, 61, .4);
}
@media (prefers-reduced-motion: no-preference) {
  .k-nav a.on::after, .tab.on::after { animation: k-glow 2.6s ease-in-out infinite alternate; }
}
@keyframes k-glow { from { opacity: .85; } to { opacity: 1; filter: brightness(1.15); } }
.k-user { display: flex; align-items: center; gap: 8px; flex: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2);
  background: var(--panel); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 600;
  white-space: nowrap; text-decoration: none; color: var(--cream); transition: border-color .12s, transform .12s, background .12s;
}
.btn:hover { border-color: var(--pink); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-hot { background: var(--grad); border-color: transparent; color: #fff; }
.btn-hot:hover { border-color: transparent; filter: brightness(1.08); }
.btn-small { padding: 5px 10px; font-size: 12px; }
.btn-ghost { background: transparent; }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord:hover { border-color: #fff; }
.btn.on { border-color: var(--good); color: var(--good); }
.btn.on-pink { border-color: var(--pink); color: var(--pink); }
.btn.on-bad { border-color: var(--bad); color: var(--bad); }

.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--panel-2); border: 2px solid var(--line-2); flex: none; display: inline-grid; place-items: center; font: 800 14px/1 var(--display); color: var(--cream); overflow: hidden; }
.avatar.lg { width: 88px; height: 88px; font-size: 40px; border-width: 3px; border-color: var(--pink); }

.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--panel-2); border: 1px solid var(--line-2); white-space: nowrap; }
.tag.good { color: var(--good); border-color: var(--good); }
.tag.warn { color: var(--amber); border-color: var(--amber); }
.tag.pink { color: var(--pink); border-color: var(--pink); }

/* forms */
.stack { display: grid; gap: 10px; }
.stack label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.field, .stack input[type=text], .stack input[type=email], .stack input[type=url], .stack select, .stack textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--ink);
  outline: none; color: var(--cream); font-weight: 400;
}
.stack textarea { min-height: 84px; resize: vertical; }
.field:focus, .stack :is(input, select, textarea):focus { border-color: var(--pink); }
.check { display: flex !important; align-items: center; gap: 8px !important; color: var(--cream) !important; font-weight: 400 !important; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 4px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }


/* modal + sheet */
.k-modal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(0,0,0,.72); padding: 16px; }
.k-modal-card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.6); max-height: calc(100vh - 32px); overflow-y: auto; }
.k-modal-card h2 { margin: 0 0 4px; }
.k-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; font-size: 18px; line-height: 1; }
.head-img { display: block; height: 30px; width: auto; margin: 0 0 12px; }
.head-img.sm { height: 24px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 4000; background: var(--panel);
  border: 1px solid var(--pink); padding: 10px 16px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.6);
  max-width: calc(100vw - 32px);
}
.k-foot { color: var(--muted); font-size: 12px; padding: 20px 16px 32px; border-top: 1px solid var(--line); }
.k-foot a { color: var(--muted); }

.progress { height: 10px; border-radius: 999px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--line-2); }
.progress > i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .4s ease; }

@media (max-width: 720px) {
  .k-top { flex-wrap: wrap; gap: 6px 10px; padding: 8px 16px 0; }
  .k-brand img { height: 30px; }
  .k-nav { order: 3; flex-basis: 100%; margin: 0 -4px; }
  .k-nav a { font-size: 12.5px; padding: 10px 8px; letter-spacing: 0; }
  .k-user { margin-left: auto; }
}

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.auth-tab { background: none; border: 0; border-radius: 999px; padding: 8px; cursor: pointer; font: 800 13px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.auth-tab.on { background: var(--panel-2); color: var(--cream); box-shadow: var(--glow); }

/* lightbox + photos */
.k-lightbox { position: fixed; inset: 0; z-index: 5000; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 48px 56px; }
.k-lightbox figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.k-lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.k-lightbox figcaption { color: var(--cream); font-weight: 600; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.k-lightbox figcaption small { color: var(--muted); font-weight: 400; }
.k-lightbox .k-x { position: fixed; top: 14px; right: 14px; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--cream); font-size: 26px; line-height: 1; cursor: pointer; }
.lb-nav:hover { border-color: var(--pink); }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.photo { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ink); border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.photo:hover img { transform: scale(1.04); }
.photo .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.8)); text-align: left; }
.photo .badge-official { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: rgba(0,0,0,.65); border: 1px solid var(--pink); color: #fff; }
@media (max-width: 720px) { .k-lightbox { padding: 48px 8px; } .lb-nav { top: auto; bottom: 14px; transform: none; } }

/* site-wide spoiler switch */
.k-spoil { display: inline-flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line-2); color: var(--muted); border-radius: 999px; padding: 6px 12px; font: 700 12px/1 var(--body, inherit); cursor: pointer; white-space: nowrap; margin-right: 8px; transition: color .15s, border-color .15s, box-shadow .15s; }
.k-spoil:hover { color: var(--cream); border-color: var(--pink); }
.k-spoil[aria-pressed="true"] { color: #fff; border-color: var(--pink); box-shadow: 0 0 12px rgba(255, 79, 163, .45); }
@media (max-width: 720px) { .k-spoil span { display: none; } .k-spoil { padding: 7px 9px; margin-right: 6px; } }
/* any element marked .spoiler-block blurs until spoilers are on */
.spoiler-block { position: relative; }
html:not(.spoilers-on) .spoiler-block > * { filter: blur(7px); user-select: none; pointer-events: none; }
html:not(.spoilers-on) .spoiler-block::after { content: 'Spoiler hidden. Use the "Spoilers hidden" switch at the top to reveal.'; position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px; color: #fff; font-weight: 700; font-size: 14px; background: rgba(0,0,0,.35); border-radius: 12px; }

/* ── light mode (header switch; saved per device) ─────────────────────── */
html[data-theme="light"] {
  --black: #f6f3f8; --ink: #ffffff; --panel: #ffffff; --panel-2: #f1ecf5;
  --line: #e4dcea; --line-2: #cdbfd9; --cream: #1a1320; --muted: #6a5d77; --purple: #f1e6fb;
  --bg: #f6f3f8; --bg-2: #ffffff; --card: #ffffff; --text: #1a1320;
  color-scheme: light;
}
html[data-theme="light"] .k-nav a.on, html[data-theme="light"] .tab.on,
html[data-theme="light"] .cctl input, html[data-theme="light"] .cbtn, html[data-theme="light"] .cmiss b,
html[data-theme="light"] .score p b, html[data-theme="light"] .art strong, html[data-theme="light"] .hosts td:first-child,
html[data-theme="light"] .k-spoil[aria-pressed="true"] { color: #120c17; }
html[data-theme="light"] .lede, html[data-theme="light"] .profile-head .bio { color: #3b3145; }
html[data-theme="light"] .cbar { background: rgba(0,0,0,.08); }
html[data-theme="light"] .tick.on { color: #fff; }
html[data-theme="light"] .k-top { box-shadow: 0 1px 0 var(--line); }
html[data-theme="light"] .skel { background: linear-gradient(90deg, #eee8f2, #f8f4fb, #eee8f2); background-size: 200% 100%; }
html[data-theme="light"] .wcard.img .im, html[data-theme="light"] .ncard .im, html[data-theme="light"] .nrow .th, html[data-theme="light"] .rcard .th { background-color: #e9e2ee; }
html[data-theme="light"] #map, html[data-theme="light"] .leaflet-container { background: #f6f3f8; }

.k-theme { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; margin-right: 6px; transition: color .15s, border-color .15s; flex: none; }
.k-theme:hover { color: var(--cream); border-color: var(--pink); }

/* collapsed comments */
.c-open { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); background: var(--panel); color: var(--cream); font-weight: 700; cursor: pointer; text-align: left; }
.c-open:hover { border-color: var(--pink); }
.c-open small { color: var(--muted); font-weight: 600; font-size: 12px; }
.c-author { color: inherit; text-decoration: none; } .c-author:hover b { color: var(--pink); }
.k-comments-section { margin-top: 34px; }
.k-comments-section h2 { font: 900 20px/1.1 var(--display); text-transform: uppercase; margin: 0 0 10px; }

/* comments (shared) */
.comment { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.comment > div { flex: 1; min-width: 0; }
.comment b { font-size: 13px; }
.comment p { margin: 3px 0 0; white-space: pre-wrap; word-wrap: break-word; }
.comments + form { margin-top: 10px; }
.k-brand .wm-light { display: none; }
html[data-theme="light"] .k-brand .wm-dark { display: none; }
html[data-theme="light"] .k-brand .wm-light { display: block; }

/* site search */
.k-modal-search { align-items: flex-start; padding-top: 10vh; }
.k-search input { width: 100%; font: 600 18px/1.2 var(--body); padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink); color: var(--cream); outline: none; }
.k-search input:focus { box-shadow: var(--glow); border-color: transparent; }
.k-res { margin-top: 10px; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.k-hit { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 9px 12px; border-radius: 10px; color: var(--cream); text-decoration: none; }
.k-hit b { font-weight: 700; } .k-hit small { grid-column: 2; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-hit:hover, .k-hit.on { background: var(--panel-2); box-shadow: var(--glow); text-decoration: none; }
.k-kind { grid-row: span 2; align-self: center; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--orange); min-width: 76px; }
@media (max-width: 720px) { .k-kind { min-width: 0; } }
.k-modal-search .k-modal-card { width: min(680px, 94vw); max-width: none; }


/* ── Leonida mode: modelled on GTA VI's own menus (dusky purple, condensed caps, white highlight rows, pink accents) ── */
html[data-theme="leonida"] {
  --black: #3d2f4d; --ink: rgba(20, 14, 30, .55); --panel: rgba(28, 20, 40, .42); --panel-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .22); --cream: #f6f0f7; --muted: #cbb9d3;
  --pink: #ee86b0; --orange: #f6a6c6; --purple: #3d2f4d;
  --grad: linear-gradient(90deg, #ee86b0, #f4a9c8);
  --bg: #3d2f4d; --bg-2: rgba(28, 20, 40, .42); --card: rgba(28, 20, 40, .42); --text: #f6f0f7;
  --display: 'Barlow Condensed', 'Inter Tight', sans-serif; --body: 'Inter', system-ui, -apple-system, sans-serif; --font: 'Inter', system-ui, -apple-system, sans-serif;
  --glow: 0 0 0 1px rgba(238, 134, 176, .7), 0 0 16px rgba(238, 134, 176, .35);
  color-scheme: dark;
}
html[data-theme="leonida"], html[data-theme="leonida"] body {
  background: #3d2f4d linear-gradient(160deg, #33273f 0%, #4b3657 40%, #6d4669 75%, #8c5683 100%) fixed;
}
html[data-theme="leonida"] body::before {
  content: ''; position: fixed; right: -40px; bottom: -10px; width: min(760px, 70vw); aspect-ratio: 600 / 420;
  background: url('/brand/palms.svg') no-repeat bottom right / contain; pointer-events: none; z-index: 0;
}
html[data-theme="leonida"] main, html[data-theme="leonida"] .k-top, html[data-theme="leonida"] .k-foot { position: relative; z-index: 1; }
/* type: condensed caps for anything that's a heading, tab or button */
html[data-theme="leonida"] h1, html[data-theme="leonida"] h2, html[data-theme="leonida"] h3,
html[data-theme="leonida"] .k-nav a, html[data-theme="leonida"] .tab, html[data-theme="leonida"] .btn,
html[data-theme="leonida"] .sec-head, html[data-theme="leonida"] .wcard b, html[data-theme="leonida"] .ccard b {
  font-family: var(--display); font-weight: 600; letter-spacing: .01em; text-transform: uppercase;
}
html[data-theme="leonida"] .art p, html[data-theme="leonida"] .art li { font-family: var(--body); }
/* top bar like the map screen */
html[data-theme="leonida"] .k-top { background: rgba(26, 28, 48, .88); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
html[data-theme="leonida"] .k-nav a { font-size: 17px; color: #e9e2ee; }
html[data-theme="leonida"] .k-nav a.on { color: var(--pink); text-shadow: none; }
html[data-theme="leonida"] .k-nav a.on::after, html[data-theme="leonida"] .tab.on::after { background: var(--pink); box-shadow: none; animation: none; height: 2px; }
/* selected rows / active items: white-to-clear highlight with dark text */
html[data-theme="leonida"] .wnav a.on, html[data-theme="leonida"] .layer-row:hover, html[data-theme="leonida"] .k-hit.on, html[data-theme="leonida"] .k-hit:hover {
  background: linear-gradient(90deg, #f4eff6 0%, #ebe4f0 70%, rgba(235, 228, 240, .35) 100%); color: #2c2236; box-shadow: none;
}
html[data-theme="leonida"] .wnav a.on small, html[data-theme="leonida"] .k-hit.on small, html[data-theme="leonida"] .k-hit:hover small { color: #6d5d78; }
html[data-theme="leonida"] .tab.on { background: #f4eff6; color: #2c2236; text-shadow: none; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }
html[data-theme="leonida"] .tab { clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }
/* cards: dark glass with a pink top edge, like the map's info card */
html[data-theme="leonida"] .card, html[data-theme="leonida"] .wcard, html[data-theme="leonida"] .ncard, html[data-theme="leonida"] .rcard,
html[data-theme="leonida"] .titem, html[data-theme="leonida"] .cline, html[data-theme="leonida"] .ccard, html[data-theme="leonida"] .sitem, html[data-theme="leonida"] .soon-card {
  background: rgba(24, 18, 36, .5); border: 0; border-radius: 6px; backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(238, 134, 176, .32), 0 0 14px rgba(238, 134, 176, .16);
}
html[data-theme="leonida"] .titem, html[data-theme="leonida"] .cline { border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; backdrop-filter: none; box-shadow: none; }
html[data-theme="leonida"] .titem:hover, html[data-theme="leonida"] .cline:hover { background: linear-gradient(90deg, rgba(244,239,246,.14), transparent); }
html[data-theme="leonida"] .wcard:hover, html[data-theme="leonida"] .ncard:hover { box-shadow: var(--glow); transform: none; }
/* buttons: solid pink, square-ish, condensed caps */
html[data-theme="leonida"] .btn { border-radius: 3px; font-size: 15px; }
html[data-theme="leonida"] .btn-hot { background: var(--pink); color: #2a1d36; }
html[data-theme="leonida"] .k-spoil, html[data-theme="leonida"] .k-theme { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #e9e2ee; }
/* section headings get the menu's thin pink rule */
html[data-theme="leonida"] .art h2, html[data-theme="leonida"] .sec-head { border-bottom: 1px solid rgba(238, 134, 176, .55); padding-bottom: 6px; }
html[data-theme="leonida"] .art table th { background: rgba(255,255,255,.08); font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; }
html[data-theme="leonida"] .art th, html[data-theme="leonida"] .art td { border-color: rgba(255,255,255,.14); }
html[data-theme="leonida"] .progress, html[data-theme="leonida"] .cbar { background: rgba(255,255,255,.14); }
html[data-theme="leonida"] .tick.on { background: var(--pink); color: #2a1d36; }
html[data-theme="leonida"] #map, html[data-theme="leonida"] .leaflet-container { background: #1f2337; }
html[data-theme="leonida"] .map-mask { fill: #1f2337; }
html[data-theme="leonida"] .k-modal-card { background: rgba(32, 24, 44, .92); border: 0; border-radius: 8px; box-shadow: var(--glow), 0 20px 50px rgba(0, 0, 0, .45); }
.k-prompts { display: none; }
@media (min-width: 900px) {
  html[data-theme="leonida"] .k-prompts { display: flex; gap: 18px; position: fixed; right: 26px; bottom: 18px; z-index: 900; }
  html[data-theme="leonida"] body[data-page="map"] .k-prompts { display: none; }
  .k-prompts button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font: 600 17px/1 'Barlow Condensed', sans-serif; text-transform: uppercase; color: #f4eff6; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
  .k-prompts button:hover { color: var(--pink); }
  .k-prompts i { font-style: normal; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid currentColor; font-size: 12px; line-height: 1; }
}

/* Walkthrough screenshots from our own playthrough */
.g-shot { margin: 18px 0 22px; }
.g-shot a { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--glow, 0 0 0 1px var(--line)); background: #000; }
.g-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease; }
.g-shot a:hover img { transform: scale(1.015); }
.g-shot figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.g-shot figcaption span { opacity: .7; margin-left: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

/* account menu (header) */
.k-umenu { position: relative; }
.k-umenu #k-ubtn svg { opacity: .7; margin-left: 2px; }
.k-umenu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 170px; display: grid; padding: 6px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.k-umenu-pop[hidden] { display: none; }
.k-umenu-pop a, .k-umenu-pop button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; border: 0; background: none; color: var(--cream); font: 600 14px/1.2 var(--body, Inter, sans-serif); text-decoration: none; cursor: pointer; }
.k-umenu-pop a:hover, .k-umenu-pop button:hover, .k-umenu-pop :focus-visible { background: var(--panel-2); outline: none; }
.k-umenu-pop #k-signout { color: var(--pink, #ff4fa3); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }

/* sticky site header (all pages) */
#k-header { position: sticky; top: 0; z-index: 1000; }
#k-header { transition: transform .22s cubic-bezier(.2,.7,.2,1); }
#k-header.k-hdr-hide { transform: translateY(-100%); }
.toc { transition: top .22s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { #k-header, .toc { transition: none; } }

/* ── accessibility ─────────────────────────────────────────────────── */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 6px; }
.k-nav a:focus-visible { outline-offset: -2px; }
main:focus { outline: none; }
::selection { background: rgba(255, 79, 163, .45); color: #fff; }
.k-skip { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 12px 18px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; text-decoration: none; transition: top .15s; }
.k-skip:focus { top: 10px; }

/* header tools: inline on desktop, inside the menu on phones */
.k-tools { display: contents; }
.k-tlabel { display: none; }
.k-menubtn { display: none; }

/* floating controller prompts: readable over any content, never cover the footer */
@media (min-width: 900px) {
  html[data-theme="leonida"] .k-prompts { padding: 8px 16px; border-radius: 999px; background: rgba(26, 28, 48, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
  .k-prompts button { min-height: 32px; }
  html[data-theme="leonida"] .k-foot, html[data-theme="leonida"] .g-foot { padding-bottom: 84px; }
}
.home-grid.solo { grid-template-columns: minmax(0, 1fr); }

/* ── phones: one compact row + menu ───────────────────────────────── */
@media (max-width: 720px) {
  .k-top { flex-wrap: wrap; gap: 6px; padding: 8px 12px; min-height: 60px; }
  .k-brand { margin-right: auto; }
  .k-brand img { height: 28px; }
  .k-theme, .k-menubtn { width: 44px; height: 44px; margin: 0; }
  .k-menubtn { display: inline-grid; order: 3; }
  #k-search { order: 1; }
  .k-user { order: 2; margin-left: 0; }
  .k-user .btn { min-height: 44px; padding: 8px 14px; font-size: 13px; }
  .k-user #k-ubtn span { display: none; }
  .k-nav, .k-tools { display: none; }
  .k-top.open .k-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; order: 4; flex-basis: 100%;
    margin: 6px 0 0; padding: 8px 0 4px; border-top: 1px solid var(--line); overflow: visible;
  }
  .k-top.open .k-nav a { font-size: 15px; letter-spacing: .02em; padding: 15px 12px; min-height: 48px; display: flex; align-items: center; }
  .k-top.open .k-nav a.on { background: var(--panel); }
  .k-top.open .k-nav a.on::after { left: 12px; right: auto; width: 28px; bottom: 6px; }
  .k-top.open .k-tools { display: flex; gap: 8px; order: 5; flex-basis: 100%; padding: 6px 0 4px; }
  .k-top.open .k-tools > button { flex: 1; width: auto; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; }
  .k-top.open .k-tlabel, .k-top.open .k-spoil span { display: inline; font: 700 13px/1 var(--body); }
}
