/* Majesty: the engine behind Digital Solomon. Brand tokens only. */
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }

:root {
  --ink: #181613;
  --parchment: #F8F6F1;
  --sand: #EAE6DC;
  --stone: #ABA69A;
  --gold: #C29A2B;
  --blue: #2F4858;
  --cedar: #6E7F5A;
  /* tints, all built from the tokens above */
  --gold-a12: rgba(194, 154, 43, 0.12);
  --gold-a25: rgba(194, 154, 43, 0.25);
  --gold-a45: rgba(194, 154, 43, 0.45);
  --sand-a06: rgba(234, 230, 220, 0.06);
  --sand-a10: rgba(234, 230, 220, 0.10);
  --sand-a18: rgba(234, 230, 220, 0.18);
  --stone-a35: rgba(171, 166, 154, 0.35);
  --blue-a40: rgba(47, 72, 88, 0.40);
  --ink-a85: rgba(24, 22, 19, 0.85);
  --ink-a00: rgba(24, 22, 19, 0);
  --head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --r: 14px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.drawer-open { overflow: hidden; }
body {
  margin: 0; background: var(--ink); color: var(--parchment);
  font: 400 16px/1.55 var(--body); min-width: 320px; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h3 { font-weight: 500; }
a { color: var(--gold); }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
svg [role="button"]:focus { outline: none; }
svg [role="button"] .focus-ring { fill: none; stroke: var(--gold); stroke-width: 3; opacity: 0; }
svg [role="button"]:focus-visible .focus-ring { opacity: 1; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--ink); padding: 12px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 8px clamp(16px, 4vw, 40px); background: var(--ink-a85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand-a06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--parchment); text-decoration: none; font: 600 18px/1 var(--head); letter-spacing: 0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.top-nav { display: none; gap: 4px; }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--sand); text-decoration: none; font: 400 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; border-radius: 8px; }
.top-nav a:hover { color: var(--gold); }
@media (min-width: 720px) { .top-nav { display: flex; } }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { box-shadow: 0 0 0 6px var(--gold-a25); }
.btn-outline { background: transparent; color: var(--parchment); border-color: var(--stone-a35); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn[disabled] { opacity: .6; cursor: default; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font: 400 11px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--sand); background: var(--sand-a06);
  border: 1px solid var(--sand-a10); white-space: nowrap;
}
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.chip.live::before { background: var(--cedar); box-shadow: 0 0 0 3px rgba(110, 127, 90, 0.25); }
.chip.rolling::before { background: var(--stone); }

