:root {
  --bg: #ffffff;
  --bg2: #f4f4f4;
  --bg3: #e9e9e9;
  --fg: #111111;
  --fg2: #3d3d3d;
  --muted: #6b6b6b;
  --line: #dcdcdc;
  --accent: #b8321f; 
  --accent-fg: #ffffff;
  --art-bg: #ececec;
  --radius: 6px;
  --maxw: 1200px;
  --gutter: 16px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0e; --bg2: #171717; --bg3: #222222; --fg: #f2f2f2; --fg2: #cfcfcf; --muted: #9a9a9a;
    --line: #2c2c2c; --accent: #d24a32; --art-bg: #1d1d1d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e0e; --bg2: #171717; --bg3: #222222; --fg: #f2f2f2; --fg2: #cfcfcf; --muted: #9a9a9a;
  --line: #2c2c2c; --accent: #d24a32; --art-bg: #1d1d1d; color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.menu-open, html.menu-open body { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; margin-top: 1.6em; }
h4 { font-size: 1rem; font-weight: 650; margin-top: 1.2em; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
code { background: var(--bg2); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
kbd { display: inline-block; min-width: 1.6em; text-align: center; padding: .05em .4em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--bg2); font-size: .85em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 8px; top: 8px; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; z-index: 60; background: var(--accent); color: #fff; padding: 12px 16px; border-radius: var(--radius); }
.skip:focus { clip-path: none; width: auto; height: auto; min-height: 44px; display: inline-flex; align-items: center; }
.count { display: inline-block; font-size: .72rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; vertical-align: 3px; margin-left: 4px; letter-spacing: 0; }


.touch-only, .touch-inline, .touch-hint { display: none !important; }
@media (hover: none) and (pointer: coarse) {
  .desk-only, .desk-inline { display: none !important; }
  .touch-only { display: block !important; }
  .btn.touch-only { display: inline-flex !important; }
  .touch-inline { display: inline !important; }
}


.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; min-height: 44px; }
.seal { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--accent); color: #fff; border-radius: 4px; font-size: 15px; font-weight: 700; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--fg2); font-size: .9rem; padding: 6px 10px; border-radius: 4px; white-space: nowrap; }
.nav a:hover { background: var(--bg2); color: var(--fg); }
.nav a.on { color: var(--fg); background: var(--bg2); box-shadow: inset 0 -2px 0 var(--accent); }
.nav a.play { color: var(--accent); font-weight: 600; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--fg); border-radius: 1px; }
@media (max-width: 1079px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

.mnav { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; padding: 0 var(--gutter) env(safe-area-inset-bottom); overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav-head { display: flex; align-items: center; justify-content: space-between; height: 56px; border-bottom: 1px solid var(--line); }
.mnav-x { width: 48px; height: 48px; font-size: 28px; line-height: 1; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--fg); cursor: pointer; }
.mnav ol { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: s; }
.mnav li { border-bottom: 1px solid var(--line); counter-increment: s; }
.mnav li a { display: flex; align-items: center; gap: 14px; min-height: 60px; font-size: 1.35rem; font-weight: 650; text-decoration: none; padding: 0 4px; border-left: 3px solid transparent; }
.mnav li a::before { content: counter(s, decimal-leading-zero); font-size: .8rem; color: var(--muted); font-weight: 500; width: 1.6em; }
.mnav li a.on { color: var(--accent); border-left-color: var(--accent); padding-left: 12px; }
.mnav-foot { color: var(--muted); font-size: .85rem; margin-top: auto; padding: 20px 0; }


section { padding: 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { section { padding: 64px 0; } }
section:last-of-type { border-bottom: 0; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; margin-bottom: .6em; }
.lead { font-size: 1.1rem; color: var(--fg2); max-width: 68ch; }
.sec-intro { color: var(--fg2); max-width: 70ch; }


.hero { padding-top: 16px; }
.hero-grid { display: grid; gap: 16px; grid-template-areas: "shot" "head" "text"; }
.hero-head { grid-area: head; }
.hero-shot { all: unset; grid-area: shot; display: block; box-sizing: border-box; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; }
.hero-shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-text { grid-area: text; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0; white-space: nowrap; }
.hero h1 .cn { color: var(--accent); font-weight: 700; margin-left: .2em; font-size: .55em; vertical-align: .35em; }
.hero .eyebrow { margin-bottom: .3em; }
.pitch { font-size: 1.05rem; color: var(--fg2); margin-bottom: 12px; }
.hero-text .lead { display: none; }
@media (min-width: 1000px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 5fr 7fr; grid-template-areas: "head head" "text shot"; gap: 12px 32px; align-items: center; }
  .hero-head { margin-bottom: 8px; }
  .pitch { display: none; }
  .hero-text .lead { display: block; font-size: 1.05rem; }
}
.status { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.pill { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); }
.pill b { font-weight: 650; }
.pill.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: var(--radius); text-decoration: none; font-weight: 600; border: 1px solid var(--fg); background: transparent; color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { filter: brightness(1.08); color: var(--accent-fg); }
@media (max-width: 719px) {
  .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .btns .btn { width: 100%; min-height: 48px; padding: 10px 12px; font-size: .95rem; }
  .btns .btn.primary { grid-column: 1 / -1; min-height: 52px; font-size: 1rem; }
}
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(6, 1fr); margin-top: 40px; } }
.facts div { background: var(--bg); padding: 10px 12px; }
.facts b { display: block; font-size: 1.25rem; font-weight: 750; letter-spacing: -0.02em; }
.facts span { font-size: .78rem; color: var(--muted); line-height: 1.3; display: block; }
@media (min-width: 720px) { .facts div { padding: 16px; } .facts b { font-size: 1.6rem; } .facts span { font-size: .82rem; } }


