/* Octo : instrument des abysses. Panneaux biseautes (angles coupes), filets cyan, nav en pilule flottante. */
:root {
  --abyss: #0b1230;
  --deep: #0f4c5c;
  --panel: #101a42;
  --panel-2: #0c1538;
  --ink: #060a1e;
  --line: #1f3a6e;
  --cyan: #3de1d0;
  --cyan-d: #1fa99b;
  --coral: #ff6f91;
  --coral-d: #c93c68;
  --cream: #fff1d6;
  --mint: #7fe3a8;
  --lilac: #b58cff;
  --amber: #ffb347;
  --muted: #9fb0d6;
  --display: "Jersey 10", "Silkscreen", ui-monospace, monospace;
  --body: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --cut: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--abyss); color: var(--cream); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { image-rendering: pixelated; max-width: 100%; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
::selection { background: var(--cyan); color: var(--ink); }
:focus-visible { outline: 2px dashed var(--cyan); outline-offset: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cyan); color: var(--ink); padding: 8px 14px; }
.skip:focus { top: 12px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: .01em; margin: 0 0 .45em; color: var(--cream); }
h1 { font-size: clamp(54px, 8.4vw, 124px); }
h2 { font-size: clamp(38px, 5vw, 70px); }
h3 { font-size: clamp(26px, 2.6vw, 36px); }
p { margin: 0 0 1em; }
code, kbd, pre, .mono { font-family: var(--mono); }
code { background: var(--panel-2); padding: .08em .4em; font-size: .86em; color: var(--cyan); }
.wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* ---------- panneau biseaute : bordure par fond double, angles hauts-gauche et bas-droite coupes ---------- */
.bevel {
  --b: 1.5px; --bc: var(--line); --bg: var(--panel);
  border: var(--b) solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--bc) border-box;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.bevel--cyan { --bc: var(--cyan); }
.bevel--coral { --bc: var(--coral); }

.btn {
  --bg: var(--cyan); --bc: var(--cyan); --fg: var(--ink);
  font-family: var(--display); font-size: 24px; letter-spacing: .04em; padding: 10px 26px 9px; color: var(--fg); text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--bc) border-box;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: filter .15s, transform .12s; position: relative;
}
.btn:hover { filter: brightness(1.12) drop-shadow(0 0 10px rgba(61, 225, 208, .6)); transform: translateY(-2px); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { filter: grayscale(.9) brightness(.6); cursor: not-allowed; transform: none; }
.btn--coral { --bg: var(--coral); --bc: var(--coral); --fg: var(--ink); }
.btn--ghost { --bg: #0b1230; --bc: var(--cyan); --fg: var(--cyan); }
.btn--ghost:hover { --fg: var(--cream); }
.btn--sm { font-size: 19px; padding: 6px 16px 5px; }
.chip { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; padding: 5px 12px; color: var(--cyan); border: 1px solid rgba(61, 225, 208, .35); background: rgba(61, 225, 208, .06); display: inline-block; margin: 3px 4px 3px 0; text-decoration: none; }
a.chip:hover { background: rgba(61, 225, 208, .18); color: var(--cream); }
.chip--ok { color: var(--mint); border-color: rgba(127, 227, 168, .4); background: rgba(127, 227, 168, .07); }
.chip--bad { color: var(--coral); border-color: rgba(255, 111, 145, .4); background: rgba(255, 111, 145, .07); }

input, select { font: 500 15px var(--mono); color: var(--cream); background: var(--panel-2); border: 1px solid var(--line); padding: 10px 12px; width: 100%; border-radius: 0; }
input:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(61, 225, 208, .2); }
input[type=range] { padding: 0; accent-color: var(--cyan); height: 28px; background: none; border: 0; }
label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin: 14px 0 6px; }

