/* Game layer, quiz, teacher cockpit and "your journey". Builds on guide.css tokens. */

/* ---------- Game HUD + XP pops ---------- */
#hud { position: fixed; right: 16px; top: 16px; z-index: 30; display: flex; align-items: center; gap: 14px; padding: .45rem .55rem .45rem 1rem; border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 550; color: var(--ink2);
  background: color-mix(in srgb, var(--panel) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--hi), 0 0 0 1px var(--line), 0 12px 28px -18px rgba(31, 46, 42, .4); }
#hud .lv { position: relative; overflow: hidden; padding: .3rem .8rem; border-radius: 999px; background: var(--ink); color: var(--bg); }
#hud .lv i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--good); }
body.presenting #hud, body.online #hud, body.online .deck-tools, body.online .reveal .controls { display: none !important; }
.xp-pop { position: fixed; left: 50%; top: 84px; z-index: 60; transform: translateX(-50%); padding: .55rem 1.1rem; border-radius: 999px; background: var(--good); color: #fff; font-weight: 650; font-size: .95rem; pointer-events: none;
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--good) 70%, transparent); animation: xpUp 1.7s var(--ease) forwards; }
.xp-pop.big { background: var(--ink); color: var(--bg); font-size: 1.15rem; padding: .8rem 1.4rem; animation-duration: 2.6s; }
@keyframes xpUp { 0% { opacity: 0; transform: translate(-50%, 16px) scale(.9); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -26px); } }
.confetti { position: absolute; width: 12px; height: 18px; border-radius: 3px; pointer-events: none; animation: conf 1.3s var(--ease) forwards; }
@keyframes conf { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* ---------- Quiz (deck canvas sizes) ---------- */
.qz { position: relative; display: flex; flex-direction: column; gap: 22px; flex: 1; min-height: 0; }
.qz-top { display: flex; justify-content: space-between; align-items: center; }
.qz-dots { display: flex; gap: 6px; }
.qz-dots i { width: 34px; height: 6px; border-radius: 3px; background: var(--line); }
.qz-dots i.on { background: var(--c); }
.qz-dots i.done { background: color-mix(in srgb, var(--c) 45%, var(--line)); }
.qz-q { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.qz-a { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qz-a button { display: flex; align-items: center; gap: 18px; text-align: left; padding: 20px 22px; border: 0; border-radius: 20px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); font-size: 26px; transition: transform .5s var(--spring), box-shadow .3s var(--ease), background .3s var(--ease); }
.qz-a button:hover:not(:disabled) { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--c); }
.qz-a button b { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); font-family: var(--mono); }
.qz-a button.right { background: color-mix(in srgb, var(--good) 16%, var(--panel)); box-shadow: inset 0 0 0 2px var(--good); }
.qz-a button.right b { background: var(--good); color: #fff; }
.qz-a button.wrong { background: color-mix(in srgb, var(--bad) 14%, var(--panel)); box-shadow: inset 0 0 0 2px var(--bad); animation: shake .45s; }
.qz-a button:disabled { cursor: default; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(7px); } 75% { transform: translateX(-4px); } }
.qz-why { font-size: 24px; line-height: 1.4; padding: 16px 20px; border-radius: 18px; background: var(--bg2); }
.qz-end { margin: auto; text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.qz-end .big-num { font-size: 120px; }

/* ---------- Teacher cockpit ---------- */
.ck-body { height: 100vh; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.ck-top { position: relative; z-index: 2; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .7rem 1rem; margin: .7rem .7rem 0; border-radius: 22px; background: color-mix(in srgb, var(--panel) 85%, transparent); box-shadow: var(--hi), 0 0 0 1px var(--line), 0 14px 30px -24px rgba(31, 46, 42, .4); }
.ck-top select, .ck-side input, .ck-side select, .ck-side textarea { background: var(--panel); border: 0; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); border-radius: 12px; padding: .5rem .7rem; font: inherit; font-size: .9rem; min-width: 0; }
.ck-top select { border-radius: 999px; padding: .55rem .9rem; font-weight: 550; }
.conn { display: inline-flex; align-items: center; gap: .45em; font-size: .82rem; color: var(--ink3); white-space: nowrap; }
.conn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.conn.on { color: var(--good); }
.conn.on::before { background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 22%, transparent); }
.timer { display: flex; align-items: center; gap: .55rem; padding: .3rem .4rem .3rem .9rem; border-radius: 999px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); font-size: .8rem; color: var(--ink3); }
.timer .t { font-family: var(--mono); font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; min-width: 4.2ch; color: var(--ink); }
.timer .bar { width: 90px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.timer .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s var(--ease), background .3s; }
.timer input { width: 3.4em; text-align: center; padding: .3rem; border-radius: 8px; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--panel); color: var(--ink); font: inherit; }
.timer.warn .bar i { background: var(--warn); }
.timer.over .bar i { background: var(--bad); }
.timer.over .t { color: var(--bad); }
.ck-top .grow { flex: 1; }
.ck { display: grid; grid-template-columns: 270px 1fr 370px; gap: .9rem; padding: .9rem; min-height: 0; }
.ck > * { min-height: 0; overflow: auto; border-radius: 22px; background: var(--panel); box-shadow: var(--hi), 0 0 0 1px var(--line); }
.ck-list { padding: .6rem; }
.ck-list button { display: flex; gap: .7rem; width: 100%; text-align: left; align-items: baseline; padding: .55rem .7rem; border: 0; border-radius: 12px; background: transparent; color: var(--ink2); font-size: .92rem; transition: background .35s var(--ease); }
.ck-list button:hover { background: var(--panel2); }
.ck-list button.on { background: var(--ink); color: var(--bg); }
.ck-list button small { font-family: var(--mono); font-size: .72rem; opacity: .6; min-width: 1.8em; }
.ck-main { display: flex; flex-direction: column; padding: 1.4rem 1.6rem 1rem; gap: 1rem; }
.ck-main h1 { margin: .2rem 0 0; font-size: 2rem; letter-spacing: -.04em; font-weight: 650; line-height: 1.1; }
.ck-main .take { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.2; color: var(--ink2); }
.cues { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.cue { padding: .9rem 1.1rem; border-radius: 16px; background: var(--bg2); font-size: 1.08rem; line-height: 1.5; }
.cue b { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .3rem; }
.cue.say { grid-column: 1 / -1; background: color-mix(in srgb, var(--good) 9%, var(--panel)); font-size: 1.22rem; }
.cue.say b { color: var(--good); }
.cue.dont { background: color-mix(in srgb, var(--bad) 8%, var(--panel)); }
.cue.dont b { color: var(--bad); }
.cue.ana b { color: var(--accent); }
.cue.ask b { color: #2f7fb5; }
.cue.try b { color: var(--warn); }
.mynotes { width: 100%; min-height: 110px; resize: vertical; font: inherit; font-size: 1rem; line-height: 1.5; padding: .9rem 1rem; border: 0; border-radius: 16px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.mynotes:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.ck-nav { position: sticky; bottom: 0; display: flex; gap: .7rem; align-items: center; padding-top: .8rem; margin-top: auto; background: linear-gradient(transparent, var(--panel) 30%); }
.ck-nav .btn { font-size: 1.05rem; padding: .85em 1.6em; }
.ck-nav .up { margin-left: auto; text-align: right; font-size: .85rem; color: var(--ink3); max-width: 45%; }
.ck-nav .up b { display: block; color: var(--ink); font-size: 1rem; font-weight: 600; }
.ck-side { padding: .8rem 1rem 1rem; }
.ck-side .tabs { margin: 0 0 1rem; }
.ck-side .tabs button { padding: .45rem .8rem; font-size: .86rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ck-side form { display: grid; gap: .5rem; margin-bottom: 1rem; }
.ev, .todo { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .2rem; border-top: 1px solid var(--line); font-size: .92rem; }
.ev .when { flex: none; text-align: center; min-width: 54px; padding: .35rem .3rem; border-radius: 12px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--mono); font-size: .72rem; line-height: 1.3; }
.ev .when b { display: block; font-size: 1.15rem; font-family: var(--font); }
.ev.today .when { background: var(--ink); color: var(--bg); }
.ev.past { opacity: .55; }
.ev .acts { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .4rem; }
.ev .acts .btn, .todo .btn { padding: .3em .7em; font-size: .78rem; }
.todo input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.todo.done span { text-decoration: line-through; color: var(--ink3); }
.todo span { flex: 1; }
.steps { margin: 0 0 1rem; padding-left: 1.2rem; line-height: 1.6; font-size: .93rem; color: var(--ink2); }
.steps b { color: var(--ink); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-radius: 16px; background: var(--panel2); margin-bottom: .8rem; font-weight: 550; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--accent); }
body.mini .ck { grid-template-columns: 1fr; padding: .5rem; }
body.mini .ck-list, body.mini .ck-side, body.mini .hide-mini { display: none !important; }
body.mini .cues { grid-template-columns: 1fr; }
body.mini .ck-main { padding: 1rem; }
@media (max-width: 1100px) { .ck { grid-template-columns: 220px 1fr; } .ck-side { grid-column: 1 / -1; } .ck-body { height: auto; overflow: visible; } }
@media (max-width: 700px) { .ck { grid-template-columns: 1fr; } .cues { grid-template-columns: 1fr; } }

/* ---------- Home: your journey ---------- */
.journey { display: grid; grid-template-columns: auto 1fr; gap: 2.2rem; align-items: center; }
.ring { --p: 0; width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }
.ring > div { width: 114px; height: 114px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; text-align: center; line-height: 1.15; font-size: .8rem; color: var(--ink3); }
.ring b { font-size: 2.3rem; letter-spacing: -.04em; display: block; color: var(--ink); }
.stats { display: flex; gap: 2.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.stats div { font-size: .82rem; color: var(--ink3); }
.stats b { display: block; font-size: 1.7rem; color: var(--ink); letter-spacing: -.03em; font-weight: 650; }
.badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.badges span { padding: .45rem .85rem; border-radius: 999px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); font-size: .85rem; }
.badges span.off { opacity: .4; filter: grayscale(1); }
.mod .prog { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: .55rem; }
.mod .prog i { display: block; height: 100%; background: var(--c); }
@media (max-width: 700px) { .journey { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- Wave 3 widgets (deck canvas sizes) ---------- */
.sim-mock { min-height: 0; }
.sim-ring { position: absolute; border: 3px solid var(--c); border-radius: 14px; pointer-events: none; animation: ring 1.6s var(--ease) infinite; z-index: 4; }
.sim-ring .marker { position: absolute; right: -18px; bottom: -18px; background: var(--panel); color: var(--ink); font-size: 20px; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }
.sim-mock [data-click] { cursor: pointer; }
.sim-dots { display: flex; gap: 6px; } .sim-dots i { width: 26px; height: 6px; border-radius: 3px; background: var(--line); } .sim-dots i.on { background: var(--c); } .sim-dots i.done { background: color-mix(in srgb, var(--c) 45%, var(--line)); }
.calc { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; flex: 1; min-height: 0; }
.calc-in { display: flex; flex-direction: column; gap: 22px; }
.calc-in label { display: flex; flex-direction: column; gap: 8px; font-size: 23px; color: var(--ink2); }
.calc-in label span b { color: var(--ink); font-family: var(--mono); }
.calc-in select { font: inherit; font-size: 22px; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.calc-out { border-radius: 24px; background: color-mix(in srgb, var(--c) 7%, var(--panel2)); box-shadow: inset 0 0 0 1px var(--line); padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; justify-content: center; font-size: 24px; line-height: 1.4; }
.calc-out .big-num { font-size: 76px; }
.verdict { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; font-weight: 650; font-size: 24px; width: max-content; }
.verdict.ok { background: color-mix(in srgb, var(--good) 15%, var(--panel)); color: var(--good); }
.verdict.mid { background: color-mix(in srgb, var(--warn) 16%, var(--panel)); color: var(--warn); }
.verdict.no { background: color-mix(in srgb, var(--bad) 14%, var(--panel)); color: var(--bad); }
.mx-wrap { flex: 1; min-height: 0; overflow: auto; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.mx { width: 100%; border-collapse: collapse; font-size: 19px; }
.mx th, .mx td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.mx thead th { position: sticky; top: 0; background: var(--panel2); font-size: 16px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink3); font-weight: 600; z-index: 1; }
.mx tbody th { font-weight: 650; white-space: nowrap; }
.mx.dense { font-size: 17px; } .mx.dense th, .mx.dense td { padding: 6px 12px; } .mx.dense thead th { font-size: 14px; }
.mx tbody tr { cursor: pointer; transition: background .3s var(--ease); }
.mx tbody tr:hover, .mx tbody tr.on { background: color-mix(in srgb, var(--c) 8%, transparent); }
.mx tbody tr.on th { box-shadow: inset 4px 0 0 var(--c); }
.mx .ok { filter: hue-rotate(0); } .mx .no { opacity: .7; }
.gal { display: grid; gap: 14px; flex: 1; min-height: 0; overflow: auto; align-content: start; }
.gal-t { position: relative; display: flex; gap: 14px; align-items: center; text-align: left; padding: 16px 18px; border: 0; border-radius: 18px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); animation: pop .5s var(--spring) backwards; transition: transform .5s var(--spring), box-shadow .3s var(--ease); }
.gal-t:hover { transform: translateY(-3px); }
.gal-t.on { box-shadow: inset 0 0 0 2px var(--c); background: color-mix(in srgb, var(--c) 8%, var(--panel)); }
.gal-ic { flex: none; font-size: 36px; }
.gal-t b { display: block; font-size: 23px; letter-spacing: -.02em; }
.gal-t small { display: block; color: var(--ink3); font-size: 18px; margin-top: 2px; line-height: 1.3; }
.gal-tag { position: absolute; top: 10px; right: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--c); font-weight: 650; }
.term { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #0f1513; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #1b2420; color: #8aa096; font-size: 17px; font-family: var(--mono); }
.term-bar i { width: 13px; height: 13px; border-radius: 50%; background: #ee8a68; } .term-bar i:nth-child(2) { background: #e3ad4f; } .term-bar i:nth-child(3) { background: #5fd09a; }
.term-bar span { margin-left: 10px; }
.term-body { flex: 1; margin: 0; padding: 18px 22px; overflow: auto; font-family: var(--mono); font-size: 22px; line-height: 1.55; color: #e9f0ea; white-space: pre-wrap; }
.term-body .ps { color: #5fd09a; } .term-body .out { color: #b8c6bf; } .term-body .cm { color: #85968e; font-style: italic; }
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.chat-top { padding: 14px 20px; font-weight: 650; font-size: 21px; background: var(--panel); box-shadow: 0 1px 0 var(--line); }
.chat-body { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 78%; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--panel); box-shadow: 0 1px 0 var(--line); font-size: 22px; line-height: 1.4; animation: pop .4s var(--spring) backwards; }
.bub.me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: color-mix(in srgb, var(--c) 16%, var(--panel)); }
.bub.tool { align-self: center; background: transparent; box-shadow: none; font-family: var(--mono); font-size: 17px; color: var(--ink3); padding: 4px 10px; }
.bub.typing { display: flex; gap: 6px; padding: 16px 18px; } .bub.typing i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink3); animation: pulse 1s infinite; } .bub.typing i:nth-child(2) { animation-delay: .15s; } .bub.typing i:nth-child(3) { animation-delay: .3s; }
.chat.wa { background: #efe7dc; } .chat.wa .chat-top { background: #075e54; color: #fff; } .chat.wa .bub { background: #fff; color: #111; } .chat.wa .bub.me { background: #d9fdd3; }
:root[data-theme="dark"] .chat.wa { background: #0b141a; } :root[data-theme="dark"] .chat.wa .bub { background: #202c33; color: #e9edef; } :root[data-theme="dark"] .chat.wa .bub.me { background: #005c4b; }

/* ---------- Fake-UI kit: compose app screens inside hotspots / sim (always light, like real apps) ---------- */
.ui { position: absolute; inset: 0; display: grid; grid-template-columns: var(--side, 230px) 1fr; grid-template-rows: 56px 1fr; background: #fff; color: #1f1f1f; font: 500 20px/1.35 var(--font); text-align: left; }
.ui.noside { grid-template-columns: 1fr; }
.ui.dark { background: #1e1f22; color: #e6e6e6; }
.ui-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid #e6e6e6; background: #fff; }
.ui.dark .ui-top { background: #2b2d31; border-color: #3a3c40; }
.ui-side { display: flex; flex-direction: column; gap: 4px; padding: 12px 10px; background: #f6f6f7; border-right: 1px solid #ececec; overflow: hidden; }
.ui.dark .ui-side { background: #232428; border-color: #3a3c40; }
.ui-main { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; overflow: hidden; min-width: 0; }
.ui-item { padding: 8px 10px; border-radius: 9px; font-size: 18px; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-item.on { background: #e7e7ea; font-weight: 650; } .ui.dark .ui-item.on { background: #3a3c42; }
.ui-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 9px; background: #f0f0f2; font-size: 17px; font-weight: 600; white-space: nowrap; }
.ui.dark .ui-btn { background: #3a3c42; }
.ui-btn.pri { background: #1f1f1f; color: #fff; } .ui-btn.blue { background: #1a73e8; color: #fff; } .ui-btn.green { background: #1f883d; color: #fff; } .ui-btn.orange { background: #d97757; color: #fff; } .ui-btn.purple { background: #7c5cff; color: #fff; }
.ui-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #dcdcdf; border-radius: 16px; color: #8a8a8f; background: #fff; font-size: 19px; }
.ui.dark .ui-input { background: #2b2d31; border-color: #45474c; color: #9a9ba0; }
.ui-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #eef0f4; font-size: 15px; font-weight: 600; }
.ui.dark .ui-chip { background: #3a3c42; }
.ui-msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: #f1f1f3; font-size: 18px; } .ui-msg.me { align-self: flex-end; background: #e3ebff; }
.ui.dark .ui-msg { background: #2b2d31; } .ui.dark .ui-msg.me { background: #2f3b5a; }
.ui-panel { border: 1px solid #e6e6e6; border-radius: 12px; padding: 12px 14px; background: #fff; }
.ui.dark .ui-panel { border-color: #3a3c40; background: #26272b; }
.ui-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ui-dim { color: #8a8a8f; font-size: 16px; }
.ui-h { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.ui-code { font-family: var(--mono); background: #0d1117; color: #c9d1d9; border-radius: 9px; padding: 10px 12px; font-size: 17px; line-height: 1.5; white-space: pre; overflow: hidden; }
.ui-tabs { display: flex; gap: 20px; border-bottom: 1px solid #e6e6e6; font-size: 18px; } .ui-tabs span { padding: 8px 0; } .ui-tabs .on { border-bottom: 2px solid #fd8c73; font-weight: 700; }
.ui-logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-weight: 800; font-size: 16px; color: #fff; background: #1f1f1f; }
.ui-grow { flex: 1; }
.ui-slider { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #1a73e8 var(--v, 50%), #dcdcdf 0); }


/* ---------- Hype opener, tool trading cards, wow stats ---------- */
.hype { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.05fr 1fr; grid-template-rows: 1fr auto; gap: 24px 30px; }
.hype.novid { grid-template-columns: 1fr; }
.hq { margin: 0; align-self: center; }
.hq blockquote { margin: 0 0 18px; font-family: var(--serif); font-style: italic; font-size: 46px; line-height: 1.12; letter-spacing: -.015em; color: var(--ink); position: relative; }
.hq blockquote::before { content: ""; display: block; width: 64px; height: 5px; border-radius: 3px; background: var(--c); margin-bottom: 22px; }
.hq figcaption { font-size: 21px; color: var(--ink2); }
.hv { align-self: center; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 24px 50px -26px rgba(0,0,0,.55); cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform 1s var(--ease), opacity .4s; }
.yt:hover img { transform: scale(1.04); opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: rgba(255,255,255,.92); color: #111; font-size: 34px; padding-left: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .5s var(--spring); }
.yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.yt-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 12px; text-align: left; color: #fff; font-size: 18px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
iframe.yt { cursor: auto; }
.ho { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px 20px; border-radius: 20px; background: color-mix(in srgb, var(--c) 7%, var(--panel2)); }
.ho ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 22px; }
.ho li { animation: pop .6s var(--spring) backwards; }
.tcs { flex: 1; min-height: 0; display: grid; gap: 24px; justify-content: center; align-items: stretch; }
.tc { background: none; border: 0; padding: 0; min-height: 0; animation: deal .8s var(--spring) backwards; }
@keyframes deal { from { transform: translateY(60px) rotate(-6deg) scale(.9); opacity: 0; } }
.tc .f, .tc .bk { text-align: left; justify-content: flex-start; border-radius: 26px; padding: 18px 22px; gap: 8px; overflow: hidden; }
.tc-f { background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 16%, var(--panel)) 0%, var(--panel) 55%) !important; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--tc) 55%, transparent), 0 20px 40px -24px rgba(0,0,0,.4) !important; }
.tc-f::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 45%, transparent 60%); transform: translateX(-120%); transition: transform 1.1s var(--ease); pointer-events: none; }
.tc:hover .tc-f::after { transform: translateX(120%); }
.tc-b { background: color-mix(in srgb, var(--tc) 10%, var(--panel)); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--tc) 55%, transparent); font-size: 20px; line-height: 1.35; }
.tc-b p { margin: 0 0 6px; }
.tc-why { font-size: 23px; font-weight: 600; }
.tc-top { display: flex; align-items: center; gap: 14px; }
.tc-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--tc); color: #fff; font-size: 34px; flex: none; box-shadow: 0 8px 18px -8px var(--tc); }
.tc-top b { display: block; font-size: 27px; letter-spacing: -.03em; line-height: 1.1; }
.tc-top small { color: var(--ink3); font-size: 17px; }
.tc-what { margin: 2px 0 0; font-size: 20px; line-height: 1.3; color: var(--ink2); }
.tc-jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 18px; line-height: 1.3; }
.tc-jobs li::before { content: "→ "; color: var(--tc); font-weight: 700; }
.tc-stats { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.tc-stat { display: grid; grid-template-columns: 76px 1fr; align-items: center; font-size: 16px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink3); }
.tc-stat i { display: flex; gap: 5px; } .tc-stat b { flex: 1; height: 9px; border-radius: 5px; background: var(--line); } .tc-stat b.on { background: var(--tc); }
.tc-hint { position: absolute; right: 18px; top: 16px; font-size: 15px; color: var(--ink3); }
.wow { flex: 1; min-height: 0; display: grid; gap: 22px; align-items: center; }
.wow-i { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 20px; border-radius: 26px; background: color-mix(in srgb, var(--c) 6%, var(--panel2)); animation: pop .7s var(--spring) backwards; }
.wow-i .big-num { font-size: 96px; letter-spacing: -.05em; }
.wow-ic { font-size: 46px; }
.wow-l { font-size: 25px; line-height: 1.3; font-weight: 550; }
.wow-s { font-size: 16px; }
.wow.two .wow-i { position: relative; padding: 14px 18px; gap: 4px; } .wow.two .big-num { font-size: 68px; } .wow.two .wow-ic { position: absolute; top: 12px; left: 16px; font-size: 30px; } .wow.two .wow-l { font-size: 22px; } /* 2 rows of stats must fit the stage */


/* ---------- Manual vs AI race ---------- */
.rc-lane { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px; border-radius: 18px; background: var(--panel2); }
.rc-head { display: flex; justify-content: space-between; font-size: 23px; }
.rc-time { font-family: var(--mono); font-size: 26px; font-weight: 600; }
.rc-a .rc-time { color: var(--c); }
.rc-track { position: relative; height: 34px; border-radius: 17px; background: var(--line); }
.rc-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 17px; background: color-mix(in srgb, var(--ink3) 45%, transparent); }
.rc-a .rc-fill { background: var(--c); }
.rc-run { position: absolute; top: -4px; left: 0; font-size: 34px; line-height: 1; }
.rc-flag { position: absolute; right: -6px; top: -6px; font-size: 30px; }
.rc-steps { display: flex; gap: 8px 18px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 18px; color: var(--ink3); counter-reset: s; }
.rc-steps li { counter-increment: s; transition: color .3s, opacity .3s; opacity: .45; }
.rc-steps li::before { content: counter(s) ". "; font-family: var(--mono); }
.rc-steps li.on { color: var(--ink); opacity: 1; }
.rc-lane.done .rc-time::after { content: " ✓"; }
.rc-res { font-size: 26px; }
