/* Propyard: dark "inspection table" look. Props are judged under light, so the page stays dark. */
:root {
  color-scheme: dark;
  --peat: #121410;
  --bark: #1a1c17;
  --bark-2: #23261f;
  --line: #343829;
  --bone: #ebe4d3;
  --ash: #aaa492;
  --dim: #7d7868;
  --lantern: #e2a456;
  --lantern-ink: #1b140a;
  --moss: #9aa56c;
  --plate: #4e5255;
  --stage: #2a2d2a;
  --f-display: "IM Fell English SC", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Alegreya Sans", "Gill Sans", "Trebuchet MS", system-ui, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --s-1: 0.8125rem; --s0: 1rem; --s1: 1.1875rem; --s2: 1.5rem; --s3: 2.25rem; --s4: clamp(2.5rem, 6vw, 4rem);
  --r: 6px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--peat); color: var(--bone);
  font-family: var(--f-body); font-size: var(--s0); line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: 48px;
}
img { max-width: 100%; }
.wrap { max-width: 1240px; margin-inline: auto; }
a { color: var(--lantern); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lantern); outline-offset: 2px; }
.eyebrow { font-family: var(--f-data); font-size: var(--s-1); letter-spacing: .08em; text-transform: uppercase; color: var(--moss); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; text-wrap: balance; margin: 0; letter-spacing: .01em; }
p { margin: 0; }

/* top bar */
.topbar { position: relative; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-family: var(--f-display); font-size: var(--s2); color: var(--bone); text-decoration: none; line-height: 1; }
.topbar nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar nav > a, .nav-btn, .nav-news { color: var(--ash); text-decoration: none; font-size: var(--s-1); letter-spacing: .06em; text-transform: uppercase; font-family: var(--f-data); }
.topbar nav > a:hover, .topbar nav > a[aria-current="page"], .nav-btn:hover, .nav-btn[data-current], .nav-btn[aria-expanded="true"], .nav-news:hover, .nav-news[data-current] { color: var(--bone); }
.nav-news { position: relative; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; }
.newsdot { width: 7px; height: 7px; border-radius: 50%; background: var(--lantern); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lantern) 25%, transparent); animation: newsdot 2.4s ease-in-out infinite; }
.newsdot[hidden] { display: none; }
@keyframes newsdot { 0%, 100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--lantern) 30%, transparent); } 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--lantern) 0%, transparent); } }
.nav-toggle { position: relative; }
.nav-toggle.has-news::after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--lantern); border: 2px solid var(--peat); }
.pulse { animation: navpulse 1.2s ease-out 2; }
@keyframes navpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lantern) 70%, transparent); border-radius: 6px; } 100% { box-shadow: 0 0 0 14px transparent; border-radius: 6px; } }
.promo-upd { margin-top: 10px; font-size: var(--s-1); }
.newchip { display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 4px; background: var(--lantern); color: var(--lantern-ink); font-family: var(--f-data); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; line-height: 1.5; }
.newchip[hidden] { display: none; }
.mega-col-name .newchip { margin-left: 6px; align-self: center; color: var(--lantern-ink); }

