@charset "UTF-8";

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/brand/archivo-black.ttf") format("truetype");
}

:root {
  --accent: oklch(0.65 0.20 27);
  --accent2: oklch(0.65 0.19 150);
  --bg: oklch(0.16 0.012 40);
  --bg-deep: oklch(0.13 0.01 40);
  --surface: oklch(0.20 0.015 40);
  --surface-raised: oklch(0.24 0.015 40);
  --line: oklch(0.32 0.01 40);
  --line-soft: oklch(0.30 0.01 40);
  --line-strong: oklch(0.4 0.01 40);
  --text: oklch(0.95 0.005 40);
  --text-2: oklch(0.75 0.01 40);
  --text-3: oklch(0.65 0.01 40);
  --text-4: oklch(0.60 0.01 40);
  --text-5: oklch(0.50 0.01 40);
  --muted: var(--text-2);
  --accent-dark: oklch(0.65 0.20 27 / 0.10);
  --accent-soft: oklch(0.65 0.20 27 / 0.20);
  --accent-faint: oklch(0.65 0.20 27 / 0.04);
  --danger: var(--accent);
  --radius: 18px;
  --sidebar: 234px;
  --font: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.65; font-size: 16px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select, input { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button, input, select { border: 1px solid var(--line); background: var(--surface); }
button { transition: background 150ms, border-color 150ms, color 150ms; }
button:hover { border-color: var(--accent); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; font-weight: 600; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 5.2vw, 5.3rem); }
h2 { font-size: clamp(2.2rem, 3.7vw, 3.6rem); }
h3 { font-size: 1.35rem; letter-spacing: -.025em; }
p { color: var(--muted); }
p + p { margin-top: 12px; }
strong { color: var(--text); font-weight: 600; }
small, .small { font-size: .84rem; line-height: 1.65; color: var(--muted); }
code, pre, .micro, .eyebrow, .sidebar-label, .topbar { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
code { color: var(--accent); font-size: .9em; }
button.selected { background: var(--accent); color: var(--bg); border-color: var(--accent); }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 20px; top: -80px; background: var(--accent); color: var(--bg); padding: 12px; z-index: 100; }
.skip-link:focus { top: 12px; }
.sidebar { width: var(--sidebar); position: fixed; inset: 0 auto 0 0; padding: 32px 22px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 20; overflow-y: auto; background: var(--bg); }
.brand { display: inline-block; font-family: "Archivo Black", "Arial Black", system-ui, sans-serif; font-size: 22px; font-weight: 400; letter-spacing: -0.5px; text-decoration: none; white-space: nowrap; color: var(--text); }
.brand span { color: var(--accent); }
.brand:hover { color: var(--text); }
.sidebar > .brand { margin-left: 8px; }
footer .brand { font-size: 18px; }
::selection { background: var(--accent); color: var(--bg); }
.sidebar-label { font-size: .57rem; letter-spacing: .14em; margin: 44px 10px 18px; color: var(--muted); }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a { padding: 10px 8px; border-radius: 8px; font-size: .86rem; color: var(--muted); display: flex; align-items: center; gap: 11px; }
.sidebar nav a span { font: .67rem Consolas, monospace; opacity: .6; }
.sidebar nav a:hover { background: var(--surface); color: var(--text); }
.sidebar nav a.active { background: var(--accent-dark); color: var(--accent); }
.sidebar nav a.active span { opacity: 1; }
.sidebar-bottom { margin-top: auto; padding: 45px 8px 0; font-size: .75rem; }
.sidebar-bottom p { margin: 10px 0 20px; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent2); border-radius: 50%; margin-right: 5px; }
.page { margin-left: var(--sidebar); }
.topbar { min-height: 78px; padding: 20px 5%; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .62rem; letter-spacing: .1em; }
.topbar a { color: var(--text); letter-spacing: 0; font-family: var(--font); font-size: .82rem; }
main, footer { max-width: 1640px; margin: auto; padding: 0 5%; }
.hero { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; min-height: 630px; gap: 8px; padding: 66px 0 45px; overflow: hidden; }
.eyebrow { color: var(--accent); font-size: .65rem; letter-spacing: .14em; margin-bottom: 24px; }
.hero .eyebrow { display: flex; gap: 8px; align-items: center; }
.hero .eyebrow > span { width: 5px; height: 5px; display: inline-block; background: var(--accent); border-radius: 100%; }
h1 em { color: var(--accent); font-style: normal; }
.lead { font-size: 1.05rem; max-width: 450px; margin-top: 26px; line-height: 1.75; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: .86rem; line-height: 1.4; font-weight: 600; text-align: center; }
.button.primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.button.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); filter: brightness(1.12); }
.button.subtle { border-color: transparent; background: transparent; }
.button:hover { color: var(--text); border-color: var(--accent); }
.hero-note { max-width: 375px; font-size: .74rem; }
.hero-art { position: relative; height: 510px; isolation: isolate; }
.hero-orbit { position: absolute; width: 90%; aspect-ratio: 1; border: 1px solid var(--line-strong); border-radius: 50%; top: 6%; left: 5%; background: radial-gradient(circle, var(--accent-soft), transparent 68%); }
.hero-orbit::after { content: ""; position: absolute; inset: 22px; border: 1px dashed var(--line); border-radius: 50%; }
.hero-flag { position: absolute; top: 17%; width: 98%; left: 1%; transform: rotate(-9deg); z-index: -1; opacity: .7; }
.hero-king { position: absolute; width: 75%; top: 4%; right: -10%; transform: rotate(8deg); filter: drop-shadow(0 20px 20px #0008); }
.hero-girl { position: absolute; width: 71%; left: -7%; top: 31%; transform: rotate(-9deg); filter: drop-shadow(0 20px 20px #0008); }
.hero-symbol { position: absolute; width: 23%; filter: drop-shadow(0 12px 12px #0008); }
.symbol-a { top: 3%; left: 5%; transform: rotate(-17deg); }
.symbol-b { bottom: 0; left: 47%; transform: rotate(17deg); }
.symbol-c { right: -1%; bottom: 12%; transform: rotate(-12deg); }
.art-caption { position: absolute; top: -12px; right: 0; font: .6rem Consolas, monospace; letter-spacing: .12em; color: var(--muted); }
.art-stamp { position: absolute; bottom: 8%; left: 1%; color: var(--accent); font-size: .6rem; line-height: 1.4; letter-spacing: .06em; transform: rotate(-9deg); padding: 8px 12px; border: 1px solid var(--line-strong); background: var(--bg-deep); }
.art-stamp strong { color: inherit; }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); padding: 27px 0; }
.stats-strip > div { padding: 0 24px; border-right: 1px solid var(--line); }
.stats-strip > div:first-child { padding-left: 0; }
.stats-strip > div:last-child { border: 0; }
.stats-strip strong { display: block; font-size: 1.9rem; line-height: 1.2; letter-spacing: -.06em; }
.stats-strip span { font-size: .75rem; color: var(--muted); }
.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; padding: 34px 0 15px; }
.micro { font-size: .62rem; letter-spacing: .12em; color: var(--muted); }
.intro-grid h3 { margin: 14px 0 12px; font-size: 1.15rem; }
.intro-grid p { font-size: .86rem; }
.guide-section { padding: 94px 0 0; scroll-margin-top: 26px; }
.section-heading { margin-bottom: 35px; }
.section-heading > h2 { display: flex; align-items: baseline; gap: 16px; font-size: clamp(1.8rem, 2.6vw, 2.6rem); }
.section-heading > h2 > span { color: var(--accent); font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; font-size: .7em; letter-spacing: 0; }
.section-heading > p { margin-top: 16px; font-size: .9rem; }
.scene-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, 1fr); gap: 30px; }
.scene-exhibit, .win-exhibit, .fx-exhibit { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.exhibit-toolbar { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.segmented { display: inline-flex; background: var(--bg); padding: 3px; border-radius: 7px; gap: 2px; }
.segmented button { border: 0; background: transparent; padding: 6px 9px; border-radius: 5px; font-size: .7rem; }
.segmented button.selected { background: var(--surface-raised); color: var(--accent); }
.scene-viewport { min-height: 535px; height: 555px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 16px; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 16px 16px; }
.game-scene { position: relative; width: 280px; height: 505px; overflow: hidden; border: 1px solid #64654d; border-radius: 15px; background: #16160f; box-shadow: 0 15px 40px #0008; }
.device-short .game-scene { height: 440px; }
.device-wide .game-scene { width: 100%; height: 325px; }
.scene-layer { transition: opacity 180ms, filter 180ms; }
.scene-layer.layer-bounce { animation: layer-bounce 450ms ease-in-out; }
@keyframes layer-bounce {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.1); }
}
.scene-layer.layer-hidden { opacity: 0 !important; pointer-events: none; }
.scene-bg { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.scene-header { position: absolute; top: 4%; left: 7%; right: 7%; display: flex; align-items: center; justify-content: space-between; height: 10%; }
.scene-header img { width: 20%; height: 100%; object-fit: contain; }
.scene-header img:nth-child(2) { width: 40%; }
.scene-flag { position: absolute; width: 110%; max-width: none; left: -5%; top: 15%; height: 55%; object-fit: fill; }
.scene-reels { position: absolute; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(3, 1fr); gap: 3px; width: 86%; height: 31%; left: 7%; top: 26%; }
.scene-reels img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #d9c99c14; border-radius: 3px; }
.scene-character { position: absolute; width: 62%; top: 53%; max-width: none; }
.scene-left { left: -8%; }
.scene-right { right: -8%; }
.scene-shadow { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; pointer-events: none; }
.scene-controls { position: absolute; bottom: 1%; left: 6%; width: 88%; }
.scene-status { font-size: .42rem; text-align: center; border-radius: 4px; background: #0b0b0b70; letter-spacing: .2em; padding: 3px; }
.scene-control-row { display: flex; justify-content: space-evenly; align-items: center; height: 75px; }
.scene-control-row > span { display: block; text-align: center; font-size: 1.4rem; line-height: 1.3; }
.scene-control-row small { display: block; font-size: .42rem; letter-spacing: .1em; }
.spin-art { width: 75px; height: 75px; position: relative; padding: 0; border: 0; border-radius: 50%; background: transparent; flex-shrink: 0; }
.spin-art:disabled { opacity: 1; cursor: wait; }
.spin-art img, .spin-art canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); object-fit: contain; pointer-events: none; }
.spin-art .spin-plate { width: 82.2%; height: 82.2%; }
.spin-art .spin-ring { width: 77.5%; height: 77.5%; }
.spin-art .spin-core { width: 81%; height: 81%; }
.scene-balance { display: flex; justify-content: space-between; font-size: .36rem; color: #c5bcaa; }
.scene-balance b { display: block; font-size: .65rem; color: white; }
.device-wide .scene-flag { width: 58%; height: 70%; left: 21%; top: 10%; }
.device-wide .scene-reels { width: 45%; left: 27.5%; top: 26%; height: 33%; }
.device-wide .scene-character { width: 36%; top: 25%; }
.device-wide .scene-left { left: -2%; }
.device-wide .scene-right { right: -2%; }
.device-wide .scene-header { left: 15%; right: 15%; height: 13%; top: 0; }
.device-wide .scene-controls { width: 55%; left: 22.5%; }
.device-wide .scene-control-row { height: 58px; }
.device-wide .spin-art { width: 58px; height: 58px; }
.exhibit-caption { padding: 15px 19px 18px; font-size: .73rem; line-height: 1.6; border-top: 1px solid var(--line); }
.layer-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.layer-row { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.layer-row.active { border-color: var(--accent); background: var(--accent-dark); }
.layer-row > button { display: flex; flex: 1; gap: 13px; align-items: center; border: 0; padding: 11px 13px; background: transparent; text-align: left; font-size: .83rem; }
.layer-row button > span:first-child { color: var(--accent); font: .66rem Consolas, monospace; }
.layer-row button > span:last-child { margin-left: auto; color: var(--muted); }
.layer-toggle { margin-right: 13px; accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.note-box { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.note-box h3 { margin-bottom: 12px; font-size: 1.15rem; }
.note-box p { font-size: .83rem; }
.callout { border-left: 2px solid var(--accent); background: var(--accent-faint); padding: 18px 22px; margin-top: 25px; }
.callout strong { font-size: .91rem; }
.callout p { font-size: .82rem; margin-top: 7px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 25px; }
.search-box { display: flex; align-items: center; width: 300px; gap: 10px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.search-box > span { font-size: 1.2rem; color: var(--muted); line-height: 1; }
.search-box input { width: 100%; padding: 0; background: none; border: 0; font-size: .8rem; min-width: 0; }
input::placeholder { color: var(--text-3); opacity: 1; }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-group button { border-radius: 6px; padding: 7px 12px; font-size: .75rem; }
.select-label, .animation-actions label { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); }
select { padding: 7px 10px; border-radius: 7px; font-size: .8rem; }
.symbol-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.symbol-card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 0; text-align: left; overflow: hidden; position: relative; }
.symbol-card:hover, .art-card:hover { border-color: var(--accent); background: var(--surface-raised); }
.symbol-picture { min-height: 165px; aspect-ratio: 1.15; padding: 24px; background: radial-gradient(ellipse at center, var(--accent-dark), transparent 68%); position: relative; }
.symbol-picture img { width: 100%; height: 100%; object-fit: contain; transition: transform 200ms; }
.symbol-card:hover img { transform: scale(1.06); }
.symbol-id { position: absolute; top: 11px; left: 13px; color: var(--text-2); font: .59rem Consolas, monospace; }
.play-badge { position: absolute; right: 10px; bottom: 10px; width: 25px; height: 25px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--accent); font-size: .57rem; }
.symbol-meta { padding: 13px 15px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.symbol-meta h3 { font-size: .93rem; letter-spacing: -.015em; }
.role-badge { font: .55rem Consolas, monospace; text-transform: uppercase; color: var(--muted); }
.role-badge.special { color: var(--accent); }
.empty-state { padding: 40px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; }
.split-note { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; padding: 28px 0; border-block: 1px solid var(--line); }
.split-note h3 { margin: 13px 0; font-size: 1.16rem; }
.split-note p { font-size: .85rem; }
.pill { display: inline-block; font: .56rem Consolas, monospace; letter-spacing: .08em; color: var(--accent); background: var(--accent-dark); border: 1px solid var(--line-strong); padding: 5px 7px; border-radius: 5px; }
.wild-feature { margin-top: 25px; display: grid; grid-template-columns: .6fr 1fr; gap: 35px; align-items: center; background: radial-gradient(ellipse at 20% 50%, var(--accent-dark), transparent 60%), var(--surface); padding: 30px 40px; border: 1px solid var(--line); border-radius: var(--radius); }
.wild-art { height: 295px; }
.wild-art img { width: 100%; height: 100%; object-fit: contain; }
.wild-feature h3 { font-size: 1.8rem; margin-bottom: 14px; }
.wild-feature p { font-size: .85rem; }
.wild-feature .eyebrow { margin-bottom: 16px; }
.wild-feature .button { margin: 20px 0 14px; }
.wild-feature .small { font-size: .71rem; }
.character-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.character-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.character-top { display: flex; justify-content: space-between; padding: 21px 24px 0; }
.character-top h3 { font-size: 1.15rem; }
.character-preview { height: 315px; padding: 5px; width: 100%; background: radial-gradient(ellipse, var(--accent-dark), transparent 65%); border: 0; }
.character-preview img { width: 100%; height: 100%; object-fit: contain; }
.character-states { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 16px; border-top: 1px solid var(--line); }
.character-states button { padding: 10px 4px; font: .65rem Consolas, monospace; border-radius: 6px; }
.character-states button small { display: block; font: .54rem Consolas, monospace; color: var(--muted); margin-top: 5px; }
.state-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 26px 0; }
.state-grid h3 { font-size: 1rem; margin: 10px 0; }
.state-grid p { font-size: .8rem; }
.canvas-guide { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 25px; }
.canvas-boundary { height: 130px; width: 120px; border: 1px dashed var(--accent2); position: relative; margin: 0 auto 15px; background-image: repeating-conic-gradient(var(--surface-raised) 0% 25%, var(--surface) 0% 50%); background-size: 16px 16px; }
.figure { display: block; width: 56px; height: 86px; position: absolute; left: 32px; bottom: 12px; color: var(--accent2); font-size: 3rem; line-height: 1.1; text-align: center; background: linear-gradient(transparent 52%, var(--accent2) 52%); border-radius: 50% 50% 30% 30%; }
.baseline { position: absolute; bottom: 12px; left: -7px; right: -7px; border-bottom: 1px solid var(--accent2); }
.bad .canvas-boundary { width: 65px; height: 105px; margin-top: 25px; border-color: var(--danger); transform: rotate(-5deg); }
.bad .figure { color: var(--danger); left: 3px; bottom: 0; background: linear-gradient(transparent 52%, var(--danger) 52%); }
.bad .baseline { bottom: 0; border-color: var(--danger); }
.canvas-example strong { font-size: .75rem; display: block; line-height: 1.5; }
.canvas-verdict { margin-right: 4px; font-size: 1rem; color: var(--accent2); }
.bad .canvas-verdict { color: var(--danger); }
.canvas-example p { font-size: .73rem; margin-top: 6px; }
.canvas-copy h3 { font-size: 1.15rem; margin-bottom: 12px; }
.canvas-copy p { font-size: .81rem; }
.canvas-copy .small { font-size: .73rem; }
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.art-card { padding: 0; text-align: left; border-radius: 12px; overflow: hidden; background: var(--surface); }
.art-preview { height: 175px; padding: 16px; position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; background-image: repeating-conic-gradient(var(--surface-raised) 0% 25%, var(--surface) 0% 50%); background-size: 18px 18px; }
.art-preview img { width: 100%; height: 100%; min-width: 0; min-height: 0; max-height: 100%; object-fit: contain; object-position: center; }
.art-preview.compact-icon img { width: 64px; height: 64px; }
.spin-breakdown { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; margin-bottom: 32px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.spin-composition { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; background: radial-gradient(ellipse, var(--accent-dark), transparent 70%); }
.spin-art-large { width: min(100%, 260px); height: auto; aspect-ratio: 1; }
.spin-composition > p:last-child { max-width: 290px; font-size: .8rem; }
.spin-explanation .eyebrow { margin-bottom: 14px; }
.spin-explanation h3 { font-size: 1.65rem; margin-bottom: 16px; }
.spin-explanation > p { font-size: .85rem; }
.spin-explanation > .small { font-size: .74rem; }
.spin-explanation > .text-link { margin-top: 18px; }
.spin-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 22px 0; }
.spin-parts button { border-radius: 9px; padding: 12px 7px; text-align: center; background: var(--bg); }
.spin-parts img { width: 76px; height: 76px; object-fit: contain; margin: 0 auto 14px; }
.spin-parts strong { display: block; font-size: .7rem; }
.spin-parts small { display: block; font-size: .62rem; margin-top: 4px; }
.art-info { padding: 15px; border-top: 1px solid var(--line); }
.art-info h3 { font-size: .93rem; margin-bottom: 8px; }
.art-info p { font-size: .72rem; display: flex; justify-content: space-between; gap: 6px; }
.fx-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.particle-breakdown { margin-top: 32px; }
.particle-demo { min-width: 0; display: flex; flex-direction: column; }
.particle-viewport { position: relative; flex: 1; min-height: 220px; background: radial-gradient(ellipse at bottom, var(--accent-dark), transparent); }
.asset-parts-panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.asset-parts-panel h3 { margin: 14px 0 12px; }
.asset-parts-panel > p { font-size: .8rem; }
.material-parts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 20px 0 0; }
.material-parts button { min-width: 0; }
.material-parts img, .material-parts canvas { display: block; width: 100%; height: 96px; object-fit: contain; margin: 0 auto 14px; }
.win-stage { position: relative; height: 315px; display: grid; place-items: center; background: radial-gradient(ellipse, #b85d2266, #171411 65%); overflow: hidden; }
.win-composition { position: relative; width: min(92%, 290px); aspect-ratio: 1; }
.win-layer { position: absolute; inset: 0; transform-origin: center; }
.win-layer img, .win-shine { display: block; position: absolute; inset: 0; height: 100%; width: 100%; object-fit: contain; }
.win-layer img { filter: drop-shadow(0 8px 28px #ff962833); }
.win-character-layer { z-index: 1; --pop-delay: 0ms; --breathe-duration: 2.8s; --breathe-delay: .25s; }
.win-crown-layer { z-index: 2; --pop-delay: 0ms; --breathe-duration: 3.3s; --breathe-delay: .55s; }
.win-label-layer { z-index: 3; --pop-delay: 90ms; --breathe-duration: 2.15s; --breathe-delay: .4s; }
.win-stage.is-max .win-character-layer { --pop-delay: 90ms; }
.win-stage.is-max .win-label-layer { --pop-delay: 180ms; }
.win-stage.is-playing .win-composition { animation: win-impact 900ms cubic-bezier(.16, 1, .3, 1) both; }
.win-stage.is-playing .win-layer { animation: win-pop 520ms cubic-bezier(.16, 1, .3, 1) var(--pop-delay) both; }
.win-stage.is-playing .win-layer img { animation: win-breathe var(--breathe-duration) ease-in-out var(--breathe-delay) infinite; }
.win-shine { opacity: 0; background: linear-gradient(104deg, transparent 40%, #ffd56947 46%, #fff4c2f2 50%, #ffd56947 54%, transparent 60%); background-size: 260% 100%; mix-blend-mode: screen; mask: url("assets/images/wins/big-win-label.webp") center / contain no-repeat; }
.win-stage.is-playing .win-shine { animation: label-shine 2.4s ease-in-out 700ms infinite; }
.win-stage.is-max .win-shine { mask-image: url("assets/images/wins/max-win-label.webp"); }
@keyframes win-pop {
  0% { opacity: 0; transform: scale(.002); }
  12% { opacity: 1; }
  76% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes win-breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.035) translateY(-1%); }
}
@keyframes win-impact {
  0%, 22% { transform: translate(0, 0) rotate(0); }
  30% { transform: translate(-1.1%, .8%) rotate(-.45deg); }
  39% { transform: translate(1%, -.7%) rotate(.38deg); }
  50% { transform: translate(-.65%, -.45%) rotate(-.25deg); }
  63% { transform: translate(.42%, .3%) rotate(.16deg); }
  78% { transform: translate(-.2%, .15%) rotate(-.08deg); }
  100% { transform: translate(0, 0) rotate(0); }
}
@keyframes label-shine {
  0%, 18% { background-position: 0 0; opacity: 0; }
  28% { opacity: 1; }
  72% { background-position: 100% 0; opacity: 1; }
  82%, 100% { background-position: 100% 0; opacity: 0; }
}
.particle-viewport canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; }
.fx-exhibit .fx-actions { margin: 0; padding: 12px 8px; display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; border-top: 1px solid var(--line); }
.fx-actions .button { padding: 10px; font-size: .72rem; }
.fx-responsibilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 30px 0 32px; }
.fx-responsibilities h3 { margin: 15px 0 12px; font-size: 1.14rem; }
.fx-responsibilities p { font-size: .82rem; }
.text-link { background: none; border: 0; padding: 0; color: var(--accent); font-size: .8rem; text-align: left; }
.layer-link { margin-top: 14px; }
.fx-responsibilities .text-link { margin-top: 15px; }
.audio-intro { display: flex; align-items: center; gap: 32px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 25px; background: var(--surface); }
.sound-mark { font-size: 2.4rem; white-space: nowrap; letter-spacing: -.16em; color: var(--accent); }
.audio-intro h3 { font-size: 1.1rem; margin-bottom: 8px; }
.audio-intro p { font-size: .82rem; }
.audio-list { border-top: 1px solid var(--line); max-height: 520px; overflow-y: auto; scrollbar-color: var(--line-strong) var(--surface); }
.audio-row { display: grid; grid-template-columns: 36px 1fr 110px 55px 25px; gap: 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.audio-row.playing { background: var(--accent-dark); }
.audio-play { border-radius: 50%; width: 32px; height: 32px; font-size: .64rem; color: var(--accent); }
.audio-row h3 { font-size: .83rem; line-height: 1.4; letter-spacing: 0; }
.audio-row small { font: .62rem Consolas, monospace; }
.audio-tag { font-size: .7rem; color: var(--muted); }
.audio-duration { font: .7rem Consolas, monospace; color: var(--muted); }
.audio-download { font-size: 1.1rem; text-align: center; }
.audio-player { display: flex; align-items: center; flex-wrap: wrap; padding: 20px; gap: 15px 24px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.audio-player > div { flex: 1; min-width: 140px; }
.audio-player strong { display: block; font-size: .8rem; margin-top: 3px; }
.audio-player audio { width: min(100%, 340px); height: 38px; }
.loop-label { font-size: .75rem; white-space: nowrap; }
input[type="checkbox"] { accent-color: var(--accent); }
.screen-browser { display: grid; grid-template-columns: 195px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.screen-tabs { padding: 15px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.screen-tabs button { padding: 11px 12px; background: transparent; border: 1px solid transparent; border-radius: 7px; font-size: .8rem; text-align: left; }
.screen-tabs button.selected { color: var(--accent); background: var(--accent-dark); }
.screen-content { padding: 30px; display: grid; grid-template-columns: .85fr 1fr; align-items: center; gap: 28px; }
.screen-diagram { height: 280px; max-width: 200px; width: 100%; margin: auto; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--bg-deep); display: flex; flex-direction: column; align-items: center; padding: 18px 13px; gap: 11px; overflow: hidden; }
.screen-diagram .wire-block { width: 100%; border: 1px solid var(--line-strong); color: var(--text-2); background: var(--accent-faint); border-radius: 5px; padding: 10px 5px; text-align: center; font-size: .64rem; }
.screen-diagram .wire-block.large { flex: 1; display: grid; place-items: center; }
.screen-diagram .wire-block.accent { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.screen-copy .micro { margin-bottom: 13px; display: block; }
.screen-copy h3 { font-size: 1.4rem; margin-bottom: 15px; }
.screen-copy p, .screen-copy li { font-size: .82rem; color: var(--muted); }
.screen-copy ul { padding-left: 18px; }
.screen-copy li + li { margin-top: 6px; }
.design-system { padding: 30px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border-bottom: 1px solid var(--line); }
.design-system h3 { margin: 15px 0; font-size: 1.3rem; }
.design-system p { font-size: .85rem; }
.token-samples { display: flex; gap: 8px; align-content: center; flex-wrap: wrap; }
.token { display: flex; align-items: end; padding: 9px; border: 1px solid var(--line); border-radius: 8px; height: 75px; flex: 1; font-size: .63rem; min-width: 55px; }
.token.ink { background: var(--bg); }
.token.accent { background: var(--accent); color: var(--bg); }
.token.text { background: var(--text); color: var(--bg); }
.token.danger { background: var(--danger); color: var(--bg); }
.button-states { width: 100%; display: flex; gap: 8px; padding-top: 7px; }
.button-states span { flex: 1; text-align: center; background: var(--accent-dark); border: 1px solid var(--line-strong); border-radius: 6px; padding: 7px; font-size: .65rem; color: var(--accent); }
.button-states span:nth-child(2) { background: var(--accent); color: var(--bg); }
.button-states span:nth-child(3) { opacity: .4; }
.token-samples small { font-size: .7rem; }
.handoff-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 30px; }
.handoff-actions .text-link { margin-left: auto; }
.handoff-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: start; }
.checklist-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.checklist-summary strong { font-size: 1.65rem; letter-spacing: -.05em; }
.checklist-summary > span { font-size: .78rem; color: var(--muted); }
.checklist-summary progress { width: 100%; height: 7px; appearance: none; border: 0; border-radius: 5px; background: var(--surface-raised); accent-color: var(--accent); }
progress::-webkit-progress-bar { background: var(--surface-raised); border-radius: 5px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 5px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 5px; }
#storage-status { margin: 14px 0 24px; font-size: .72rem; }
.check-group { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-bottom: 9px; overflow: hidden; }
.check-group summary { padding: 14px 16px; cursor: pointer; font-size: .87rem; color: var(--text); }
.check-group summary > span { float: right; font-size: .71rem; color: var(--accent); }
.check-item { display: flex; align-items: start; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); cursor: pointer; }
.check-item input { margin: 5px 0 0; flex-shrink: 0; width: 14px; height: 14px; }
.check-item:has(input:checked) { color: var(--text); background: var(--accent-faint); }
.delivery-notes > h3 { font-size: 1.2rem; margin-bottom: 13px; }
.delivery-notes > p { font-size: .82rem; }
.folder-tree { background: var(--bg-deep); border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text-2); overflow: auto; font-size: .7rem; line-height: 1.8; padding: 22px; }
.delivery-notes .note-box { margin-top: 22px; }
.delivery-notes .note-box .small { font-size: .72rem; }
.final-banner { border-block: 1px solid var(--line); margin-top: 55px; padding: 42px 0; text-align: center; }
.final-banner h3 { font-size: 2.3rem; margin: 18px 0; }
.final-banner p { max-width: 520px; margin: auto; font-size: .88rem; }
footer { padding-top: 30px; padding-bottom: 35px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
footer p { font-size: .62rem; }
footer .text-link { font-size: .67rem; }
dialog { background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 18px; padding: 0; width: min(1000px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); overflow-y: auto; }
dialog::backdrop { background: oklch(0.13 0.01 40 / 0.9); backdrop-filter: blur(8px); }
body.dialog-open { overflow: hidden; }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 25px 28px; border-bottom: 1px solid var(--line); }
.dialog-header .eyebrow { margin-bottom: 8px; }
.dialog-header h2 { font-size: 2rem; }
.icon-button { border-radius: 50%; width: 34px; height: 34px; font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.dialog-body { padding: 25px 28px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; }
.viewer-stage { height: 365px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 18px; overflow: hidden; }
.viewer-stage { background-image: repeating-conic-gradient(var(--surface-raised) 0% 25%, var(--surface) 0% 50%); background-size: 24px 24px; }
.viewer-stage img, .viewer-stage canvas { height: 100%; width: 100%; object-fit: contain; min-height: 0; }
.viewer-stage img.compact-icon { width: 128px; height: 128px; }
#animation-controls { margin-top: 20px; }
.animation-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.animation-actions .button { font-size: .76rem; padding: 9px 12px; }
.animation-actions label { font-size: .7rem; gap: 6px; }
.animation-actions select { font-size: .68rem; padding: 6px; }
#animation-frame { width: 100%; accent-color: var(--accent); cursor: pointer; }
.frame-info { font: .69rem Consolas, monospace; color: var(--muted); margin-top: 5px; }
.asset-details h3 { font-size: 1.1rem; margin: 23px 0 10px; }
.asset-details h3:first-child { margin-top: 0; }
.asset-details p, .asset-details li { font-size: .85rem; color: var(--muted); }
.asset-details ul { margin: 8px 0; padding-left: 19px; }
.asset-details li + li { margin-top: 7px; }
.asset-details .spec-list { margin: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec-list div { padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.spec-list dt { color: var(--muted); font-size: .64rem; }
.spec-list dd { margin: 4px 0 0; font-size: .79rem; color: var(--text); }
.asset-details details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 13px; }
.asset-details summary { font-size: .73rem; color: var(--muted); cursor: pointer; }
.asset-details details p { font: .62rem/1.7 Consolas, monospace; overflow-wrap: anywhere; margin-top: 10px; }
.asset-details .button { font-size: .75rem; padding: 9px 12px; margin-top: 15px; }
.media-error { color: var(--danger); font-size: .8rem; padding: 10px 0; }
.noscript-message { position: fixed; bottom: 12px; left: 12px; right: 12px; background: var(--accent); color: var(--bg); padding: 20px; z-index: 200; }

@media (min-width: 1600px) {
  .hero { min-height: 690px; }
  .hero-art { height: 590px; }
  .symbol-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1190px) {
  :root { --sidebar: 200px; }
  .sidebar { padding-inline: 15px; }
  .sidebar nav a { font-size: .77rem; }
  .hero { min-height: 545px; padding-top: 55px; }
  .hero-art { height: 395px; }
  .hero-copy h1 { font-size: 3.5rem; }
  .hero .eyebrow { font-size: .54rem; }
  .lead { font-size: .92rem; }
  .hero .button { padding: 10px 12px; font-size: .75rem; }
  .scene-layout { gap: 20px; grid-template-columns: 1.1fr 1fr; }
  .section-heading > p { font-size: .8rem; }
  .symbol-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .canvas-guide { grid-template-columns: 1fr 1fr; }
  .canvas-copy { grid-column: 1 / -1; }
  .state-grid { grid-template-columns: repeat(2, 1fr); }
  .screen-browser { grid-template-columns: 165px minmax(0, 1fr); }
  .screen-content { padding: 22px; gap: 20px; grid-template-columns: 1fr; }
  .screen-diagram { max-width: none; height: 180px; flex-direction: row; flex-wrap: wrap; }
  .screen-diagram .wire-block { width: auto; flex: 1; min-width: 70px; }
}
@media (max-width: 940px) {
  :root { --sidebar: 0px; }
  .sidebar { position: relative; width: 100%; height: auto; padding: 18px 5% 0; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .sidebar nav { flex-direction: row; overflow-x: auto; padding: 15px 0 12px; scrollbar-width: thin; }
  .sidebar nav a { flex-shrink: 0; padding: 7px 10px; font-size: .73rem; }
  .sidebar nav a span { display: none; }
  .sidebar-label, .sidebar-bottom { display: none; }
  .topbar { min-height: 55px; }
  .hero { min-height: 570px; }
  .hero-art { height: 430px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 6vw, 4.2rem); }
  .guide-section { padding-top: 75px; }
}
@media (max-width: 640px) {
  .spin-breakdown { grid-template-columns: 1fr; padding: 22px; gap: 28px; }
  .spin-art-large { width: 220px; }
  body { font-size: 15px; }
  .topbar { font-size: .51rem; letter-spacing: .02em; }
  .topbar a { font-size: .7rem; }
  .hero { display: flex; flex-direction: column; gap: 28px; padding: 43px 0 22px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
  .hero .eyebrow { font-size: .59rem; }
  .lead { max-width: 100%; font-size: .98rem; }
  .hero .button { font-size: .81rem; padding: 12px 16px; }
  .hero-art { width: min(100%, 440px); height: 420px; margin: auto; }
  .hero-note { max-width: 100%; }
  .stats-strip { grid-template-columns: 1fr 1fr; gap: 22px 0; padding: 24px 0; }
  .stats-strip > div { padding-inline: 17px; }
  .stats-strip > div:nth-child(odd) { padding-left: 0; }
  .stats-strip > div:nth-child(even) { border: 0; }
  .stats-strip strong { font-size: 1.8rem; }
  .stats-strip span { font-size: .73rem; }
  .intro-grid { grid-template-columns: 1fr; gap: 23px; }
  .intro-grid h3 { margin-top: 6px; margin-bottom: 8px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading > p { font-size: .87rem; }
  h2 { font-size: 2.5rem; }
  .scene-layout, .fx-layout, .handoff-grid, .design-system { grid-template-columns: 1fr; gap: 24px; }
  .scene-viewport { min-height: 540px; }
  .catalog-toolbar { flex-wrap: wrap; gap: 13px; }
  .search-box { width: 100%; }
  .filter-group button { font-size: .73rem; }
  .symbol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .symbol-picture { min-height: 145px; padding: 20px; }
  .symbol-meta { padding: 12px 10px; }
  .symbol-meta h3 { font-size: .85rem; }
  .role-badge { font-size: .5rem; }
  .split-note { grid-template-columns: 1fr; gap: 23px; }
  .split-note h3 { font-size: 1.22rem; }
  .wild-feature { padding: 25px; grid-template-columns: 1fr; gap: 20px; }
  .wild-art { height: 260px; }
  .character-grid { grid-template-columns: 1fr; gap: 18px; }
  .character-preview { height: 320px; }
  .state-grid { gap: 22px; }
  .canvas-guide { gap: 24px 17px; padding: 22px; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .art-preview { height: 140px; padding: 12px; }
  .art-info { padding: 12px; }
  .art-info h3 { font-size: .81rem; line-height: 1.35; }
  .art-info p { font-size: .59rem; flex-wrap: wrap; }
  .fx-responsibilities { grid-template-columns: 1fr; gap: 24px; }
  .audio-intro { padding: 23px; gap: 16px; align-items: start; }
  .sound-mark { font-size: 1.7rem; writing-mode: vertical-lr; letter-spacing: -.05em; }
  .audio-row { grid-template-columns: 32px 1fr 42px 20px; gap: 9px; padding-inline: 5px; }
  .audio-tag { display: none; }
  .audio-row small { font-size: .58rem; }
  .audio-row h3 { font-size: .76rem; }
  .audio-duration { font-size: .61rem; }
  .audio-player { padding: 15px; gap: 15px; }
  .audio-player audio { width: 100%; order: 3; }
  .screen-browser { grid-template-columns: 1fr; }
  .screen-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .screen-tabs button { white-space: nowrap; }
  .screen-content { grid-template-columns: 1fr; padding: 23px; }
  .screen-diagram { height: 220px; }
  .handoff-actions .text-link { margin-left: 0; padding: 10px; }
  .final-banner h3 { font-size: 1.9rem; }
  footer { flex-wrap: wrap; padding-top: 25px; }
  footer p { width: 100%; order: 3; }
  footer .text-link { margin-left: auto; font-size: .6rem; }
  dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 12px; }
  .dialog-header { padding: 20px; }
  .dialog-header h2 { font-size: 1.7rem; }
  .dialog-body { grid-template-columns: 1fr; padding: 20px; }
  .viewer-stage { height: 310px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { color: #111; background: white; }
  .sidebar, .topbar, .hero-art, .button, .text-link, .catalog-toolbar, .audio-player, .audio-list, .screen-tabs, .character-states, .handoff-actions { display: none !important; }
  .page { margin: 0; }
  main { padding: 0; }
  .hero { min-height: auto; display: block; }
  h1, h2, h3, strong, p, small, .small, .eyebrow, .micro, code, .check-item { color: #111; }
  h1 { font-size: 32pt; }
  h2 { font-size: 24pt; }
  .guide-section { padding-top: 30px; }
  .scene-exhibit, .symbol-card, .character-card, .art-card, .check-group { break-inside: avoid; background: white; }
  .section-heading { break-after: avoid; }
  .handoff-grid { display: block; }
  .check-group { border-color: #aaa; }
  .folder-tree { color: #222; background: white; border-color: #aaa; }
  .final-banner { margin-top: 25px; }
}