/* ---------- layout ---------- */
.sec { position: relative; padding: clamp(64px, 10vw, 128px) clamp(16px, 4vw, 40px); border-top: 1px solid var(--sand-a06); }
.sec-inner { max-width: var(--max); margin: 0 auto; }
.sec h2 { font-size: clamp(30px, 5.4vw, 56px); margin-bottom: clamp(28px, 4vw, 48px); max-width: 18ch; }
.sec h2::before { content: ''; display: block; width: 48px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 18px; }
.readout { min-height: 3em; margin: 12px 0 0; color: var(--stone); font-size: 15px; text-align: center; }
.diagram { position: relative; width: 100%; }
.diagram svg { width: 100%; height: auto; overflow: visible; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: calc(100svh - 61px); display: flex; align-items: center; padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 40px); isolation: isolate; }
.hero-film {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, rgba(24, 22, 19, 1) 0%, rgba(24, 22, 19, 0.6) 55%, rgba(24, 22, 19, 0) 100%);
  mask-image: linear-gradient(180deg, rgba(24, 22, 19, 1) 0%, rgba(24, 22, 19, 0.6) 55%, rgba(24, 22, 19, 0) 100%);
}
.hero-fade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 70% 45%, var(--ink-a00) 0%, rgba(24, 22, 19, 0.55) 60%, #181613 100%),
    linear-gradient(180deg, rgba(24, 22, 19, 0.35) 0%, var(--ink-a00) 30%, rgba(24, 22, 19, 0.8) 80%, #181613 100%),
    linear-gradient(90deg, #181613 0%, rgba(24, 22, 19, 0.6) 40%, var(--ink-a00) 70%);
}
.hero-inner { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(38px, 7.2vw, 76px); max-width: 13ch; }
.tagline { margin: 18px 0 0; font: 500 clamp(18px, 2.4vw, 24px)/1.3 var(--head); color: var(--gold); font-style: italic; }
.noscript { margin-top: 20px; color: var(--sand); font-size: 15px; }
.counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 32px 0; max-width: 560px; }
.counter { margin: 0; padding: 14px 12px; border: 1px solid var(--sand-a10); border-radius: var(--r); background: rgba(24, 22, 19, 0.6); }
.counter dt { font-size: 12.5px; color: var(--sand); line-height: 1.3; }
.counter dd { margin: 0; }
.counter .num { display: block; font: 400 clamp(28px, 5vw, 44px)/1.1 var(--mono); color: var(--parchment); margin-bottom: 6px; }
.counter .sub { display: block; font: 400 11px/1.4 var(--mono); color: var(--stone); margin-top: 4px; }
.counter .sub.more { color: var(--gold); }
.hero-engine { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin: 0 auto; }
.hero-engine svg { width: 100%; height: 100%; overflow: visible; }
.ring-spin { transform-box: view-box; transform-origin: 300px 300px; animation: spin linear infinite; }
.ring-spin.r1 { animation-duration: 70s; }
.ring-spin.r2 { animation-duration: 110s; animation-direction: reverse; }
.ring-spin.r3 { animation-duration: 150s; }
.core-glow { animation: breathe 6s ease-in-out infinite; transform-box: view-box; transform-origin: 300px 300px; }
.ring-label {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gold-a45);
  background: rgba(24, 22, 19, 0.88); color: var(--parchment); font: 400 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ring-label:hover { border-color: var(--gold); box-shadow: 0 0 0 6px var(--gold-a12); }
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr 1fr; }
}
@media (max-width: 480px) {
  .counters { grid-template-columns: 1fr; max-width: none; }
  .counter { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
  .counter dt { grid-column: 2; grid-row: 1; }
  .counter dd { display: contents; }
  .counter .num { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  .counter .sub { grid-column: 2; }
}

/* ---------- path diagrams (journey, video) ---------- */
.track { fill: none; stroke: var(--sand-a10); stroke-width: 10; stroke-linecap: round; }
.current { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 14; animation: flow 1.6s linear infinite; opacity: .9; }
.node { cursor: pointer; }
.node .hit { fill: transparent; }
.node .disc { fill: var(--ink); stroke: var(--gold-a45); stroke-width: 2; transition: stroke .2s ease, fill .2s ease; }
.node .halo { fill: var(--gold); opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .25s ease; }
.node .glyph { fill: none; stroke: var(--sand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.node .lbl { fill: var(--parchment); font: 500 15px var(--head); }
.node .tag { fill: var(--gold); font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.node .cap { fill: var(--stone); font: 400 13px var(--body); }
.node .dot-live { fill: var(--cedar); }
.node .dot-rolling { fill: var(--stone); }
.node:hover .disc, .node:focus-visible .disc, .node.lit .disc { stroke: var(--gold); }
.node:hover .halo, .node:focus-visible .halo { opacity: .14; animation: pulse 1.8s ease-in-out infinite; }
.node.lit .disc { fill: var(--gold-a25); }
.node.lit .glyph { stroke: var(--parchment); }
.node.await .halo { opacity: .3; animation: pulse 1.1s ease-in-out infinite; }
.node.await .disc { stroke: var(--gold); stroke-width: 3; }
.particle { fill: var(--gold); }
.build-dot { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(194, 154, 43, 0.9)); }

.journey-wrap { display: grid; gap: 32px; }
.journey-main { margin: 0; }
.journey-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.play-status { color: var(--gold); font-size: 13px; }
.journey-lanes button, .lanes-card {
  width: 100%; text-align: left; padding: 18px; border-radius: var(--r); border: 1px solid var(--sand-a10);
  background: var(--sand-a06); cursor: pointer; display: grid; gap: 8px; transition: border-color .2s ease;
}
.lanes-card:hover { border-color: var(--gold-a45); }
.lanes-card svg { width: 100%; height: auto; }
.lanes-card .card-label { font: 500 17px/1.2 var(--head); color: var(--parchment); display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.lanes-card .card-cap { font-size: 14px; color: var(--stone); }
.lane-line { stroke: var(--sand-a10); stroke-width: 2; }
.lane-gate { fill: var(--gold-a12); stroke: var(--gold-a25); stroke-dasharray: 3 4; }
.lane-build { fill: var(--gold); }
.lane-build.waiting { fill: none; stroke: var(--stone); stroke-width: 2; stroke-dasharray: 4 3; }
.lane-build.holding { filter: drop-shadow(0 0 5px rgba(194, 154, 43, 0.9)); }
@media (min-width: 1000px) {
  .journey-wrap { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .journey-lanes { padding-top: 62px; }
}

/* ---------- video: families, formats, styles ---------- */
.families { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) { .families { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.family { position: relative; border-radius: var(--r); border: 1px solid var(--sand-a10); background: var(--sand-a06); transition: border-color .2s ease, background-color .2s ease; }
.family.open { border-color: var(--gold); background: var(--gold-a12); }
.family-toggle {
  width: 100%; min-height: 132px; padding: 16px 56px 16px 16px; display: grid; gap: 6px; align-content: start; text-align: left;
  background: none; border: 0; border-radius: var(--r); cursor: pointer;
}
.family-toggle .ico { width: 30px; height: 30px; }
.family-toggle .f-label { font: 500 17px/1.2 var(--head); }
.family-toggle .f-cap { font-size: 13.5px; color: var(--stone); line-height: 1.4; }
.family-toggle .f-count { font: 400 12px/1.2 var(--mono); color: var(--gold); }
.family-info {
  position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sand-a18);
  background: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.family-info:hover { border-color: var(--gold); }
.family-info svg { width: 18px; height: 18px; fill: none; stroke: var(--sand); stroke-width: 2; stroke-linecap: round; }
.format-panel { margin-top: 16px; }
.format-panel:empty { display: none; }
.format-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.format {
  min-height: 112px; padding: 12px; border-radius: 12px; border: 1px solid var(--sand-a10); background: var(--ink);
  display: grid; gap: 8px; align-content: space-between; text-align: left; cursor: pointer; transition: border-color .2s ease, transform .2s ease;
}
.format:hover { border-color: var(--gold-a45); transform: translateY(-2px); }
.format .fm-label { font: 500 14.5px/1.25 var(--head); }
.format .fm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.format .fm-len { font: 400 11px/1 var(--mono); color: var(--stone); }
.frames { display: inline-flex; align-items: flex-end; gap: 4px; }
.frames svg { width: 18px; height: 18px; }
.frames rect { fill: var(--blue-a40); stroke: var(--sand); stroke-width: 1.3; }

.styles-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(132px, 1fr); gap: 10px; overflow-x: auto; margin-top: clamp(32px, 5vw, 56px); padding-bottom: 8px; scroll-snap-type: x mandatory; }
@media (min-width: 900px) { .styles-strip { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; } }
.style {
  scroll-snap-align: start; display: grid; gap: 8px; padding: 0 0 10px; border-radius: var(--r); border: 1px solid var(--sand-a10);
  background: var(--sand-a06); text-align: left; cursor: pointer; overflow: hidden; transition: border-color .2s ease;
}
.style:hover { border-color: var(--gold-a45); }
.style .sw { position: relative; display: block; aspect-ratio: 4 / 3; background-color: var(--c1); overflow: hidden; }
.style .sw::after { content: ''; position: absolute; inset: 0; }
.style .s-label { padding: 0 10px; font: 500 13.5px/1.25 var(--head); }
.style .chip { margin: 0 10px; justify-self: start; }
.look-cinematic .sw { background: linear-gradient(180deg, var(--c2) 0 16%, transparent 16% 84%, var(--c2) 84%), radial-gradient(ellipse at 32% 58%, var(--c3) 0, transparent 42%), linear-gradient(135deg, var(--c1), var(--c2)); }
.look-clean .sw { background: radial-gradient(circle at 30% 45%, var(--c2) 0 17%, transparent 18%), linear-gradient(90deg, transparent 56%, var(--c3) 56% 64%, transparent 64%), linear-gradient(0deg, var(--c3) 0 6%, transparent 6%), var(--c1); }
.look-archive .sw { background: repeating-linear-gradient(0deg, rgba(24, 22, 19, 0.14) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 50%, var(--c2) 0, var(--c1) 70%, var(--c3) 120%); }
.look-three-d .sw { background: radial-gradient(circle at 36% 36%, var(--c3) 0, var(--c2) 22%, transparent 42%), radial-gradient(circle at 72% 70%, var(--c2) 0, transparent 30%), linear-gradient(160deg, var(--c1), #181613); }
.look-clay .sw { background: radial-gradient(circle at 30% 68%, var(--c1) 0 22%, transparent 23%), radial-gradient(circle at 70% 36%, var(--c3) 0 15%, transparent 16%), radial-gradient(circle at 58% 76%, var(--c3) 0 7%, transparent 8%), var(--c2); }
.look-paint .sw { background: radial-gradient(ellipse at 22% 30%, var(--c1), transparent 52%), radial-gradient(ellipse at 80% 72%, var(--c3), transparent 56%), radial-gradient(ellipse at 62% 22%, var(--c2), transparent 48%), var(--c3); filter: saturate(.9); }
.look-poly .sw { background: conic-gradient(from 20deg at 42% 58%, var(--c1), var(--c2) 60deg, var(--c3) 120deg, var(--c1) 180deg, var(--c2) 240deg, var(--c3) 300deg, var(--c1)); }
.look-ancient .sw { background: linear-gradient(180deg, transparent 0 58%, var(--c1) 58%), repeating-linear-gradient(90deg, var(--c2) 0 4px, transparent 4px 20px), radial-gradient(circle at 70% 30%, var(--c3) 0 10%, transparent 11%), var(--c1); }
.look-afro .sw { background: repeating-linear-gradient(45deg, var(--c1) 0 8px, var(--c2) 8px 16px, var(--c3) 16px 24px); }
.look-phone .sw { background: linear-gradient(90deg, var(--c1) 0 32%, var(--c2) 32% 68%, var(--c1) 68%); }
.look-phone .sw::after { inset: 12% 34%; border: 2px solid var(--c3); border-radius: 8px; }
.look-screen .sw { background: linear-gradient(180deg, var(--c2) 0 16%, transparent 16%), repeating-linear-gradient(180deg, transparent 0 12px, rgba(248, 246, 241, 0.16) 12px 14px), var(--c1); }
.look-kids .sw { background: radial-gradient(circle, var(--c1) 0 6px, transparent 7px) 0 0 / 28px 28px, radial-gradient(circle, var(--c2) 0 5px, transparent 6px) 14px 14px / 28px 28px, var(--c3); }
.style .sw.shimmer::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(248, 246, 241, 0.18) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 6s ease-in-out infinite; animation-delay: var(--d, 0s); }

/* ---------- why ---------- */
.why-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-panel { margin: 0; padding: 18px; border-radius: var(--r); border: 1px solid var(--sand-a10); }
.why-typical { background: rgba(171, 166, 154, 0.05); }
.why-engine { background: var(--gold-a12); border-color: var(--gold-a25); }
.why-panel figcaption { display: grid; gap: 2px; margin-bottom: 10px; }
.why-panel .w-label { font: 500 18px/1.2 var(--head); }
.why-typical .w-label { color: var(--sand); }
.why-panel .w-cap { font-size: 14px; color: var(--stone); }
.why-panel svg { width: 100%; height: auto; overflow: visible; }
.t-link { fill: none; stroke: var(--stone); stroke-width: 2; stroke-dasharray: 6 7; opacity: .6; }
.t-node { fill: var(--ink); stroke: var(--stone); stroke-width: 2; }
.t-wait { fill: none; stroke: var(--stone); stroke-width: 1.6; stroke-linecap: round; }
.t-lbl { fill: var(--stone); font: 400 16px var(--body); }
.t-dot { fill: var(--stone); }
.e-lbl { fill: var(--parchment); font: 500 16px var(--head); }
.ribbons { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 900px) { .ribbons { grid-template-columns: 1.4fr 1fr; } }
.ribbon { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; min-height: 72px; padding: 14px 20px; border-radius: var(--r); border: 1px solid var(--sand-a10); background: var(--sand-a06); }
.ribbon .from, .ribbon .to { font: 400 clamp(16px, 2.4vw, 22px)/1.2 var(--mono); }
.ribbon .from { color: var(--stone); }
.ribbon .to { color: var(--gold); }
.ribbon svg { flex: 1 1 140px; min-width: 120px; height: 28px; }
.ribbon-price { justify-content: space-between; background: var(--gold); color: var(--ink); border-color: var(--gold); text-decoration: none; font: 600 clamp(17px, 2.2vw, 21px)/1.2 var(--head); transition: box-shadow .2s ease; }
.ribbon-price:hover { box-shadow: 0 0 0 6px var(--gold-a25); }
.ribbon-price .arrow { font-family: var(--mono); }

/* ---------- care ---------- */
.board { position: relative; display: grid; gap: 8px; }
.col { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 8px; border-radius: var(--r); border: 1px solid var(--sand-a10); background: var(--sand-a06); }
.col-head { display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; align-items: center; padding: 12px; text-align: left; background: none; border: 0; border-radius: var(--r); cursor: pointer; min-height: 64px; }
.col-head .ico { width: 28px; height: 28px; grid-row: span 2; }
.col-head .c-label { font: 500 15px/1.2 var(--head); }
.col-head .c-cap { font-size: 12.5px; color: var(--stone); line-height: 1.35; grid-column: 2; }
.col-slot { position: relative; border-left: 1px dashed var(--sand-a10); }
.col:hover { border-color: var(--gold-a45); }
.card {
  position: absolute; left: 0; top: 0; width: 52px; height: 34px; border-radius: 7px; background: var(--ink);
  border: 1px solid var(--gold-a45); pointer-events: none; will-change: transform, opacity;
  box-shadow: 0 4px 14px rgba(24, 22, 19, 0.6);
}
.card::before, .card::after { content: ''; position: absolute; left: 8px; height: 3px; border-radius: 2px; background: var(--sand-a18); }
.card::before { top: 10px; width: 26px; background: var(--gold); }
.card::after { top: 19px; width: 34px; }
.board-cards { position: absolute; inset: 0; pointer-events: none; }
@media (min-width: 1000px) {
  .board { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .col { grid-template-columns: 1fr; grid-template-rows: auto 150px; }
  .col-head { grid-template-columns: 1fr; align-content: start; }
  .col-head .ico { grid-row: auto; }
  .col-head .c-cap { grid-column: 1; }
  .col-slot { border-left: 0; border-top: 1px dashed var(--sand-a10); }
}
.care-tiles { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 720px) { .care-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: grid; grid-template-columns: 36px 1fr; gap: 4px 14px; align-items: start; padding: 16px; min-height: 96px; border-radius: var(--r); border: 1px solid var(--sand-a10); background: var(--sand-a06); text-align: left; cursor: pointer; transition: border-color .2s ease; }
.tile:hover { border-color: var(--gold-a45); }
.tile .ico { width: 32px; height: 32px; grid-row: span 3; }
.tile .t-label { font: 500 16px/1.2 var(--head); }
.tile .t-cap { font-size: 13.5px; color: var(--stone); }
.tile .chip { justify-self: start; }

/* ---------- map ---------- */
.map-legend { display: flex; gap: 10px; margin-bottom: 12px; }
.map-figure { position: relative; border-radius: 20px; background: radial-gradient(ellipse at 50% 50%, var(--blue-a40) 0%, var(--ink-a00) 70%); }
.map-figure svg { width: 100%; height: auto; overflow: visible; }
.m-edge { stroke: var(--gold-a25); stroke-width: 1.4; }
.m-bg { fill: var(--sand); }
.star .hit { fill: transparent; }
.star .glow { fill: var(--gold); opacity: .16; transform-box: fill-box; transform-origin: center; animation: twinkle 4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.star .core { fill: var(--gold); }
.star.rolling .core { fill: var(--stone); }
.star.rolling .glow { fill: var(--stone); }
.star .s-dot.live { fill: var(--cedar); stroke: var(--ink); stroke-width: 2; }
.star .s-dot.rolling { fill: var(--stone); stroke: var(--ink); stroke-width: 2; }
.star .s-lbl { fill: var(--parchment); font: 500 17px var(--head); }
.star { cursor: pointer; }
.star:hover .glow, .star:focus-visible .glow { opacity: .4; }
.star.hub .core { fill: var(--gold); }
.m-particle { fill: var(--gold); }
.map-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
@media (min-width: 720px) { .map-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .map-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.map-item { width: 100%; min-height: 64px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 14px; text-align: left; border-radius: 12px; border: 1px solid var(--sand-a10); background: var(--sand-a06); cursor: pointer; }
.map-item:hover { border-color: var(--gold-a45); }
.map-item .p-label { font: 500 15px/1.25 var(--head); }
.map-item .p-cap { grid-column: 1 / -1; font-size: 13px; color: var(--stone); line-height: 1.4; }
@media (max-width: 719px) { .map-figure .s-lbl { display: none; } }

/* ---------- close, footer ---------- */
.close { text-align: center; background: radial-gradient(ellipse at 50% 30%, var(--gold-a12), var(--ink-a00) 60%); }
.close-inner { display: grid; justify-items: center; }
.close-mark { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 24px; }
.close h2 { margin-bottom: 12px; max-width: none; }
.close h2::before { margin: 0 auto 18px; }
.close-line { margin: 0 0 28px; font: 500 clamp(18px, 2.4vw, 24px)/1.3 var(--head); color: var(--sand); }
.close-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; align-items: center; padding: 28px 16px 40px; border-top: 1px solid var(--sand-a06); color: var(--stone); font-size: 14px; }
.foot-name { font: 600 15px var(--head); color: var(--parchment); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sand); }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(24, 22, 19, 0.6); animation: fade .2s ease both; }
.drawer {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 86svh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--ink); border-top: 1px solid var(--gold-a45); border-radius: 20px 20px 0 0; padding: 18px clamp(16px, 4vw, 28px) 28px;
  box-shadow: 0 -20px 60px rgba(24, 22, 19, 0.8); animation: sheet .28s ease both;
}
@media (min-width: 720px) {
  .drawer { left: auto; top: 0; width: min(460px, 92vw); max-height: none; border-top: 0; border-left: 1px solid var(--gold-a45); border-radius: 0; animation-name: side; padding-top: 24px; }
}
.drawer-head { display: grid; grid-template-columns: 44px 1fr 44px; gap: 14px; align-items: start; margin-bottom: 18px; }
.drawer-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-a12); border: 1px solid var(--gold-a25); }
.drawer-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drawer-titles { display: grid; gap: 6px; }
.drawer-tag { font-size: 11px; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.drawer-tag:empty, .drawer-meta:empty { display: none; }
.drawer h3 { font-size: 24px; }
.drawer-caption { color: var(--sand); font-size: 15px; }
.drawer-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 400 12px var(--mono); color: var(--stone); }
.drawer-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sand-a18); background: none; cursor: pointer; display: grid; place-items: center; }
.drawer-close svg { stroke: var(--parchment); stroke-width: 2; stroke-linecap: round; }
.drawer-close:hover { border-color: var(--gold); }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--sand-a06); margin-bottom: 18px; }
.tabs [role="tab"] { min-height: 48px; padding: 6px 8px; border: 0; border-radius: 9px; background: none; color: var(--sand); font: 500 13px/1.2 var(--body); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--gold); color: var(--ink); }
.panel { font-size: 16px; line-height: 1.6; color: var(--parchment); }
.panel:focus-visible { outline-offset: 6px; }
.panel p { margin: 0 0 14px; }
.mini { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 0; position: relative; }
.mini li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0 8px 2px; color: var(--stone); font: 400 13px/1.3 var(--mono); transition: color .3s ease; }
.mini li::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold-a45); background: var(--ink); position: relative; z-index: 1; transition: background-color .3s ease, box-shadow .3s ease; }
.mini li:not(:last-child)::after { content: ''; position: absolute; left: 8px; top: 26px; bottom: -10px; width: 2px; background: var(--gold-a25); }
.mini li.on { color: var(--parchment); }
.mini li.on::before { background: var(--gold); box-shadow: 0 0 0 5px var(--gold-a25); }
.mini li.done::before { background: var(--gold-a45); }
.parts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.parts-list li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--sand-a06); border: 1px solid var(--sand-a10); }
.parts-list strong { font: 500 15px/1.25 var(--head); color: var(--gold); }
.parts-list span { font-size: 14.5px; color: var(--sand); }

/* ---------- glyphs ---------- */
.ico { fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .6; transform: scale(1.05); } }
@keyframes flow { to { stroke-dashoffset: -32; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes twinkle { 0%, 100% { opacity: .1; } 50% { opacity: .3; } }
@keyframes shimmer { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes side { from { transform: translateX(100%); } to { transform: none; } }

.is-paused *, .is-paused *::before, .is-paused *::after,
.tab-hidden *, .tab-hidden *::before, .tab-hidden *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .hero-film { display: none; }
  .particle, .m-particle { display: none; }
}
