/* Where does it live? · Back-end act one and two · Vefskólinn
   Theme: terminal. Dark panels, phosphor green accent, status line at the bottom. */

/* ---------- tokens ---------- */
:root {
  --bg: #0b0f14;
  --bg-2: #0f151d;
  --panel: #151c26;
  --panel-2: #1b2430;
  --line: #263140;
  --line-2: #33405a;
  --ink: #e6edf3;
  --ink-2: #aab4c0;
  --ink-3: #6e7b8a;
  --green: #3fb950;
  --green-soft: rgba(63, 185, 80, .16);
  --amber: #d29922;
  --amber-soft: rgba(210, 153, 34, .16);
  --browser: #58a6ff;
  --browser-soft: rgba(88, 166, 255, .16);
  --server: #f0883e;
  --server-soft: rgba(240, 136, 62, .16);
  --db: #bc8cff;
  --db-soft: rgba(188, 140, 255, .16);
  --key: #e3b341;
  --bad: #f85149;
  --bad-soft: rgba(248, 81, 73, .16);
  --good: #3fb950;
  --warn: #d29922;
  --code-bg: #0d1117;
  --code-fg: #e6edf3;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 24px 50px -24px rgba(0, 0, 0, .8), 0 2px 8px -3px rgba(0, 0, 0, .6);
  --shadow-sm: 0 10px 24px -14px rgba(0, 0, 0, .8);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Chakra Petch", "IBM Plex Sans", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); overflow: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: -.01em; margin: 0; font-weight: 700; }
code, pre, kbd { font-family: var(--mono); font-variant-ligatures: none; }
.hand { font-family: var(--mono); font-weight: 600; color: var(--green); font-size: 22px; line-height: 1.2; }
.hand::before { content: "// "; color: var(--ink-3); font-weight: 400; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
.dim { color: var(--ink-3); font-weight: 500; }
p code, li code, td code, span code, .note code, div code { background: var(--panel-2); border: 1px solid var(--line-2); padding: 1px 7px; border-radius: 5px; font-size: .85em; color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- ambient background: dot grid + glow ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 50% 120%, #10171f, var(--bg) 70%); }
.bg::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(170, 180, 192, .13) 1px, transparent 1.2px); background-size: 28px 28px; }
.bg::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 4px); }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .5; }
.bg-glow-1 { width: 60vmax; height: 60vmax; left: -22vmax; top: -28vmax; background: radial-gradient(circle, rgba(63, 185, 80, .22), rgba(63, 185, 80, 0) 65%); }
.bg-glow-2 { width: 60vmax; height: 60vmax; right: -25vmax; bottom: -22vmax; background: radial-gradient(circle, rgba(88, 166, 255, .18), rgba(88, 166, 255, 0) 65%); }
#glyphs { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- deck & slides ---------- */
.deck { position: fixed; left: 50%; top: 50%; width: 1600px; height: 900px; transform: translate(-50%, -50%); transform-origin: center; z-index: 1; }
.slide { position: absolute; inset: 0; padding: 60px 90px 90px; opacity: 0; visibility: hidden; transform: translateX(80px); transition: opacity .55s var(--ease), transform .65s var(--ease), visibility 0s .6s; display: flex; flex-direction: column; }
.slide.past { transform: translateX(-80px); }
.slide.active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; z-index: 2; }