/* ---------- navigation : pilule flottante ---------- */
.pill { position: fixed; z-index: 60; top: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 14px; border-radius: 999px; background: rgba(11, 18, 48, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(61, 225, 208, .28); box-shadow: 0 10px 40px rgba(0, 0, 0, .4), 0 0 30px rgba(61, 225, 208, .08); transition: padding .25s, gap .25s; max-width: calc(100% - 24px); }
.pill .brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--cream); font-family: var(--display); font-size: 30px; line-height: 1; padding-right: 10px; }
.pill .brand img { width: 30px; height: 30px; object-fit: contain; }
.pill a.nl { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 9px 13px; border-radius: 999px; }
.pill a.nl:hover, .pill a.nl[aria-current="page"] { color: var(--ink); background: var(--cyan); }
.pill .tick { color: var(--coral); }
.pill a.nl:hover .tick, .pill a.nl[aria-current="page"] .tick { color: var(--ink); }
.pill .xk { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--cream); background: rgba(255, 255, 255, .06); }
.pill .xk:hover { background: var(--coral); color: var(--ink); }
.pill .xk svg { width: 15px; height: 15px; }
.pill .burger { display: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(61, 225, 208, .12); cursor: pointer; position: relative; }
.pill .burger::before, .pill .burger::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--cream); }
.pill .burger::before { top: 15px; } .pill .burger::after { top: 22px; }
body.scrolled .pill { padding: 4px 6px 4px 12px; background: rgba(6, 10, 30, .85); }
@media (max-width: 760px) {
  .pill { gap: 2px; } .pill a.nl { display: none; } .pill .burger { display: block; }
  .pill.open { flex-wrap: wrap; border-radius: 22px; width: calc(100% - 24px); justify-content: space-between; }
  .pill.open a.nl { display: block; width: 100%; order: 5; padding: 12px 16px; border-radius: 10px; }
}