.toc { display: none; flex-wrap: wrap; gap: 6px; margin: 16px 0 8px; }
@media (min-width: 720px) { .toc { display: flex; } }
.toc a { font-size: .85rem; text-decoration: none; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg2); }
.toc a:hover { border-color: var(--accent); color: var(--accent); }
#how > .wrap > .lead { font-size: 1rem; }
@media (max-width: 719px) { .touch-hint { display: block !important; color: var(--muted); font-size: .9rem; margin-bottom: 8px; } }
.sub { max-width: 920px; }
details.acc { border-top: 1px solid var(--line); }
details.acc:last-of-type { border-bottom: 1px solid var(--line); }
details.acc > summary { list-style: none; cursor: pointer; position: relative; padding: 14px 44px 12px 0; min-height: 56px; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary h3 { margin: 0; font-size: 1.1rem; }
details.acc > summary .sum { margin: 4px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
details > summary::after { content: ""; position: absolute; right: 12px; top: 22px; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
details[open] > summary::after { transform: rotate(-135deg); top: 26px; }
details.acc[open] > summary .sum { color: var(--fg2); }
.acc-body { padding: 4px 0 20px; }
@media (min-width: 720px) {
  details.acc > summary { padding-top: 24px; }
  details.acc > summary h3 { font-size: 1.25rem; }
  details > summary::after { top: 32px; }
  details[open] > summary::after { top: 36px; }
}
.sub ul, .sub ol { padding-left: 1.2em; }
.sub li { margin: .25em 0; }
.tw { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table.t { border-collapse: collapse; width: 100%; font-size: .9rem; }
table.t th, table.t td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.t thead th { background: var(--bg2); font-weight: 650; white-space: nowrap; }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.note { border-left: 3px solid var(--accent); padding: 8px 14px; background: var(--bg2); border-radius: 0 var(--radius) var(--radius) 0; color: var(--fg2); }
pre.formula { background: var(--bg2); padding: 12px 14px; border-radius: var(--radius); overflow-x: auto; white-space: pre; line-height: 1.5; }
img.ico { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; margin-right: 2px; }
img.thumb { display: inline-block; width: 64px; height: 64px; object-fit: contain; vertical-align: middle; background: var(--art-bg); border-radius: 4px; padding: 2px; }
figure.chart { margin: 16px 0 24px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); max-width: 680px; color: var(--fg); }
figure.chart svg { width: 100%; height: auto; display: block; }
figure.chart figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
figure.chart .ax { stroke: var(--line); fill: none; }
figure.chart .ln { stroke: var(--fg); fill: none; stroke-width: 2.5; }
figure.chart .acc { stroke: var(--accent); fill: none; stroke-width: 2.5; }
figure.chart circle.acc, figure.chart .accf { fill: var(--accent); }
figure.chart .lbl { fill: var(--muted); font: 12px var(--font); stroke: none; }
figure.chart text { fill: var(--muted); font-family: var(--font); }


@media (max-width: 719px) {
  pre.formula { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; padding: 10px 12px; }
  figure.chart { padding: 10px; margin: 12px 0 20px; }
  .tw { border: 0; overflow: visible; margin: 8px 0 16px; }
  table.t, table.t tbody, table.t tr, table.t td { display: block; width: 100%; }
  table.t thead { display: none; }
  table.t tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 6px 0; background: var(--bg); }
  table.t td, table.t td.n { border: 0; padding: 4px 12px; text-align: left; white-space: normal; font-size: .92rem; }
  table.t td::before { content: attr(data-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding-top: .2em; }
  table.t:not(.long) td { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 10px; padding: 2px 12px; }
  table.t:not(.long) td[data-label=""] { display: block; }
  table.t.long td::before { display: block; }
  table.t td[data-label=""]::before { display: none; }
  table.t td:first-child { font-weight: 650; font-size: 1rem; }
  table.t tbody tr:last-child td { border-bottom: 0; }
  table.t td:has(> img.thumb:only-child) { float: right; width: auto; padding: 0 8px; }
  img.thumb { width: 56px; height: 56px; }
}


@media (max-width: 719px) {
  .row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 10px; scroll-padding-inline: var(--gutter);
    scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .row > * { scroll-snap-align: start; flex: 0 0 auto; }
  .grid.row > * { width: 66%; }
  .group > p, #art .sec-intro, #how > .wrap > .lead { display: none; }
  .group { margin-top: 24px; }
  .levels.row > * { width: 28%; }
  .lv .zoom { padding: 4px; }
  .family { margin-top: 18px; }
  .family p { display: none; }
  .family h4 { margin-bottom: 8px; }
  .portraits.row > * { width: 36%; }
  .textures.row > * { width: 28%; }
}


.group { margin-top: 32px; }
.group h3 { margin-top: 0; }
.group p { color: var(--fg2); max-width: 70ch; }
@media (min-width: 720px) {
  .group { margin-top: 40px; }
  .grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.shot { margin: 0; }
.shot .zoom { all: unset; display: block; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg2); aspect-ratio: 16 / 9; width: 100%; box-sizing: border-box; }
.shot .zoom:focus-visible, .lv .zoom:focus-visible, .portrait .zoom:focus-visible, .tex .zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
@media (hover: hover) { .shot .zoom:hover img { transform: scale(1.03); } }
.shot figcaption { font-size: .85rem; color: var(--fg2); margin-top: 6px; line-height: 1.45; }


.family { margin-top: 24px; }
.family h4 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.family h4 small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.family p { color: var(--fg2); font-size: .92rem; margin-bottom: 10px; }
@media (min-width: 720px) { .levels { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); } }
.lv { margin: 0; text-align: center; }
.lv .zoom { all: unset; box-sizing: border-box; display: block; width: 100%; background: var(--art-bg); border-radius: var(--radius); padding: 8px 6px; cursor: zoom-in; }
.lv img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.lv figcaption { font-size: .78rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
@media (min-width: 720px) {
  .portraits { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .textures { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
.portraits, .textures { margin-top: 16px; }
.portrait, .tex { margin: 0; }
.portrait .zoom, .tex .zoom { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: zoom-in; border-radius: var(--radius); }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.portrait figcaption { margin-top: 6px; line-height: 1.3; }
.portrait b { display: block; font-size: .92rem; }
.portrait span { font-size: .78rem; color: var(--muted); }
.portrait em { font-style: normal; font-size: .72rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.tex img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); width: 100%; }
.tex figcaption { font-size: .82rem; color: var(--fg2); margin-top: 4px; }


details.more { margin-top: 8px; }
details.more > summary { list-style: none; cursor: pointer; position: relative; min-height: 48px; display: flex; align-items: center; padding-right: 40px; font-weight: 650; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary h3 { margin: 0; }
details.more > summary::after { top: 16px; }
details.more[open] > summary::after { top: 20px; }
@media (max-width: 719px) { details.more { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; } details.more[open] { padding-bottom: 8px; } }


.cols { display: grid; gap: 24px; }
@media (min-width: 860px) { .cols { grid-template-columns: 1fr 1fr; } }
.packs { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
@media (min-width: 560px) { .packs { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
.pack { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.pack b { display: block; font-size: .95rem; }
.pack span { font-size: .8rem; color: var(--muted); }
.pack.cur { border-color: var(--accent); }
.pack.cur span { color: var(--accent); font-weight: 600; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 8px 0 8px 26px; border-bottom: 1px solid var(--line); position: relative; }
ul.plain li:last-child { border-bottom: 0; }
ul.done li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--fg); border-bottom: 2px solid var(--fg); transform: rotate(-45deg); }
ul.next li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 9px; height: 9px; border: 2px solid var(--muted); border-radius: 50%; }
ul.next li.now::before { border-color: var(--accent); background: var(--accent); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
@media (min-width: 720px) { .card { padding: 20px; } }
.card h3 { margin-top: 0; }
.card details.more { border: 0; padding: 0; margin: 0; }
@media (max-width: 859px) { .road .next-card { order: -1; } }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); vertical-align: 2px; margin-left: 6px; }
.tag.now { background: var(--accent); border-color: var(--accent); color: #fff; }
details.versions { margin-top: 24px; }
.timeline { margin-top: 12px; border-left: 2px solid var(--line); padding-left: 20px; margin-left: 6px; }
.ver { position: relative; padding-bottom: 20px; }
.ver::before { content: ""; position: absolute; left: -27px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--fg); }
.ver.latest::before { background: var(--accent); border-color: var(--accent); }
.ver h4 { margin: 0 0 4px; font-size: 1.05rem; }
.ver h4 small { font-weight: 400; color: var(--muted); font-size: .82rem; margin-left: 8px; }
.ver ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--fg2); font-size: .92rem; }


.play-box { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .play-box { grid-template-columns: 1fr 1fr; } }
.touch-note { border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; margin: 8px 0 20px; background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.touch-note .linkline code { display: block; padding: 10px 12px; font-size: .9rem; user-select: all; -webkit-user-select: all; }
.touch-note .btn { width: 100%; min-height: 50px; }
.copied { display: block; font-size: .85rem; color: var(--muted); margin-top: 8px; min-height: 1.2em; }
footer { padding: 32px 0 calc(48px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .85rem; }


.lb { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .95); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 64px 12px 88px; touch-action: pan-y; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: 4px; }
.lb .cap { color: #e6e6e6; font-size: .9rem; margin-top: 12px; max-width: 900px; text-align: center; min-height: 1.4em; }
.lb button { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 50%; width: 52px; height: 52px; font-size: 28px; cursor: pointer; line-height: 52px; padding: 0; }
.lb button:hover { background: var(--accent); }
.lb .x { top: max(10px, env(safe-area-inset-top)); right: 10px; }
.lb .prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb .count { position: absolute; top: max(24px, calc(env(safe-area-inset-top) + 14px)); left: 18px; color: #bbb; font-size: .85rem; }

.lb { touch-action: none; overscroll-behavior: contain; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 0; flex: 1 1 auto; overflow: hidden; touch-action: none; }
.lb img { transform-origin: 50% 50%; will-change: transform; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: zoom-in; }
.lb.zoomed img { cursor: grab; }
.lb img.lb-anim { transition: transform .2s ease; }
.lb.zoomed .cap, .lb.zoomed .prev, .lb.zoomed .next { opacity: .25; }
html.lb-lock, html.lb-lock body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .lb img.lb-anim { transition: none; } }
@media (min-width: 720px) { .lb { padding: 24px 80px; } .lb img { max-height: calc(100vh - 110px); } }
@media (max-width: 719px) { .lb .prev, .lb .next { top: auto; transform: none; bottom: max(16px, env(safe-area-inset-bottom)); width: 60px; height: 60px; line-height: 60px; } .lb .prev { left: 24px; } .lb .next { right: 24px; } }


.upd-strip { padding: 28px 0; background: var(--bg2); }
.upd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.upd-head .eyebrow { margin-bottom: .2em; }
.upd-ver { margin: 0; font-size: 1rem; color: var(--fg2); }
.upd-ver b { color: var(--fg); }
.upd-ver .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.upd-cols { display: grid; gap: 12px; }
@media (min-width: 760px) { .upd-cols { grid-template-columns: repeat(3, 1fr); } }
.upd-col { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; border-top: 3px solid var(--muted); }
.upd-col.live { border-top-color: var(--accent); }
.upd-col.prog { border-top-color: var(--fg); }
.upd-col h3 { margin: 0 0 8px; font-size: 1rem; }
.upd-col ul { list-style: none; margin: 0; padding: 0; }
.upd-col li { padding: 5px 0; border-top: 1px solid var(--line); font-size: .92rem; line-height: 1.4; }
.upd-col li:first-child { border-top: 0; }
.upd-col li.more { color: var(--muted); font-size: .85rem; }
.eta { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--accent); white-space: nowrap; margin-left: 4px; }
@media (max-width: 719px) {
  .upd-strip { padding: 24px 0; }
  .upd-head { align-items: center; }
  .upd-head .btn { flex: 0 0 auto; }
  .upd-col { padding: 10px 14px; }
  .upd-ver { font-size: .92rem; }
  .upd-page .btns { grid-template-columns: 1fr; }
  .upd-touch { order: 2; }
}
.upd-page { padding-top: 28px; }
.upd-h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 .3em; }
.upd-page .upd-ver { margin-bottom: 16px; }
.upd-touch { color: var(--muted); font-size: .9rem; align-self: center; }
.upd-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.upd-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; color: var(--fg2); }
.upd-jump a:hover { border-color: var(--accent); color: var(--accent); }
.upd-list { display: grid; gap: 12px; }
@media (min-width: 860px) { .upd-list { grid-template-columns: 1fr 1fr; } }
.upd-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.upd-card h3 { margin: 6px 0 6px; font-size: 1.1rem; }
.upd-card p { color: var(--fg2); margin-bottom: 8px; }
.upd-card ul { margin: 0 0 4px; padding-left: 1.1em; color: var(--fg2); font-size: .92rem; }
.upd-card li { margin: .2em 0; }
.upd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .8rem; color: var(--muted); }
.upd-meta .eta { margin: 0; font-size: .8rem; }
.st { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.st-live { background: var(--accent); border-color: var(--accent); color: #fff; }
.st-in-progress { border-color: var(--fg); color: var(--fg); }
.st-next { color: var(--muted); }
.upd-shots { margin-top: 10px; }
@media (min-width: 720px) { .upd-shots { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 719px) { .upd-shots.row > * { width: 66%; } }
.upd-group { margin-top: 20px; }
.upd-gh { font-size: 1.05rem; margin: 0 0 10px; }
.upd-gh small { font-weight: 400; color: var(--muted); }


:root {
  --bg: #f6f3ec; --bg2: rgba(22, 19, 15, .045); --bg3: rgba(22, 19, 15, .08);
  --fg: #16130f; --fg2: #38322c; --muted: #6e665d; --line: rgba(22, 19, 15, .16);
  --accent: #b8321f; --accent-fg: #fff; --art-bg: rgba(22, 19, 15, .045); --card: rgba(255, 253, 248, .55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15130f; --bg2: rgba(246, 243, 236, .05); --bg3: rgba(246, 243, 236, .09); --fg: #efebe3; --fg2: #cfc8bd;
    --muted: #9b9389; --line: rgba(246, 243, 236, .15); --accent: #d24a32; --art-bg: rgba(246, 243, 236, .06); --card: rgba(30, 27, 23, .6);
  }
}
:root[data-theme="dark"] {
  --bg: #15130f; --bg2: rgba(246, 243, 236, .05); --bg3: rgba(246, 243, 236, .09); --fg: #efebe3; --fg2: #cfc8bd;
  --muted: #9b9389; --line: rgba(246, 243, 236, .15); --accent: #d24a32; --art-bg: rgba(246, 243, 236, .06); --card: rgba(30, 27, 23, .6);
}
body { background: var(--bg) url("/l/img/ui/paper.webp") repeat; background-blend-mode: multiply; }
.top { background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.seal { border-radius: 3px; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .14); }


section { border-bottom: 0; position: relative; }
main > section + section::before {
  content: ""; display: block; width: min(420px, 62%); height: 16px; margin: -8px auto 28px;
  background: url("/l/img/ui/brush.webp") center / 100% 100% no-repeat; opacity: .55;
}
main > section + section { background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 140px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) main > section + section::before { filter: invert(1); opacity: .35; }
  :root:not([data-theme="light"]) main > section + section { background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 140px); }
}


.hero { padding: 0 0 32px; }
.hero-banner { position: relative; height: clamp(440px, 74vh, 700px); overflow: hidden; }
.hero-land { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 62%; }
.hero-banner::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 70% 55% at 50% 18%, rgba(246, 243, 236, .78), rgba(246, 243, 236, 0) 70%),
              linear-gradient(180deg, rgba(246, 243, 236, .35), rgba(246, 243, 236, 0) 30%); }