/* What's new */
.wn-intro { text-align: center; }
.wn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 28px; align-items: start; padding: 10px 0 40px; }
.wn h2 { font-size: var(--s2); margin-bottom: 14px; }
.wn-new { display: grid; gap: 14px; }
.wn-new > h2 { margin-bottom: 0; }
.wn-rel { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bark); }
.wn-rel[hidden] { display: none; }
.wn-relhead { display: flex; align-items: center; gap: 10px; font-family: var(--f-data); font-size: .75rem; color: var(--dim); }
.wn-relhead .newchip { margin-left: 0; }
.wn-rel h3 { font-size: var(--s2); line-height: 1.1; }
.wn-rel h3 a { color: var(--bone); text-decoration: none; }
.wn-rel h3 a:hover { color: var(--lantern); }
.wn-count { font-family: var(--f-data); font-size: .8rem; color: var(--lantern); margin-left: 6px; }
.wn-rel > p { color: var(--ash); font-size: var(--s-1); }
.wn-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.wn-strip a { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--plate); }
.wn-strip a:hover { border-color: var(--lantern); }
.wn-strip img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.wn-more { display: grid !important; place-items: center; align-content: center; aspect-ratio: 1; background: var(--bark-2) !important; color: var(--lantern); text-decoration: none; font-family: var(--f-data); font-size: var(--s0); }
.wn-more span { font-size: .66rem; color: var(--ash); text-transform: uppercase; letter-spacing: .06em; }
.wn-news { position: sticky; top: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bark); }
.wn-news ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.wn-news li { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.wn-news li:last-child { padding-bottom: 0; border-bottom: 0; }
.wn-news p { font-size: var(--s-1); color: var(--bone); line-height: 1.45; }
.wn-meta { display: flex; align-items: center; gap: 8px; font-family: var(--f-data); font-size: .7rem; color: var(--dim); }
.wn-tag { padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); color: var(--moss); text-transform: uppercase; letter-spacing: .05em; }
.wn-empty { color: var(--ash); }
.wn-jump { display: none; }
.wn-news { scroll-margin-top: 12px; }
@media (max-width: 860px) {
  .wn { grid-template-columns: minmax(0, 1fr); }
  .wn-news { position: static; }
  .wn-jump { display: block; margin-top: 10px; font-size: var(--s-1); }
  .wn-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wn-strip a:nth-child(n+4):not(.wn-more) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .newsdot { animation: none; } }
.nav-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; }
.nav-btn svg { transition: transform .15s; }
.nav-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-theme { position: static; }
.mega { position: absolute; left: 0; right: 0; top: calc(100% - 1px); background: var(--bark); border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); padding: 18px 22px 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.mega-top { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.mega-top a { color: var(--bone); text-decoration: none; font-size: var(--s0); }
.mega-top a:first-child span { margin-left: 6px; font-family: var(--f-data); font-size: .75rem; color: var(--lantern); }
.mega-top a + a { color: var(--ash); font-size: var(--s-1); align-self: center; }
.mega-top a:hover { color: var(--lantern); }
.mega-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 22px; }
.mega-col ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.mega-col-name { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-display); font-size: var(--s1); color: var(--bone); text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.mega-col a { text-decoration: none; }
.mega-col ul a { display: flex; justify-content: space-between; gap: 8px; color: var(--ash); font-size: var(--s-1); padding: 3px 0; line-height: 1.3; }
.mega-col span { font-family: var(--f-data); font-size: .75rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.mega-col a:hover, a.mega-col-name:hover { color: var(--lantern); }
.nav-search { position: relative; margin: 0; }
.nav-search input { width: 190px; background: var(--bark-2); border: 1px solid var(--line); border-radius: var(--r); color: var(--bone); padding: 6px 10px; font-size: var(--s-1); }
.nav-search input:focus { border-color: var(--lantern); outline: none; }
.nav-results { position: absolute; right: 0; top: calc(100% + 6px); width: min(380px, 92vw); max-height: 70vh; overflow: auto; background: var(--bark); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); padding: 6px; z-index: 60; }
.nr { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px; border-radius: 6px; color: var(--bone); text-decoration: none; }
.nr img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; background: var(--plate); }
.nr b { display: block; font-weight: 500; font-size: var(--s-1); line-height: 1.25; }
.nr small { display: block; font-size: .72rem; color: var(--dim); }
.nr em { font-style: normal; font-family: var(--f-data); font-size: .75rem; color: var(--lantern); }
.nr:hover, .nr.on { background: var(--bark-2); }
.nr-all { display: block; padding: 8px 6px 4px; font-size: var(--s-1); text-decoration: none; border-top: 1px solid var(--line); margin-top: 4px; }
.nr-none { padding: 10px 6px; font-size: var(--s-1); color: var(--ash); }
.nav-toggle { display: none; }
.qnote { margin: -4px 0 14px; font-size: var(--s-1); color: var(--ash); text-align: center; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 36px; padding: 0 9px; background: var(--bark-2); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
  .nav-toggle span { display: block; height: 2px; background: var(--bone); border-radius: 1px; transition: transform .15s, opacity .15s; }
  .menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .topbar nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .topbar.menu-open nav { display: flex; }
  .topbar nav > a, .nav-btn, .nav-news { padding: 12px 2px; border-top: 1px solid var(--line); width: 100%; justify-content: space-between; }
  .nav-search { order: -1; padding: 6px 0 10px; }
  .nav-search input { width: 100%; padding: 9px 12px; font-size: var(--s0); }
  .nav-results { position: static; width: 100%; max-height: none; margin-top: 8px; box-shadow: none; }
  .mega { position: static; border: 0; border-radius: 0; box-shadow: none; padding: 4px 0 14px; background: transparent; }
  .mega-top { flex-direction: column; gap: 8px; }
  .mega-top a + a { align-self: flex-start; }
  .mega-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
}
.fromnote { font-family: var(--f-data); font-size: 0.75rem; color: var(--ash); }
.crumbs { font-family: var(--f-data); font-size: 0.75rem; color: var(--dim); margin-top: 20px; letter-spacing: .04em; }
.crumbs a { color: var(--ash); text-decoration: none; }
.crumbs a:hover { color: var(--bone); }