/* ---------- hero : 2 colonnes, la pieuvre est l'interface ---------- */
.hero { position: relative; min-height: 100svh; padding: 120px 0 70px; display: flex; align-items: center; overflow: hidden; background: radial-gradient(ellipse at 72% 45%, rgba(15, 76, 92, .55), transparent 60%), var(--abyss); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(61, 225, 208, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(61, 225, 208, .05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 50%, #000 0, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 0, transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.hero h1 { margin-bottom: .3em; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero h1 span { color: var(--cyan); }
.hero .lede { font-size: clamp(19px, 1.8vw, 23px); color: var(--cream); max-width: 34ch; }
.hero .lede b { color: var(--cyan); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.stage { position: relative; aspect-ratio: 1 / 1; max-width: 640px; width: 100%; margin-inline: auto; cursor: pointer; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.stage-hint { position: absolute; left: 0; right: 0; bottom: -30px; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stage-hint b { color: var(--cyan); font-weight: 500; }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(70px, 10vw, 130px) 0; }
.sec--deep { background: linear-gradient(180deg, var(--abyss), #0a1f3d 40%, var(--abyss)); }
.sec-head { max-width: 780px; margin-bottom: 46px; }
.sec-head p { font-size: 19px; color: var(--muted); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cell { padding: 26px; }
.cell h3 { margin-bottom: 8px; }
.cell p { color: var(--muted); margin: 0; font-size: 16px; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; }
.num { font-family: var(--display); font-size: 74px; color: var(--cyan); line-height: .9; text-shadow: 0 0 24px rgba(61, 225, 208, .4); }
.num small { font-size: 14px; color: var(--muted); font-family: var(--mono); display: block; margin-top: 10px; letter-spacing: .04em; line-height: 1.4; text-shadow: none; }

/* ---------- course de blocs ---------- */
.race { padding: 26px; }
.lane { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; margin: 14px 0; }
.lane .lab { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--muted); }
.lane .lab b { display: block; color: var(--cream); font-size: 14px; }
.track { position: relative; height: 66px; background: repeating-linear-gradient(90deg, var(--panel-2) 0 48px, #0e1840 48px 96px); border: 1px solid var(--line); overflow: hidden; }
.track .blk { position: absolute; top: 0; bottom: 0; width: 48px; border-right: 1px dashed rgba(61, 225, 208, .2); }
.tx { position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--coral); box-shadow: 0 0 10px var(--coral); opacity: 0; }
.tx.one { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.race.go .tx { animation: land .5s steps(5) forwards; animation-delay: var(--d); }
@keyframes land { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
.race-note { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- playground ---------- */
.play { padding: 22px; }
.play-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 26px; }
.ctl h3 { font-size: 30px; }
.steps { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.step { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.step .ix { font-family: var(--display); width: 30px; height: 30px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-size: 20px; }
.step.done .ix { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.step small { color: var(--muted); font-size: 13.5px; }
.kv { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.kv b { color: var(--cyan); font-weight: 500; }
.arms { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
.arms th { text-align: left; font-weight: 500; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: 11px; }
.arms td { padding: 7px 8px; border-bottom: 1px solid rgba(31, 58, 110, .5); white-space: nowrap; }
.arms tr.ok td:first-child { box-shadow: inset 3px 0 0 var(--mint); } .arms tr.bad td:first-child { box-shadow: inset 3px 0 0 var(--coral); }
.armwrap { max-height: 330px; overflow: auto; margin-top: 10px; }
.term { background: var(--ink); border: 1px solid var(--line); padding: 12px; margin-top: 14px; max-height: 210px; overflow-y: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: #b9c6e8; }
.term div { white-space: pre-wrap; word-break: break-all; }
.term .ok { color: var(--mint); } .term .bad { color: var(--coral); } .term .key { color: var(--cyan); } .term .dim { color: #6074a8; }
.blockbox { margin-top: 14px; padding: 14px; border: 1px dashed var(--cyan); background: rgba(61, 225, 208, .05); font-family: var(--mono); font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.blockbox b { color: var(--cyan); font-family: var(--display); font-size: 30px; font-weight: 400; }
.cheats { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.cheats h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin: 0 0 8px; }
.cheats .row { display: flex; flex-wrap: wrap; gap: 8px; }
.once { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.once b { color: var(--cyan); font-weight: 500; }
.toggle { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.toggle input { width: auto; accent-color: var(--cyan); }

.proof { background: var(--ink); border: 1px solid var(--line); padding: 22px; font-family: var(--mono); font-size: 13px; line-height: 1.75; overflow-x: auto; white-space: pre; color: #b9c6e8; }
.proof .g { color: var(--mint); } .proof .y { color: var(--cyan); } .proof .d { color: #6074a8; } .proof .r { color: var(--coral); }
.versus { width: 100%; border-collapse: collapse; font-size: 16px; }
.versus th, .versus td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.versus th { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.versus td:first-child { font-family: var(--display); font-size: 22px; width: 28%; }
.versus .y { color: var(--mint); } .versus .n { color: var(--coral); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } *, *::before, *::after { animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- footer ---------- */
footer { background: var(--ink); padding: 56px 0 40px; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.foot h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.foot a { display: block; color: var(--cream); text-decoration: none; margin: 6px 0; font-size: 16px; }
.foot a:hover { color: var(--cyan); }
.foot p { color: var(--muted); font-size: 15px; max-width: 34ch; }
.foot .brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 34px; margin-bottom: 8px; }
.foot .brand img { width: 34px; height: 34px; object-fit: contain; }
.legal { margin-top: 36px; padding-top: 18px; border-top: 1px dashed var(--line); color: #6074a8; font-size: 13.5px; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 260px minmax(0, 1fr) 210px; gap: 40px; padding-top: 116px; padding-bottom: 80px; align-items: start; }
.dnav { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 8px; }
.dnav h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin: 20px 0 6px; }
.dnav h4:first-of-type { margin-top: 6px; }
.dnav a { display: block; text-decoration: none; color: var(--muted); padding: 6px 12px; font-size: 15.5px; border-left: 2px solid var(--line); }
.dnav a:hover { color: var(--cyan); border-color: var(--cyan); }
.dnav a[aria-current="page"] { color: var(--ink); background: var(--cyan); border-color: var(--cyan); font-weight: 600; }
.docs-search { margin-bottom: 8px; font-size: 13px; }
.doc { min-width: 0; }
.doc h1 { font-size: clamp(44px, 5vw, 72px); margin-bottom: 8px; }
.doc .sub { color: var(--muted); font-size: 21px; margin-bottom: 30px; }
.doc h2 { font-size: 40px; margin-top: 54px; }
.doc h3 { font-size: 28px; margin-top: 30px; color: var(--cyan); }
.doc ul, .doc ol { padding-left: 24px; } .doc li { margin: 5px 0; }
.doc pre { background: var(--ink); color: #b9c6e8; padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.65; margin: 16px 0; border: 1px solid var(--line); border-left: 3px solid var(--cyan); }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15.5px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.doc th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); background: var(--panel-2); }
.callout { background: var(--panel); padding: 16px 20px; margin: 22px 0; border-left: 4px solid var(--cyan); }
.callout.warn { border-color: var(--coral); } .callout.ok { border-color: var(--mint); }
.callout b:first-child { font-family: var(--mono); color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; font-size: 12px; display: block; margin-bottom: 4px; }
.callout.warn b:first-child { color: var(--coral); } .callout.ok b:first-child { color: var(--mint); }
.callout p:last-child { margin: 0; }
.dtoc { position: sticky; top: 92px; font-size: 14.5px; }
.dtoc h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
.dtoc a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0 3px 12px; border-left: 2px solid var(--line); }
.dtoc a:hover { color: var(--cyan); border-color: var(--cyan); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 60px; flex-wrap: wrap; }

.page-top { padding-top: 140px; }
.ca-box { background: var(--ink); padding: 16px 18px; font-family: var(--mono); word-break: break-all; color: var(--cyan); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; border: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.octo-corner { position: absolute; right: max(4%, calc(50% - 560px)); top: 130px; width: min(230px, 24vw); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

@media (max-width: 1080px) {
  .docs { grid-template-columns: 240px minmax(0, 1fr); } .dtoc { display: none; }
  .bento .c2, .bento .c4 { grid-column: span 3; }
}
@media (max-width: 860px) {
  .hero-grid, .play-grid, .two { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; } .stage { max-width: 440px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; padding-top: 96px; } .dnav { position: static; max-height: none; }
  .bento .c2, .bento .c3, .bento .c4 { grid-column: span 6; }
  .lane { grid-template-columns: 1fr; } .octo-corner { display: none; }
}
@media (max-width: 560px) { body { font-size: 16px; } .wrap { width: calc(100% - 32px); } .foot { grid-template-columns: 1fr; } .play { padding: 14px; } }

/* ---------- animation : ambiance, scene epinglee, projecteur, tir synchronise ---------- */
.ambient { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; image-rendering: pixelated; }
main, footer { position: relative; z-index: 1; }
.story { position: relative; }
.story-track { height: 460vh; position: relative; }
.story-stick { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; padding: 72px 0 24px; }
.story-stick canvas { width: min(1280px, calc(100% - 24px)); aspect-ratio: 16 / 9; max-height: calc(100vh - 110px); image-rendering: pixelated; background: rgba(6, 10, 30, .62); border: 1px solid var(--line); box-shadow: 0 0 60px rgba(61, 225, 208, .08); }
.story-hint { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); opacity: .6; } }
.cell { position: relative; overflow: hidden; transition: transform .25s; }
.cell::after, .play::after { content: ""; position: absolute; inset: 0; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 225, 208, .13), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.cell:hover::after, .play:hover::after { opacity: 1; }
.cell:hover { transform: translateY(-3px); }
.play { position: relative; }
/* course de blocs : la boucle recommence, les carres atterrissent puis repartent */
.race.go .tx { animation: land2 5.2s ease-out infinite; animation-delay: var(--d); }
@keyframes land2 { 0% { opacity: 0; transform: translateY(-36px); } 8% { opacity: 1; transform: none; } 82% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(10px); } }
.track .blk { animation: scan 5.2s linear infinite; }
@keyframes scan { 0%, 100% { background: transparent; } 50% { background: rgba(61, 225, 208, .05); } }
/* tir dans le playground : toutes les lignes reagissent au MEME instant */
.arms.fx tr.ok { animation: rowfire .9s ease-out; }
.arms.fx tr.ok td { animation: rowglow .9s ease-out; }
@keyframes rowfire { 0% { transform: scale(1.02); } 100% { transform: none; } }
@keyframes rowglow { 0% { background: rgba(61, 225, 208, .45); } 100% { background: transparent; } }
.play.flash { animation: panelflash .7s ease-out; }
@keyframes panelflash { 0% { box-shadow: 0 0 0 0 rgba(61, 225, 208, .7), inset 0 0 90px rgba(61, 225, 208, .3); } 100% { box-shadow: 0 0 0 40px rgba(61, 225, 208, 0), inset 0 0 0 rgba(61, 225, 208, 0); } }
.blockbox.fx b { animation: pulse .9s ease-out; }
@keyframes pulse { 0% { transform: scale(1.8); color: var(--coral); text-shadow: 0 0 30px var(--coral); } 100% { transform: none; } }
.step.done .ix { animation: ixpop .5s ease-out; }
@keyframes ixpop { 0% { transform: scale(1.5); } 100% { transform: none; } }
.arms tr { animation: rowin .35s ease-out backwards; }
@keyframes rowin { from { opacity: 0; transform: translateX(-12px); } }
.arms tr:nth-child(1) { animation-delay: .00s } .arms tr:nth-child(2) { animation-delay: .04s } .arms tr:nth-child(3) { animation-delay: .08s } .arms tr:nth-child(4) { animation-delay: .12s } .arms tr:nth-child(5) { animation-delay: .16s } .arms tr:nth-child(6) { animation-delay: .20s } .arms tr:nth-child(7) { animation-delay: .24s } .arms tr:nth-child(8) { animation-delay: .28s }
.arms.fx tr, .arms.nofx tr { animation-delay: 0s; }
.brand img { animation: bob 3s ease-in-out infinite; }
.btn { overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg); }
.btn:hover::after { left: 130%; transition: left .55s; }
@media (prefers-reduced-motion: reduce) { .story-track { height: auto; } .story-stick { position: static; height: auto; } .story-hint, .ambient { display: none; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
