@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 600; font-display: swap; src: url('fonts/barlow-condensed-latin-600-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url('fonts/barlow-condensed-latin-800-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 900; font-display: swap; src: url('fonts/barlow-condensed-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 900; font-display: swap; src: url('fonts/barlow-condensed-latin-900-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/inter-latin-800-normal.woff2') format('woff2'); }
:root {
  color-scheme: dark;
  --bg: #050605; --bg2: #0c0e0c; --card: #131613; --card2: #1a1e1a; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --text: #f2f4ef; --muted: #9aa39a; --blue: #cdfc08; --blue2: #a8d10f; --lime: #cdfc08; --on-lime: #0a0d02; --red: #ff3b4e; --green: #2bd67b; --gold: #ffc83d; --orange: #ff8a1f;
  --r: 14px; --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif; --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; background: radial-gradient(1200px 600px at 80% -10%, rgba(205,252,8,.14), transparent 60%), var(--bg); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; width: 100%; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(205,252,8,.25); }
textarea { resize: vertical; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; letter-spacing: .3px; margin: 0; line-height: 1.05; }
h1 { font-size: 34px; } h2 { font-size: 26px; } h3 { font-size: 21px; margin-bottom: 6px; }
p { margin: 6px 0; } hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.muted { color: var(--muted); } .lime { color: var(--lime); font-style: inherit; } .sm { font-size: 13px; } .center { text-align: center; justify-content: center; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; } .full { width: 100%; } .nowrap { white-space: nowrap; }
.boot { display: grid; place-items: center; height: 100vh; font: 900 italic 48px var(--head); color: var(--muted); }

/* buttons */
.btn { background: var(--blue); border: 0; border-radius: 11px; padding: 10px 16px; font-weight: 800; color: var(--on-lime); transition: .15s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { background: #d6ff4a; } .btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; border: 1px solid var(--line2); color: var(--text); } .btn.ghost:hover { background: rgba(255,255,255,.06); }
.btn.sm { padding: 7px 12px; font-size: 13px; } .btn.xs { padding: 4px 9px; font-size: 12px; border-radius: 8px; margin-left: 4px; }
.btn.danger-fill { background: var(--red); } .btn.danger-fill:hover { background: #ff5a6a; }
.btn.xl { padding: 15px 18px; font-size: 17px; } .btn.danger, .danger { color: #ff7b88 !important; }
.btn.pulse { box-shadow: 0 0 0 0 rgba(205,252,8,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(205,252,8,0); } 100% { box-shadow: 0 0 0 0 rgba(205,252,8,0); } }
.ib { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line2); background: var(--card); display: grid; place-items: center; font-size: 15px; }
.ib.primary { background: var(--blue); border-color: var(--blue); color: var(--on-lime); } .ib.ghost { background: transparent; }
.link { background: none; border: 0; color: #d4f75a; padding: 0; font-weight: 600; }
.chip { border: 1px solid var(--line2); background: transparent; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 13px; color: var(--muted); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); } .chip.sm { padding: 4px 10px; font-size: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line2); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 8px; padding: 7px 12px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--card2); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.seg.full { display: flex; } .seg.full button { flex: 1; } .seg.sm button { padding: 5px 10px; font-size: 12px; }
.pill { background: rgba(255,255,255,.08); border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: auto; }
.spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.ai-dot { display: inline-block; background: var(--red); color: #fff; font: 900 italic 11px var(--head); padding: 1px 5px; border-radius: 4px; letter-spacing: .5px; vertical-align: 1px; }

/* logo */
.logo { display: inline-flex; align-items: center; } .logo img { height: 30px; width: auto; display: block; } .logo.big img { height: auto; width: min(340px, 80vw); }
.logo .ai { color: var(--red); } .logo.big { font-size: 64px; letter-spacing: 2px; }

/* top bar */
.demo-bar { background: linear-gradient(90deg, #3a2a00, #2a1e00); color: var(--gold); font-size: 13px; text-align: center; padding: 6px 12px; }
.demo-bar .link { color: #fff; text-decoration: underline; margin-left: 6px; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: rgba(5,6,5,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.team-name { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.tabs { display: flex; gap: 4px; margin-left: auto; }
.tab { border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 700; display: flex; gap: 7px; align-items: center; }
.tab.on { color: var(--text); background: var(--card); }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--blue); background: var(--card2); font-weight: 800; flex: none; }

.page { max-width: 1220px; margin: 0 auto; padding: 22px 20px 100px; }
.page.narrow { max-width: 720px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.back { display: block; margin-bottom: 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card.pad { padding: 18px; } .page > .card.pad { margin-bottom: 14px; }
.empty { color: var(--muted); padding: 30px; text-align: center; }
.note { background: rgba(255,200,61,.1); border: 1px solid rgba(255,200,61,.25); color: #ffe1a0; border-radius: 10px; padding: 9px 12px; font-size: 14px; }

/* playbook grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.play-card { overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s; }
.play-card:hover { transform: translateY(-2px); border-color: var(--line2); }
.thumb { position: relative; background: #151815; aspect-ratio: 16/14; }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb .cat { position: absolute; left: 10px; top: 10px; background: rgba(5,6,5,.85); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .6px; }
.pc-body { padding: 12px 14px 14px; } .pc-body h3 { font-size: 20px; }
.assigned { display: flex; align-items: center; gap: 6px; color: var(--gold); font-size: 13px; font-weight: 600; margin-top: 8px; }
.pc-actions { margin-top: 10px; }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; max-width: 1100px; margin: 0 auto; padding: 30px 24px; }
.auth-hero h1 { font-size: 54px; margin: 10px 0; font-style: italic; }
.auth-hero p { color: var(--muted); font-size: 17px; max-width: 480px; }
.feat { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; max-width: 460px; }
.feat li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 14px; }
.auth-card { background: var(--card); border: 1px solid var(--line2); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.auth-card > div#authform { display: flex; flex-direction: column; gap: 12px; }
.auth-card h2 { margin-top: 6px; }
.demo-quick { border-top: 1px dashed var(--line2); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; align-items: center; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(2,4,10,.72); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; background: var(--card); border: 1px solid var(--line2); border-radius: 18px; padding: 22px; width: min(480px, 100%); max-height: 92vh; overflow: auto; }
.modal.wide { width: min(1000px, 100%); }
.modal.present { width: min(1300px, 100%); }
.modal-x { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.07); z-index: 2; }
.present-head { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 40px 12px 0; } .present-head select { width: auto; flex: 1; min-width: 200px; }
.user-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.upick { background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; text-align: left; }
.upick span { color: var(--muted); font-size: 12px; } .upick:hover { border-color: var(--blue); }

/* toast + confetti */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: #1d2846; border: 1px solid var(--line2); padding: 11px 18px; border-radius: 12px; font-weight: 600; z-index: 200; opacity: 0; transition: .25s; max-width: calc(100vw - 32px); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.toast.in { opacity: 1; transform: translate(-50%, 0); } .toast.good { border-color: var(--green); } .toast.bad { border-color: var(--red); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; }

/* viewer */
.viewer { display: flex; flex-direction: column; gap: 10px; }
.vstage { position: relative; aspect-ratio: 16/10.5; border-radius: 16px; overflow: hidden; background: #0a0d18; border: 1px solid var(--line); touch-action: pan-y; }
.viewer.big .vstage { aspect-ratio: 16/9.3; }
.vstage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.watch-grid > *, .ed-grid > *, .ed-main { min-width: 0; }
.vbug { position: absolute; left: 14px; top: 14px; display: flex; align-items: stretch; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.5); font-family: var(--head); text-transform: uppercase; pointer-events: none; max-width: calc(100% - 28px); }
.vbug > span { padding: 5px 11px; display: flex; align-items: center; white-space: nowrap; }
.bug-logo { background: #050605; font: 900 italic 19px var(--head); letter-spacing: .5px; } .bug-logo b { color: var(--lime); font-weight: 900; }
.bug-name { background: linear-gradient(180deg, #cdfc08, #a9d400); color: #0a0d02; font-weight: 800; font-size: 17px; letter-spacing: .6px; overflow: hidden; text-overflow: ellipsis; }
.bug-step { background: #f4f6fb; color: #0a0c0a; font-weight: 900; font-size: 16px; letter-spacing: .8px; }
.vcap { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: stretch; max-width: 92%; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.55); pointer-events: none; animation: capin .35s ease; }
.cap-k { background: var(--lime); color: #0a0d02; font: 900 italic 16px var(--head); text-transform: uppercase; padding: 9px 12px; display: flex; align-items: center; letter-spacing: .6px; white-space: nowrap; }
.cap-t { background: rgba(6,7,6,.92); padding: 9px 14px; font-weight: 600; font-size: 15px; }
@keyframes capin { from { opacity: 0; transform: translate(-50%, 8px); } }
.vload { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 700; background: #05070d; }
.vstage canvas.c3, .vstage canvas.c2 { position: absolute; inset: 0; }
.vbigplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; border: 0; background: var(--blue); font-size: 30px; padding-left: 6px; box-shadow: 0 10px 40px rgba(205,252,8,.6); }
.vctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vdots { display: flex; gap: 5px; flex: 1; justify-content: center; flex-wrap: wrap; }
.vdot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line2); background: var(--bg2); font-size: 12px; font-weight: 700; color: var(--muted); }
.vdot.done { background: rgba(205,252,8,.25); color: var(--text); } .vdot.on { background: var(--blue); color: var(--on-lime); border-color: var(--blue); }
.vdot.read { border-color: #ffd21a; color: #ffd21a; } .vdot.read.on { background: #ffd21a; color: #1c1500; border-color: #ffd21a; }
.bug-def { background: #5b616a; color: #fff; font-weight: 900; font-size: 14px; letter-spacing: .8px; }
.bug-def[data-style=tight] { background: #2b2f36; box-shadow: inset 0 -3px 0 #e5262f; }
.bug-def[data-style=loose] { background: #8a919b; color: #10131a; }
.bug-def[hidden], .bug-side[hidden] { display: none !important; }
.bug-side { background: #ffd21a; color: #1c1500; font-weight: 900; font-size: 14px; letter-spacing: .8px; }
.vcap.read .cap-k { background: #ffd21a; color: #1c1500; }
.vcap.read .cap-t { background: rgba(28,22,0,.94); }
.dchip[hidden] { display: none; }

/* watch */
.watch-grid { display: grid; grid-template-columns: 1fr 330px; gap: 18px; align-items: start; margin-top: 10px; }
.watch-side { display: flex; flex-direction: column; gap: 12px; }
.spots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.spot { border: 1px solid var(--line2); background: var(--bg2); border-radius: 12px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; position: relative; }
.spot b { font: 900 22px var(--head); } .spot span { font-size: 11px; color: var(--muted); font-weight: 700; }
.spot { border-top: 5px solid var(--pc, var(--line2)); }
.spot i { font-style: normal; font-size: 11px; font-weight: 800; color: var(--pc); text-transform: uppercase; letter-spacing: .4px; }
.spot.on { border-color: var(--pc, #fff); background: color-mix(in srgb, var(--pc, #fff) 22%, transparent); }
.spot.learned::after { content: "✓"; position: absolute; top: 2px; right: 5px; color: var(--green); font-size: 11px; font-weight: 900; }
.role-card { background: rgba(43,214,123,.08); border: 1px solid rgba(43,214,123,.3); border-radius: 12px; padding: 12px; }
.role-h { font: 800 17px var(--head); color: var(--green); text-transform: uppercase; letter-spacing: .5px; }
details summary { cursor: pointer; font-weight: 700; } details p { color: var(--muted); }

/* editor */
.ed-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ed-name { flex: 1; min-width: 200px; font: 800 28px var(--head); background: transparent; border-color: transparent; padding: 4px 8px; }
.ed-name:hover { border-color: var(--line2); }
.ed-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.ed-main { display: flex; flex-direction: column; gap: 10px; }
.tools { display: flex; gap: 6px; flex-wrap: wrap; }
.tool { border: 1px solid var(--line2); background: var(--card); border-radius: 11px; padding: 7px 11px; display: flex; gap: 6px; align-items: center; font-weight: 700; font-size: 13px; color: var(--muted); }
.tool .tico { color: var(--tc); font-size: 16px; width: 18px; text-align: center; }
.tool.on { border-color: var(--tc); color: var(--text); background: color-mix(in srgb, var(--tc) 16%, var(--card)); }
.ed-stage { position: relative; height: max(380px, calc(100vh - 345px)); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); touch-action: none; background: #151815; }
.ed-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.ed-hint { position: absolute; left: 10px; bottom: 10px; right: 10px; text-align: center; font-size: 13px; color: #eef7d8; background: rgba(5,6,5,.75); border-radius: 10px; padding: 6px 10px; pointer-events: none; }
.steps { display: flex; flex-direction: column; gap: 8px; }
.step-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.stab { border: 1px solid var(--line2); background: var(--card); border-radius: 10px; padding: 7px 12px; font-weight: 700; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.stab .sn { background: rgba(255,255,255,.1); border-radius: 999px; padding: 0 6px; font-size: 11px; }
.stab.on { background: var(--blue); border-color: var(--blue); color: var(--on-lime); } .stab.add { color: #d4f75a; } .stab.del { margin-left: auto; }
.ed-side { padding: 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.qlist { display: flex; flex-direction: column; gap: 10px; } .qi { background: var(--bg2); border-radius: 10px; padding: 10px; font-size: 14px; }
.qi ol { margin: 6px 0; padding-left: 22px; color: var(--muted); } .qi li.right { color: var(--green); font-weight: 700; }
.rowl { flex-direction: row; align-items: center; } .rowl input[type=radio] { width: auto; }

/* new play */
.np-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 16px; }
.np { border: 1px solid var(--line2); background: var(--bg2); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.np.on { border-color: var(--blue); background: rgba(205,252,8,.12); } .np b { font-size: 16px; }
.np-i { font-size: 26px; }
#npb { display: flex; flex-direction: column; gap: 12px; }
.drop { border: 2px dashed var(--line2); border-radius: 14px; padding: 24px; align-items: center; text-align: center; cursor: pointer; color: var(--text); }
.drop img { max-width: 100%; max-height: 260px; border-radius: 10px; margin-top: 10px; }

/* team */
.invite { display: flex; align-items: center; gap: 20px; padding: 18px; margin: 12px 0 16px; flex-wrap: wrap; }
.code { font: 900 italic 44px var(--head); letter-spacing: 4px; color: var(--gold); line-height: 1; }
.invite-txt { flex: 1; min-width: 220px; }
.table-card { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding: 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.rank { font: 900 18px var(--head); color: var(--muted); width: 30px; }
.xp { color: var(--green); font-weight: 800; }
.mini-bar { display: inline-block; width: 70px; height: 6px; background: var(--bg2); border-radius: 3px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.mini-bar span { display: block; height: 100%; background: var(--green); }

/* player home */
.hero-card { background: radial-gradient(600px 260px at 100% 0%, rgba(205,252,8,.22), transparent 60%), linear-gradient(135deg, #1b1f17, #0d0f0c 60%, #080908); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.hero-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 22px solid rgba(255,255,255,.05); }
.hc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.hero-card h1 { font-size: 40px; } .jn { color: rgba(255,255,255,.5); }
.streak { background: rgba(0,0,0,.3); border-radius: 14px; padding: 8px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; font-size: 13px; filter: grayscale(1); opacity: .7; }
.streak.hot { filter: none; opacity: 1; } .streak b { font: 900 26px var(--head); line-height: 1; }
.lvl { display: flex; justify-content: space-between; align-items: baseline; }
.lvl-name { font: 900 italic 24px var(--head); color: var(--lime); text-transform: uppercase; } .xpn b { font: 900 26px var(--head); }
.xpbar { height: 12px; background: rgba(0,0,0,.35); border-radius: 6px; overflow: hidden; }
.xpbar span { display: block; height: 100%; background: linear-gradient(90deg, #a8d10f, var(--lime)); border-radius: 6px; transition: width .6s; }
.sec { margin: 26px 0 10px; font-size: 24px; }
.hw-list { display: flex; flex-direction: column; gap: 10px; }
.hw { display: flex; align-items: center; gap: 14px; padding: 10px; text-align: left; width: 100%; }
.hw img { width: 74px; height: 70px; object-fit: contain; border-radius: 10px; background: #151815; flex: none; }
.hw-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; } .hw-body b { font-size: 16px; }
.status { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; white-space: nowrap; text-transform: uppercase; letter-spacing: .4px; }
.status.new { background: var(--red); } .status.watched { background: rgba(205,252,8,.25); color: #dcf78a; }
.status.quizzed { background: rgba(255,200,61,.18); color: var(--gold); } .status.mastered { background: rgba(43,214,123,.18); color: var(--green); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lb { padding: 6px 12px 12px; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.lb-row .nm { flex: 1; font-weight: 600; } .lb-row.me { background: rgba(43,214,123,.08); border-radius: 8px; }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badge { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; opacity: .38; filter: grayscale(1); }
.badge.got { opacity: 1; filter: none; border-color: rgba(255,200,61,.4); } .bi { font-size: 26px; } .badge b { font-size: 13px; } .badge .sm { font-size: 11px; }
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: end; margin: 20px 0; }
.pod { text-align: center; } .pod-n { font-weight: 800; } .pod-x { color: var(--green); font-weight: 800; font-size: 14px; }
.pod-b { margin-top: 6px; border-radius: 12px 12px 0 0; font: 900 34px var(--head); display: grid; place-items: center; }
.p1 .pod-b { height: 120px; background: linear-gradient(var(--gold), #b98a10); color: #3a2a00; }
.p2 .pod-b { height: 90px; background: linear-gradient(#c9d3e6, #7f8aa3); color: #1d2333; }
.p3 .pod-b { height: 70px; background: linear-gradient(#e0965a, #9b5a27); color: #2d1606; }

/* quiz */
.qprog { height: 8px; background: var(--card); border-radius: 4px; overflow: hidden; margin: 14px 0 10px; } .qprog span { display: block; height: 100%; background: var(--green); transition: width .3s; }
.qq { font-size: 30px; margin: 10px 0 18px; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { border: 2px solid var(--line2); background: var(--card); border-radius: 14px; padding: 14px 16px; text-align: left; font-size: 16px; font-weight: 600; display: flex; gap: 12px; align-items: center; transition: .15s; }
.opt:hover { border-color: var(--blue); }
.opt .ok { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--bg2); display: grid; place-items: center; font-weight: 800; }
.opt.right { border-color: var(--green); background: rgba(43,214,123,.14); } .opt.wrong { border-color: var(--red); background: rgba(255,59,78,.12); } .opt.dim { opacity: .45; }
.fb { margin: 16px 0; padding: 14px; border-radius: 12px; } .fb.good { background: rgba(43,214,123,.12); } .fb.bad { background: rgba(255,59,78,.1); }
.quiz-end { text-align: center; padding-top: 60px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.big-score { font: 900 italic 120px var(--head); line-height: 1; } .big-score span { font-size: 50px; color: var(--muted); } .big-score.perfect { color: var(--green); }
.gain { font: 900 28px var(--head); color: var(--gold); }

/* responsive */
@media (max-width: 1000px) {
  .ed-grid, .watch-grid { grid-template-columns: 1fr; }
  .ed-side { position: static; max-height: none; }
  .auth { grid-template-columns: 1fr; gap: 24px; }
  .auth-hero h1 { font-size: 40px; }
}
@media (max-width: 700px) {
  .top { backdrop-filter: none; background: #050605; }
  .demo-bar { font-size: 12px; padding: 5px 10px; }
  .ed-stage { height: auto; aspect-ratio: 53/51; }
  h1 { font-size: 28px; }
  .top { padding: 8px 14px; }
  .team-name { display: none; }
  .tabs { position: fixed; bottom: 0; left: 0; right: 0; justify-content: space-around; background: rgba(10,14,28,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); z-index: 30; }
  .tab { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 14px; } .tab .ti { font-size: 20px; }
  .avatar { margin-left: auto; }
  .page { padding: 16px 14px 110px; }
  .two { grid-template-columns: 1fr; }
  .np-opts { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; }
  .logo.big { font-size: 48px; }
  .hero-card h1 { font-size: 32px; }
  .qq { font-size: 24px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .vstage { aspect-ratio: 4/3.6; }
  .cap-t { font-size: 13px; } .vcap { bottom: 8px; } .bug-name { font-size: 14px; } .bug-logo { font-size: 15px; } .bug-step { font-size: 13px; }
  .row2 { grid-template-columns: 1fr; }
  .tool span:not(.tico) { display: none; } .tool { padding: 9px 11px; }
  .ed-actions .btn { padding: 8px 10px; font-size: 13px; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .toast { bottom: 96px; }
}

/* player colors: which spots each girl can play */
.cchip { display: inline-flex; align-items: center; gap: 4px; background: var(--pc); color: var(--pt, #fff); border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: 12px; margin: 2px 4px 2px 0; white-space: nowrap; }
.cpick { display: inline-flex; gap: 4px; }
.cdot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--pc); background: transparent; color: var(--pc); font-weight: 900; font-size: 12px; padding: 0; opacity: .55; }
.cdot.on { background: var(--pc); color: var(--pt, #fff); opacity: 1; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.cdot:hover { opacity: 1; }
.spot.mine { box-shadow: 0 0 0 2px var(--pc) inset; }
.spot.mine::before { content: "★"; position: absolute; top: 2px; left: 5px; color: var(--pc); font-size: 11px; }
.spot .who { font-style: normal; font-size: 10px; color: var(--muted); line-height: 1.15; text-align: center; padding: 2px 3px 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.showp { margin: 6px 0 4px; }
.mycolors { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 4px; }
.row.wrap { flex-wrap: wrap; }
.present-head #pshow { width: auto; }
#spots button.mine { box-shadow: 0 0 0 2px currentColor inset; }
.bug-def[data-style^=read] { background: #ffd21a; color: #1c1500; box-shadow: none; }
.bug-def[data-style=read-steal] { background: #e5262f; color: #fff; }
.vcap.read[data-kind=steal] .cap-k { background: #e5262f; color: #fff; }
.vcap.read[data-kind=steal] .cap-t { background: rgba(40,6,8,.94); }
.seg.lvl { align-items: center; } .seg.lvl .seg-k { font: 900 italic 12px var(--head); color: var(--muted); padding: 0 6px 0 7px; letter-spacing: .6px; }
.seg.lvl button.on { background: var(--lime); color: var(--on-lime); }
.seg.lvl[hidden] { display: none !important; }