.rise { opacity: 0; transform: translateY(24px); }
.slide.active .rise { animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms + .15s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.frag { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.frag.on { opacity: 1; transform: none; }

.hl { position: relative; display: inline-block; z-index: 0; white-space: nowrap; color: var(--green); }
.hl::before { content: ""; position: absolute; left: -.1em; right: -.1em; bottom: -.02em; height: .14em; z-index: -1; transform: scaleX(0); transform-origin: left; border-radius: 2px; background: var(--green); opacity: .8; }
.slide.active .hl::before { animation: sweep .7s var(--ease) forwards; animation-delay: .45s; }
@keyframes sweep { to { transform: scaleX(1); } }

/* common type */
.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 0 0 14px; }
.eyebrow::before { content: "$ "; color: var(--green); }
h1 { font-size: 104px; line-height: .98; }
h2 { font-size: 54px; line-height: 1.05; margin-bottom: 26px; }
.sub { font-size: 27px; color: var(--ink-2); margin: 22px 0 0; line-height: 1.35; }
.sub em { font-style: normal; color: var(--ink); font-weight: 600; }
.takeaway { margin: auto 0 0; font-size: 23px; color: var(--ink-2); line-height: 1.4; padding-top: 20px; }
.takeaway em { font-style: normal; color: var(--ink); font-weight: 600; box-shadow: inset 0 -.35em 0 var(--green-soft); border-bottom: 2px solid var(--green); }
.caption { font-size: 17px; color: var(--ink-3); margin: 14px 0 0; line-height: 1.45; }
.caption b { color: var(--ink-2); }
.row-btns { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.row-btns .dim { font-size: 16px; margin-left: 8px; font-family: var(--mono); }

.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; padding: 12px 22px; font-weight: 600; font-size: 17px; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, filter .2s; box-shadow: var(--shadow-sm); background: var(--green); color: #06110a; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: none; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .35); transform: scale(0); animation: ripple .7s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- shared: panels, notes, tickets, lists ---------- */
.panel, .device, .game-card, .score, .prompt-card, .phone-test, .order, .order-detail, .rules, .q3, .log-explain, .q, .stop, .part, .file .ticket, .team-say, .together, .parts-say { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }

.note { position: relative; padding: 16px 18px 18px 22px; font-size: 17px; line-height: 1.4; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; color: var(--ink-2); }
.note b { display: block; font-family: var(--head); font-size: 19px; margin-bottom: 4px; color: var(--ink); }
.note em { font-style: normal; font-weight: 700; color: var(--ink); }
.note.amber { border-left-color: var(--amber); }
.note.green { border-left-color: var(--green); }
.note.blue { border-left-color: var(--browser); }
.note.red { border-left-color: var(--bad); }

.ticket { margin: 0; background: var(--code-bg); color: var(--code-fg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 14.5px; line-height: 1.55; overflow: hidden; white-space: pre-wrap; word-break: break-word; }
.ticket .c { color: #6e7b8a; font-style: italic; }
.ticket .k { color: #ff7b72; }
.ticket .s { color: #a5d6ff; }
.ticket .n { color: #d2a8ff; }
.ticket .m { color: #79c0ff; font-weight: 600; }
.ticket .ok { color: #3fb950; font-weight: 600; }
.ticket .bad { color: #f85149; font-weight: 600; }
.ticket .hi { background: var(--green-soft); display: block; margin: 0 -16px; padding: 0 16px; }
.ticket .leak { background: var(--bad-soft); color: #ffb4b4; display: block; margin: 0 -16px; padding: 0 16px; border-left: 3px solid var(--bad); }

.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 20px; line-height: 1.35; color: var(--ink-2); }
.why-list.small li { font-size: 17px; gap: 12px; }
.why-list b { font-weight: 600; color: var(--ink); }
.tick { flex: none; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: var(--green-soft); color: var(--green); margin-top: 1px; font-family: var(--mono); }
.tick.bad { background: var(--bad-soft); color: var(--bad); }

.path { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.path .stop { padding: 20px 24px; min-width: 250px; flex: 1; }
.path .stop b { display: block; font-family: var(--head); font-size: 23px; margin-bottom: 8px; }
.path .stop span { color: var(--ink-2); font-size: 17.5px; line-height: 1.35; display: block; }
.path .stop.now { border-color: var(--green); background: var(--panel-2); transform: scale(1.04); box-shadow: 0 0 0 4px var(--green-soft); }
.path .stop.now b { color: var(--green); }
.path .arrow { font-size: 40px; color: var(--ink-3); }
.recap { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 18px; font-size: 18px; font-weight: 500; color: var(--ink-2); }
.chip.on-chip { background: var(--green-soft); border-color: var(--green); color: var(--ink); }

.tabs { display: flex; gap: 4px; background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px; margin-bottom: 12px; width: max-content; }
.tab { border: 0; background: transparent; border-radius: 6px; padding: 8px 16px; font-weight: 600; font-size: 15px; color: var(--ink-3); font-family: var(--mono); }
.tab.on { background: var(--panel-2); color: var(--green); }

.deliver { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; }
.deliver li { display: flex; gap: 16px; align-items: flex-start; font-size: 20px; line-height: 1.35; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.deliver .n { font-family: var(--mono); font-size: 22px; color: var(--green); line-height: 1.2; min-width: 34px; font-weight: 700; }
.deliver b { display: block; }
.deliver span { color: var(--ink-2); font-size: 16.5px; line-height: 1.4; }

.timeline { display: grid; gap: 0; margin-top: 10px; }
.tl { display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: start; padding: 14px 0; border-left: 2px solid var(--line-2); padding-left: 24px; position: relative; }
.tl::before { content: ""; position: absolute; left: -8px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--green); }
.tl b { font-family: var(--head); font-size: 22px; color: var(--green); }
.tl p { margin: 0; font-size: 17.5px; color: var(--ink-2); line-height: 1.4; }
.tl p strong { color: var(--ink); font-weight: 600; }

.checklist { display: grid; gap: 10px; }
.check { display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; cursor: pointer; transition: background .2s, border-color .2s; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 26px; height: 26px; border: 2px solid var(--ink-3); border-radius: 6px; flex: none; display: grid; place-items: center; font-family: var(--mono); font-size: 18px; color: var(--green); line-height: 1; margin-top: 2px; }
.check .box::after { content: "✓"; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s var(--ease); }
.check:has(input:checked) { background: var(--panel-2); border-color: var(--green); }
.check:has(input:checked) .box { border-color: var(--green); }
.check:has(input:checked) .box::after { opacity: 1; transform: none; }
.check:has(input:focus-visible) { outline: 2px solid var(--green); }
.check > div { flex: 1; }
.check b { display: block; font-size: 18px; margin-bottom: 2px; }
.check span { font-size: 15.5px; color: var(--ink-2); line-height: 1.35; }
.check em { font-style: normal; font-family: var(--mono); font-size: 24px; color: var(--amber); line-height: 1; align-self: center; font-weight: 700; }
.check-status { margin: 8px 0 0; font-size: 18px; color: var(--ink-2); font-family: var(--mono); }

/* ---------- 1 · title ---------- */
.s-title { justify-content: flex-end; }
.title-photo { position: absolute; right: 80px; top: 70px; width: 720px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: var(--panel); }
.title-photo img, .title-photo video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; background: var(--code-bg); }
.title-photo .tag { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 13px; color: var(--ink); background: rgba(11, 15, 20, .8); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 10px; }
.title-block { position: relative; z-index: 1; max-width: 780px; padding-bottom: 10px; }
.title-block .hint { font-size: 24px; margin-top: 32px; }

/* ---------- 3 · the team ---------- */
.team { display: grid; grid-template-columns: 900px 1fr; gap: 34px; align-items: start; }
.team-photo { position: relative; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.team-photo img, .team-photo video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; background: var(--code-bg); }
.sound { position: absolute; right: 14px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: rgba(11, 15, 20, .72); backdrop-filter: blur(4px); font-size: 20px; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); transition: transform .2s var(--ease), border-color .2s; }
.sound:hover { transform: scale(1.06); }
.sound[aria-pressed="true"] { border-color: var(--green); }
.hot { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; border: 2px solid #fff; border-radius: 999px; padding: 6px 14px 6px 6px; font-family: var(--mono); font-weight: 700; font-size: 14px; color: #fff; background: rgba(11, 15, 20, .72); backdrop-filter: blur(4px); transition: transform .2s var(--ease), background .2s; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.hot span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #06110a; }
.hot.frontend span { background: var(--browser); }
.hot.backend span { background: var(--server); }
.hot.design span { background: var(--db); }
.hot:hover { transform: translate(-50%, -50%) scale(1.06); }
.hot.on { background: rgba(11, 15, 20, .95); transform: translate(-50%, -50%) scale(1.08); }
.hot.frontend.on { border-color: var(--browser); }
.hot.backend.on { border-color: var(--server); }
.hot.design.on { border-color: var(--db); }
.hot::after { content: ""; position: absolute; inset: -10px; border-radius: 999px; border: 2px solid currentColor; opacity: 0; }
.hot:not(.on)::after { animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.25); opacity: 0; } }
.team-side { display: grid; gap: 18px; align-content: start; }
.team-say { padding: 22px 24px; font-size: 18.5px; line-height: 1.45; color: var(--ink-2); min-height: 330px; }
.team-say b { color: var(--ink); }
.team-say .hand { font-size: 22px; margin-right: 8px; }
.team-say .role { display: block; font-family: var(--head); font-size: 26px; margin-bottom: 10px; color: var(--ink); }
.team-say .role.frontend { color: var(--browser); }
.team-say .role.backend { color: var(--server); }
.team-say .role.design { color: var(--db); }
.team-say .flow { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.team-say .flow li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 17px; }
.team-say .flow li b { font-family: var(--mono); font-size: 14px; padding-top: 3px; }
.together { text-align: left; padding: 16px 20px; display: grid; gap: 4px; transition: border-color .2s, transform .2s var(--ease); }
.together:hover { transform: translateY(-2px); }
.together.on { border-color: var(--green); background: var(--panel-2); }
.together b { font-family: var(--head); font-size: 20px; }
.together span { font-family: var(--mono); font-size: 14px; color: var(--ink-3); }

/* ---------- 4 · the one-screen app ---------- */
.one { display: grid; grid-template-columns: 1fr 300px 1fr; gap: 28px; align-items: stretch; }
.device { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.dev-head { display: flex; align-items: center; gap: 12px; }
.dev-head svg { width: 54px; height: 40px; }
.dev-head b { font-family: var(--head); font-size: 22px; flex: 1; }
.store { font-family: var(--mono); font-size: 13px; padding: 4px 10px; border-radius: 6px; background: var(--browser-soft); color: var(--browser); font-weight: 600; transition: background .3s, color .3s; }
.one.live .store { background: var(--server-soft); color: var(--server); }
.booklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-height: 236px; align-content: start; }
.booklist li { background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px; font-size: 17px; display: flex; align-items: center; gap: 10px; animation: pop .35s var(--ease); font-family: var(--mono); }
.booklist li::before { content: "▸"; color: var(--green); font-size: 14px; }
.booklist li.ghost { color: var(--ink-3); border-style: dashed; background: transparent; animation: none; }
.booklist li.ghost::before { content: "·"; color: var(--ink-3); }
.booklist.mini { min-height: 0; gap: 5px; width: 100%; }
.booklist.mini li { font-size: 13px; padding: 5px 10px; border-radius: 6px; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.between { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 16px; }
.server-box { width: 100%; background: var(--panel); border: 1px dashed var(--line-2); border-radius: 12px; padding: 14px 16px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .3; transform: scale(.94); transition: opacity .4s, transform .4s var(--ease), border-color .4s, box-shadow .4s; margin-bottom: auto; }
.server-box svg { width: 60px; height: 60px; }
.server-box b { font-family: var(--head); font-size: 18px; color: var(--server); }
.one.live .server-box { opacity: 1; transform: none; border-style: solid; border-color: var(--server); box-shadow: 0 0 0 4px var(--server-soft); }
.dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--server); box-shadow: 0 0 0 6px var(--server-soft); opacity: 0; pointer-events: none; top: 50%; left: 50%; }
.dot.fly { animation: fly .9s var(--ease) forwards; }
@keyframes fly { 0% { opacity: 0; transform: translate(var(--x0), -50%); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x1), -50%); } }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 62px; height: 34px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); position: relative; transition: background .3s, border-color .3s; }
.switch .track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink-2); transition: transform .3s var(--ease), background .3s; }
.switch input:checked + .track { background: var(--server-soft); border-color: var(--server); }
.switch input:checked + .track::after { transform: translateX(28px); background: var(--server); }
.switch input:focus-visible + .track { outline: 2px solid var(--green); }
.switch .label { font-weight: 600; font-size: 17px; }

/* ---------- 5 · five words ---------- */
.parts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: stretch; }
.part { padding: 26px 18px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s; }
.part:hover { transform: translateY(-4px); }
.part svg { width: 120px; height: 110px; }
.part b { font-family: var(--head); font-size: 26px; margin-top: 6px; }
.part span { color: var(--ink-3); font-size: 16px; font-weight: 500; font-family: var(--mono); }
.part.on { transform: translateY(-6px) scale(1.03); background: var(--panel-2); }
.part.browser.on { border-color: var(--browser); box-shadow: 0 0 0 4px var(--browser-soft); }
.part.http.on { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.part.server.on { border-color: var(--server); box-shadow: 0 0 0 4px var(--server-soft); }
.part.db.on { border-color: var(--db); box-shadow: 0 0 0 4px var(--db-soft); }
.part.secret.on { border-color: var(--key); box-shadow: 0 0 0 4px var(--amber-soft); }
.parts-say { margin-top: 30px; padding: 22px 28px; font-size: 21px; line-height: 1.45; min-height: 130px; color: var(--ink-2); }
.parts-say .hand { margin-right: 10px; }
.parts-say b { color: var(--ink); }

/* ---------- 6 · one request ---------- */
.journey { display: grid; grid-template-columns: 200px 1fr 200px 1fr 200px; align-items: center; gap: 0; margin-top: 18px; }
.s-request .key-toggle { margin-bottom: 0; }
.jnode { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.jnode svg { width: 110px; height: 90px; }
.jnode.db svg { height: 100px; }
.jnode b { font-family: var(--head); font-size: 20px; }
.jnode.browser b { color: var(--browser); }
.jnode.server b { color: var(--server); }
.jnode.db b { color: var(--db); }
.jnode.db svg { transition: opacity .3s; }
.steps li b { color: var(--ink); }
.jlane { position: relative; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 14px, transparent 14px 24px); margin: 0 10px; }
.jlane i { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.jdot { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--green); transform: translate(-50%, -50%); opacity: 0; box-shadow: 0 0 0 6px var(--green-soft), 0 0 18px var(--green); }
.jlane.go .jdot { animation: lane-go .8s var(--ease) forwards; }
.jlane.back .jdot { animation: lane-back .8s var(--ease) forwards; }
@keyframes lane-go { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes lane-back { 0% { left: 100%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 0; opacity: 0; } }
.ticket-row { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 24px; margin-top: 22px; align-items: start; }
.ticket-row .ticket { min-height: 232px; }
.steps { margin: 0; padding: 0 0 0 30px; display: grid; gap: 7px; font-size: 18px; color: var(--ink-3); }
.steps li { transition: color .3s, transform .3s var(--ease); }
.steps li.on { color: var(--ink); font-weight: 600; transform: translateX(6px); }
.steps li.on::marker { color: var(--green); }
.steps li.done { color: var(--ink-2); }

/* ---------- 7 · status codes ---------- */
.codes { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; margin-top: 6px; }
.code { position: relative; height: 310px; border: 0; background: transparent; padding: 0; perspective: 900px; }
.code b, .code .front, .code .back { pointer-events: none; }
.code .front, .code .back { position: absolute; inset: 0; border-radius: 12px; padding: 22px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; backface-visibility: hidden; transition: transform .6s var(--ease); border: 1px solid var(--line); background: var(--panel); }
.code .front { font-family: var(--head); font-size: 16.5px; font-weight: 700; padding-top: 130px; color: var(--ink-2); line-height: 1.2; }
.code .back { background: var(--panel-2); transform: rotateY(180deg); font-size: 15px; line-height: 1.3; font-weight: 600; gap: 10px; color: var(--ink); padding: 18px 12px; }
.code .back i { font-style: normal; font-weight: 400; color: var(--ink-2); font-size: 13.5px; }
.code .back i code { font-size: .9em; padding: 0 4px; }
.code b { position: absolute; left: 0; right: 0; top: 34px; z-index: 2; font-family: var(--mono); font-size: 46px; line-height: 1; letter-spacing: -.03em; transition: transform .6s var(--ease), opacity .3s; font-weight: 700; }
.code.ok b { color: var(--good); }
.code.warn b { color: var(--warn); }
.code.info b { color: var(--browser); }
.code.info .back { border-color: var(--browser); }
.code.bad b { color: var(--bad); }
.code.ok .back { border-color: var(--good); }
.code.warn .back { border-color: var(--warn); }
.code.bad .back { border-color: var(--bad); }
.code.flip .front { transform: rotateY(180deg); }
.code.flip .back { transform: rotateY(0); }
.code.flip b { opacity: 0; }
.code:hover .front { transform: translateY(-4px); }
.code.flip:hover .front { transform: rotateY(180deg); }

/* ---------- 8 · the game ---------- */
.game { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.game-card { padding: 30px 36px 28px; box-shadow: var(--shadow); min-height: 460px; display: flex; flex-direction: column; }
.game-card .dim { font-size: 15px; margin: 0 0 12px; font-family: var(--mono); }
.thing { font-family: var(--head); font-size: 44px; line-height: 1.15; font-weight: 700; margin: 0 0 auto; min-height: 150px; }
.game-btns { display: flex; gap: 18px; margin: 20px 0 18px; }
.choose { flex: 1; justify-content: center; font-size: 22px; padding: 18px 20px; gap: 12px; color: #fff; transition: background .25s, transform .2s var(--ease), box-shadow .2s, opacity .25s; }
.choose svg { width: 44px; height: 32px; }
.choose kbd { background: rgba(255, 255, 255, .18); border-radius: 5px; padding: 2px 9px; font-size: 14px; margin-left: 6px; }
.choose.browser { background: var(--browser); color: #06110a; }
.choose.server { background: var(--server); color: #06110a; }
.choose.right { box-shadow: 0 0 0 5px var(--green-soft), 0 0 24px var(--green); }
.choose.wrong { opacity: .3; }
.choose:disabled { transform: none; }
.game-why { margin: 0; font-size: 19px; color: var(--ink-2); line-height: 1.4; min-height: 60px; }
.game-why b { color: var(--ink); }
.game-why .hand { margin-right: 10px; }
.game-side { display: grid; gap: 22px; }
.score { display: flex; align-items: baseline; gap: 12px; padding: 14px 22px; }
.score b { font-family: var(--mono); font-size: 52px; line-height: 1; color: var(--green); }
.score .dim { font-size: 16px; font-family: var(--mono); }

/* ---------- 9 · four questions ---------- */
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 4px; }
.q { padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 330px; }
.q .n { font-family: var(--mono); font-size: 18px; color: var(--green); line-height: 1; font-weight: 700; }
.q b { font-family: var(--head); font-size: 34px; }
.q p { margin: 0; font-size: 18.5px; line-height: 1.4; color: var(--ink-2); flex: 1; }
.q i { font-style: normal; font-size: 15px; color: var(--server); font-weight: 600; border-top: 1px dashed var(--line-2); padding-top: 12px; font-family: var(--mono); }

/* ---------- 10 · database ---------- */
.pantry { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.pantry-left .why-list li { font-size: 21px; }
.pantry-right .ticket { min-height: 250px; font-size: 16px; }

/* ---------- 11 · act one ---------- */
.act { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: start; }
.prompt-card { border-color: var(--green); padding: 20px 26px 22px; box-shadow: 0 0 0 4px var(--green-soft); margin-bottom: 18px; }
.prompt-card .eyebrow { margin-bottom: 8px; }
.prompt { margin: 0; font-size: 20px; line-height: 1.45; color: var(--ink-2); }
.prompt em { font-style: normal; font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--green); }
.act-right { display: grid; gap: 30px; justify-items: center; }
.phone-test { padding: 26px 30px 22px; text-align: center; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.phone-test .l { width: 200px; height: 140px; justify-self: end; }
.phone-test .p { width: 70px; height: 126px; justify-self: start; }
.phone-test .arrows { font-size: 54px; color: var(--green); }
.phone-test .hand { grid-column: 1 / -1; font-size: 24px; margin-top: 6px; }
.phone-test p:last-child { grid-column: 1 / -1; margin: 0; font-size: 19px; color: var(--ink-2); }
.phone-test b { color: var(--ink); }
.act-right .note { width: 100%; }

/* ---------- 12 · network tab ---------- */
.devtools { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--code-bg); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-2); min-height: 470px; }
.dt-list { border-right: 1px solid var(--line); }
.dt-head, .dt-row { display: grid; grid-template-columns: 1fr 90px 90px 90px; gap: 10px; padding: 10px 16px; font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.dt-head { background: var(--panel); color: var(--ink-3); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.dt-row { border: 0; width: 100%; text-align: left; background: transparent; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.dt-row:hover { background: var(--panel); }
.dt-row.on { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--green); }
.dt-row .st { font-weight: 600; }
.dt-row .st.ok { color: var(--good); }
.dt-row .st.warn { color: var(--warn); }
.dt-row .st.bad { color: var(--bad); }
.dt-row .dimm { color: var(--ink-3); }
.dt-detail { padding: 18px 22px; color: var(--ink); font-size: 14.5px; line-height: 1.55; font-family: var(--mono); overflow: hidden; }
.dt-detail .hand { font-size: 22px; }
.dt-detail .dim { font-family: var(--sans); font-size: 18px; }
.dt-detail h4 { font-family: var(--sans); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin: 14px 0 6px; }
.dt-detail h4:first-child { margin-top: 0; }
.dt-detail .why { font-family: var(--sans); font-size: 16px; color: var(--ink-2); border-left: 3px solid var(--green); padding-left: 12px; margin-top: 14px; }
.dt-detail .k { color: #ff7b72; }
.dt-detail .s { color: #3fb950; }
.dt-detail .n { color: #d29922; }

/* ---------- 13 · the key ---------- */
.keyslide { display: grid; gap: 22px; }
.key-toggle { display: flex; gap: 4px; background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px; width: max-content; }
.pill { border: 0; background: transparent; border-radius: 6px; padding: 10px 22px; font-weight: 600; font-size: 17px; color: var(--ink-3); font-family: var(--mono); }
.pill.on { background: var(--panel-2); color: var(--green); }
.key-scene { display: grid; grid-template-columns: 220px 1fr 220px 1fr 220px; align-items: center; gap: 0; }
.k-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: opacity .4s, transform .4s var(--ease); }
.k-node svg { width: 120px; height: 90px; }
.k-node b { font-family: var(--head); font-size: 20px; }
.k-node.browser b { color: var(--browser); }
.k-node.server b { color: var(--server); }
.k-node.model b { color: var(--ink-2); }
.k-node.server.bypass { opacity: .25; transform: scale(.92); }
.k-key { position: absolute; right: 18px; top: -18px; width: 70px !important; height: 36px !important; transform: rotate(-25deg) scale(0); transition: transform .45s var(--ease); filter: drop-shadow(0 0 10px rgba(227, 179, 65, .6)); }
.k-key.show { transform: rotate(-25deg) scale(1); }
.k-arrow { position: relative; height: 4px; margin: 0 14px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 14px, transparent 14px 24px); transition: opacity .4s; }
.k-arrow span { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); background: var(--bg); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.k-arrow.off { opacity: .2; }
.k-arrow.direct { background: repeating-linear-gradient(90deg, var(--bad) 0 14px, transparent 14px 24px); }
.k-arrow.direct span { color: var(--bad); font-weight: 600; }
.key-devtools .eyebrow { margin-bottom: 8px; }
.key-devtools .eyebrow b { color: var(--bad); }
.key-devtools .ticket { min-height: 118px; font-size: 15px; }

/* ---------- 14 · .env ---------- */
.envgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.file .fname { margin: 0 0 6px; font-family: var(--mono); font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.file .tag { font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--bad); background: var(--bad-soft); border-radius: 5px; padding: 3px 10px; }
.file .tag.ok { color: var(--good); background: var(--green-soft); }
.file .ticket { font-size: 14.5px; min-height: 74px; }
.traps { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 26px; }

/* ---------- 15 · trust ---------- */
.trust { display: grid; grid-template-columns: 420px 1fr; gap: 34px; align-items: start; }
.orders { display: grid; gap: 12px; }
.order { text-align: left; padding: 16px 20px; display: grid; gap: 4px; transition: border-color .25s, transform .2s var(--ease), background .25s; }
.order:hover { transform: translateX(4px); }
.order.on { border-color: var(--server); background: var(--panel-2); box-shadow: inset 3px 0 0 var(--server); }
.order b { font-family: var(--mono); font-size: 18px; color: var(--ink); }
.order span { font-family: var(--mono); font-size: 14px; color: var(--ink-3); }
.order-detail { padding: 24px 28px; min-height: 380px; }
.order-detail h3 { font-family: var(--mono); font-size: 26px; margin-bottom: 8px; color: var(--server); }
.order-detail .said { font-size: 18.5px; color: var(--ink-2); margin: 0 0 18px; line-height: 1.4; }
.order-detail .said b { color: var(--ink); }
.order-detail .checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.order-detail .checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17.5px; line-height: 1.35; color: var(--ink-2); }
.order-detail .checks li b { color: var(--ink); }
.order-detail .checks .tick { width: 24px; height: 24px; font-size: 13px; }
.order-detail .ticket { font-size: 14px; }

/* ---------- 16 · attack hour ---------- */
.attack { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.rules { padding: 22px 26px 24px; }
.rules .hand { margin-bottom: 14px; }

/* ---------- 17 · leak drill ---------- */
.leak { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: start; }
.clock { background: var(--code-bg); color: var(--code-fg); border: 1px solid var(--line-2); border-radius: 12px; padding: 26px 24px; display: grid; gap: 8px; text-align: center; box-shadow: var(--shadow), inset 0 0 40px rgba(248, 81, 73, .08); }
.clock b { font-family: var(--mono); font-size: 72px; line-height: 1; color: var(--bad); letter-spacing: -.02em; text-shadow: 0 0 18px rgba(248, 81, 73, .5); }
.clock .dim { font-size: 15px; font-family: var(--mono); }
.drill { margin: 0; padding: 0 0 0 40px; display: grid; gap: 16px; font-size: 21px; line-height: 1.4; color: var(--ink-2); }
.drill li::marker { font-family: var(--mono); font-size: 20px; color: var(--green); font-weight: 700; }
.drill b { color: var(--ink); }
.drill em { font-style: normal; font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--green); }
.drill .dim-li { color: var(--ink-3); }
.drill .dim-li b { color: var(--ink-2); }

/* ---------- 18 · hosting ---------- */
.host { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 40px; align-items: start; }
.host-col { display: grid; gap: 14px; }
.host-col .eyebrow { margin-bottom: 4px; }
.decide .q3 { padding: 14px 18px; }
.decide .q3 b { display: block; font-family: var(--head); font-size: 22px; margin-bottom: 4px; }
.decide .q3 span { color: var(--ink-2); font-size: 16.5px; }
.decide .hand { text-align: center; margin-top: 6px; }

/* ---------- 19 · logs ---------- */
.logs { display: grid; grid-template-columns: 1fr 360px; gap: 34px; align-items: start; }
.logstream { margin: 0; background: var(--code-bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 0; box-shadow: var(--shadow); font-size: 13.8px; line-height: 1.6; overflow: hidden; }
.ln { display: grid; grid-template-columns: 96px 60px 1fr; gap: 12px; padding: 1px 18px; color: var(--ink-2); cursor: pointer; border: 0; background: transparent; width: 100%; text-align: left; font: inherit; }
.ln:hover { background: var(--panel); }
.ln .ts { color: var(--ink-3); }
.ln .lvl { font-weight: 600; }
.ln.info .lvl { color: var(--browser); }
.ln.warn .lvl { color: var(--warn); }
.ln.err .lvl { color: var(--bad); }
.ln.err { color: #ffb4b4; }
.ln.on { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--green); }
.ln.hit { background: var(--bad-soft); box-shadow: inset 3px 0 0 var(--bad); }
.ln.ctx { background: var(--amber-soft); }
.ln.stack { color: var(--ink-3); padding-left: 40px; }
.log-side { display: grid; gap: 22px; }
.log-explain { padding: 20px 24px; min-height: 200px; font-size: 17.5px; line-height: 1.45; color: var(--ink-2); }
.log-explain .hand { display: block; margin-bottom: 6px; }
.log-explain p { margin: 0 0 8px; }
.log-explain b { color: var(--ink); }

/* ---------- 20 · your report (mock browser) ---------- */
.report { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.report-mock { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.rm-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--code-bg); border-bottom: 1px solid var(--line); }
.rm-bar span { width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); }
.rm-bar i { font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin-left: 10px; background: var(--panel); border-radius: 6px; padding: 3px 12px; flex: 1; }
.rm-body { padding: 14px 18px; display: grid; gap: 10px; }
.rm-sec { display: grid; grid-template-columns: 230px 1fr; gap: 16px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--code-bg); }
.rm-sec b { font-family: var(--head); font-size: 19px; }
.rm-sec span { font-size: 15.5px; color: var(--ink-2); line-height: 1.35; }
.rm-sec.hi-sec { background: var(--green-soft); border-color: var(--green); }
.rm-sec.hi-sec b { color: var(--green); }
.rm-sec.frag { transform: translateX(-16px); }
.rm-sec.frag.on { transform: none; }

/* ---------- 21 · hand-in ---------- */
.handin { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* ---------- 22 · end ---------- */
.s-end { align-items: center; justify-content: center; text-align: center; }
.s-end h2 { font-size: 76px; }
.end-scene { display: flex; align-items: center; justify-content: center; gap: 44px; margin-bottom: 30px; }
.end-scene .e1 { width: 170px; height: 115px; }
.end-scene .e2 { width: 120px; height: 80px; }
.end-scene .e3 { width: 120px; height: 120px; }
.end-scene .e4 { width: 100px; height: 110px; }
.end-scene .e5 { width: 90px; height: 100px; }
.s-end .links { display: flex; gap: 14px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.s-end .btn { font-size: 17px; padding: 11px 20px; }
.s-end .hand { font-size: 26px; margin: 10px 0 0; }

/* ---------- chrome: status line, progress, notes, help ---------- */
.chrome { position: fixed; left: 0; right: 0; bottom: 0; height: 46px; z-index: 6; display: flex; align-items: center; justify-content: space-between; padding: 0 0 0 0; background: var(--code-bg); border-top: 1px solid var(--line-2); font-family: var(--mono); font-size: 13.5px; }
.chrome .plate { display: inline-flex; align-items: stretch; height: 100%; }
.chrome .plate > * { display: inline-flex; align-items: center; padding: 0 16px; border-right: 1px solid var(--line); }
.chrome .plate.right > * { border-right: 0; border-left: 1px solid var(--line); }
.chrome .mode { background: var(--green); color: #06110a; font-weight: 700; letter-spacing: .08em; }
.chrome #counter { color: var(--ink); font-weight: 600; }
.chrome .dim { color: var(--ink-3); }
.chrome .nav { display: flex; height: 100%; }
.chrome .nav button { width: 46px; height: 100%; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 16px; }
.chrome .nav button:hover { background: var(--panel-2); color: var(--green); }
#progress { position: fixed; left: 0; bottom: 46px; height: 3px; background: var(--green); width: 0; z-index: 6; transition: width .4s var(--ease); box-shadow: 0 0 10px var(--green); }

#notes { position: fixed; left: 50%; bottom: 62px; transform: translate(-50%, 20px); width: min(1100px, 90vw); background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 22px; font-size: 17px; line-height: 1.5; color: var(--ink-2); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: all .3s var(--ease); z-index: 20; }
#notes.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
#notes .eyebrow { margin-bottom: 6px; }

#help { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 30; }
#help.show { opacity: 1; visibility: visible; }
#help .card { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 30px 40px; min-width: 520px; box-shadow: var(--shadow); }
#help h3 { margin-bottom: 16px; }
#help table { border-collapse: collapse; font-size: 18px; color: var(--ink-2); }
#help td { padding: 6px 18px 6px 0; }
#help kbd { background: var(--code-bg); border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 8px; font-size: 15px; color: var(--green); }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 25; }

/* static mode (screenshots / print) */
html.static .rise, html.static .frag { opacity: 1; transform: none; animation: none; }
html.static .slide { transition: none; }
html.static .hl::before { transform: scaleX(1); animation: none; }
html.static .hot::after { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .rise, .frag { transition: none; animation: none; opacity: 1; transform: none; }
  .slide { transition: none; }
  .hot::after { animation: none; }
}

.s-status .row-btns { margin-top: 22px; align-items: center; }
.s-status .row-btns .btn { font-size: 15px; padding: 9px 16px; }
