/* RTU Innovation Sprint — interface styles */
:root {
  --brand: #a8246f;
  --brand-dark: #7d1a55;
  --brand-deep: #4a0d33;
  --magenta: var(--brand);
  --ink: #17121a;
  --mute: #6b5f67;
  --line: #e7dde3;
  --line-strong: #d3c5cd;
  --blush: #f8e9f1;
  --surface: #fff;
  --page: #f6f1f4;
  --good: #1f8a5b;
  --bad: #c0362c;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(40, 10, 30, .05), 0 8px 28px rgba(40, 10, 30, .07);
  --cut: 28px;
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: clip; font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.ico { display: inline-block; flex: none; vertical-align: -0.2em; }

/* quiet angular backdrop */
.bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bg i { position: absolute; background: rgba(168, 36, 111, .045); }
.bg i:nth-child(1) { width: 48vmax; height: 60vmax; left: -14vmax; top: -8vmax; clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%); }
.bg i:nth-child(2) { width: 42vmax; height: 46vmax; right: -12vmax; bottom: -14vmax; clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%); }
.bg i:nth-child(3) { display: none; }

#app { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 0 20px 56px; }

/* app bar */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 calc(50% - 50vw) 28px; padding: 10px max(20px, calc(50vw - 430px)); background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; line-height: 1.2; }
.brand small { display: block; font-weight: 500; font-size: 12px; color: var(--mute); letter-spacing: 0; }
.logo { width: 44px; height: 44px; object-fit: contain; display: block; }
.tagline { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.hud { display: flex; align-items: center; gap: 14px; }
.steps { display: flex; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; width: 24px; height: 24px; margin-left: 12px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; color: var(--mute); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.steps li:first-child { margin-left: 0; }
.steps li + li::before { content: ''; position: absolute; right: 100%; top: 50%; width: 12px; height: 1.5px; background: var(--line-strong); margin-right: 1.5px; }
.steps li.done { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps li.done + li::before { background: var(--brand); }
.steps li.now { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 4px rgba(23, 18, 26, .1); }
.clock { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink); background: #fff; white-space: nowrap; }
.clock .ico { color: var(--brand); }

/* type */
h1 { font-size: clamp(42px, 8vw, 76px); line-height: .96; margin: 10px 0 18px; letter-spacing: -.03em; }
h2 { font-size: clamp(26px, 4.4vw, 34px); line-height: 1.1; margin: 4px 0 12px; letter-spacing: -.02em; }
h3 { font-size: clamp(17px, 2.6vw, 20px); line-height: 1.3; margin: 3px 0 0; letter-spacing: -.01em; }
h4 { margin: 0 0 8px; font-size: 14px; }
.kicker { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.kicker.dark { color: var(--brand); }
.lead { font-size: clamp(17px, 2.4vw, 20px); line-height: 1.5; max-width: 34em; margin: 0 0 24px; }
.lead.dark { color: var(--mute); font-size: 16px; margin-bottom: 16px; }
.fine { color: var(--mute); font-size: 13.5px; text-align: center; margin-top: 18px; }
.fine.dark { text-align: left; }
.lbl { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin: 18px 0 8px; }
.chip { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 3.6vw, 30px); margin-bottom: 18px; animation: rise .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero { position: relative; overflow: hidden; color: #fff; padding: clamp(26px, 5.5vw, 52px); background: linear-gradient(150deg, var(--brand), var(--brand-dark) 62%, var(--brand-deep)); box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: end; animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.hero::before { content: ''; position: absolute; right: -8%; top: -30%; width: 46%; height: 150%; background: rgba(255, 255, 255, .06); clip-path: polygon(38% 0, 100% 0, 62% 100%, 0 100%); }
.hero > * { position: relative; }
.hero.result { grid-template-columns: 1fr auto; align-items: center; margin-bottom: 18px; }
.facts { list-style: none; display: flex; gap: 22px; padding: 0; margin: 30px 0 0; font-size: 13px; color: rgba(255, 255, 255, .85); }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts b { color: #fff; font-size: 16px; }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.how li { display: flex; gap: 12px; padding: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; }
.how b { display: block; font-size: 15px; }
.how span:not(.badge) { font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .82); }
.how .badge { background: #fff; color: var(--brand); }

.badge { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--brand); color: #fff; border-radius: 8px; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); }
.badge.ink { background: var(--ink); }
.badge.sm { width: 32px; height: 32px; background: var(--blush); color: var(--brand); border-radius: 6px; clip-path: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; background: var(--ink); color: #fff; font-weight: 700; padding: 12px 20px; font-size: 15px; border-radius: 6px;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%); transition: transform .12s, background .15s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); background: var(--brand); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.big { padding: 16px 26px; font-size: 17px; }
.btn.light { background: #fff; color: var(--brand); }
.btn.light:hover:not(:disabled) { background: var(--ink); color: #fff; }
.btn.ghost { background: var(--blush); color: var(--brand); padding: 9px 14px; font-size: 14px; width: 100%; clip-path: none; }
.btn.ghost:hover:not(:disabled) { background: var(--brand); color: #fff; }
.btn .ico { transition: transform .15s; }
.btn:hover:not(:disabled) > .ico:last-child { transform: translateX(3px); }
.btn .sec { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 13px; font-weight: 500; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.hero :focus-visible { outline-color: #fff; }

/* form */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
label.wide { grid-column: 1 / -1; margin-bottom: 14px; }
.fields label.wide { margin-bottom: 0; }
input:not([type=radio]):not([type=checkbox]):not([type=range]), select, textarea { border: 1.5px solid var(--line-strong); background: #fff; padding: 11px 12px; font-size: 16px; font-weight: 400; border-radius: 6px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(168, 36, 111, .14); outline: 0; }
::placeholder { color: #a99ca4; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { border: 1.5px solid var(--line-strong); border-radius: 6px; padding: 13px; text-align: center; font-size: 15px; cursor: pointer; transition: all .15s; }
.seg span:hover { border-color: var(--brand); }
.seg input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--mute); margin-bottom: 20px; }
.consent input { margin-top: 3px; accent-color: var(--brand); }

/* mission briefing + map */
.map, .scene { background: #fbf8fa; border: 1px solid var(--line); border-radius: 8px; line-height: 0; overflow: hidden; }
.map canvas { cursor: pointer; display: block; }
.scene canvas { display: block; touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.briefing { padding-top: 22px; }
.mhead { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.mhead h2 { margin: 2px 0 0; }
.task { display: flex; gap: 10px; align-items: flex-start; background: var(--blush); border-radius: 8px; padding: 13px 15px; margin: 0 0 22px; font-size: 15.5px; line-height: 1.45; }
.task .ico { color: var(--brand); margin-top: 2px; }

/* play header + ring timer */
.phead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.phead .pt { flex: 1; min-width: 0; }
.timer { position: relative; flex: none; width: 58px; height: 58px; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 4; }
.timer .tr { stroke: var(--blush); }
.timer .tp { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 119.4; transition: stroke-dashoffset .12s linear; }
.timer b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.timer.hot .tp { stroke: var(--bad); }
.timer.hot b { color: var(--bad); animation: beat .5s infinite alternate; }
@keyframes beat { to { transform: scale(1.15); } }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.count { color: var(--mute); font-size: 14px; }
.count b { color: var(--ink); }
.key { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; margin: 0 3px 0 10px; }
.key.mag { background: var(--brand); } .key.ink { background: var(--ink); }

/* notebook */
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-height: 60px; }
.notes em { grid-column: 1 / -1; color: var(--mute); font-size: 14px; line-height: 1.5; font-style: normal; }
.note { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; text-align: left; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; padding: 10px 12px; font-size: 13.5px; line-height: 1.35; transition: border-color .12s, background .12s; }
.note > .ico { color: var(--brand); }
.note u { text-decoration: none; font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); border: 1.5px solid currentColor; border-radius: 999px; padding: 3px 9px; }
.note:hover { border-color: var(--brand); }
.note.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.note.on > .ico { color: #fff; }
.note.on u { color: var(--brand); background: #fff; border-color: #fff; }

/* tiles + chips */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tile { text-align: left; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; padding: 13px; font-size: 14px; line-height: 1.35; display: flex; flex-direction: column; gap: 4px; color: var(--mute); transition: transform .12s, border-color .12s, background .12s; }
.tile strong { color: var(--ink); font-size: 15px; }
.tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.tile.on { background: var(--brand); border-color: var(--brand); color: rgba(255, 255, 255, .85); }
.tile.on strong { color: #fff; }
.ideas { min-height: 78px; max-height: 150px; overflow: auto; background: #fbf8fa; border: 1px dashed var(--line-strong); border-radius: 8px; padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.ideas em { color: var(--mute); font-size: 14px; font-style: normal; }
.idea { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.idea .ico { color: var(--brand); }
.idea i, .opt i { font-style: normal; color: var(--brand); }
.opt.on i { color: #fff; }
.pop { animation: pop .3s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.7); } }
.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* options */
.opts { display: grid; gap: 10px; }
.opt { position: relative; text-align: left; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; padding: 14px 16px 14px 46px; font-size: 15.5px; line-height: 1.4; transition: border-color .12s, background .12s, transform .12s; }
.opt::before { content: ''; position: absolute; left: 16px; top: 16px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: all .12s; }
.opt:hover:not(:disabled) { border-color: var(--brand); transform: translateX(3px); }
.opt:hover:not(:disabled)::before { border-color: var(--brand); }
.opt.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.opt.on::before { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 3.5px var(--brand); }
.opt:disabled:not(.on) { opacity: .45; cursor: default; }
.opt small { color: var(--mute); }
.incident { border-top: 4px solid var(--ink); }

/* chat */
.chat { background: #fbf8fa; border: 1px solid var(--line); border-radius: 8px; padding: 14px; height: 210px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.bub { max-width: 82%; padding: 10px 14px; font-size: 15px; line-height: 1.4; border-radius: 14px; }
.bub b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.bub.them { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.bub.me { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.patience i { width: 22px; height: 6px; border-radius: 3px; background: var(--brand); transition: background .3s; }
.patience i.off { background: var(--line); }

/* sprint */
.sprint { user-select: none; -webkit-user-select: none; }
.tray { background: #fbf8fa; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px 12px; margin-bottom: 12px; position: sticky; top: 70px; z-index: 3; }
.tray .lbl { margin: 0 0 8px; }
.tokens { display: flex; flex-wrap: wrap; gap: 6px; min-height: 48px; align-items: flex-start; }
.station .tokens { border: 1.5px dashed var(--line); border-radius: 6px; padding: 5px; min-height: 58px; transition: border-color .15s, background .15s; }
.station .tokens:empty::before { content: 'Drop a teammate here'; margin: auto; font-size: 12px; color: #b3a6ae; }
.stations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.station { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, box-shadow .15s; }
.station.target { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(168, 36, 111, .12); cursor: pointer; }
.station.target .tokens { border-color: var(--brand); background: var(--blush); }
.station.rest { background: #f7f5f6; }
.station.rest .badge.sm { background: #e9e4e7; color: var(--ink); }
.station.done { background: var(--blush); border-color: transparent; }
.station.done .tokens { display: none; }
.station.done .badge.sm { background: var(--brand); color: #fff; }
.station.locked { opacity: .6; }
.st-h { display: flex; gap: 10px; align-items: center; font-size: 13.5px; line-height: 1.25; min-height: 34px; }
.st-n { color: var(--mute); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.station.done .st-n { color: var(--brand); }
.meter { height: 6px; border-radius: 3px; background: var(--blush); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--brand); }
.station .meter i { background: var(--ink); transition: width .1s linear; }
.station.done .meter i { background: var(--brand); }
.tok { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); padding: 6px 10px 9px 6px; text-align: left; touch-action: none; cursor: grab; box-shadow: 0 1px 2px rgba(40, 10, 30, .08); transition: box-shadow .15s, border-color .15s; }
.tok:hover { border-color: var(--ink); }
.tok .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--ink); }
.tok .av.eng { background: #2f5fd0; } .tok .av.des { background: var(--brand); } .tok .av.biz { background: #b7791f; } .tok .av.env { background: var(--good); }
.tok .tk { display: flex; flex-direction: column; line-height: 1.15; }
.tok b { font-size: 13.5px; } .tok small { font-size: 10.5px; color: var(--mute); }
.tok .en { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #eee6ea; }
.tok .en i { display: block; height: 100%; background: var(--good); }
.tok .en i.low { background: var(--bad); }
.tok.sel { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(168, 36, 111, .25); }
.tok.drag { z-index: 20; cursor: grabbing; box-shadow: 0 14px 30px rgba(40, 10, 30, .28); }
.tok.sick, .tok.burn { background: #f1edef; cursor: not-allowed; }
.tok.sick .av, .tok.burn .av { background: #a99ca4; }
.tok.sick small, .tok.burn small { color: var(--bad); font-weight: 700; }
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 30; width: min(520px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: flex-start; background: var(--ink); color: #fff; padding: 12px 16px; font-size: 14.5px; font-weight: 500; border-radius: 8px; box-shadow: 0 10px 30px rgba(40, 10, 30, .3); }
.toast .ico { margin-top: 1px; }
.toast.good .ico { color: #6fe3a5; }
.toast.alert { background: var(--brand); font-weight: 700; }

/* test stall */
.stall { display: flex; align-items: center; gap: 12px; background: #fbf8fa; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; min-height: 68px; }
.queue { flex: 1; display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 6px; }
.queue span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1.5px solid var(--line-strong); color: var(--mute); transition: transform .6s, opacity .6s; }
.queue span .ico { width: 22px; height: 22px; }
.queue span.hi { color: var(--brand); border-color: var(--brand); }
.queue span.lo { color: var(--ink); border-color: var(--ink); }
.queue span.gone { transform: translateY(-22px) scale(1.25); opacity: 0; }
.counter { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 11px 14px; border-radius: 6px; }
.lab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.var { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.track { position: relative; height: 58px; margin: 4px 8px 8px; border-bottom: 2px solid var(--ink); background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%); }
.track i { position: absolute; bottom: -7px; width: 12px; height: 12px; margin-left: -6px; background: var(--brand); border: 2px solid #fff; border-radius: 50%; }
.track i b { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 11px; font-style: normal; color: var(--ink); }
.avg { margin: 0 0 10px; font-size: 13px; color: var(--mute); }

/* deal desk */
.deal { display: grid; gap: 20px; }
.dial .lbl { margin-top: 0; }
.dial input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--line); border: 0; padding: 0; outline-offset: 8px; }
.dial input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(40, 10, 30, .35); cursor: grab; }
.dial input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(40, 10, 30, .35); cursor: grab; }
.ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); margin-top: 10px; }
.gauges { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.g { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.g span { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); font-weight: 700; min-height: 2.6em; line-height: 1.3; }
.g b { font-size: 20px; font-variant-numeric: tabular-nums; }
.g .meter i { transition: width .25s, background .25s; background: var(--ink); }
.g .meter i.bad { background: var(--bad); }

/* pitch */
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.slot { border: 1.5px dashed var(--line-strong); border-radius: 8px; padding: 12px; min-height: 66px; font-size: 14px; display: flex; flex-direction: column; gap: 2px; color: var(--mute); }
.slot b { color: var(--brand); font-size: 12px; }
.slot.full { border-style: solid; border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 700; }
.slot.full b { color: #fff; opacity: .6; }

/* pulse */
.pulse { text-align: center; }
.quote { font-size: clamp(21px, 3.6vw, 28px); font-weight: 700; line-height: 1.25; margin: 26px auto; max-width: 18em; letter-spacing: -.01em; }
.faces { display: flex; justify-content: center; gap: 10px; }
.faces button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px clamp(8px, 2vw, 16px) 8px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: transform .12s, border-color .12s, color .12s; }
.faces button .ico { width: clamp(30px, 7vw, 42px); height: clamp(30px, 7vw, 42px); }
.faces button small { font-size: 11px; font-weight: 700; color: var(--mute); }
.faces button:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand); }
.scale { display: flex; justify-content: space-between; max-width: 380px; margin: 12px auto 0; font-size: 11.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }

/* results */
.score { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.score span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-align: center; max-width: 14em; }
.dialr { --v: 0; width: 148px; height: 148px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#fff calc(var(--v) * 1%), rgba(255, 255, 255, .18) 0); position: relative; }
.dialr::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--brand-dark); }
.dialr b { position: relative; font-size: 54px; line-height: 1; letter-spacing: -.03em; }
em.up, em.down { font-style: normal; font-weight: 700; margin-left: 6px; font-size: .8em; }
.card em.up { color: var(--good); } .card em.down { color: var(--bad); }
.radar { display: block; width: min(380px, 100%); margin: 0 auto 14px; overflow: visible; }
.radar .ring { fill: none; stroke: var(--line); stroke-width: 1; }
.radar .now { fill: rgba(168, 36, 111, .22); stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; }
.radar .prev { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 4; }
.radar text { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; fill: var(--ink); }
.legend { font-size: 13px; color: var(--mute); text-align: center; margin: 0; }
.legend i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin: 0 4px 0 10px; }
.l-now { background: var(--brand); } .l-prev { background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 9px); }
.blk { border-top: 1px solid var(--line); padding: 13px 0; }
.blk summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; }
.blk summary::-webkit-details-marker { display: none; }
.blk summary span { display: flex; align-items: center; gap: 10px; }
.blk summary .ico:not(.chev) { color: var(--brand); }
.blk .chev { color: var(--mute); transition: transform .15s; }
.blk[open] .chev { transform: rotate(90deg); }
.blk summary b { font-size: 20px; color: var(--brand); font-variant-numeric: tabular-nums; }
.row { display: grid; grid-template-columns: 1fr 120px 2.2em; gap: 12px; align-items: center; font-size: 14px; padding: 8px 0 0 26px; color: #3c3138; }
.row b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.hint { font-size: 13px; color: var(--mute); margin: 8px 0 0 26px; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 15px; animation: fall 2.6s ease-in forwards; }
@keyframes fall { to { top: 110%; transform: rotate(720deg) translateX(60px); } }

@media (max-width: 700px) {
  .hero, .hero.result { grid-template-columns: 1fr; }
  .steps li { width: 18px; height: 18px; font-size: 9px; margin-left: 6px; }
  .steps li + li::before { width: 6px; }
  .steps li .ico { width: 10px; height: 10px; }
  .brand span { display: none; }
  .clock { display: none; }
}
@media (max-width: 620px) {
  #app { padding: 0 14px 40px; }
  .fields, .tiles, .lab, .notes { grid-template-columns: 1fr; }
  .tiles.small, .tiles.four, .slots, .stations, .gauges { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr 64px 2.2em; }
  .chat { height: 190px; }
  .phead .badge { display: none; }
  .queue span { width: 30px; height: 30px; } .queue span .ico { width: 17px; height: 17px; }
  .counter { display: none; }
  .tok small { display: none; }
  .facts { flex-wrap: wrap; gap: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.how li > div { line-height: 1.35; }
.how span:not(.badge) { display: block; margin-top: 3px; }
.logo { width: 52px; height: 52px; margin: -4px 0; }