.hero-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 1;
  background: linear-gradient(180deg, rgba(246, 243, 236, 0), var(--bg)); }
.hero-over { position: absolute; left: 0; right: 0; top: clamp(28px, 7vh, 72px); z-index: 2; text-align: center; color: #16130f; }
.hero-over .eyebrow { color: #8f2717; }
.hero-title { display: inline-flex; align-items: center; gap: 16px; }
.hero .hero-title h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; margin: 0; color: #16130f; white-space: nowrap; }
.seal-big { display: grid; place-items: center; width: clamp(44px, 6vw, 64px); height: clamp(44px, 6vw, 64px); background: #b8321f; color: #f6e9d6;
  border-radius: 4px; writing-mode: vertical-rl; font-size: clamp(15px, 2vw, 22px); line-height: 1.05; font-weight: 700; letter-spacing: .04em;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .16); flex: none; }
.hero-over .pitch { display: block; max-width: 34em; margin: 12px auto 0; font-size: clamp(1rem, 1.6vw, 1.2rem); color: #2b251f; line-height: 1.5;
  text-shadow: 0 0 12px rgba(246, 243, 236, .9), 0 0 2px rgba(246, 243, 236, .9); }
.hero .hero-grid { display: grid; gap: 20px; grid-template-areas: "text" "shot"; margin-top: -40px; position: relative; z-index: 3; }
.hero .hero-text { grid-area: text; }
.hero .hero-text .lead { display: block; font-size: 1rem; color: var(--fg2); margin-top: 16px; }
.hero-shotfig { grid-area: shot; margin: 0; }
.hero-shotfig figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.hero .hero-shot { all: unset; box-sizing: border-box; display: block; width: 100%; border-radius: 4px; overflow: hidden; cursor: zoom-in;
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(22, 19, 15, .12); }
.hero .hero-shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero .hero-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 1000px) {
  .hero .hero-grid { grid-template-columns: 5fr 6fr; grid-template-areas: "text shot"; align-items: start; gap: 40px; margin-top: -24px; }
}
@media (max-width: 719px) {
  .hero-banner { height: min(70vh, 560px); }
  .hero-land { object-position: 64% 60%; }
  .hero .hero-grid { margin-top: -28px; }
  .hero .hero-text .lead { font-size: .95rem; }
}