/* generic sections */
section { margin-top: 56px; }
.sechead { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sechead h2 { font-size: var(--s3); }
.sechead p { margin-top: 4px; color: var(--ash); max-width: 70ch; }
.lead { color: var(--ash); font-size: var(--s1); max-width: 62ch; margin-top: 14px; }

/* hero (home, theme) */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding-block: 44px 8px; }
.hero h1 { font-size: var(--s4); line-height: 1.02; margin-top: 8px; }
.hero figure { margin: 0; }
.hero figure img { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bark-2); color: var(--bone); padding: 8px 14px; border-radius: var(--r); cursor: pointer; text-decoration: none; font-size: var(--s-1); line-height: 1.3; }
.btn:hover { border-color: var(--lantern); }
.btn.primary { background: var(--lantern); color: var(--lantern-ink); border-color: var(--lantern); font-weight: 700; }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.btn[aria-disabled="true"]:hover { border-color: var(--line); }
.buy { display: flex; flex-wrap: wrap; gap: 6px; }
.buynote { font-size: var(--s-1); color: var(--dim); margin-top: 6px; }

/* cards (themes, packs, props) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--line); background: var(--bark); border-radius: var(--r); overflow: hidden; color: inherit; text-decoration: none; display: flex; flex-direction: column; }
a.tile:hover { border-color: color-mix(in srgb, var(--lantern) 60%, var(--line)); }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--plate); }
.tile .body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.tile h3 { font-size: var(--s2); }
.tile p { color: var(--ash); font-size: var(--s-1); }
.tile .meta { font-family: var(--f-data); font-size: 0.75rem; color: var(--dim); }
.tile.muted { border-style: dashed; background: transparent; justify-content: center; min-height: 200px; }
.tile.muted .body { text-align: center; }
.status { display: inline-block; font-family: var(--f-data); font-size: 0.7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--lantern-ink); background: var(--lantern); padding: 2px 8px; border-radius: 99px; justify-self: start; }
.status.soon { background: transparent; color: var(--ash); border: 1px solid var(--line); }

/* three-up explainer */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: var(--bark); }
.panel h3 { font-size: var(--s2); }
.panel .who { color: var(--moss); font-family: var(--f-data); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.panel p { color: var(--ash); margin-top: 8px; }
.panel ul { margin: 12px 0 0; padding-left: 18px; color: var(--ash); display: grid; gap: 6px; }
.panel li strong { color: var(--bone); font-weight: 500; }
.twocol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.storelist { display: flex; flex-wrap: wrap; gap: 8px; }
.storelist span { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: var(--s-1); color: var(--ash); }
.storelist span b { color: var(--bone); font-weight: 500; }

/* pack intro */
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; padding-block: 24px 28px; align-items: start; }
.intro h1 { font-size: var(--s4); line-height: 1.02; margin-top: 8px; }
.packbox { border: 1px solid var(--line); border-radius: var(--r); background: var(--bark); overflow: hidden; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); margin: 0; }
.facts div { background: var(--bark); padding: 12px 14px; }
.facts dt { font-family: var(--f-data); font-size: 0.75rem; color: var(--dim); text-transform: uppercase; letter-spacing: .07em; }
.facts dd { margin: 2px 0 0; font-size: var(--s1); }
.price { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.price .amount { font-family: var(--f-data); font-size: var(--s2); font-variant-numeric: tabular-nums; }
.price .amount small { font-size: var(--s-1); color: var(--dim); margin-left: 6px; }
.price .save { font-size: var(--s-1); color: var(--moss); }

/* inspector */
.inspector { display: grid; grid-template-columns: minmax(0, 1fr) 340px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bark); }
.stage { position: relative; min-height: 420px; height: min(68vh, 640px); background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--stage) 100%, #fff 7%) 0%, var(--stage) 45%, color-mix(in srgb, var(--stage) 60%, #000) 100%); transition: background .5s; touch-action: none; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.toolbar { position: absolute; z-index: 2; left: 12px; right: 12px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.toolbar.top { top: 12px; }
.toolbar.bottom { bottom: 12px; justify-content: space-between; align-items: flex-end; }
.toolbar > * { pointer-events: auto; }
.seg { display: inline-flex; flex-wrap: wrap; background: color-mix(in srgb, var(--peat) 78%, transparent); border: 1px solid var(--line); border-radius: 99px; padding: 3px; gap: 2px; backdrop-filter: blur(6px); }
.seg .lab { align-self: center; padding: 0 4px 0 10px; font-family: var(--f-data); font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.seg button, .tog { border: 0; background: transparent; padding: 6px 12px; border-radius: 99px; cursor: pointer; font-size: var(--s-1); color: var(--ash); white-space: nowrap; }
.seg button:hover, .tog:hover { color: var(--bone); }
.seg button[aria-pressed="true"] { background: var(--lantern); color: var(--lantern-ink); font-weight: 700; }
.tools { display: inline-flex; gap: 2px; background: color-mix(in srgb, var(--peat) 78%, transparent); border: 1px solid var(--line); border-radius: 99px; padding: 3px; backdrop-filter: blur(6px); flex-wrap: wrap; }
.tog[aria-pressed="true"] { color: var(--lantern); }
.tog .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; margin-right: 6px; vertical-align: 1px; }
.tog[aria-pressed="true"] .dot { background: currentColor; }
.hint { font-family: var(--f-data); font-size: 0.72rem; color: color-mix(in srgb, var(--bone) 70%, transparent); background: color-mix(in srgb, var(--peat) 60%, transparent); padding: 4px 8px; border-radius: 4px; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-data); font-size: var(--s-1); color: var(--ash); pointer-events: none; }
.loading .bar { width: 160px; height: 2px; background: var(--line); margin-top: 10px; overflow: hidden; }
.loading .bar i { display: block; height: 100%; width: 0; background: var(--lantern); transition: width .2s; }
.fallback { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: var(--plate); }
.fallback img { max-height: 80%; width: auto; }
.fallback p { margin: 8px 0 0; font-size: var(--s-1); color: #f1ece0; }

.ledger { border-left: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 18px; min-width: 0; overflow-y: auto; max-height: min(68vh, 640px); }
.ledger h2 { font-size: var(--s3); line-height: 1.05; }
.ledger .desc { color: var(--ash); margin-top: 6px; }
.ledger .single { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bark-2); }
.ledger .single .amount { font-family: var(--f-data); font-size: var(--s1); font-variant-numeric: tabular-nums; }
.ledger .single .amount small { color: var(--dim); font-size: var(--s-1); margin-left: 6px; }
.ledger .inpack { font-size: var(--s-1); color: var(--ash); }
.dims { font-family: var(--f-data); font-size: var(--s0); font-variant-numeric: tabular-nums; }
.dims span { color: var(--dim); font-size: var(--s-1); }
.block h3 { font-family: var(--f-data); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 8px; }
.ladder { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ladder li { display: grid; grid-template-columns: 72px minmax(0, 1fr) 70px; gap: 8px; align-items: center; font-family: var(--f-data); font-size: var(--s-1); font-variant-numeric: tabular-nums; }
.ladder .track { height: 6px; background: var(--bark-2); border-radius: 3px; overflow: hidden; }
.ladder .track i { display: block; height: 100%; background: var(--moss); border-radius: 3px; }
.ladder li.hp .track i { background: var(--lantern); }
.ladder b { text-align: right; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--f-data); font-size: 0.75rem; border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; color: var(--ash); }
.linkrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.linkfield { font-family: var(--f-data); font-size: 0.75rem; background: var(--peat); color: var(--ash); border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; width: 100%; min-width: 0; }
.copied { font-size: var(--s-1); color: var(--moss); }

