/* =====================================================================
   MOBILE MAYHEM — styles
   ===================================================================== */
:root {
  --bg: #070b16; --bg2: #0d1426; --panel: #111a31; --panel2: #16213d; --line: #24324f;
  --text: #e9eefb; --dim: #8d9bbb; --cyan: #3dc8ff; --pink: #ff3d8b; --yellow: #ffd23d; --green: #3dffb0; --purple: #a86bff; --orange: #ff6b3d;
  --ok: #2fe39a; --bad: #ff4d6d; --radius: 14px;
  --display: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --body: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.4;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body::before { /* circuit grid */
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(61,200,255,.16), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(255,61,139,.14), transparent 55%),
    linear-gradient(rgba(61,200,255,.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(61,200,255,.05) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
  animation: gridmove 30s linear infinite;
}
@keyframes gridmove { to { background-position: 0 0, 0 0, 0 400px, 400px 0, 0 0; } }
.bg-floats { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-floats span { position: absolute; bottom: -60px; font-size: 34px; opacity: .10; animation: floatup linear infinite; filter: grayscale(.3); }
@keyframes floatup { to { transform: translateY(-115vh) rotate(360deg); } }

#app { min-height: 100vh; }
#fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
#flash { position: fixed; inset: 0; pointer-events: none; z-index: 55; opacity: 0; }
#flash.on { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }

h1, h2, h3 { font-family: var(--display); letter-spacing: .02em; margin: .2em 0 .4em; }
h1 { font-size: 2rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.05rem; color: var(--cyan); margin-top: 1.4em; }
.dim { color: var(--dim); } .small { font-size: .85rem; } .mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.center { text-align: center; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
.gap { gap: 14px; margin-top: 22px; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 1px 6px; border-radius: 6px; font: 700 .72em/1.5 var(--body);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-bottom-width: 3px; color: var(--text); text-align: center; vertical-align: middle;
}
input, select {
  font: inherit; color: var(--text); background: var(--bg2); border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(61,200,255,.15); }

/* ---------- buttons ---------- */
.btn {
  font: 700 1rem var(--display); letter-spacing: .04em; color: #061021; background: linear-gradient(180deg, #5ad6ff, #22a8e6);
  border: 0; border-radius: 12px; padding: 12px 20px; cursor: pointer; box-shadow: 0 4px 0 #13709c, 0 8px 24px rgba(61,200,255,.25);
  transition: transform .08s, filter .15s, box-shadow .15s; display: inline-flex; align-items: center; gap: 10px;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #13709c; }
.btn kbd { background: rgba(0,0,0,.15); border-color: rgba(0,0,0,.3); color: #061021; }
.btn.big { font-size: 1.15rem; padding: 16px 28px; }
.btn.small { font-size: .82rem; padding: 8px 14px; }
.btn.ghost { background: transparent; color: var(--text); border: 2px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--cyan); }
.btn.ghost kbd { color: var(--text); }
.btn.danger { background: linear-gradient(180deg, #ff6b8b, #e0264f); box-shadow: 0 4px 0 #8a1530; color: #fff; }
.btn.glow { animation: glow 2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 4px 0 #13709c, 0 0 34px rgba(61,200,255,.75); } }
.btn-icon { background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); width: 40px; height: 40px; border-radius: 10px; font-size: 18px; cursor: pointer; }
.btn-icon:hover { border-color: var(--pink); color: var(--pink); }
.tag { display: inline-block; font: 700 .72rem var(--display); letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; color: var(--c, var(--cyan)); border: 1px solid var(--c, var(--cyan)); background: color-mix(in srgb, var(--c, var(--cyan)) 12%, transparent); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(255,210,61,.15); color: var(--yellow); font-weight: 700; font-size: .8rem; }
.pill.big { font-size: 1rem; padding: 6px 16px; margin: 6px auto 0; }

/* ---------- MENU ---------- */
.menu { max-width: 1180px; margin: 0 auto; padding: 26px 22px 40px; }
.title { text-align: center; margin-bottom: 18px; }
.logo { font-family: var(--display); font-weight: 900; line-height: .9; font-size: clamp(48px, 9vw, 112px); letter-spacing: .04em; display: flex; flex-direction: column; align-items: center; }
.logo span { position: relative; display: inline-block; }
.logo-a { color: var(--cyan); text-shadow: 0 0 18px rgba(61,200,255,.7), 0 0 60px rgba(61,200,255,.35); }
.logo-b { color: var(--pink); text-shadow: 0 0 18px rgba(255,61,139,.7), 0 0 60px rgba(255,61,139,.35); animation: wobble 3.2s ease-in-out infinite; }
.logo span::after { content: attr(data-text); position: absolute; left: 0; top: 0; color: var(--yellow); opacity: 0; clip-path: inset(40% 0 45% 0); animation: glitch 4s infinite steps(1); }
@keyframes glitch { 0%, 92%, 100% { opacity: 0; transform: none; } 93% { opacity: .9; transform: translate(-6px, 2px); clip-path: inset(10% 0 70% 0); } 95% { opacity: .9; transform: translate(5px, -2px); clip-path: inset(55% 0 20% 0); } 97% { opacity: .9; transform: translate(-3px, 0); clip-path: inset(30% 0 50% 0); } }
@keyframes wobble { 50% { transform: skewX(-4deg) scale(1.02); } }
.subtitle { font-family: var(--display); color: var(--dim); letter-spacing: .14em; font-size: .85rem; margin-top: 12px; }
.subtitle b { color: var(--yellow); }
.profile { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 16px; align-items: end; background: rgba(17,26,49,.75); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; backdrop-filter: blur(6px); }
.field label { display: block; font: 700 .75rem var(--display); letter-spacing: .1em; color: var(--dim); text-transform: uppercase; margin-bottom: 6px; }
.toggles { display: flex; gap: 8px; }
.tog { font: 700 .85rem var(--body); padding: 11px 14px; border-radius: 10px; cursor: pointer; background: var(--bg2); color: var(--dim); border: 2px solid var(--line); }
.tog.on { color: var(--green); border-color: var(--green); background: rgba(61,255,176,.08); }
.mode-card {
  --c: var(--cyan); text-align: left; display: flex; gap: 16px; align-items: flex-start; cursor: pointer; color: var(--text); font: inherit;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, var(--panel)), var(--panel) 60%); border: 2px solid color-mix(in srgb, var(--c) 35%, var(--line));
  border-radius: var(--radius); padding: 18px; transition: transform .15s, border-color .15s, box-shadow .15s; position: relative; overflow: hidden;
}
.mode-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%); transform: translateX(-100%); transition: transform .6s; }
.mode-card:hover { transform: translateY(-4px) scale(1.01); border-color: var(--c); box-shadow: 0 12px 40px color-mix(in srgb, var(--c) 30%, transparent); }
.mode-card:hover::after { transform: translateX(100%); }
.mc-icon { font-size: 42px; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--c) 60%, transparent)); }
.mc-tag { font: 700 .68rem var(--display); letter-spacing: .12em; color: var(--c, var(--cyan)); }
.mc-name { font: 900 1.25rem var(--display); margin: 2px 0 6px; }
.mc-desc { color: var(--dim); font-size: .92rem; }
.mode-card.hero { width: 100%; padding: 24px 26px; margin-bottom: 16px; }
.mode-card.hero .mc-icon { font-size: 64px; animation: bob 2.4s ease-in-out infinite; }
.mode-card.hero .mc-name { font-size: 2rem; }
.mode-card.hero .mc-desc { font-size: 1.05rem; color: var(--text); opacity: .85; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 14px; }
.mode-grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.mode-grid:not(.two) .mode-card { flex-direction: column; gap: 6px; }
.mode-grid:not(.two) .mc-icon { font-size: 38px; }
.menu-foot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

