:root {
  --bg: #0b0d10; --bg2: #111419; --fg: #e8e6e1; --muted: #8a9099; --border: #23272e;
  --accent: #f5c542; --bad: #ff6b6b; --warn: #f5c542; --ok: #6bd98a;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: -apple-system, system-ui, "Inter", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
::selection { background: var(--accent); color: #000; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg2); border: 1px solid var(--border); border-radius: 4px; padding: 0 .3em; }
.term code, pre code { background: none; border: 0; padding: 0; font-size: inherit; }
h1, h2 { font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: 2rem; margin: 5rem 0 1rem; }
p { margin: 0 0 1rem; }

/* hero */
.hero { max-width: 1140px; margin: 0 auto; padding: 7rem 1.5rem 4rem; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; min-height: 92vh; }
h1 { font-size: clamp(3.4rem, 9vw, 7rem); margin: 0 0 1.4rem; font-family: var(--mono); letter-spacing: -.05em; }
h1 .star { color: var(--accent); display: inline-block; animation: pulse 2.4s ease-in-out infinite; text-shadow: 0 0 30px rgba(245,197,66,.35); }
@keyframes pulse { 0%,100% { transform: scale(1) rotate(0) } 50% { transform: scale(.94) rotate(20deg) } }
.lede { font-size: 1.2rem; color: #c9cdd3; }
.lede.punch { font-family: var(--mono); font-size: 1.6rem; color: var(--accent); font-weight: 700; }
.scrollhint { color: var(--muted); font-family: var(--mono); font-size: .85rem; margin-top: 2.5rem; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px) } }

.term { margin: 0; background: #07090b; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.65), 0 0 0 1px rgba(245,197,66,.04); font-family: var(--mono); font-size: .86rem; transform: rotate(1.2deg); transition: transform .4s; }
.term:hover { transform: rotate(0) scale(1.01); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 9px 12px; background: #15191f; border-bottom: 1px solid var(--border); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; }
.term-bar span:nth-child(1) { background: #ff5f57 } .term-bar span:nth-child(2) { background: #febc2e } .term-bar span:nth-child(3) { background: #28c840 }
.term-bar em { margin-left: auto; font-style: normal; color: var(--muted); font-size: .75rem; }
.term-body { margin: 0; padding: 14px 16px; min-height: 19em; white-space: pre-wrap; word-break: break-all; color: #d7dbe0; line-height: 1.45; }
.term-body .p { color: #7ea6ff } .term-body .err { color: #ff8a8a } .term-body .ok { color: var(--ok) } .term-body .dim { color: var(--muted) } .term-body .pw { color: var(--accent) }
.caret { display: inline-block; width: .55em; height: 1.1em; background: #d7dbe0; vertical-align: -.2em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0 } }
.flystar { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; font-family: var(--mono); font-weight: 700; color: var(--accent); line-height: 1; will-change: transform, font-size; opacity: 0; }

/* scrolly */
#scrolly { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; }
.stage { position: sticky; top: 6vh; height: 88vh; display: flex; align-items: center; }
.stage-inner { width: 100%; }
.stage svg { width: 100%; height: auto; display: block; overflow: visible; }
.chapters { padding: 22vh 0 34vh; }
.ch { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; will-change: opacity, transform; }
.ch .year { font-family: var(--mono); color: var(--accent); font-size: .85rem; letter-spacing: .12em; margin-bottom: .5rem; }
.ch h2 { margin: 0 0 1rem; font-size: 2.1rem; }
.ch h2 code { font-size: .8em; color: var(--accent); border-color: rgba(245,197,66,.4); }
.ch p { font-size: 1.06rem; }
.ch p.dim, .dim { color: var(--muted); font-size: .95rem; }
.ch .big2 { font-family: var(--mono); font-size: 1.5rem; color: var(--bad); font-weight: 700; margin-top: .5rem; }
blockquote { margin: .4rem 0 1rem; padding: .8rem 1rem; border-left: 3px solid var(--accent); background: var(--bg2); font-family: var(--mono); font-size: .9rem; color: #c9cdd3; border-radius: 0 8px 8px 0; }

/* scenes */
.scene { opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.scene.on { opacity: 1; }
.scene .fx { opacity: 0; }
.scene.play .fx { animation: rise .5s ease forwards; }
.scene.play .f1 { animation-delay: .15s } .scene.play .f2 { animation-delay: .7s } .scene.play .f3 { animation-delay: 1.2s }
.scene.play .f4 { animation-delay: 1.8s } .scene.play .f5 { animation-delay: 2.4s } .scene.play .f6 { animation-delay: 3s }
.scene.play .pop { animation-name: popin; }
@keyframes rise { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
@keyframes popin { 0% { opacity: 0; transform: scale(.6) } 60% { opacity: 1; transform: scale(1.08) } 100% { opacity: 1; transform: scale(1) } }
.scene .pop { transform-box: fill-box; transform-origin: center; }
/* 2016: salt chip lifts off bob's line and drops into crypt() */
.scene .chip { transform-box: view-box; }
.scene.play .chip { animation: chip 1.2s cubic-bezier(.5,0,.2,1) 1s both; }
@keyframes chip { 0% { transform: translate(0,0) } 35% { transform: translate(30px,-34px) } 100% { transform: translate(166px,151px) } }
/* alpine: containers flip ! → * */
.ctr .ctr-a { display: none; }
.ctr .ctr-b { opacity: 0; transform-box: fill-box; transform-origin: center; }
.scene.s2 .ctr .ctr-b { animation: starin .4s ease forwards; animation-delay: calc(.2s + var(--d) * .5); }
@keyframes out { to { opacity: 0 } }
@keyframes starin { 0% { opacity: 0; transform: scale(.2) rotate(-90deg) } 100% { opacity: 1; transform: none } }
/* fuzz: hit tiles pulse */
.tile.hit .t-bg { animation: hit 1s ease-in-out infinite; }
@keyframes hit { 50% { fill: #2a1111 } }

/* main */
main { max-width: 980px; margin: 0 auto; padding: 4rem 1.5rem 6rem; }
.sub { color: var(--muted); }
.placeholder { color: var(--muted); font-family: var(--mono); text-align: center; padding: 3rem; border: 1px dashed var(--border); border-radius: 12px; }
.note { color: var(--muted); font-size: .9rem; margin-top: 1rem; }

/* try it */
.try { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.try-input input { width: 100%; font: 600 1.1rem var(--mono); color: var(--fg); background: #07090b; border: 1px solid var(--border); border-radius: 10px; padding: .9rem 1rem; outline: none; transition: border-color .2s; }
.try-input input:focus { border-color: var(--accent); }
.try-row { display: flex; gap: .5rem; flex-wrap: wrap; margin: .7rem 0; }
.try-row button { font: 600 .85rem var(--mono); color: var(--fg); background: var(--bg2); border: 1px solid var(--border); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; transition: border-color .2s, transform .1s; }
.try-row button:hover { border-color: var(--accent); }
.try-row button:active { transform: scale(.96); }
.meter { position: relative; height: 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: 999px; margin-top: .4rem; }
.meter-fill { height: 100%; width: 0; background: var(--ok); border-radius: 999px; transition: width .25s ease, background .2s; }
.meter-fill.over { background: var(--bad); }
.meter-cap, .meter-max { position: absolute; top: -6px; bottom: -6px; width: 2px; }
.meter-cap { left: 25%; background: var(--bad); }
.meter-max { right: 0; }
.meter-cap span, .meter-max span { position: absolute; top: 22px; transform: translateX(-50%); font: .7rem var(--mono); color: var(--muted); }
.meter-max span { transform: translateX(-100%); }
.len { font-family: var(--mono); color: var(--muted); font-size: .85rem; margin-top: 1.3rem; }
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.box { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; transition: border-color .25s, background .25s, transform .25s; }
.box p { margin: 0; }
.box-h { font: 700 .95rem var(--mono); margin-bottom: .6rem !important; }
.box-l { font: .72rem var(--mono); color: var(--muted); margin-top: .5rem !important; }
.box-v { font: 600 .95rem var(--mono); word-break: break-all; min-height: 1.4em; }
.box-v.hot { color: var(--accent); font-size: 1.6rem; }
.star-v { color: var(--accent); font-size: 1.3rem; }
.box-r { font: 700 .95rem var(--mono); margin-top: .9rem !important; min-height: 1.4em; }
.box.no .box-r { color: var(--ok); }
.box.yes { border-color: var(--bad); background: #1a0d0d; transform: translateY(-3px); }
.box.yes .box-r { color: var(--bad); }
.confetti { position: fixed; z-index: 60; pointer-events: none; color: var(--accent); font: 700 20px var(--mono); animation: conf 1.3s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes conf { from { transform: translate(-50%,-50%) } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 120px)) rotate(var(--r)); opacity: 0 } }

/* cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; font-size: .9rem; color: #c9cdd3; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px) rotate(-.4deg); }
.card p { margin: 0; }
.c-big { font: 700 1.25rem var(--mono); color: var(--fg); margin-bottom: .5rem !important; }
.card.bad { border-top: 3px solid var(--bad); } .card.bad .c-big { color: var(--bad); }
.card.warn { border-top: 3px solid var(--warn); } .card.warn .c-big { color: var(--warn); }
.card.ok { border-top: 3px solid var(--ok); } .card.ok .c-big { color: var(--ok); }
footer { text-align: center; padding: 3rem 0 4rem; font: 700 3rem var(--mono); }
footer .star { color: var(--accent); display: inline-block; animation: pulse 2.4s ease-in-out infinite; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 4rem; min-height: 0; }
  .term { font-size: .76rem; transform: none; }
  #scrolly { grid-template-columns: 1fr; gap: 0; }
  .stage { top: 0; height: 48vh; background: linear-gradient(var(--bg) 85%, transparent); z-index: 2; }
  .chapters { padding-top: 4vh; }
  .ch { min-height: 70vh; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards.three, .boxes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition: none !important; }
}

/* receipts */
.receipts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rc { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; position: relative; transition: transform .2s, border-color .2s; }
.rc:hover { transform: translateY(-3px) rotate(.3deg); border-color: rgba(245,197,66,.5); }
.rc p { margin: 0; }
.rc-h { font: .72rem var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.rc-q { margin: .7rem 0; padding: .7rem .8rem; background: #07090b; border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; font: .82rem/1.5 var(--mono); color: var(--fg); white-space: pre-wrap; }
.rc-s { font-size: .92rem; color: #c9cdd3; }
@media (max-width: 900px) { .receipts { grid-template-columns: 1fr; } }

#lock-figure iframe { width: 100%; aspect-ratio: 980 / 760; border: 0; border-radius: 14px; display: block; background: #0f1216; }

.comic { margin: 0; }
.comic img { width: 100%; display: block; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.5); transform: rotate(-.5deg); transition: transform .3s; }
.comic img:hover { transform: rotate(0) scale(1.01); }


/* hero, calmer */
.hero { position: relative; }
.hero-down { position: absolute; left: 50%; bottom: 2.2rem; width: 18px; color: var(--muted); transform: translateX(-50%); animation: bob 2.2s ease-in-out infinite; opacity: .7; }
.hero-down svg { width: 100%; display: block; }

/* date rail */
.rail { position: fixed; left: 28px; top: 50%; transform: translateY(-50%); z-index: 20; opacity: 0; pointer-events: none; transition: opacity .5s; width: 170px; }
.rail.on { opacity: 1; pointer-events: auto; }
.rail ol { list-style: none; margin: 0; padding: 0; position: relative; }
.rail li { position: relative; padding: .7rem 0 .7rem 26px; cursor: pointer; display: flex; flex-direction: column; line-height: 1.25; }
.rail li::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; border: 1.5px solid #3a3f47; background: var(--bg); transition: border-color .3s, background .3s; }
.rail li.past::before { border-color: var(--accent); background: var(--accent); opacity: .55; }
.rail li.on::before { border-color: var(--accent); background: var(--bg); }
.rail .ry { font: 700 .78rem var(--mono); color: #5c636d; letter-spacing: .06em; transition: color .3s; }
.rail .rt { font: .74rem var(--sans); color: #4a5059; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s, opacity .35s, color .3s; white-space: nowrap; }
.rail li.past .ry { color: var(--muted); }
.rail li.on .ry { color: var(--accent); }
.rail li.on .rt { max-height: 1.2em; opacity: 1; color: var(--fg); }
.rail li:hover .rt { max-height: 1.2em; opacity: 1; }
.rail li:hover .ry { color: var(--fg); }
.rail-track { position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; background: var(--border); }
.rail-fill { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: linear-gradient(var(--border), var(--accent)); }
.rail-dot { position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(245,197,66,.15), 0 0 18px rgba(245,197,66,.8); }
@media (max-width: 1500px) { .rail { left: 14px; width: 130px; } }
@media (max-width: 1360px) { .rail .rt { display: none; } .rail { width: 80px; } }
@media (max-width: 1180px) { .rail { display: none; } }

/* receipts, plain: git-log style */
.receipt { margin: 1.3rem 0 .4rem; padding: .1rem 0 .1rem 1rem; border-left: 2px solid var(--border); max-width: 32rem; transition: border-color .3s; }
.ch.active .receipt, .receipt:hover { border-left-color: var(--accent); }
.receipt p { margin: 0; }
.receipt .r-h { font: .74rem var(--mono); color: var(--accent); letter-spacing: .02em; }
.receipt pre { margin: .45rem 0 .5rem; font: .86rem/1.5 var(--mono); white-space: pre-wrap; color: var(--fg); }
.receipt .r-s { font-size: .92rem; color: var(--muted); }
.receipt .r-s::before { content: "↳ "; color: #5c636d; }
.receipt.hot { border-left-color: rgba(245,197,66,.55); }
.receipt.tilt { margin-left: 0; }

/* scroll-on arrow */
.down { width: 16px; color: var(--accent); margin: .2rem 0 .6rem 2px; animation: drop 1.8s ease-in-out infinite; }
.down svg { width: 100%; display: block; }
@keyframes drop { 0%,100% { transform: translateY(0); opacity: .55 } 50% { transform: translateY(10px); opacity: 1 } }

/* scene 5 cards pop in one at a time */
.scene .qb { opacity: 0; transform: translateX(-14px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1.2); }
.scene .qb.show { opacity: 1; transform: none; }

/* auth.log */
.log { margin: 0; background: #07090b; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.log .log-body { margin: 0; padding: 14px 16px; min-height: 16rem; font: .82rem/1.65 var(--mono); color: #d7dbe0; white-space: pre-wrap; }
.lr { opacity: 0; transform: translateY(4px); }
.lr.in, .log .lr { animation: lin .35s ease forwards; }
@keyframes lin { to { opacity: 1; transform: none; } }
.lr .acc { font-weight: 700; }
.lr.bad .acc { color: var(--bad); } .lr.warn .acc { color: var(--warn); } .lr.ok .acc { color: var(--ok); }
.lr .cm { color: var(--muted); }
.log .dim { color: #5c636d; } .log .p { color: var(--accent); }
.fixlog .log-body { min-height: 0; }

/* hi */
.hi-line { margin-top: 2.2rem; color: #c9cdd3; font-size: 1.1rem; }
.hi { font: 700 clamp(5rem, 16vw, 10rem)/1 var(--mono); letter-spacing: -.06em; margin: .2rem 0 0; }
.hi .wave { color: var(--accent); display: inline-block; transform-origin: 50% 60%; animation: wave 1.6s ease-in-out infinite; margin-left: .05em; }
@keyframes wave { 0%,100% { transform: rotate(0) } 20% { transform: rotate(28deg) } 40% { transform: rotate(-14deg) } 60% { transform: rotate(22deg) } 80% { transform: rotate(-6deg) } }
.lr { margin-bottom: .45rem; }
.lr .cm { display: block; padding-left: 2ch; }


/* are you affected */
.checks { list-style: none; padding: 0; margin: 1.5rem 0 1.8rem; font-size: 1.08rem; }
.checks li { display: flex; gap: .9rem; align-items: baseline; padding: .55rem 0; color: #5c636d; transition: color .4s; }
.checks li.on { color: var(--fg); }
.checks .tick { flex: none; width: 1.05rem; height: 1.05rem; border: 1.5px solid #3a3f47; border-radius: 4px; position: relative; top: .15rem; transition: border-color .3s, background .3s; }
.checks li.on .tick { border-color: var(--accent); background: var(--accent); }
.checks li.on .tick::after { content: ""; position: absolute; left: .3rem; top: .06rem; width: .3rem; height: .58rem; border: solid #0b0d10; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks li.res { margin-top: .6rem; padding-top: 1rem; border-top: 1px solid var(--border); font-weight: 700; }
.checks li.res.on { color: var(--bad); }
.checks li.res.on .tick { border-color: var(--bad); background: var(--bad); }
.aff { color: #c9cdd3; max-width: 44rem; }
.aff.ok { color: var(--muted); }


/* spacing: let everything breathe */
main { padding: 6rem 1.5rem 4rem; }
main > section { margin: 0 0 11rem; }
main h2 { margin: 0 0 1.6rem; font-size: 2.4rem; }
.sub { margin-bottom: 2rem; }
.chapters { padding: 26vh 0 40vh; }
.ch { min-height: 92vh; }
.ch p { margin-bottom: 1.15rem; }
.receipt { margin-top: 2rem; }
#comic { margin-bottom: 13rem; }

/* the scary part */
#check { position: relative; padding: 14rem 1.5rem; background: radial-gradient(ellipse at 50% 60%, #140707 0%, #0b0d10 70%); transition: background 1.2s; overflow: hidden; }
#check.hit { background: radial-gradient(ellipse at 50% 60%, #2a0a0a 0%, #0b0d10 72%); }
#check::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px); }
.check-inner { max-width: 900px; margin: 0 auto; }
.check-k { font: 700 .8rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #5c636d; margin-bottom: 1rem; }
#check h2 { font-size: 2.6rem; margin: 0 0 3rem; }
.darklog { box-shadow: 0 0 0 1px #2a1414, 0 40px 120px rgba(0,0,0,.8); transition: box-shadow 1.2s; }
#check.hit .darklog { box-shadow: 0 0 0 1px #5a1c1c, 0 0 90px rgba(255,60,60,.18), 0 40px 120px rgba(0,0,0,.8); animation: thump 1.6s ease-in-out 1; }
@keyframes thump { 0%,100% { transform: none } 8% { transform: translateX(-3px) } 16% { transform: translateX(3px) } 24% { transform: none } }
.darklog .log-body { min-height: 13rem; font-size: .88rem; }
.darklog .red { color: #ff4d4d; font-weight: 700; text-shadow: 0 0 12px rgba(255,77,77,.7); }
.darklog .star { color: var(--accent); font-weight: 700; text-shadow: 0 0 14px rgba(245,197,66,.9); }
.check-after { margin-top: 3rem; font-size: 1.3rem; color: #5c636d; transition: color 2s 2.5s; }
#check.hit .check-after { color: #e8e6e1; }

/* goodbye */
#bye { padding: 16rem 1.5rem 18rem; text-align: center; }
.bye-l { color: var(--muted); font-size: 1.2rem; margin: 0 0 .4rem; }
.bye-l2 { color: var(--fg); font-size: 1.6rem; font-weight: 700; margin-bottom: 7rem; }
.bye-s { color: var(--muted); font-size: 1.1rem; margin: 0 0 .6rem; }
.bye { font: 700 clamp(3.4rem, 11vw, 8.5rem)/1 var(--mono); letter-spacing: -.05em; margin: 0; white-space: nowrap; }
.bye .wave { color: var(--accent); display: inline-block; transform-origin: 50% 60%; animation: wave 1.6s ease-in-out infinite; text-shadow: 0 0 40px rgba(245,197,66,.35); }
footer { display: none; }

.lede.yes { font-family: var(--mono); font-size: 1rem; color: var(--muted); }
.lede.yes span { opacity: 0; display: inline-block; animation: yes .4s ease forwards; }
.lede.yes span:nth-child(1) { animation-delay: 1.2s } .lede.yes span:nth-child(2) { animation-delay: 2.1s }
.lede.yes span:nth-child(3) { animation-delay: 2.9s } .lede.yes span:nth-child(4) { animation-delay: 3.9s; color: var(--accent); }
@keyframes yes { from { opacity: 0; transform: translateY(4px) } to { opacity: 1; transform: none } }

/* receipts as real screenshots in a retro browser window */
.win { display: block; margin: 2rem 0 .7rem; max-width: 34rem; background: #c0c0c0; padding: 3px; text-decoration: none; color: #000;
  box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #fff, inset -2px -2px 0 #808080, inset 2px 2px 0 #dfdfdf, 0 18px 40px rgba(0,0,0,.45);
  font-family: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Geneva, sans-serif; transition: transform .2s; }
.win:hover { transform: translateY(-3px); }
.win-t { display: flex; align-items: center; gap: 3px; padding: 3px 3px 3px 6px; background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font-size: 12px; font-weight: 700; }
.win-t span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-t i { width: 16px; height: 14px; background: #c0c0c0; box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #fff, inset -2px -2px 0 #808080; position: relative; }
.win-t i:last-child::after { content: "×"; position: absolute; inset: -3px 0 0; color: #000; font-size: 13px; text-align: center; }
.win-t i:nth-child(2)::after { content: ""; position: absolute; left: 4px; right: 5px; bottom: 3px; height: 2px; background: #000; }
.win-t i:nth-child(3)::after { content: ""; position: absolute; left: 3px; right: 4px; top: 2px; bottom: 3px; border: 1px solid #000; border-top-width: 2px; }
.win-a { display: flex; align-items: center; gap: 6px; padding: 4px 4px 5px; font-size: 11px; }
.win-a b { font-weight: 400; }
.win-a span { flex: 1; background: #fff; padding: 2px 4px; box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff, inset 2px 2px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #000080; text-decoration: underline; }
.win img { display: block; width: 100%; background: #fff; box-shadow: inset 1px 1px 0 #808080; image-rendering: auto; }
.win + .r-s, .r-s.after { font-size: .95rem; color: var(--muted); margin: 0 0 .4rem; }
.win + .r-s::before { content: "↳ "; color: #5c636d; }
.win.tilt { transform: rotate(.6deg); margin-left: 1.4rem; }
.win.tilt:hover { transform: rotate(0) translateY(-3px); }

/* a second h, like a soft echo behind the first: sshhole */
.echo { position: relative; display: inline-block; }
.echo::before { content: "h"; position: absolute; left: .2em; top: 0; color: #fff; opacity: .13; filter: blur(.5px); z-index: -1; pointer-events: none; }
h1 { white-space: nowrap; font-size: clamp(3rem, 7.2vw, 6.4rem); }


/* more air between chapters */
.ch { min-height: 70vh; margin-bottom: 38vh; }
.ch:last-child { margin-bottom: 0; }

/* 2012: guess the character */
.slot { display: inline-flex; align-items: center; gap: .05em; font: 700 1.6rem/1 var(--mono); margin: .2rem 0 1rem; padding: .3em .5em; border: 1px solid var(--border); border-radius: 8px; background: #0d0f12; transition: border-color .3s, box-shadow .3s; }
.slot-q { color: var(--muted); font-weight: 400; }
.reel { display: inline-block; width: 1ch; text-align: center; color: var(--fg); transition: opacity .25s; }
.reel.hush { opacity: .15; }
.slot.won { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(245,197,66,.35), 0 0 40px rgba(245,197,66,.25); animation: jolt .45s; }
.reel.land { color: var(--accent); text-shadow: 0 0 18px rgba(245,197,66,.8); animation: land .6s cubic-bezier(.2,1.8,.4,1); }
@keyframes land { 0% { transform: scale(2.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes jolt { 0%,100% { transform: none; } 20% { transform: translateX(-3px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(1px); } }
.slot-after { opacity: 0; transition: opacity .8s .5s; }
.slot-after.show { opacity: 1; }
.ch .slot { display: flex; width: max-content; }
.win.tilt-r { transform: rotate(-.5deg); margin-left: .6rem; }
.win.tilt-r:hover { transform: rotate(0) translateY(-3px); }

/* 2019 -> 2022: three states side by side, active one lit */
.acol { opacity: .35; transition: opacity .4s; }
.acol.on { opacity: 1; }
.acol .acol-bg { transition: stroke .4s, fill .4s; }
.acol.on .acol-bg { stroke: #8a929c; fill: rgba(255,255,255,.03); }

/* phones: nothing may push the page wider than the screen */
@media (max-width: 900px) {
  #scrolly { grid-template-columns: minmax(0, 1fr); }
  .chapters, .ch { min-width: 0; }
  .win, .win.tilt, .win.tilt-r { max-width: 100%; margin-left: 0; transform: none; box-sizing: border-box; }
  .win img { max-width: 100%; height: auto; }
  pre, .log-body { overflow-x: auto; }
}
@media (max-width: 600px) {
  /* animation cards: edge to edge; tap one to see it bigger */
  .scard { margin-left: -1.1rem; margin-right: -1.1rem; border-radius: 0; border-left: 0; border-right: 0; }
}
.tldr { font: 700 1.1rem var(--mono); color: var(--accent); letter-spacing: .08em; margin: 0 0 1rem; }

/* goodbye: one line per screen, each fades in as you reach it */
#bye { padding: 30vh 1.5rem 30vh; }
#bye .beat { margin: 0 0 45vh; opacity: 0; transform: translateY(18px); transition: opacity 1.1s ease, transform 1.1s ease; }
#bye .beat.in { opacity: 1; transform: none; }
#bye .bye-end { margin-bottom: 0; transition-duration: 1.6s; }
#bye .bye-l2 { margin-bottom: 55vh; }
@media (prefers-reduced-motion: reduce) { #bye .beat { opacity: 1; transform: none; transition: none; } }

/* phones: no sticky stage. each chapter = text, then its animation card */
@media (max-width: 900px) {
  .stage { display: none; }
  .scard { margin: 1.6rem -0.4rem 0; padding: .8rem .4rem; border: 1px solid var(--border); border-radius: 12px; background: #0d0f12; }
  .scard svg { width: 100%; height: auto; display: block; }
  .ch { min-height: 0; margin-bottom: 5.5rem; opacity: 1 !important; transform: none !important; }
  .chapters { padding: 2rem 0 3rem; }
}

/* signature */
.sig { text-align: center; padding: 0 1.5rem 5rem; font: .95rem/1.7 var(--mono); color: var(--muted); }
.sig p { margin: 0; }
.sig strong { color: var(--fg); }
.sig a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(245,197,66,.35); }
.sig a:hover { border-bottom-color: var(--accent); }
footer.sig { display: block; }
#bye { padding-bottom: 16vh; }

/* phones: the tiny sha512/salt/hash labels collide when enlarged; the text above explains them */
@media (max-width: 900px) { .scard .lbl { display: none; } }
/* reserve image space before load so the page never jumps */
.win img { height: auto; }

/* the check terminal must not grow while it types (it pushes the page) */
@media (max-width: 900px) { .darklog .log-body { min-height: 19rem; } }
/* the goodbye starts right under the check, so the first line peeks in */
#check { padding-bottom: 6rem; }
#bye { padding-top: 4vh; }

/* the red of the check fades softly into the black of the goodbye */
#check::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(rgba(11,13,16,0), var(--bg) 85%); pointer-events: none; z-index: 0; }
.check-inner { position: relative; z-index: 1; }
#bye .bye-l2 { margin-bottom: 16vh; }
#check::after { -webkit-mask-image: linear-gradient(#000 45%, transparent 95%); mask-image: linear-gradient(#000 45%, transparent 95%); }
/* animated content must never be the browser's scroll anchor (it would drag the page along) */
.term-body, .log-body, .scard, .slot, #bye { overflow-anchor: none; }
