/* ZAZA Docs: a GitBook-style docs site in the ZAZA look (navy, gold, electric blue; Titan One headings).
   One HTML page; docs.js shows one <article class="page"> at a time from the URL hash. */
:root {
  --navy-950: #030a2c;
  --navy-900: #06124f;
  --navy-850: #081659;
  --navy-800: #0a1a6b;
  --panel: #0b1757;
  --panel-2: #10206e;
  --line: #22347a;
  --line-2: #33479a;
  --gold: #ffd23f;
  --gold-2: #e8b52a;
  --gold-dark: #8a6410;
  --blue: #1d4bff;
  --blue-bright: #3a66ff;
  --cyan: #7fd4ff;
  --green: #3ddc84;
  --red: #ff4d63;
  --purple: #c08aff;
  --text: #e3e9ff;
  --text-strong: #ffffff;
  --muted: #9fb0e6;
  --display: "Titan One", "Arial Black", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --pixel: "Jersey 10", ui-monospace, monospace;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --top-h: 64px;
  --side-w: 288px;
  --toc-w: 232px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--navy-950); scroll-padding-top: calc(var(--top-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 500 16px/1.7 var(--body);
  background:
    radial-gradient(900px 420px at 60% -120px, rgba(29, 75, 255, 0.28), transparent 70%),
    radial-gradient(600px 300px at 0% 0%, rgba(255, 210, 63, 0.06), transparent 70%),
    var(--navy-950);
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--gold); color: var(--navy-900); border-radius: 8px; font-weight: 800; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--top-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px;
  background: rgba(3, 10, 44, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-strong); text-decoration: none !important; flex: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gold); box-shadow: 0 2px 0 #000a2e; }