.hero.hero-full { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden;
  min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); padding: 48px 0 88px; }
.hero-full .hero-land { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 58% 62%; }
.hero-full::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 243, 236, 0), var(--bg)); }
.hero-center { display: flex; justify-content: center; width: 100%; }
.hero-panel { width: 100%; max-width: 780px; text-align: center; color: #fff; border-radius: 16px; padding: clamp(22px, 4vw, 44px);
  background: rgba(14, 12, 10, .80); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 64px rgba(0, 0, 0, .35); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero-panel { background: rgba(14, 12, 10, .58); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); }
}
.hero-panel .eyebrow { color: #f2a493; }
.hero.hero-full .hero-title h1 { color: #fff; white-space: normal; }
.hero-panel .pitch { display: block; max-width: 36em; margin: 14px auto 0; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.55; color: rgba(255, 255, 255, .9); }
.hero-panel .status { justify-content: center; margin-top: 20px; }
.hero-panel .pill { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); }
.hero-panel .pill b { color: #fff; }
.hero-panel .btns { justify-content: center; margin-top: 20px; }
.hero-panel .btn:not(.primary) { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }
.hero-panel .btn:not(.primary):hover { background: rgba(255, 255, 255, .16); color: #fff; }
.hero-next { padding: 40px 0 32px; }
.hero-next .hero-grid { display: grid; gap: 24px; grid-template-areas: "text" "shot"; }
.hero-next .hero-text .lead { display: block; margin: 0; font-size: 1.05rem; color: var(--fg2); }
.hero-next .hero-shot { all: unset; box-sizing: border-box; display: block; width: 100%; border-radius: 4px; overflow: hidden; cursor: zoom-in;
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(22, 19, 15, .12); }
.hero-next .hero-shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-next .hero-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 1000px) {
  .hero-next { padding-top: 56px; }
  .hero-next .hero-grid { grid-template-columns: 5fr 6fr; grid-template-areas: "text shot"; align-items: start; gap: 40px; }
}
@media (max-width: 719px) {
  .hero.hero-full { padding: 24px 0 64px; place-items: center; }
  .hero-full .hero-land { object-position: 64% 60%; }
  .hero-panel { border-radius: 12px; }
  .hero-panel .btns { flex-direction: column; align-items: stretch; }
  .hero-panel .btn { width: 100%; justify-content: center; }
  .hero-next { padding-top: 28px; }
}
.pill { background: transparent; border-color: var(--line); }
.pill.live { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill.live::before { background: #fff; }
.btn { border-radius: 3px; border-color: var(--fg); }
.btn.primary { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12); }
.facts { background: transparent; border: 0; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; }
.facts div { background: transparent; }
.facts div + div { border-left: 1px solid var(--line); }
@media (max-width: 719px) { .facts div:nth-child(3n + 1) { border-left: 0; } .facts div:nth-child(n + 4) { border-top: 1px solid var(--line); } }


.card, .pack, .tw, figure.chart, details.more, .upd-card, .touch-note { background: var(--card); }
.note { background: var(--card); border-left-color: var(--accent); }
pre.formula, code, kbd { background: var(--bg2); }
table.t thead th { background: var(--bg2); }
.nav a.on { background: transparent; box-shadow: inset 0 -2px 0 var(--accent); color: var(--fg); }


details.acc > summary { display: flex; gap: 14px; align-items: flex-start; }
details.acc > summary .sum-text { flex: 1; min-width: 0; }
img.mico { width: 44px; height: 44px; flex: none; margin-top: -2px; }
@media (min-width: 720px) { img.mico { width: 52px; height: 52px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) img.mico { filter: invert(1) hue-rotate(180deg) brightness(1.1); } }


.art-note { margin: 4px 0 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 4px; overflow-x: auto; }
.tabs [role="tab"] { font: inherit; font-weight: 600; min-height: 44px; padding: 8px 16px; background: transparent; color: var(--fg2); border: 0;
  border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tabs [role="tab"][aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.tabpanel[hidden] { display: none; }


.growth { display: grid; gap: 10px; grid-template-columns: repeat(5, 1fr); margin: 12px 0 8px; }
.grow { margin: 0; text-align: center; }
.grow .zoom { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: zoom-in; border-radius: var(--radius); background: var(--art-bg); padding: 6px; }
.grow .zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grow img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.grow figcaption { font-size: .78rem; font-weight: 600; color: var(--muted); margin-top: 4px; }
@media (max-width: 719px) { .growth.row { display: flex; } .growth.row > * { width: 44%; } }


.shot .zoom { position: relative; }
.loop-tag { position: absolute; top: 8px; left: 8px; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; }
.army.row { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 12px 0 24px; }
.army .shot .zoom { aspect-ratio: 3 / 2; }
.army .shot img { object-fit: contain; background: var(--bg2); }
.credits h3 { margin-top: 20px; }
.credits-list { padding-left: 1.2em; }
.credits-list li { margin: 6px 0; overflow-wrap: anywhere; }
.credits td { overflow-wrap: anywhere; }
@media (max-width: 719px) { .credits a { display: inline-block; min-height: 44px; padding: 12px 0; box-sizing: border-box; } }


.hero-banner.short { height: clamp(220px, 34vh, 340px); }
.start-hero { padding-bottom: 0; }
.start { padding: 8px 0 56px; }
.start .step { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.start .step legend { display: flex; align-items: baseline; gap: 10px; padding: 0; margin-bottom: 12px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.start .stepn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: .9rem; font-weight: 800; transform: translateY(-2px); }
.start .tname { font-size: .85rem; font-weight: 600; color: var(--muted); }
.themes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); max-width: 760px; }
.tcard { position: relative; display: block; cursor: pointer; }
.tcard input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tbody { display: grid; height: 100%; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card, var(--bg)); }
.tbody .ph { width: 100%; aspect-ratio: 16 / 9; display: block; }
.tcrop { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.tcrop img { position: absolute; width: 210%; max-width: none; height: auto; left: -95%; top: -52%; }   
.tbody .ph { background: var(--bg2); }
.tbody .ph .ph-fill { fill: var(--bg3); }
.tbody .ph .ph-line { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ttext { display: grid; gap: 2px; padding: 10px 14px 12px; }
.ttext b { font-size: 1.05rem; }
.ttext small { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.tcard input:checked + .tbody { border-color: var(--fg); box-shadow: inset 0 -3px 0 var(--accent); }
.tcard input:focus-visible + .tbody { outline: 2px solid var(--accent); outline-offset: 2px; }
.tcard.soon { cursor: not-allowed; }
.tcard.soon .tbody { border-style: dashed; background: transparent; }
.tcard.soon b { color: var(--muted); }
.soon-tag { justify-self: start; margin-top: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.modes { display: grid; gap: 12px; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.mcard { display: grid; align-content: start; border: 1px solid var(--line); border-radius: 10px; background: var(--card, var(--bg)); overflow: hidden; }
.mcard .mlink { display: grid; gap: 4px; padding: 14px 16px; text-decoration: none; color: var(--fg); }
.mcard .mlink:hover { background: var(--bg2); color: var(--fg); }
.mcard .mlink:hover .mgo { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.mname { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; font-weight: 700; }
.mtag { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 0 7px; }
.mdesc { color: var(--fg2); font-size: .92rem; line-height: 1.45; }
.mgo { justify-self: start; margin-top: 8px; padding: 6px 16px; border-radius: var(--radius); border: 1px solid var(--fg); font-weight: 700; font-size: .92rem; }
.mcard.soon { padding: 14px 16px; border-style: dashed; background: transparent; gap: 4px; }
.mcard.soon .mname, .mcard.soon .mdesc { color: var(--muted); }
.joincode { display: grid; gap: 6px; padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.joincode label { font-weight: 700; font-size: .9rem; }
.joincode .jrow { display: flex; gap: 8px; }
.joincode input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--fg); font: inherit; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.joincode input::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--font); color: var(--muted); }
.joincode input[aria-invalid="true"] { border-color: var(--accent); }
.joincode small { color: var(--muted); font-size: .8rem; }
.joincode .jmsg { color: var(--fg2); min-height: 1.2em; }
.joincode input[aria-invalid="true"] ~ .jmsg, .joincode .jrow:has(input[aria-invalid="true"]) ~ .jmsg { color: var(--accent); }
.modes-step[hidden] { display: none; }
.eu-note { margin: -4px 0 12px; color: var(--fg2); font-size: .95rem; }
.ttext b .mtag { margin-left: 6px; vertical-align: 2px; }


/* ---- Coming-soon landing additions (tools/landing_from_team_site.py appends this to the team site's CSS) ---- */
[hidden] { display: none !important; }

/* phone menu without JavaScript: a <details> dropdown in place of the team site's menu button */
.mmenu { display: none; margin-left: auto; position: relative; }
.mmenu summary { list-style: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); cursor: pointer; }
.mmenu summary::-webkit-details-marker { display: none; }
.mmenu summary::after { content: none; display: none; }
.mmenu summary span { display: block; width: 20px; height: 2px; background: var(--fg); border-radius: 1px; }
.mmenu[open] summary { background: var(--bg2); }
.mmenu nav { position: absolute; right: 0; top: 54px; z-index: 30; min-width: 220px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .25); }
.mmenu ol { list-style: none; margin: 0; padding: 6px 0; }
.mmenu li a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; font-weight: 650; text-decoration: none; color: var(--fg); }
.mmenu li a:hover { background: var(--bg2); }
@media (max-width: 1079px) { .mmenu { display: block; } }

/* images open as plain links (no lightbox script) */
.zoom { text-decoration: none; }
.hero-shotfig .hero-shot { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.hero-shotfig .hero-shot img, .hero-shotfig .hero-shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shotfig .trailer-tag { display: inline-block; margin-right: 6px; padding: 1px 8px; border: 1px solid currentColor; border-radius: 999px;
  color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* the hero: Play greyed and disabled with its tag; a scroll cue so visitors see there is more */
.hero-panel .btn.soon-btn, .hero-panel .btn.soon-btn:hover { cursor: not-allowed; color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28); gap: 8px; filter: grayscale(1); }
.btn-tag { padding: 1px 7px; border: 1px solid currentColor; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(14, 12, 10, .62); color: #fff; font-weight: 650; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.scroll-cue:hover { background: rgba(14, 12, 10, .8); color: #fff; }
.scroll-cue span { display: inline-block; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

/* update cards with an image on top, newest first */
.upd-cards { margin-top: 16px; }
.upd-card { overflow: hidden; }
.upd-card .upd-img { display: block; margin: -16px -16px 12px; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.upd-card .upd-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.utag { display: inline-block; padding: 1px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.upd-card.noimg { border-top: 3px solid var(--accent); align-self: start; }
.upd-more { margin-top: 12px; }
.upd-more > summary { list-style: none; display: inline-flex; cursor: pointer; }
.upd-more > summary::-webkit-details-marker { display: none; }
.upd-more[open] > summary { display: none; }
.upd-more .upd-cards { margin-top: 0; }

/* social buttons and the closing call */
.links { margin: 18px 0 14px; }
#follow { text-align: center; }
#follow .lead { margin-left: auto; margin-right: auto; }
#follow .links { justify-content: center; }

/* the Play menu preview: greyed out, nothing clickable */
.start .step .legend { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 1.35rem; font-weight: 800; }
.start .step .legend small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.tcard.soon, .mcard.soon { position: relative; cursor: not-allowed; user-select: none; }
.tcard.soon .tbody, .mcard.soon { opacity: .62; }
.tcard.soon .tcrop img { filter: grayscale(1); }
.mcard.soon .mrow { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.mcard.soon .soon-tag { margin: 0; }
.mcard.soon .joincode { margin: 8px -16px 0; padding: 10px 16px 0; }
.joincode .jlabel { font-weight: 700; font-size: .9rem; color: var(--muted); }
.pbtn { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); color: var(--muted);
  font: inherit; font-weight: 650; cursor: not-allowed; }
.joincode input:disabled { cursor: not-allowed; background: var(--bg2); }
.tcard.soon::after, .mcard.soon::after { content: attr(data-tip); position: absolute; right: 12px; top: -12px; z-index: 2; padding: 3px 8px;
  border-radius: 4px; background: var(--fg); color: var(--bg); font-size: .75rem; font-weight: 600; opacity: 0; transition: opacity .15s; pointer-events: none; }
.tcard.soon:hover::after, .mcard.soon:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tcard.soon::after, .mcard.soon::after { transition: none; } }

/* footer */
.foot p { margin: 0 0 6px; }
.foot .privacy { color: var(--muted); font-size: .88rem; }

/* the logo (the_common_front): wordmark lockup in the bar and on the hero panel, the symbol in the footer */
.brand-logo { display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { padding: 6px 0; }
.brand-logo img { display: block; width: 240px; height: auto; }  /* brand guide: the lockup is never under 240 px */
.hero-logo { margin: 6px auto 0; line-height: 0; }
.hero-logo img { display: block; width: min(640px, 100%); height: auto; margin: 0 auto; }
@media (max-width: 719px) { .hero-logo img { width: 100%; min-width: 240px; } }
.foot-mark img { display: block; width: 32px; height: 32px; }

/* the hero panel's pitch shows on every width (a team-site rule hides .pitch on desktop) */
.hero-panel .pitch { display: block; }

/* Steam: plain text until there is a store page (no Valve logo or badge before that) */
.hero-panel .pitch-sub { margin: 6px auto 0; font-size: .95rem; color: rgba(255, 255, 255, .78); }
.steam-pill b { color: #fff; }
.btn.soon-btn { cursor: not-allowed; opacity: .6; filter: grayscale(1); }
#steam .steam-box > * { max-width: 760px; }
#steam .btns { margin-top: 12px; }

/* contact */
#follow .press { margin: 14px 0 0; color: var(--fg2); }
.foot .contact a, #follow .press a { font-weight: 650; }