/* renders */
.renders { display: grid; grid-template-columns: minmax(0, 760px); gap: 16px; }
.renders figure { margin: 0; min-width: 0; }
.renders img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); }
.renders figcaption { margin-top: 8px; font-size: var(--s-1); color: var(--dim); }
.scenegal { --g: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--g); max-width: 1080px; margin-inline: auto; }
.scenegal figure { margin: 0; min-width: 0; flex: 0 1 calc((100% - 2 * var(--g)) / 3); }
.scenegal img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); }

.scenelinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.scenelinks:empty { display: none; }

/* scenes page */
.scenes { display: grid; gap: 56px; padding: 24px 0 40px; }
.scene { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 32px; align-items: start; scroll-margin-top: 16px; }
.scene-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); }
.scene-info h2 { margin-bottom: 6px; }
.scene-info h3 { margin: 22px 0 10px; font-size: var(--s0); color: var(--ash); }
.scene-info .lead { color: var(--ash); }
.scene-links { margin-top: 12px; }
.scene-heroes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.scene-heroes li { display: grid; gap: 6px; }
.scard { border: 1px solid var(--line); background: var(--bark); border-radius: var(--r); overflow: hidden; color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.scard:hover { border-color: color-mix(in srgb, var(--lantern) 60%, var(--line)); }
.scard img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--plate); }
.scard .nm { padding: 8px 10px 0; font-size: var(--s-1); line-height: 1.25; }
.scard .cost { padding: 2px 10px 10px; font-family: var(--f-data); font-size: 0.75rem; color: var(--lantern); }
.scard.sm .nm { padding-bottom: 8px; font-size: 0.75rem; color: var(--ash); }
.jump { border: 1px solid var(--line); background: var(--bark-2); color: var(--bone); border-radius: var(--r); padding: 6px 10px; cursor: pointer; font-family: var(--f-data); font-size: 0.75rem; }
.jump:hover { border-color: var(--lantern); }
.scene-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.scene-plants { margin-top: 22px; }
#in-videos { padding-bottom: 20px; }
.scene-props.all { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mega-top a span { margin-left: 6px; font-family: var(--f-data); font-size: .75rem; color: var(--lantern); }
.scene-plants summary { cursor: pointer; color: var(--ash); font-size: var(--s0); margin-bottom: 10px; }
@media (max-width: 760px) {
  /* phones: one scene per screen, the video plays while it is on screen (assets/js/scenes.js) */
  html:has(.scenes) { scroll-snap-type: y proximity; }
  .scene { grid-template-columns: minmax(0, 1fr); gap: 18px; scroll-snap-align: start; }
  .scene-video { width: 100%; margin-inline: auto; display: grid; place-items: center; }
  .scene-video video { width: auto; max-width: 100%; height: min(calc(100svh - 96px), 82vh, calc((100vw - 32px) * 16 / 9)); aspect-ratio: 9 / 16; background: #000; }
  .scene-heroes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-props { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* model header, quick buy, phone buy bar, 3D on tap, swipe galleries */
.intro.item .eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--moss) 45%, transparent); }
.iquick { display: none; }
.renders.swipe { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1080px; margin-inline: auto; }
.stage .poster { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; padding: 16px; }
.stage .poster img { width: min(78%, 420px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.stage.posterd .toolbar, .stage.posterd .loading { display: none; }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bark) 94%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.buybar[hidden] { display: none; }
.buybar .bb-name { flex: 1; min-width: 0; font-size: var(--s-1); color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .buy, .iquick .buy { display: flex; }
.buybar .btn, .iquick .btn { white-space: nowrap; }
body.has-buybar { padding-bottom: 76px; }
@media (max-width: 760px) {
  .intro.item { padding-block: 14px 14px; }
  .intro.item h1 { font-size: var(--s3); }
  .intro.item .lead { font-size: var(--s0); }
  .iquick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; margin-top: 14px; }
  .iquick .iprice { font-family: var(--f-data); font-size: var(--s1); color: var(--bone); font-variant-numeric: tabular-nums; }
  .iquick .imore { flex-basis: 100%; text-align: center; font-size: var(--s-1); color: var(--ash); }
  .swipe { display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > figure { flex: 0 0 82% !important; scroll-snap-align: start; }
  .swipe > figure:only-child { flex-basis: 100% !important; }
}

/* shelf */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { border: 1px solid var(--line); background: transparent; color: var(--ash); padding: 6px 12px; border-radius: 99px; cursor: pointer; font-size: var(--s-1); }
.filters button span { font-family: var(--f-data); color: var(--dim); margin-left: 4px; }
.filters button[aria-pressed="true"] { border-color: var(--moss); color: var(--bone); background: color-mix(in srgb, var(--moss) 18%, transparent); }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); background: var(--bark); border-radius: var(--r); overflow: hidden; color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.card:hover { border-color: color-mix(in srgb, var(--lantern) 60%, var(--line)); }
.card[aria-current="true"] { border-color: var(--lantern); box-shadow: 0 0 0 1px var(--lantern); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--plate); }
.card .meta { padding: 10px 12px 12px; display: grid; gap: 2px; }
.card .name { font-size: var(--s0); font-weight: 500; line-height: 1.25; }
.card .spec { font-family: var(--f-data); font-size: 0.75rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.card .cost { font-family: var(--f-data); font-size: 0.75rem; color: var(--lantern); }

/* prose pages */
.prose { max-width: 72ch; padding-top: 24px; }
.prose h1 { font-size: var(--s4); line-height: 1.05; margin-bottom: 16px; }
.prose h2 { font-size: var(--s2); margin-top: 36px; margin-bottom: 8px; }
.prose p, .prose li { color: var(--ash); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.prose strong { color: var(--bone); font-weight: 500; }

footer { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; color: var(--dim); font-size: var(--s-1); }
footer h4 { font-family: var(--f-data); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ash); margin: 0 0 6px; }
footer p { margin: 0 0 6px; }
footer a { color: var(--ash); }

@media (max-width: 980px) {
  .hero, .intro { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .inspector { grid-template-columns: minmax(0, 1fr); }
  .ledger { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .stage { height: 62vh; min-height: 340px; }
  .twocol, .renders, footer { grid-template-columns: minmax(0, 1fr); }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .scenegal { --g: 6px; }
  .toolbar.bottom .hint { display: none; }
  .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; border-radius: 14px; scrollbar-width: none; }
  .tools { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .stage { transition: none; } }

/* ---------- favorites (assets/js/site.js) ---------- */
.favcount { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--lantern); color: var(--lantern-ink); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0; vertical-align: 1px; }
.cardwrap { position: relative; display: flex; min-width: 0; }
.cardwrap > .card { flex: 1; min-width: 0; }
.fav { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--peat) 78%, transparent); color: var(--ash); cursor: pointer; transition: color .15s, border-color .15s, transform .15s; }
.fav:hover { color: var(--bone); border-color: var(--lantern); }
.fav svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fav[aria-pressed="true"] { color: var(--lantern); border-color: color-mix(in srgb, var(--lantern) 55%, var(--line)); }
.fav[aria-pressed="true"] svg path { fill: currentColor; }
.fav:active { transform: scale(.92); }
.fav.oncard { position: absolute; top: 8px; right: 8px; backdrop-filter: blur(4px); }
.ledger .titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.favpage { margin-top: 18px; }
.install { font-size: var(--s-1); color: var(--ash); }
.favshare { display: grid; gap: 10px; margin: 0 auto 18px; max-width: 760px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bark); font-size: var(--s-1); color: var(--ash); text-align: center; }
.favshare b { color: var(--bone); font-weight: 500; }
.favshare .linkrow { justify-content: center; flex-wrap: wrap; }
.favshare p .btn { margin: 4px; }
.favsum { font-family: var(--f-data); font-size: var(--s-1); color: var(--ash); margin-bottom: 12px; }
.favempty { display: grid; gap: 10px; padding: 28px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--ash); max-width: 620px; }
.favempty .btn { margin-top: 6px; }