/* ---------- panels ---------- */
.panel-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 18px; }
.panel { width: min(760px, 100%); background: rgba(17,26,49,.92); border: 2px solid color-mix(in srgb, var(--c, var(--cyan)) 40%, var(--line)); border-radius: 20px; padding: 28px 32px; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.panel.wide { width: min(1120px, 100%); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lead { font-size: 1.05rem; color: var(--dim); }
.lead b { color: var(--text); }
.intro { text-align: center; }
.intro-icon { font-size: 84px; animation: bob 2.4s ease-in-out infinite; }
.how { text-align: left; max-width: 620px; margin: 18px auto; padding-left: 0; list-style: none; }
.how li { padding: 9px 12px 9px 38px; position: relative; border-bottom: 1px dashed var(--line); }
.how li::before { content: "▸"; position: absolute; left: 14px; color: var(--c, var(--cyan)); font-weight: 900; }
.stage-done { background: rgba(47,227,154,.12); border: 1px solid var(--ok); color: var(--ok); padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: center; margin: 14px 0; }
.form-row label { font: 700 .8rem var(--display); letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.seg button { font: 700 .9rem var(--body); padding: 9px 16px; border-radius: 10px; background: var(--bg2); color: var(--dim); border: 2px solid var(--line); cursor: pointer; }
.seg button.on { color: #061021; background: var(--cyan); border-color: var(--cyan); }
.team-names { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 10px 0 18px; }
.team-input { display: flex; align-items: center; gap: 8px; }
.team-input input { border-color: var(--c); }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 10px var(--c); }
.tip-box { margin-top: 22px; background: rgba(255,210,61,.08); border: 1px solid rgba(255,210,61,.4); border-radius: 12px; padding: 12px 16px; color: var(--dim); }
.tip-box b { color: var(--yellow); }

/* ---------- HUD ---------- */
.game { min-height: 100vh; display: flex; flex-direction: column; }
.hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px 22px; background: rgba(7,11,22,.85); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.hud-left { display: flex; align-items: center; gap: 12px; }
.hud-icon { font-size: 34px; }
.hud-title { font: 900 1.1rem var(--display); }
.hud-sub { color: var(--dim); font-size: .85rem; }
.hud-mid { text-align: center; }
.hud-score { font: 900 2rem var(--display); color: var(--yellow); text-shadow: 0 0 20px rgba(255,210,61,.5); }
.hud-score small { font-size: .5em; margin-left: 6px; color: var(--dim); text-shadow: none; }
.hud-score.bump { animation: bump .3s; }
@keyframes bump { 40% { transform: scale(1.18); } }
.hud-combo { font: 700 .85rem var(--display); height: 1.3em; color: var(--cyan); opacity: 0; transition: opacity .2s; }
.hud-combo.on { opacity: 1; }
.hud-combo.fire { color: var(--orange); animation: pulse .6s infinite alternate; }
.hud-combo.inferno { color: var(--pink); text-shadow: 0 0 14px var(--pink); }
.hud-combo b { color: var(--yellow); }
@keyframes pulse { to { transform: scale(1.08); } }
.hud-right { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.hud-lives { font-size: 26px; letter-spacing: 2px; }
.hud-lives .lost { filter: grayscale(1) brightness(.4); transform: scale(.8); display: inline-block; transition: .3s; }
.stage { flex: 1; width: min(1180px, 100%); margin: 0 auto; padding: 20px 22px 40px; }

/* ---------- shared answer UI ---------- */
.patience { position: relative; height: 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); overflow: hidden; margin: 12px 0; }
.patience-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--green), var(--cyan)); border-radius: 999px; transition: background .3s; }
.patience-fill.mid { background: linear-gradient(90deg, var(--yellow), var(--orange)); }
.patience-fill.low { background: linear-gradient(90deg, var(--bad), var(--pink)); animation: blink .4s infinite alternate; }
@keyframes blink { to { opacity: .55; } }
.patience-label { position: absolute; right: 10px; top: -1px; font: 700 .6rem/16px var(--display); letter-spacing: .14em; color: rgba(255,255,255,.55); text-transform: uppercase; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.opt {
  font: 600 1.02rem var(--body); text-align: left; color: var(--text); background: var(--panel2); border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px;
  display: flex; gap: 12px; align-items: center; cursor: pointer; transition: transform .1s, border-color .15s, background .15s; min-height: 64px;
}
.opt:hover:not(:disabled) { border-color: var(--cyan); background: #1b2a4d; transform: translateY(-2px); }
.opt kbd { flex: none; }
.opt.right { border-color: var(--ok); background: rgba(47,227,154,.18); box-shadow: 0 0 24px rgba(47,227,154,.35); animation: pulse .4s 2 alternate; }
.opt.wrong { border-color: var(--bad); background: rgba(255,77,109,.18); }
.opt.removed { opacity: .2; text-decoration: line-through; }
.opt:disabled { cursor: default; }
.fb { min-height: 10px; margin-top: 14px; }
.fb-card { border-radius: 14px; padding: 14px 18px; background: var(--panel2); border-left: 6px solid var(--cyan); animation: slideup .3s; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; }
.fb-card.ok { border-left-color: var(--ok); background: linear-gradient(90deg, rgba(47,227,154,.14), var(--panel2)); }
.fb-card.bad { border-left-color: var(--bad); background: linear-gradient(90deg, rgba(255,77,109,.16), var(--panel2)); }
.fb-title { font: 900 1.05rem var(--display); grid-column: 1; }
.fb-exp { grid-column: 1; color: #c9d3ea; }
.fb-card .btn { grid-column: 2; grid-row: 1 / span 2; }
.fb-mini { padding: 10px 14px; border-radius: 10px; animation: slideup .25s; }
.fb-mini.ok { background: rgba(47,227,154,.12); color: #bff7e0; }
.fb-mini.bad { background: rgba(255,77,109,.14); color: #ffd0da; }
@keyframes slideup { from { transform: translateY(12px); opacity: 0; } }

/* ---------- TICKET RUSH ---------- */
.ticket-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.ticket-wrap.enter { animation: slidein .4s cubic-bezier(.2,1.2,.4,1); }
@keyframes slidein { from { transform: translateX(60px); opacity: 0; } }
.customer { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; position: relative; }
.avatar { font-size: 86px; line-height: 1; }
.avatar.bob { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.cust-meta b { display: block; font: 900 1.05rem var(--display); margin-top: 8px; }
.cust-meta span { color: var(--dim); font-size: .85rem; }
.mood { position: absolute; top: 10px; right: 12px; font-size: 30px; transition: transform .3s; }
.ticket { background: linear-gradient(180deg, #172446, var(--panel)); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 22px; position: relative; }
.ticket::before { content: ""; position: absolute; left: -2px; top: 26px; width: 14px; height: 28px; background: var(--bg); border-radius: 0 14px 14px 0; border: 2px solid var(--line); border-left: 0; }
.ticket-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.diff { color: var(--yellow); letter-spacing: 2px; font-size: .9rem; }
.ticket-no { margin-left: auto; font: 700 .85rem var(--display); color: var(--dim); }
.q { font-size: 1.32rem; font-weight: 600; line-height: 1.35; margin-top: 8px; }
.powerups { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 8px; }
.pu { display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 8px; font: 700 .9rem var(--body); color: var(--text); background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; cursor: pointer; }
.pu span { font-size: 22px; }
.pu i { font-style: normal; background: var(--yellow); color: #061021; border-radius: 999px; min-width: 22px; text-align: center; font-weight: 900; }
.pu:hover:not(:disabled) { border-color: var(--yellow); }
.pu:disabled { opacity: .35; cursor: default; }

/* ---------- TEARDOWN ---------- */
.td-stage { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.td-ticket { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 90px; animation: slidein .35s; }
.td-cust { display: flex; gap: 12px; align-items: center; }
.td-cust .avatar { font-size: 54px; }
.td-cust b { display: block; font-family: var(--display); }
.td-cust span { color: var(--dim); font-size: .85rem; }
.td-text { font-size: 1.2rem; font-weight: 600; margin: 14px 0; line-height: 1.35; }
.td-ask { color: var(--yellow); font-weight: 700; }
.td-bench { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; }
.td-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.td-tab { font: 700 .9rem var(--body); color: var(--dim); background: var(--bg2); border: 2px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.td-tab.on { color: #061021; background: var(--orange); border-color: var(--orange); }
.td-tab.on kbd { color: #061021; border-color: rgba(0,0,0,.3); }
.td-tab.xray { margin-left: auto; color: var(--cyan); }
.td-tab.xray.used { opacity: .4; }
.td-svg { background: radial-gradient(ellipse at center, #1a2440, #0a0f1d); border-radius: 12px; padding: 10px; }
.td-svg.flipin { animation: flipin .35s ease-out; }
@keyframes flipin { from { transform: perspective(900px) rotateX(35deg) scale(.95); opacity: .2; } }
.laptop-svg { width: 100%; height: auto; display: block; user-select: none; }
.laptop-svg .part { cursor: crosshair; transition: filter .15s; }
.laptop-svg .part:hover { filter: brightness(1.45) drop-shadow(0 0 8px rgba(61,200,255,.9)); }
.laptop-svg .part.found { filter: brightness(1.3) drop-shadow(0 0 14px #3dffb0) drop-shadow(0 0 4px #3dffb0); animation: partpulse .8s ease-in-out 3; }
.laptop-svg .part.nope { filter: drop-shadow(0 0 10px #ff4d6d) saturate(2) hue-rotate(-30deg); }
@keyframes partpulse { 50% { filter: brightness(1.8) drop-shadow(0 0 22px #3dffb0); } }
.plabel { font: 700 15px var(--display); fill: #fff; text-anchor: middle; paint-order: stroke; stroke: #000; stroke-width: 4px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.xray .plabel, .part.found .plabel { opacity: 1; }
.svg-note { font: 700 11px var(--display); fill: #5f6c8c; text-anchor: middle; letter-spacing: .2em; }
.svg-tiny { font: 600 11px var(--body); fill: #9aa3b5; text-anchor: middle; }
.svg-big { font: 900 22px var(--display); fill: #ffb02e; text-anchor: middle; }
.key { fill: #262b38; stroke: #353c4f; stroke-width: 1; }
.td-tip { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg2); color: var(--dim); display: block; overflow: hidden; }
.td-tip .btn { float: right; margin: 0 0 0 12px; }
.td-tip.ok { background: rgba(47,227,154,.12); color: #cff8e6; }
.td-tip.bad { background: rgba(255,77,109,.14); color: #ffd3dc; }

/* ---------- PORT PANIC ---------- */
.pp-belt-wrap { display: grid; grid-template-columns: 110px 1fr 110px; gap: 12px; align-items: center; margin-top: 10px; }
.pp-bin, .pp-shredder { height: 250px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 44px; border: 2px dashed; }
.pp-bin span, .pp-shredder span { font: 700 .7rem var(--display); letter-spacing: .12em; margin-top: 8px; }
.pp-bin { border-color: var(--ok); color: var(--ok); background: rgba(47,227,154,.06); }
.pp-shredder { border-color: var(--bad); color: var(--bad); background: rgba(255,77,109,.06); }
.pp-belt { position: relative; height: 250px; border-radius: 16px; background: #0b1120; border: 2px solid var(--line); overflow: hidden; }
.pp-belt-stripes { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: repeating-linear-gradient(90deg, #1d2742 0 26px, #121a2e 26px 52px); animation: belt 1s linear infinite; border-top: 3px solid #2d3a5c; }
@keyframes belt { to { background-position: 52px 0; } }
.pp-card { position: absolute; top: 18px; width: 300px; height: 190px; border-radius: 14px; background: linear-gradient(180deg, #1d2b50, #142040); border: 2px solid var(--cyan); box-shadow: 0 12px 30px rgba(0,0,0,.5), 0 0 20px rgba(61,200,255,.25); padding: 10px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pp-card.zap { animation: zap .5s forwards; }
.pp-card.burn { animation: burn .6s forwards; border-color: var(--bad); }
@keyframes zap { to { transform: translateY(-120px) scale(.4) rotate(-12deg); opacity: 0; } }
@keyframes burn { 30% { transform: scale(1.08) rotate(3deg); filter: hue-rotate(-60deg) brightness(1.5); } to { transform: translateY(80px) scale(.6) rotate(25deg); opacity: 0; } }
.pp-art { height: 110px; display: flex; align-items: center; justify-content: center; }
.conn-svg { height: 108px; width: auto; }
.conn-icon { font-size: 76px; line-height: 1; }
.conn-icon.bt { font: 900 82px var(--display); color: #3d8bff; text-shadow: 0 0 20px rgba(61,139,255,.8); }
.pp-q { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.pp-help { text-align: center; color: var(--dim); margin: 12px 0 0; }
.pp-opts { grid-template-columns: repeat(4, 1fr); }

/* ---------- SORT STORM ---------- */
.ss-title { text-align: center; font: 900 1.5rem var(--display); margin-bottom: 10px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.ss-field { position: relative; height: 380px; border-radius: 18px; border: 2px solid var(--line); background: linear-gradient(180deg, rgba(168,107,255,.08), rgba(61,200,255,.04)); overflow: hidden; }
.ss-danger { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(255,77,109,.16)); pointer-events: none; }
.ss-chip { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: 80%; top: 0; z-index: 2; font: 700 1.25rem var(--body); padding: 14px 22px; border-radius: 14px; background: linear-gradient(180deg, #2a3a68, #1b2850); border: 2px solid var(--purple); box-shadow: 0 0 24px rgba(168,107,255,.45); text-align: center; }
.ss-chip.danger { border-color: var(--bad); box-shadow: 0 0 28px rgba(255,77,109,.6); animation: wobble .3s infinite; }
.ss-chip.flying { transition: transform .35s cubic-bezier(.5,0,.8,.4), opacity .35s; opacity: 0; }
.ss-chip.burn { border-color: var(--bad); background: #4a1626; }
.ss-bins { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.ss-bin { font: 900 1.25rem var(--display); color: var(--text); padding: 22px; border-radius: 16px; cursor: pointer; background: var(--panel); border: 3px solid var(--line); transition: transform .1s, border-color .15s, background .15s; display: flex; gap: 12px; justify-content: center; align-items: center; }
.ss-bin:first-child { border-color: rgba(61,200,255,.5); }
.ss-bin:last-child { border-color: rgba(255,61,139,.5); }
.ss-bin:hover { transform: translateY(-2px); background: var(--panel2); }
.ss-bin.hit { background: rgba(47,227,154,.25); border-color: var(--ok); transform: scale(1.04); }
.ss-help { text-align: center; color: var(--dim); margin-top: 10px; }
.ss-intro { text-align: center; background: var(--panel); border: 2px solid var(--purple); border-radius: 18px; padding: 22px; animation: pop .35s; }
.ss-round { font: 900 .9rem var(--display); letter-spacing: .3em; color: var(--purple); }
.sort-mode .fb { position: relative; }

/* ---------- SEQUENCE ---------- */
.sq-head { display: flex; gap: 18px; align-items: center; }
.sq-head h2 { margin: 4px 0; }
.sq-head p { margin: 0; color: var(--dim); }
.sq-icon { font-size: 64px; }
.sq-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.sq-log { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sq-log .slot { counter-increment: s; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 14px; border-radius: 12px; border: 2px dashed var(--line); color: var(--dim); }
.sq-log .slot::before { content: counter(s); font: 900 1.1rem var(--display); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); flex: none; }
.sq-log .slot.done { border-style: solid; border-color: var(--ok); color: var(--text); background: rgba(47,227,154,.1); animation: pop .3s; }
.sq-log .slot.done::before { background: var(--ok); color: #061021; }
.sq-log .slot.missed { border-style: solid; border-color: var(--bad); color: #ffd3dc; background: rgba(255,77,109,.08); }
.sq-cards { display: flex; flex-direction: column; gap: 8px; }
.sq-card { text-align: left; font: 600 1rem var(--body); color: var(--text); background: var(--panel2); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 54px; cursor: pointer; display: flex; gap: 12px; align-items: center; transition: transform .1s, border-color .15s, opacity .3s; }
.sq-card:hover:not(:disabled) { border-color: var(--pink); transform: translateX(-4px); }
.sq-card.placed { opacity: .18; transform: scale(.96); }
.sq-card.nope { border-color: var(--bad); background: rgba(255,77,109,.2); }

/* ---------- shake / float / countdown / toast ---------- */
.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.float-text { position: fixed; z-index: 70; pointer-events: none; transform: translate(-50%, -50%); font: 900 1.4rem var(--display); text-shadow: 0 0 12px currentColor, 0 2px 0 #000; animation: floaty 1.2s ease-out forwards; white-space: nowrap; }
.float-text.big { font-size: 3rem; }
@keyframes floaty { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -160%) scale(1); } }
.countdown { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(7,11,22,.7); backdrop-filter: blur(4px); }
.cd-label { font: 700 1.2rem var(--display); letter-spacing: .3em; color: var(--dim); text-transform: uppercase; }
.cd-num { font: 900 9rem var(--display); color: var(--yellow); text-shadow: 0 0 40px rgba(255,210,61,.8); animation: cd .65s ease-out; }
@keyframes cd { from { transform: scale(2.2); opacity: 0; } 40% { opacity: 1; } }
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast { background: var(--panel2); border: 1px solid var(--line); border-left: 5px solid var(--cyan); border-radius: 12px; padding: 12px 16px; max-width: 380px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: toastin .35s cubic-bezier(.2,1.3,.4,1); display: flex; gap: 12px; align-items: center; }
.toast.ach { border-left-color: var(--yellow); }
.toast .t-icon { font-size: 34px; }
.toast.out { transition: .4s; opacity: 0; transform: translateX(40px); }
@keyframes toastin { from { transform: translateX(60px); opacity: 0; } }

/* ---------- modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(3,6,14,.75); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 20px; animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } }
.modal { background: var(--panel); border: 2px solid var(--cyan); border-radius: 18px; padding: 24px 28px; width: min(460px, 100%); text-align: center; animation: pop .3s cubic-bezier(.2,1.4,.4,1); }
.modal p { color: var(--dim); }
.modal-btns { display: flex; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- RESULTS ---------- */
.results { width: min(900px, 100%); }
.res-top { display: flex; gap: 26px; align-items: center; }
.grade { font: 900 7rem/1 var(--display); width: 160px; height: 160px; flex: none; display: grid; place-items: center; border-radius: 26px; border: 5px solid currentColor; animation: stamp .6s cubic-bezier(.2,1.6,.4,1) .2s both; text-shadow: 0 0 30px currentColor; }
@keyframes stamp { from { transform: scale(3) rotate(-20deg); opacity: 0; } }
.g-S { color: var(--yellow); } .g-A { color: var(--green); } .g-B { color: var(--cyan); } .g-C { color: var(--purple); } .g-D { color: var(--pink); }
.res-rank { font: 900 1.7rem var(--display); }
.res-score { font: 900 3.4rem var(--display); color: var(--yellow); text-shadow: 0 0 24px rgba(255,210,61,.5); }
.res-score small { font-size: .35em; color: var(--dim); text-shadow: none; }
.new-best { font: 900 .9rem var(--display); color: var(--pink); letter-spacing: .1em; animation: blink .5s infinite alternate; }
.res-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 12px; }
.res-stats div { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.res-stats b { display: block; font: 900 1.5rem var(--display); }
.res-stats span { color: var(--dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.stage-rows { display: grid; gap: 6px; margin-bottom: 12px; }
.stage-rows div { display: grid; grid-template-columns: 1fr auto 70px; gap: 12px; padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,.03); }
.stage-rows small { color: var(--dim); text-align: right; }
.verify { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--yellow); background: rgba(255,210,61,.06); }
.verify b.mono { color: var(--yellow); font-size: 1.2rem; }
.review { max-height: 340px; overflow: auto; padding-right: 6px; }
.rv-obj { font: 700 .8rem var(--display); letter-spacing: .08em; color: var(--pink); margin: 12px 0 6px; }
details { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; padding: 8px 12px; }
summary { cursor: pointer; font-weight: 600; }
.rv-a { color: var(--ok); margin-top: 8px; font-weight: 700; }
.rv-e { color: var(--dim); margin-top: 4px; }

/* ---------- STUDY ---------- */
.mastery { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 6px 18px 14px; margin: 12px 0; }
.mbar { display: grid; grid-template-columns: minmax(200px, 1.4fr) 2fr 120px; gap: 12px; align-items: center; margin: 8px 0; font-size: .92rem; }
.mbar-track { height: 12px; background: rgba(255,255,255,.06); border-radius: 999px; overflow: hidden; }
.mbar-fill { height: 100%; border-radius: 999px; transition: width 1s; }
.mbar-v { text-align: right; font-weight: 700; }
.mastery-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.mastery-cats .mbar { grid-template-columns: 170px 1fr 100px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.flash { perspective: 900px; background: none; border: 0; padding: 0; height: 180px; cursor: pointer; font: inherit; color: var(--text); text-align: left; }
.flash-in { position: relative; width: 100%; height: 100%; transition: transform .5s; transform-style: preserve-3d; }
.flash.flipped .flash-in { transform: rotateY(180deg); }
.flash-front, .flash-back { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border: 2px solid var(--line); }
.flash-front { background: linear-gradient(160deg, #1b2b55, var(--panel)); text-align: center; align-items: center; }
.flash-front b { font: 900 1.15rem var(--display); }
.flash-front small, .flash-back small { color: var(--cyan); font: 700 .7rem var(--display); letter-spacing: .1em; }
.flash-back { background: linear-gradient(160deg, #3a1840, var(--panel)); transform: rotateY(180deg); font-size: .92rem; border-color: var(--pink); }

/* ---------- TROPHIES ---------- */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ach { background: var(--bg2); border: 2px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; opacity: .55; }
.ach.got { opacity: 1; border-color: var(--yellow); background: linear-gradient(160deg, rgba(255,210,61,.12), var(--bg2)); }
.ach-i { font-size: 36px; }
.ach b { display: block; font-family: var(--display); font-size: .9rem; margin: 4px 0; }
.ach span { color: var(--dim); font-size: .8rem; }
table.lb { width: 100%; border-collapse: collapse; margin-top: 8px; }
table.lb th, table.lb td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
table.lb th { font: 700 .72rem var(--display); letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
table.lb tr:hover td { background: rgba(255,255,255,.03); }

/* ---------- TEACHER ---------- */
.teach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tbox { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px 16px; }
.vform { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vform .btn { justify-content: center; }
.vout { margin-top: 10px; font-weight: 700; }
.okc { color: var(--ok); } .badc { color: var(--bad); }
.cov td:first-child { font-family: var(--display); color: var(--cyan); }

/* ---------- TEAM SHOWDOWN ---------- */
.team-screen { min-height: 100vh; padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.team-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.team-logo { font: 900 1.4rem var(--display); color: var(--pink); text-shadow: 0 0 16px rgba(255,61,139,.6); }
.turn-banner { font: 700 1.1rem var(--display); padding: 8px 18px; border-radius: 999px; border: 2px solid var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); animation: pulse 1s infinite alternate; }
.team-actions { margin-left: auto; display: flex; gap: 8px; }
.board { flex: 1; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-auto-rows: minmax(70px, 1fr); gap: 10px; }
.board-head { --c: var(--cyan); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 6px; border-radius: 12px; background: color-mix(in srgb, var(--c) 18%, var(--panel)); border-bottom: 4px solid var(--c); font: 900 clamp(.8rem, 1.3vw, 1.1rem) var(--display); }
.board-head span { font-size: 2rem; }
.board-head small { font: 600 .7rem var(--body); color: var(--dim); }
.tile { --c: var(--cyan); font: 900 clamp(1.4rem, 3vw, 2.6rem) var(--display); color: var(--yellow); text-shadow: 0 2px 0 #000, 0 0 18px rgba(255,210,61,.45); background: linear-gradient(180deg, #1c2b55, #111a35); border: 2px solid color-mix(in srgb, var(--c) 45%, var(--line)); border-radius: 12px; cursor: pointer; transition: transform .12s, box-shadow .15s; }
.tile:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 0 26px color-mix(in srgb, var(--c) 60%, transparent); border-color: var(--c); }
.tile.used { color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--bg)); text-shadow: none; cursor: default; opacity: .65; }
.scoreboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.team-card { --c: var(--cyan); background: var(--panel); border: 2px solid color-mix(in srgb, var(--c) 45%, var(--line)); border-radius: 14px; padding: 10px 12px; text-align: center; position: relative; transition: transform .2s; }
.team-card.turn { border-color: var(--c); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 50%, transparent); transform: translateY(-3px); }
.team-card.lead::after { content: "👑"; position: absolute; top: -16px; right: 10px; font-size: 24px; }
.tc-name { font: 700 .95rem var(--display); color: var(--c); }
.tc-score { font: 900 2rem var(--display); }
.tc-adj { display: flex; gap: 6px; justify-content: center; }
.tc-adj button { font: 700 .75rem var(--body); padding: 3px 8px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); color: var(--dim); cursor: pointer; }
.tc-adj button:hover { color: var(--text); border-color: var(--c); }
.qv { justify-content: center; max-width: 1300px; margin: 0 auto; width: 100%; }
.qv-head { display: flex; justify-content: space-between; align-items: center; }
.qv-head .tag { font-size: 1rem; padding: 8px 16px; }
.qv-val { font: 900 2rem var(--display); color: var(--yellow); }
.qv-timer { position: relative; height: 18px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; border: 1px solid var(--line); }
.qv-timer-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--c), var(--yellow)); }
.qv-timer span { position: absolute; right: 12px; top: 0; font: 900 .8rem/18px var(--display); }
.qv-timer.done { animation: blink .3s 6 alternate; border-color: var(--bad); }
.qv-q { font: 700 clamp(1.5rem, 3vw, 2.6rem)/1.25 var(--body); text-align: center; margin: 20px 4%; animation: pop .4s; }
.qv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qv-opt { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border-radius: 16px; background: var(--panel); border: 3px solid var(--line); font: 600 clamp(1rem, 1.7vw, 1.45rem) var(--body); transition: .3s; }
.qv-opt b { font: 900 1.6rem var(--display); color: var(--c); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg2); flex: none; }
.qv-opt.right { border-color: var(--ok); background: rgba(47,227,154,.2); transform: scale(1.03); box-shadow: 0 0 40px rgba(47,227,154,.4); }
.qv-opt.right b { background: var(--ok); color: #061021; }
.qv-opt.dim { opacity: .35; }
.qv-exp { text-align: center; font-size: 1.2rem; color: #d4def5; min-height: 1.5em; margin: 6px 6%; }
.qv-controls { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.award-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.award { --c: var(--cyan); display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 10px; border-radius: 12px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 8%, var(--panel)); min-width: 150px; }
.award > span { font: 700 .9rem var(--display); color: var(--c); }
.award div, .award { }
.aw { font: 700 .9rem var(--body); padding: 6px 12px; border-radius: 8px; cursor: pointer; background: var(--bg2); border: 2px solid var(--line); color: var(--dim); width: 100%; }
.aw.ok.on { background: var(--ok); border-color: var(--ok); color: #061021; }
.aw.bad.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.overclock-splash { position: fixed; inset: 0; z-index: 85; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(255,210,61,.3), rgba(7,11,22,.9)); }
.overclock-splash div { font: 900 clamp(3rem, 9vw, 8rem) var(--display); color: var(--yellow); text-shadow: 0 0 40px var(--yellow); animation: stamp .5s cubic-bezier(.2,1.6,.4,1), wobble .3s .5s infinite; }
.overclock-splash small { font: 700 1.6rem var(--display); letter-spacing: .2em; color: #fff; }
.wagers { display: grid; gap: 10px; margin: 16px 0; }
.wager { --c: var(--cyan); display: grid; grid-template-columns: 18px 1fr 120px 160px 80px; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; border: 2px solid color-mix(in srgb, var(--c) 50%, var(--line)); }
.wager small { color: var(--dim); }
.podium-screen .mega { font-size: clamp(2rem, 5vw, 4rem); color: var(--yellow); text-shadow: 0 0 30px rgba(255,210,61,.6); text-align: center; animation: pop .5s; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 18px; margin-top: 20px; }
.pod { --c: var(--cyan); text-align: center; width: 220px; animation: slideup .6s both; }
.pod.p0 { animation-delay: .6s; } .pod.p1 { animation-delay: .3s; } .pod.p2 { animation-delay: 0s; }
.pod-medal { font-size: 60px; }
.pod-name { font: 900 1.2rem var(--display); color: var(--c); }
.pod-score { font: 900 2rem var(--display); }
.pod-block { margin-top: 8px; border-radius: 14px 14px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 60%, #000), color-mix(in srgb, var(--c) 20%, #000)); font: 900 3rem var(--display); display: grid; place-items: center; color: rgba(255,255,255,.85); }
.pod.p0 .pod-block { height: 220px; } .pod.p1 .pod-block { height: 160px; } .pod.p2 .pod-block { height: 110px; }
.rest { display: flex; gap: 18px; justify-content: center; margin-top: 16px; flex-wrap: wrap; font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .profile { grid-template-columns: 1fr; }
  .ticket-wrap, .td-stage, .sq-body, .teach-grid { grid-template-columns: 1fr; }
  .powerups { grid-column: auto; grid-row: auto; flex-direction: row; flex-wrap: wrap; }
  .td-ticket { position: static; }
  .pp-opts { grid-template-columns: 1fr 1fr; }
  .opts, .qv-opts { grid-template-columns: 1fr; }
  .pp-belt-wrap { grid-template-columns: 50px 1fr 50px; }
  .pp-bin, .pp-shredder { font-size: 24px; }
  .pp-bin span, .pp-shredder span { display: none; }
  .pp-card { width: 230px; }
  .res-top { flex-direction: column; text-align: center; }
  .res-stats { grid-template-columns: 1fr 1fr; }
  .mastery-cats { grid-template-columns: 1fr; }
  .mbar, .mastery-cats .mbar { grid-template-columns: 1fr; gap: 4px; }
  .form-row { grid-template-columns: 1fr; }
  .wager { grid-template-columns: 18px 1fr; }
  .hud { grid-template-columns: 1fr auto; } .hud-mid { order: 3; grid-column: 1 / -1; }
  .board { grid-auto-rows: minmax(54px, 1fr); }
}
@media (min-width: 1500px) {
  body { font-size: 19px; }
  .stage { width: min(1400px, 100%); }
  .ticket-wrap { grid-template-columns: 250px 1fr; }
  .td-stage { grid-template-columns: 360px 1fr; }
  .q { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