.brand span { font: 400 22px/1 var(--display); letter-spacing: 0.5px; }
.brand b { font: 400 19px/1 var(--pixel); letter-spacing: 1.5px; color: var(--gold); padding: 3px 8px 2px; border: 2px solid var(--gold); border-radius: 999px; }
.menu-btn { display: none; width: 40px; height: 40px; place-items: center; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; }
.menu-btn svg { width: 20px; height: 20px; }
.search-btn {
  flex: 0 1 420px; margin-left: 24px;
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 10px 0 14px;
  color: var(--muted); text-align: left;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px;
  transition: border-color 0.15s, background 0.15s;
}
.search-btn:hover { border-color: var(--blue-bright); background: var(--panel-2); }
.search-btn svg { width: 17px; height: 17px; flex: none; }
.search-btn span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd {
  display: inline-block; min-width: 22px; padding: 1px 6px;
  font: 700 12px/18px var(--mono); color: var(--muted); text-align: center;
  background: var(--navy-900); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px;
}
.top-links { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.top-links a:not(.play) { color: var(--muted); font-weight: 700; font-size: 14px; }
.top-links a:not(.play):hover { color: var(--text-strong); }
.play {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px 6px;
  font: 400 16px/1 var(--display); color: var(--navy-900) !important; text-decoration: none !important;
  background: linear-gradient(180deg, #ffe066, var(--gold-2));
  border: 2px solid #3a2a00; border-radius: 999px;
  box-shadow: inset 0 0 0 1px #fff3b0, 0 3px 0 var(--gold-dark);
}
.play svg { width: 13px; height: 13px; fill: currentColor; }
.play:hover { filter: brightness(1.06); }

/* ------------------------------------------------------------------ layout */
.layout { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr) var(--toc-w); max-width: 1480px; margin: 0 auto; }
.sidebar {
  position: sticky; top: var(--top-h);
  height: calc(100vh - var(--top-h));
  overflow-y: auto; overscroll-behavior: contain;
  padding: 22px 14px 40px 20px;
  border-right: 1px solid var(--line);
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.nav-group + .nav-group { margin-top: 20px; }
.nav-label { margin: 0 0 6px 10px; font: 400 18px/1.2 var(--pixel); letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); opacity: 0.9; }
.sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; margin: 1px 0;
  font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--muted);
  border-radius: 8px; text-decoration: none;
  position: relative;
}
.sidebar a .ni { width: 20px; flex: none; text-align: center; font-size: 15px; filter: saturate(0.9); }
.sidebar a:hover { color: var(--text-strong); background: rgba(58, 102, 255, 0.12); }
.sidebar a.active { color: var(--gold); background: rgba(255, 210, 63, 0.09); }
.sidebar a.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--gold); }
.side-foot { margin-top: 26px; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.side-foot a { color: var(--muted); font-weight: 700; padding: 3px 0; display: block; }
.side-foot a:hover { color: var(--text-strong); background: none; }

.content { min-width: 0; padding: 36px clamp(20px, 4vw, 56px) 60px; }
.content > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.toc { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 36px 20px 40px 8px; }
.toc-label { margin: 0 0 10px; font: 400 18px/1 var(--pixel); letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.toc-label svg { width: 15px; height: 15px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 4px 0 4px 14px; margin-left: -1px; font-size: 13.5px; line-height: 1.4; color: var(--muted); border-left: 2px solid transparent; }
.toc li.sub a { padding-left: 26px; font-size: 13px; }
.toc li a:hover { color: var(--text-strong); text-decoration: none; }
.toc li a.active { color: var(--gold); border-left-color: var(--gold); }

/* One page at a time once docs.js runs (without JS every page shows, one after another). */
.js .page { display: none; }
.js .page.current { display: block; animation: page-in 0.25s ease-out; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page + .page { margin-top: 80px; }
.js .page + .page { margin-top: 0; }

/* ------------------------------------------------------------------ page content */
.eyebrow { margin: 0 0 6px; font: 400 20px/1 var(--pixel); letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold); }
.page h1 { margin: 0 0 12px; font: 400 clamp(32px, 4.4vw, 44px)/1.1 var(--display); color: var(--text-strong); letter-spacing: 0.3px; text-wrap: balance; }
.lead { margin: 0 0 28px; font-size: 18.5px; line-height: 1.6; color: var(--muted); font-weight: 500; }
.page h2 { position: relative; margin: 44px 0 12px; font: 400 25px/1.25 var(--display); color: var(--text-strong); letter-spacing: 0.2px; text-wrap: balance; }
.page h3 { position: relative; margin: 28px 0 8px; font-size: 18px; font-weight: 800; color: var(--text-strong); }
.page h2 .anchor, .page h3 .anchor { position: absolute; left: -26px; top: 50%; transform: translateY(-50%); padding: 0 6px; font: 700 18px var(--body); color: var(--gold); opacity: 0; text-decoration: none; }
.page h2:hover .anchor, .page h3:hover .anchor, .anchor:focus-visible { opacity: 1; }
.page p { margin: 0 0 14px; }
.page strong { color: var(--text-strong); font-weight: 800; }
.page ul, .page ol { margin: 0 0 16px; padding-left: 22px; }
.page li { margin: 4px 0; }
.page li::marker { color: var(--gold); }
.page hr { border: 0; height: 1px; background: var(--line); margin: 36px 0; }
.page code { font: 700 0.86em var(--mono); color: #ffe38a; background: rgba(255, 210, 63, 0.08); border: 1px solid rgba(255, 210, 63, 0.18); padding: 1px 6px; border-radius: 6px; word-break: break-word; }

/* Cover banner on the welcome page */
.cover {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: clamp(16px, 4vw, 40px);
  margin: 0 0 30px; padding: clamp(22px, 4vw, 38px);
  border: 2px solid var(--line-2); border-radius: 22px;
  background: radial-gradient(circle at 78% 50%, #2a57ff 0, #0d2285 38%, var(--navy-900) 72%);
  box-shadow: 0 6px 0 #000a2e, inset 0 1px 0 rgba(255, 255, 255, 0.08);
  isolation: isolate;
}
.cover::before {
  content: ""; position: absolute; z-index: -1; right: -22%; top: 50%; width: 110%; aspect-ratio: 1; transform: translateY(-50%);
  background: repeating-conic-gradient(from 0deg, rgba(127, 212, 255, 0.16) 0 6deg, transparent 6deg 18deg);
  mask: radial-gradient(circle, #000 0 30%, transparent 64%);
  -webkit-mask: radial-gradient(circle, #000 0 30%, transparent 64%);
  animation: rays 60s linear infinite;
}
@keyframes rays { to { transform: translateY(-50%) rotate(360deg); } }
.cover-text { flex: 1; min-width: 0; }
.cover .eyebrow { color: var(--gold); }
.cover h1 { margin-bottom: 10px; }
.cover p { margin: 0; color: #c9d5ff; font-size: 17px; }
.cover img { width: clamp(110px, 20vw, 180px); height: auto; flex: none; filter: drop-shadow(0 8px 0 rgba(0, 10, 46, 0.7)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }

/* Hints / callouts */
.hint { display: flex; gap: 12px; margin: 18px 0; padding: 14px 16px; border: 1px solid; border-left-width: 4px; border-radius: 12px; font-size: 15.5px; line-height: 1.6; }
.hint > .hi { flex: none; width: 22px; height: 22px; margin-top: 1px; display: grid; place-items: center; border-radius: 50%; font: 900 13px/1 var(--body); color: var(--navy-950); }
.hint > div { min-width: 0; }
.hint > div > :last-child { margin-bottom: 0; }
.hint p { margin: 0 0 8px; }
.hint-info { background: rgba(58, 102, 255, 0.1); border-color: rgba(58, 102, 255, 0.4); border-left-color: var(--blue-bright); }
.hint-info .hi { background: var(--blue-bright); color: #fff; }
.hint-success { background: rgba(61, 220, 132, 0.08); border-color: rgba(61, 220, 132, 0.35); border-left-color: var(--green); }
.hint-success .hi { background: var(--green); }
.hint-warning { background: rgba(255, 210, 63, 0.08); border-color: rgba(255, 210, 63, 0.35); border-left-color: var(--gold); }
.hint-warning .hi { background: var(--gold); }
.hint-danger { background: rgba(255, 77, 99, 0.08); border-color: rgba(255, 77, 99, 0.35); border-left-color: var(--red); }
.hint-danger .hi { background: var(--red); color: #fff; }

/* Status tags */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 0; font: 400 16px/20px var(--pixel); letter-spacing: 1px; text-transform: uppercase; border-radius: 999px; border: 1px solid; vertical-align: 2px; white-space: nowrap; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag.live { color: var(--green); border-color: rgba(61, 220, 132, 0.5); background: rgba(61, 220, 132, 0.1); }
.tag.live::before { box-shadow: 0 0 0 0 currentColor; animation: ping 1.8s infinite; }
.tag.demo { color: var(--cyan); border-color: rgba(127, 212, 255, 0.5); background: rgba(127, 212, 255, 0.08); }
.tag.soon { color: var(--gold); border-color: rgba(255, 210, 63, 0.5); background: rgba(255, 210, 63, 0.08); }
.tag.off { color: #9aa3c0; border-color: rgba(154, 163, 192, 0.45); background: rgba(154, 163, 192, 0.08); }
h1 .tag, h2 .tag { vertical-align: 6px; margin-left: 6px; }
@keyframes ping { 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Link cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 18px 0 24px; }
.card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 16px 14px;
  color: var(--text); text-decoration: none !important;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 3px 0 #000a2e;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
a.card:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 5px 0 #000a2e, 0 0 24px rgba(255, 210, 63, 0.12); }
.card .ci { font-size: 24px; line-height: 1; margin-bottom: 6px; }
.card b { font: 400 17px/1.25 var(--display); color: var(--text-strong); letter-spacing: 0.2px; }
.card span { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Numbered steps */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 18px 0 22px; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 18px 50px; margin: 0; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; display: grid; place-items: center;
  font: 400 17px/1 var(--display); color: var(--navy-900);
  background: linear-gradient(180deg, #ffe066, var(--gold-2)); border: 2px solid #3a2a00; border-radius: 50%;
  box-shadow: 0 2px 0 var(--gold-dark);
}
ol.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; background: linear-gradient(var(--line-2), transparent); }
ol.steps > li > b:first-child { display: block; color: var(--text-strong); font-weight: 800; margin-bottom: 2px; }

/* Flow diagram: boxes joined by arrows; stacks on narrow screens */
.flow { display: flex; align-items: stretch; gap: 6px; margin: 20px 0 26px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 16px; background: rgba(6, 18, 79, 0.45); }
.flow .fbox { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 8px; text-align: center; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow-wrap: break-word; }
.flow .fbox .fi { font-size: 22px; line-height: 1.1; }
.flow .fbox b { font: 400 14.5px/1.2 var(--display); color: var(--text-strong); }
.flow .fbox span { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.flow .fbox.gold { border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, 0.25); }
.flow .farrow { flex: none; align-self: center; color: var(--gold); font: 900 20px/1 var(--body); }
@media (max-width: 640px) {
  .flow { flex-direction: column; }
  .flow .fbox { flex-basis: auto; }
  .flow .farrow { transform: rotate(90deg); }
}

/* Tables */
.table { margin: 16px 0 22px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 12px; }
.table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.table th { padding: 10px 14px; text-align: left; font-weight: 800; color: var(--text-strong); background: var(--panel-2); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) td { background: rgba(10, 26, 107, 0.35); }
.table td:first-child { color: var(--text-strong); font-weight: 700; }

/* Key/value facts (addresses etc.) */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; margin: 16px 0 22px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.facts > dt, .facts > dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.facts > dt { font-weight: 800; color: var(--text-strong); background: var(--panel-2); font-size: 14px; }
.facts > dd { font-size: 14.5px; min-width: 0; }
.facts > dt:last-of-type, .facts > dd:last-of-type { border-bottom: 0; }
.addr { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font: 700 13px/1.4 var(--mono); color: #ffe38a; word-break: break-all; }
.copy { flex: none; padding: 1px 8px; font: 700 11px/18px var(--body); color: var(--muted); background: var(--navy-900); border: 1px solid var(--line-2); border-radius: 6px; }
.copy:hover { color: var(--text-strong); border-color: var(--gold); }
.copy.done { color: var(--green); border-color: var(--green); }

/* Screenshots / figures */
figure { margin: 20px 0 26px; }
figure img, figure video { display: block; width: 100%; height: auto; border: 2px solid var(--line-2); border-radius: 14px; box-shadow: 0 4px 0 #000a2e; background: var(--navy-900); }
figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* Tier chips etc. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.chip { padding: 4px 12px; font-size: 13.5px; font-weight: 700; color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; }
.chip b { color: var(--gold); }

/* FAQ (details) */
details.faq { margin: 10px 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); overflow: hidden; }
details.faq[open] { border-color: var(--gold); }
details.faq summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; position: relative; font-weight: 800; color: var(--text-strong); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 400 22px/1 var(--display); color: var(--gold); transition: transform 0.2s; }
details.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details.faq > div { padding: 0 16px 12px; font-size: 15.5px; }

/* Glossary */
dl.gloss { margin: 16px 0; }
dl.gloss dt { margin-top: 14px; font-weight: 800; color: var(--gold); }
dl.gloss dd { margin: 2px 0 0; }

/* Demo card fronts (drawn by /world/js/cards.js) and rarity chips */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; margin: 8px 0 26px; }
.demo-grid:empty { display: none; }
.demo-grid figure { margin: 0; text-align: center; }
.demo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 7; object-fit: contain; border: 0; border-radius: 10px; box-shadow: 0 4px 0 #000a2e, 0 0 0 1px var(--line-2); background: none; image-rendering: auto; transition: transform 0.18s; }
.demo-grid figure:hover img { transform: translateY(-4px) rotate(-1.5deg); }
.demo-grid figcaption { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--text); }
.demo-grid figcaption small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.rar { display: inline-block; padding: 0 9px; font-size: 13px; font-weight: 800; border-radius: 999px; border: 1px solid currentColor; }
.r-common { color: #5fe86f; }
.r-uncommon { color: var(--cyan); }
.r-rare { color: var(--gold); }
.r-epic { color: var(--purple); }

/* Previous / next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px !important; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); text-decoration: none !important; transition: border-color 0.15s, transform 0.15s; }
.pager a:hover { border-color: var(--gold); transform: translateY(-2px); }
.pager a small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pager a b { font: 400 17px/1.3 var(--display); color: var(--text-strong); }
.pager .next { grid-column: 2; text-align: right; }
.page-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 24px !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ search */
.search { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; background: rgba(3, 8, 30, 0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.search[hidden] { display: none; }
.search-box { width: min(640px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--navy-900); border: 2px solid var(--line-2); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 4px 0 #000a2e; overflow: hidden; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.search-field svg { width: 19px; height: 19px; color: var(--gold); flex: none; }
.search-field input { flex: 1; min-width: 0; height: 56px; font: 600 17px var(--body); color: var(--text-strong); background: none; border: 0; outline: none; }
.search-field input::placeholder { color: var(--muted); }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.search-results li a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.search-results li a small { display: block; font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: 0.3px; }
.search-results li a b { display: block; color: var(--text-strong); font-weight: 800; }
.search-results li a span { display: block; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results li a mark { background: rgba(255, 210, 63, 0.28); color: var(--text-strong); border-radius: 3px; padding: 0 1px; }
.search-results li a.sel, .search-results li a:hover { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--gold); }
.search-empty { padding: 26px 16px; text-align: center; color: var(--muted); }
.search-hint { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------ responsive */
.scrim { display: none; }
@media (max-width: 1200px) {
  .layout { grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 900px) {
  :root { --top-h: 58px; }
  .topbar { padding: 0 12px; gap: 10px; }
  .menu-btn { display: grid; }
  .brand span { font-size: 19px; }
  .brand img { width: 32px; height: 32px; }
  .search-btn { margin-left: auto; flex: 0 1 260px; }
  .top-links a:not(.play) { display: none; }
  .layout { display: block; }
  .sidebar {
    position: fixed; z-index: 50; left: 0; top: 0; bottom: 0;
    width: min(320px, 86vw); height: auto;
    padding-top: 20px;
    background: var(--navy-900);
    border-right: 2px solid var(--line-2);
    transform: translateX(-102%);
    transition: transform 0.22s ease-out;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.4);
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(3, 8, 30, 0.6); }
  .content { padding-top: 26px; }
  .page h2 .anchor, .page h3 .anchor { display: none; }
}
@media (max-width: 560px) {
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { flex: none; width: 40px; padding: 0; justify-content: center; }
  .play { padding: 7px 12px 6px; font-size: 15px; }
  .cover { flex-direction: column-reverse; align-items: flex-start; }
  .cover img { width: 96px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > dt { border-bottom: 0; padding-bottom: 2px; background: none; }
  .facts > dd { padding-top: 0; }
}

/* Inside the World's docs popup (?embed=1): the game already shows the title and a Play button. */
.embed .top-links, .embed .side-foot .play-link { display: none; }
.embed body, body.embed { background-attachment: scroll; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ game art
   Icons, avatars, chatheads and sprites drawn by the World's own renderers (docs/art.js). Until a box is drawn it keeps
   its space; if drawing fails it's hidden. */
.gi { display: inline-grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; flex: none; width: 32px; height: 32px; margin: -6px 8px -6px 0; vertical-align: middle; font-style: normal; }
.gi.drawn:not(.ok) { display: none; }
.gi img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; border: 0; border-radius: 0; box-shadow: none; background: none; }
.gi.sm { width: 24px; height: 24px; margin: -4px 6px -4px 0; }
.gi.lg { width: 48px; height: 48px; margin: 0; }
.gi.tier { width: 18px; height: 18px; margin: -3px 8px -3px 0; }
.gi.tier svg { display: block; width: 100%; height: 100%; }
/* an inventory slot: 32px icon (2x) on a dark bevelled square */
.gi.slot { width: 48px; height: 48px; margin: 0; padding: 8px; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #13247a, #081245 70%); box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 rgba(0, 0, 0, 0.35); }
.gi.npc { width: 40px; height: 44px; margin: -8px 0; border-radius: 8px; overflow: hidden; background: linear-gradient(#2a5ad0, #13247a); box-shadow: 0 0 0 1px var(--line-2); }
.gi.npc img { image-rendering: auto; }
.gi.avatar { width: 112px; height: 128px; margin: 0; }
.gi.avatar img { image-rendering: auto; }
.gi.pack { width: 76px; height: auto; margin: 0; }
.gi.pack .zpack { width: 100%; }

.table td .who { display: inline-flex; align-items: center; gap: 10px; }
.table td .who > .gi + .gi { margin-left: -4px; }
.table td.t-common { color: #c9d2e2; } .table td.t-uncommon { color: #5fe86f; } .table td.t-rare { color: #5fb4ff; } .table td.t-holo { color: #7ff0ff; }
.table td.t-epic { color: #c08aff; } .table td.t-mythic { color: #ff8a4a; } .table td.t-legendary { color: var(--gold); }

.icon-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 22px; }
.icon-row > span { display: grid; justify-items: center; align-content: start; gap: 4px; min-width: 92px; padding: 12px 10px 10px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); font-size: 13.5px; line-height: 1.3; }
.icon-row b { font-weight: 800; color: var(--text-strong); }
.icon-row small { font: 400 16px/1 var(--pixel); color: var(--gold); }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 14px 0 22px; }
.item-grid .item { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); }
.item-grid .item .gi { grid-row: span 2; }
.item-grid .item b { align-self: end; font-size: 14.5px; line-height: 1.3; font-weight: 800; color: var(--text-strong); }
.item-grid .item span { align-self: start; font-size: 13px; line-height: 1.4; color: var(--muted); }

.gear-table th, .gear-table td { padding-left: 10px; padding-right: 10px; }
.gear-table td { vertical-align: top; }
.gear-table td:first-child { vertical-align: middle; white-space: nowrap; }
.gear { display: flex; gap: 6px; }
.gear > span { display: grid; justify-items: center; align-content: start; gap: 4px; width: 66px; text-align: center; }
.gear small { font-size: 11.5px; line-height: 1.3; font-weight: 600; color: var(--muted); }

.class-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 22px; }
.class-card { --cc: var(--gold); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 12px 12px; text-align: center; border: 1px solid color-mix(in srgb, var(--cc) 45%, var(--line-2)); border-radius: 14px; background: radial-gradient(110px 100px at 50% 78px, color-mix(in srgb, var(--cc) 30%, transparent), transparent 72%), var(--panel); }
.class-card .cc-name { margin-top: 4px; font: 400 20px/1.2 var(--display); color: var(--text-strong); }
.class-card .role { font: 400 17px/1 var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--cc); }
.class-card p { margin: 8px 0 auto; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.class-card .vs { display: inline-flex; align-items: center; margin-top: 10px; font-size: 12.5px; white-space: nowrap; color: var(--muted); }
.class-card .vs .gi { width: 20px; height: 20px; margin: 0 4px 0 5px; }
.class-card .vs b { color: var(--text-strong); }
.pips { width: 100%; display: grid; gap: 5px; margin-top: 10px; }
.pips > div { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; font-size: 12px; line-height: 1; text-align: left; color: var(--muted); }
.pips i { height: 8px; background: linear-gradient(90deg, var(--pc) calc(var(--n) * 20%), rgba(255, 255, 255, 0.12) 0); -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(20% - 3px), transparent 0 20%); mask: repeating-linear-gradient(90deg, #000 0 calc(20% - 3px), transparent 0 20%); }

/* the battle menu, drawn like the game's cream buttons */
.bt-mock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 460px; margin: 14px 0 18px; padding: 10px; border-radius: 12px; background: #1b1d3a; box-shadow: 0 0 0 1px var(--line-2); }
.bt-mock > span { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border-radius: 8px; background: linear-gradient(180deg, #fbf8e8, #ebe3c4); color: #1b1424; border: 3px solid #2a2a3a; box-shadow: 0 3px 0 rgba(3, 10, 44, 0.6); }
.bt-mock b { font: 400 19px/1 var(--display); letter-spacing: 0.03em; }
.bt-mock kbd { background: rgba(27, 20, 36, 0.12); color: #1b1424; border-color: rgba(27, 20, 36, 0.3); }
@media (max-width: 460px) { .bt-mock { gap: 6px; padding: 8px; } .bt-mock > span { gap: 6px; padding: 5px 8px 5px 6px; } .bt-mock b { font-size: 13px; } .bt-mock kbd { display: none; } .bt-mock .gi.lg { width: 36px; height: 36px; } }

/* status tags, as next to the HP bars in a fight */
.st { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 3px; font: 700 11px/1.6 var(--body); font-style: normal; letter-spacing: 0.04em; vertical-align: 1px; background: #3a3a4a; color: #fff; }
.st.ex { background: #ff981f; color: #1b1424; }
.st.sh { background: #ffe066; color: #1b1424; }
.st.ra { background: #ff5d5d; }

/* wildlife, guardians and the dummy on a little stage */
.foe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 14px 0 18px; }
.foe-grid.solo { grid-template-columns: minmax(0, 200px); }
.foe { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px 12px; text-align: center; border: 1px solid var(--line-2); border-radius: 14px; background: radial-gradient(60% 16px at 50% 136px, rgba(0, 0, 0, 0.5), transparent 70%), linear-gradient(180deg, #16288a, #0a1757 60%, #081245); }
.foe .gi { width: 100%; height: 128px; margin: 0 0 10px; }
.foe b { font: 400 16px/1.25 var(--display); color: var(--text-strong); }
.foe small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }

.tier-ladder { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 14px 0 22px !important; padding: 0 !important; }
.tier-ladder li { --tc: #c9d2e2; display: grid; justify-items: center; gap: 2px; padding: 12px 6px 10px; border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--tc) 9%, var(--panel)); }
.tier-ladder .gi.tier { width: 30px; height: 30px; margin: 0 0 4px; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--tc) 55%, transparent)); }
.tier-ladder b { font-size: 13.5px; line-height: 1.3; color: var(--tc); }
.tier-ladder small { font-size: 12.5px; color: var(--muted); }
.tier-ladder .t-uncommon { --tc: #5fe86f; } .tier-ladder .t-rare { --tc: #5fb4ff; } .tier-ladder .t-holo { --tc: #7ff0ff; }
.tier-ladder .t-epic { --tc: #c08aff; } .tier-ladder .t-mythic { --tc: #ff8a4a; } .tier-ladder .t-legendary { --tc: #ffd23f; }

/* the link to the Card Hunt preview */
.preview-cta { display: flex; align-items: center; gap: 18px; margin: 20px 0 26px; padding: 14px 18px; color: var(--text); border: 1px solid rgba(255, 210, 63, 0.45); border-radius: 16px; background: radial-gradient(260px 120px at 0% 50%, rgba(255, 210, 63, 0.14), transparent 70%), var(--panel); transition: border-color 0.15s, transform 0.15s; }
.preview-cta:hover { text-decoration: none; border-color: var(--gold); transform: translateY(-1px); }
.preview-cta > span { min-width: 0; }
.preview-cta b { display: block; font: 400 18px/1.3 var(--display); color: var(--text-strong); }
.preview-cta small { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.preview-cta em { margin-left: auto; padding: 8px 16px; font-style: normal; font-weight: 800; font-size: 14px; white-space: nowrap; color: var(--navy-950); background: var(--gold); border-radius: 999px; box-shadow: 0 3px 0 var(--gold-dark); }
@media (max-width: 560px) { .preview-cta { flex-wrap: wrap; } .preview-cta > span { flex: 1 1 160px; } .preview-cta em { margin-left: 0; } }

/* Real packs preview (#real-packs): the hunt's own packs and pack opening from /hunt/reveal.js, with sample pulls. */
.rp-stage { position: relative; display: grid; justify-items: center; gap: 14px; margin: 6px 0 30px; padding: 26px 16px 22px; border: 2px solid var(--line-2); border-radius: 22px; background: radial-gradient(420px 220px at 50% 40%, rgba(255, 210, 63, 0.16), transparent 70%), radial-gradient(circle at 50% 120%, #2a57ff 0, var(--navy-900) 60%); box-shadow: 0 6px 0 #000a2e; overflow: hidden; }
.rp-fan { position: relative; width: 100%; height: 250px; }
.rp-fan .zpack { position: absolute; left: 50%; bottom: 0; width: 132px; transform-origin: 50% 100%; filter: drop-shadow(0 14px 18px rgba(0, 4, 24, 0.6)); transition: translate 0.25s, rotate 0.25s; }
.rp-fan .zpack:nth-child(1) { translate: -140% 0; rotate: -13deg; }
.rp-fan .zpack:nth-child(2) { translate: -50% -16px; z-index: 2; width: 146px; }
.rp-fan .zpack:nth-child(3) { translate: 40% 0; rotate: 13deg; }
.rp-stage:hover .rp-fan .zpack:nth-child(1) { translate: -150% -6px; rotate: -16deg; }
.rp-stage:hover .rp-fan .zpack:nth-child(3) { translate: 50% -6px; rotate: 16deg; }
.rp-cta { display: grid; justify-items: center; gap: 8px; text-align: center; }
.rp-cta small { max-width: 420px; font-size: 13.5px; color: #c9d5ff; }
.rp-play { padding: 11px 24px 10px; font-size: 19px; cursor: pointer; }
.rp-play svg { width: 15px; height: 15px; }
.rp-machine video { aspect-ratio: 16 / 9; object-fit: cover; }
.rp-odds { margin: 16px 0 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); }
.rp-odds-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--navy-950); }
.rp-odds-bar i { background: currentColor; min-width: 4px; }
.rp-odds-rows { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13.5px; font-weight: 700; }
.rp-odds-rows b { font-weight: 800; }
.rp-pulls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 16px 0 24px; }
.rp-pull { display: flex; flex-direction: column; gap: 3px; padding: 10px 10px 12px; text-align: left; color: var(--text); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 3px 0 #000a2e; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.rp-pull:hover { transform: translateY(-3px); border-color: currentColor; box-shadow: 0 5px 0 #000a2e, 0 0 22px color-mix(in srgb, currentColor 30%, transparent); }
.rp-slab { display: grid; place-items: center; aspect-ratio: 3 / 5; margin-bottom: 6px; border-radius: 10px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, currentColor 22%, transparent), transparent 70%), var(--navy-950); overflow: hidden; }
.rp-slab img { width: 100%; height: 100%; object-fit: contain; }
.rp-pull b { font-size: 14px; line-height: 1.3; font-weight: 800; color: var(--text-strong); }
.rp-pull small { font-size: 12px; font-weight: 700; color: currentColor; }
.rp-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 2px; }
.rp-foot em { font: 400 17px/1 var(--display); font-style: normal; color: var(--text-strong); }
.rp-sample { padding: 1px 7px 0; font: 400 14px/18px var(--pixel); letter-spacing: 1px; text-transform: uppercase; font-style: normal; color: #ff8a1f; border: 1px solid rgba(255, 138, 31, 0.6); border-radius: 999px; background: rgba(255, 138, 31, 0.1); }
@media (max-width: 560px) {
  .rp-fan { height: 190px; }
  .rp-fan .zpack { width: 100px; }
  .rp-fan .zpack:nth-child(2) { width: 112px; }
  .rp-pulls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ live panels: the vault and the rewards leaderboard (docs/live.js) */
.live-box { margin: 20px 0 28px; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: 0 4px 0 #000a2e; overflow: hidden; }
.live-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(3, 10, 44, 0.4); }
.live-head b { font: 400 18px/1.25 var(--display); color: var(--text-strong); letter-spacing: 0.2px; }
.live-when { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.live-body { padding: 16px; }
.live-body:empty::before { content: "Loading the live numbers…"; display: block; padding: 18px 0; text-align: center; font-size: 14px; color: var(--muted); }
.live-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }
.live-foot > span { flex: 1 1 260px; }
.live-foot > a { margin-left: auto; font-weight: 800; white-space: nowrap; }
.live-foot > .live-cta { padding: 7px 16px; color: var(--navy-950); background: var(--gold); border-radius: 999px; box-shadow: 0 3px 0 var(--gold-dark); }
.live-foot > .live-cta:hover { text-decoration: none; background: #ffe066; }
.page .lv-note { margin: 0; padding: 12px 0; text-align: center; font-size: 14.5px; color: var(--muted); }

.lv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.lv-stat { display: flex; flex-direction: column; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(3, 10, 44, 0.35); }
.lv-stat small { font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.lv-stat b { font: 400 22px/1.3 var(--display); color: var(--text-strong); }
.lv-stat b.gold { color: var(--gold); }
.lv-stat span { font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* Round pictures; the bolt shows when there's no picture (or it didn't load). */
.lv-av { position: relative; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 40% 35%, var(--blue-bright), var(--navy-900)); box-shadow: 0 0 0 2px var(--line-2); }
.lv-av::before { content: "⚡"; font-size: 15px; line-height: 1; }
.lv-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lv-tier { display: inline-block; flex: none; width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; }
.lv-tier svg { display: block; width: 100%; height: 100%; }
.lv-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; color: var(--text-strong); }
a.lv-name:hover { color: var(--cyan); }

/* Podium: silver, gold, bronze. */
.lv-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; margin: 18px 0 14px; }
.lv-step { --medal: var(--gold); display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.lv-step.is-silver { --medal: #d9e2f2; }
.lv-step.is-bronze { --medal: #e89a5c; }
.lv-step .lv-av { width: 52px; height: 52px; margin-bottom: 6px; box-shadow: 0 0 0 3px var(--medal), 0 4px 0 #000a2e; }
.lv-step.is-gold .lv-av { width: 64px; height: 64px; }
.lv-step .lv-av::before { font-size: 22px; }
.lv-step .lv-name { max-width: 100%; font-size: 14.5px; }
.lv-usd { margin-top: 2px; font: 400 20px/1.2 var(--display); color: var(--medal); }
.lv-step small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.lv-step .lv-vault-note { color: #ffe38a; }
.lv-block { display: grid; place-items: center; width: 100%; margin-top: 8px; font: 400 26px/1 var(--display); color: var(--navy-950); background: linear-gradient(180deg, var(--medal), color-mix(in srgb, var(--medal) 55%, #0a1a6b)); border-radius: 10px 10px 4px 4px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35); }
.lv-step.is-gold .lv-block { height: 72px; }
.lv-step.is-silver .lv-block { height: 54px; }
.lv-step.is-bronze .lv-block { height: 40px; }

/* Places 4-10. */
.page .lv-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.page .lv-rows li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.page .lv-rows li:nth-child(even) { background: rgba(10, 26, 107, 0.35); }
.page .lv-rows li:last-child { border-bottom: 0; }
.lv-rank { flex: none; width: 24px; text-align: center; font: 400 16px/1 var(--display); color: var(--muted); }
.lv-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.lv-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.lv-val { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; }
.lv-val b { font-weight: 800; color: var(--gold); }
.lv-val small { font-size: 12px; color: var(--muted); }

/* The vault: power cell, readout, marketing wallet goal. */
.lv-vault-top { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 18px; margin-bottom: 16px; }
.lv-battery { position: relative; height: 160px; margin-top: 8px; display: grid; place-items: center; align-content: center; gap: 4px; border: 3px solid var(--line-2); border-radius: 18px; background: var(--navy-950); box-shadow: inset 0 0 0 3px #041040, 0 4px 0 #000a2e; }
.lv-battery::before { content: ""; position: absolute; top: -11px; left: 50%; width: 36px; height: 8px; translate: -50% 0; border-radius: 4px 4px 0 0; background: var(--line-2); }
.lv-fill { position: absolute; left: 3px; right: 3px; bottom: 3px; max-height: calc(100% - 6px); border-radius: 12px; background: linear-gradient(0deg, var(--gold-2), #ffe066); box-shadow: 0 0 22px rgba(255, 210, 63, 0.45); transition: height 0.8s ease; }
.lv-battery img { position: relative; width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold), 0 3px 0 #000a2e; }
.page .lv-vault-main p { margin: 0 0 4px; }
.lv-big { font-size: 15px; color: var(--muted); }
.lv-big b { font: 400 30px/1.15 var(--display); color: var(--gold); margin-right: 4px; }
.lv-line { font-size: 14.5px; line-height: 1.5; }
.lv-faces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lv-face { display: block; border-radius: 50%; text-decoration: none !important; }
.lv-face .lv-av { width: 30px; height: 30px; }
.lv-face .lv-av::before { font-size: 13px; }
.lv-face:hover .lv-av { box-shadow: 0 0 0 2px var(--gold); }
.lv-more { display: grid; place-items: center; width: 30px; height: 30px; font-size: 11.5px; font-weight: 800; color: var(--muted); background: var(--navy-900); box-shadow: 0 0 0 2px var(--line-2); }
.lv-goal { margin-bottom: 12px; padding: 12px 14px; border: 1px solid rgba(255, 210, 63, 0.35); border-radius: 12px; background: rgba(255, 210, 63, 0.06); }
.lv-goal-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; font-weight: 700; }
.lv-goal-row b { color: var(--gold); font-weight: 800; }
.lv-bar { position: relative; height: 18px; margin: 8px 0 6px; border-radius: 999px; background: var(--navy-950); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.lv-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold-2), #ffe066); box-shadow: 0 0 14px rgba(255, 210, 63, 0.45); transition: width 0.8s ease; }
.lv-bar em { position: relative; display: block; text-align: center; font: 400 15px/18px var(--pixel); font-style: normal; letter-spacing: 1px; color: #fff; text-shadow: 0 1px 0 #000a2e, 0 0 6px rgba(0, 4, 24, 0.9); }
.lv-goal small { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.page .lv-foot-note { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }

@media (max-width: 560px) {
  .live-body { padding: 14px 12px; }
  .lv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lv-stat:first-child:nth-last-child(3) { grid-column: 1 / -1; }
  .lv-stat small { font-size: 10.5px; }
  .lv-stat b { font-size: 20px; }
  .lv-podium { gap: 6px; }
  .lv-step .lv-av { width: 44px; height: 44px; }
  .lv-step.is-gold .lv-av { width: 54px; height: 54px; }
  .lv-usd { font-size: 17px; }
  .lv-step .lv-name { font-size: 13px; }
  .lv-step .lv-tier { display: none; }
  .page .lv-rows li { gap: 8px; padding: 8px 10px; }
  .lv-vault-top { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .lv-battery { height: 136px; }
  .lv-battery img { width: 44px; height: 44px; }
  .lv-big b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-fill, .lv-bar i { transition: none; }
}