/* ---------- announcement on arrival (assets/js/site.js) ---------- */
.promo { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(8, 9, 7, .72); backdrop-filter: blur(3px); animation: promo-in .25s ease-out; }
.promo-card { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; display: grid; gap: 14px; padding: 26px 26px 20px; background: linear-gradient(180deg, color-mix(in srgb, var(--lantern) 7%, var(--bark)) 0%, var(--bark) 42%); border: 1px solid var(--line); border-top: 3px solid var(--lantern); border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); animation: promo-up .3s ease-out; }
.promo-card h2 { font-size: clamp(1.6rem, 4.6vw, 2.1rem); line-height: 1.05; }
.promo-lead { color: var(--ash); }
.promo-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.promo-points li { position: relative; padding-left: 20px; }
.promo-points li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--moss); transform: rotate(45deg); }
.promo-tiers { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--peat); }
.promo-tiers h3 { font-size: var(--s1); }
.promo-tiers > p { color: var(--ash); font-size: var(--s-1); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiers > div { display: grid; gap: 2px; padding: 10px 8px; text-align: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--bark-2); }
.tiers b { font-family: var(--f-data); font-size: var(--s1); color: var(--lantern); }
.tiers span { font-size: var(--s-1); color: var(--ash); }
.promo-note { font-size: var(--s-1); color: var(--dim); }
.promo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); }
.promo-check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--s-1); color: var(--ash); cursor: pointer; padding-top: 10px; }
.promo-check input { width: 16px; height: 16px; accent-color: var(--lantern); }
.promo-actions { display: flex; gap: 8px; padding-top: 10px; margin-left: auto; }
@keyframes promo-in { from { opacity: 0; } }
@keyframes promo-up { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (max-width: 480px) { .promo-card { padding: 20px 16px 16px; } .tiers b { font-size: var(--s0); } .promo-actions { width: 100%; } .promo-actions .btn { flex: 1; justify-content: center; } }
/* the close button stays in the top corner while the card scrolls; on phones the card is short enough to need no scrolling */
.promo-x { position: sticky; top: -14px; z-index: 3; height: 0; margin-bottom: -14px; justify-self: end; }
.promo-x button { transform: translate(10px, -12px); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--bark-2); color: var(--bone); font-size: 15px; line-height: 1; cursor: pointer; }
.promo-x button:hover { border-color: var(--lantern); }
.promo-more > summary { cursor: pointer; color: var(--lantern); font-size: var(--s-1); list-style: none; }
.promo-more > summary::-webkit-details-marker { display: none; }
.promo-more > summary::after { content: " ▾"; }
.promo-more[open] > summary::after { content: " ▴"; }
.promo-more[open] > summary { margin-bottom: 10px; }
@media (min-width: 561px) { .promo-more[open] > summary { display: none; } }
@media (max-width: 560px) {
  .promo { padding: 10px; }
  .promo-card { gap: 10px; padding: 18px 16px 0; max-height: calc(100dvh - 20px); }
  .promo-card h2 { font-size: 1.5rem; padding-right: 30px; }
  .promo-lead { font-size: var(--s-1); }
  .promo-tiers { padding: 10px; gap: 6px; }
  .promo-tiers > p, .promo-note { display: none; }
  .promo-foot { position: sticky; bottom: 0; z-index: 2; background: var(--bark); padding: 4px 0 12px; margin-top: 2px; }
  .promo-check { padding-top: 6px; }
  .promo-actions { padding-top: 6px; }
}
@media (max-width: 400px) {
  .promo-tiers .tiers { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .promo-tiers .tiers > div { display: flex; align-items: baseline; gap: 10px; text-align: left; padding: 6px 10px; }
  .promo-tiers .tiers b { flex: none; font-size: var(--s0); }
  .promo-tiers .tiers span { font-size: .75rem; }
  .promo-lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .promo-tiers h3 { font-size: var(--s0); }
}
@media (prefers-reduced-motion: reduce) { .promo, .promo-card { animation: none; } .fav { transition: none; } }

/* ---------- pack / model page: 3D preview first, model and pack panels under it ---------- */
.intro.solo { grid-template-columns: minmax(0, 1fr); padding-block: 20px 20px; }
.intro.solo .lead { max-width: 780px; }
.inspector.solo { grid-template-columns: minmax(0, 1fr); }
.inspector.solo .stage { height: min(72vh, 700px); }
.below { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.below .ledger { border: 1px solid var(--line); border-radius: var(--r); background: var(--bark); max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; align-content: start; }
.below .ledger > :first-child, .below .ledger > .single, .below .ledger > .block:last-child { grid-column: 1 / -1; }
.below .packbox .packhead { display: grid; gap: 4px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.below .packbox .packhead h2 { font-size: var(--s2); line-height: 1.1; }
.buynote:empty { display: none; }
@media (max-width: 980px) { .below { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .below .ledger { grid-template-columns: minmax(0, 1fr); } .inspector.solo .stage { height: 58vh; min-height: 320px; } }

/* ---------- centred headings: page titles, section heads and the studio render sit on the page's centre line ---------- */
.crumbs.center { text-align: center; }
.intro.solo { justify-items: center; text-align: center; }
.intro.solo .lead { margin-inline: auto; }
.sechead { flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 12px; }
.sechead p { margin-inline: auto; }
.sechead .filters { justify-content: center; }
.renders { justify-content: center; }
.renders figcaption { text-align: center; }
.storelist { justify-content: center; }
.prose { margin-inline: auto; }
.prose h1 { text-align: center; }
.prose > h1 + p:only-of-type { text-align: center; }
.favsum { text-align: center; }
.favempty { margin-inline: auto; text-align: center; justify-items: center; }
.grid.few { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 300px)); justify-content: center; }
.buynote .tierline { display: block; margin-top: 6px; color: var(--ash); }
.buynote .tierline b { color: var(--bone); font-weight: 500; }
.buynote .tierline code { font-family: var(--f-data); font-size: 0.85em; color: var(--lantern); background: color-mix(in srgb, var(--lantern) 12%, transparent); padding: 1px 5px; border-radius: 4px; }
/* ---------- updates (changelog) ---------- */
.updnote { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ash); line-height: 1.55; }
.updnote b { color: var(--bone); font-weight: 500; }
.upd-entry { margin-top: 28px; }
.upd-entry h2 { margin-bottom: 4px; }
.upd-date { color: var(--ash); font-family: var(--f-data); font-size: 0.8125rem; margin-top: 0; }

.updstrip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 18px auto 0; max-width: 980px; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bark); color: var(--bone); text-decoration: none; text-align: center; font-size: 0.9375rem; line-height: 1.5; }
.updstrip:hover { border-color: var(--lantern); }
.updstrip .tag { font-family: var(--f-data); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--lantern); border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.updstrip .txt b { font-weight: 500; }
.updstrip .go { color: var(--lantern); white-space: nowrap; }
.upd-roll { color: var(--ash); }

/* our channels (footer, home) and the scene video on the home page */
.follow a { white-space: nowrap; }
.scene-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.scene-links span { color: var(--ash); font-size: var(--s-1); margin-right: 2px; }
.btn.sm { padding: 5px 10px; font-size: .8rem; }
.homevid-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 28px; align-items: center; max-width: 820px; margin-inline: auto; }
.homevid-row > div > * + * { margin-top: 10px; }
.homevid-row h3 { font-size: var(--s2); }
.homevid-poster { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--plate); }
.homevid-poster img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.homevid-poster .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; color: var(--bone); text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.homevid-poster:hover { border-color: var(--lantern); }
.homevid h3 a { color: inherit; text-decoration: none; }
@media (max-width: 760px) { .homevid-row { grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 14px; } }

/* store-wide sale strip under the menu (site.js campaignStrip, data/campaign.json) and sale prices on the buttons */
.campstrip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin: 10px auto 0; max-width: 1200px; padding: 9px 16px; border: 1px solid color-mix(in srgb, var(--lantern) 55%, var(--line)); border-radius: var(--r); background: color-mix(in srgb, var(--lantern) 9%, var(--bark)); color: var(--bone); text-decoration: none; text-align: center; font-size: 0.9375rem; line-height: 1.45; }
.campstrip:hover { border-color: var(--lantern); }
.campstrip .tag { font-family: var(--f-data); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lantern-ink); background: var(--lantern); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.campstrip .txt b { font-weight: 600; }
.campstrip .when { font-family: var(--f-data); font-size: 0.8125rem; color: var(--lantern); white-space: nowrap; }
.campstrip.live { background: color-mix(in srgb, var(--lantern) 16%, var(--bark)); }
.btn s.was { opacity: 0.6; font-weight: 400; margin-right: 2px; }
