:root{--bg:#10122E;--panel:#1C1F4A;--panel2:#272B5E;--ink:#F7F4EC;--mute:#C9CCE3;--amber:#F5B82E;--good:#5BD6A0;--bad:#FF9A8A;--line:#3A3F7A}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;-webkit-text-size-adjust:100%}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
button:disabled{cursor:default;opacity:.55}
input{font:inherit}
.eyebrow{font-size:.78em;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--amber)}
.mute{color:var(--mute)}
.good{color:var(--good)}
.bad{color:var(--bad)}
.amber{color:var(--amber)}
.card{background:var(--panel);border-radius:16px;padding:16px}
.btn{display:block;width:100%;padding:14px 16px;border-radius:14px;background:var(--amber);color:#10122E;font-weight:700;text-align:center}
.btn.ghost{background:var(--panel2);color:var(--ink);font-weight:600}
.btn.small{display:inline-block;width:auto;padding:8px 12px;border-radius:10px;font-size:.9em}
.pill{display:inline-block;padding:2px 10px;border-radius:999px;background:var(--panel2);font-size:.82em;font-weight:600;color:var(--mute)}
.pill.on{background:var(--amber);color:#10122E}
.pill.ok{background:var(--good);color:#10122E}

/* ---------- phone ---------- */
body.phone{min-height:100vh}
.phone #app{max-width:560px;margin:0 auto;padding:12px 14px 40px}
.phone .top{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 2px 12px;font-size:.9rem}
.phone .top b{font-weight:700}
.phone .timer{font-variant-numeric:tabular-nums;font-weight:700;color:var(--amber);font-size:1.15rem;white-space:nowrap}
.phone h1{font-size:1.5rem;line-height:1.2;margin:4px 0 10px}
.phone h2{font-size:1.15rem;line-height:1.3;margin:0 0 8px}
.phone p{line-height:1.45}
.phone .stack>*+*{margin-top:12px}
.phone .q{font-size:1.05rem;font-weight:600;line-height:1.4;margin-bottom:10px}
.phone .opt{display:flex;gap:10px;align-items:flex-start;width:100%;text-align:left;padding:12px;border-radius:12px;background:var(--panel2);margin-top:8px;border:2px solid transparent;line-height:1.35}
.phone .opt .l{flex:none;width:28px;height:28px;border-radius:8px;background:var(--bg);display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--amber)}
.phone .opt .t{flex:1;min-width:0}
.phone .opt.sel{border-color:var(--amber)}
.phone .opt.final{border-color:var(--good)}
.phone .opt.right{border-color:var(--good)}
.phone .opt .who{display:block;font-size:.8rem;color:var(--mute);margin-top:4px}
.phone .opt .tag{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-left:6px}
.phone .banner{background:var(--amber);color:#10122E;border-radius:12px;padding:10px 12px;font-weight:700}
.phone .stakes{display:flex;gap:8px;margin:10px 0}
.phone .stakes button{flex:1;padding:12px 0;border-radius:12px;background:var(--panel2);font-weight:700;border:2px solid transparent}
.phone .stakes button.sel{border-color:var(--amber);color:var(--amber)}
.phone input[type=text]{width:100%;padding:14px;border-radius:12px;border:2px solid var(--line);background:var(--panel);color:var(--ink)}
.phone .teamgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.phone .teamgrid button{padding:14px 8px;border-radius:12px;background:var(--panel2);font-weight:600;border:2px solid transparent}
.phone .teamgrid button.sel{border-color:var(--amber);color:var(--amber)}
.phone .teamgrid small{display:block;font-weight:400;color:var(--mute)}
.phone .kv{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid var(--line)}
.phone .kv:last-child{border-bottom:0}
.phone .big{font-size:2.2rem;font-weight:800;color:var(--amber);line-height:1.1}
.phone .err{color:var(--bad);font-weight:600}
.phone ul{margin:6px 0 0;padding-left:20px;line-height:1.45}
.phone .explain{font-size:.92rem;color:var(--mute);margin-top:8px;line-height:1.45}

/* ---------- prof ---------- */
body.prof{height:100vh;overflow:hidden}
.prof #app{display:grid;grid-template-columns:1fr 340px;grid-template-rows:auto 1fr auto;height:100vh}
.prof header{grid-column:1/3;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 28px;border-bottom:1px solid var(--line)}
.prof header .where{font-size:20px;font-weight:700}
.prof header .where span{color:var(--mute);font-weight:500}
.prof header .timer{font-size:44px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--amber);min-width:150px;text-align:right}
.prof header .timer.over{color:var(--bad)}
.prof main{padding:28px 36px;overflow:auto}
.prof aside{border-left:1px solid var(--line);padding:16px;overflow:auto}
.prof footer{grid-column:1/3;display:flex;gap:8px;align-items:center;padding:10px 16px;border-top:1px solid var(--line);flex-wrap:wrap}
.prof footer .btn{width:auto;display:inline-block;padding:10px 16px;font-size:15px}
.prof footer .sp{flex:1}
.prof footer .join{font-size:14px;color:var(--mute)}
.prof .eyebrow{font-size:20px;margin-bottom:14px}
.prof h1{font-size:76px;line-height:1.05;margin-bottom:18px}
.prof h2{font-size:42px;line-height:1.2;margin-bottom:22px;font-weight:700}
.prof .lead{font-size:30px;line-height:1.35;color:var(--mute)}
.prof .opts{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:8px}
.prof .opts.one{grid-template-columns:1fr}
.prof .opt{display:flex;gap:14px;align-items:flex-start;background:var(--panel);border-radius:16px;padding:16px 18px;font-size:26px;line-height:1.3;border:3px solid transparent}
.prof .opt .l{flex:none;width:44px;height:44px;border-radius:10px;background:var(--bg);display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--amber)}
.prof .opt.right{border-color:var(--good)}
.prof .opt .tag{display:block;font-size:15px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--good);margin-top:4px}
.prof .opt .cnt{display:block;font-size:16px;color:var(--mute);margin-top:4px}
.prof .explain{font-size:24px;line-height:1.4;color:var(--mute);margin-top:18px}
.prof .explain b{color:var(--ink)}
.prof table{width:100%;border-collapse:collapse;font-size:22px;margin-top:16px}
.prof th,.prof td{padding:9px 12px;text-align:left;border-bottom:1px solid var(--line)}
.prof th{font-size:15px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);font-weight:700}
.prof td.n,.prof th.n{text-align:right;font-variant-numeric:tabular-nums}
.prof tr.sel td{background:var(--panel)}
.prof tr.click{cursor:pointer}
.prof .chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.prof .chip{background:var(--panel);border-radius:12px;padding:10px 14px;font-size:20px}
.prof .chip b{color:var(--amber)}
.prof .chip b.good{color:var(--good)}
.prof .chip b.bad{color:var(--bad)}
.prof .vs{display:flex;align-items:stretch;gap:24px;margin:20px 0}
.prof .vs .side{flex:1;background:var(--panel);border-radius:20px;padding:26px;text-align:center}
.prof .vs .side h3{font-size:46px;margin-bottom:12px}
.prof .vs .mid{display:flex;align-items:center;font-size:34px;font-weight:800;color:var(--amber)}
.prof .clock{font-size:64px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--amber)}
.prof .qr{display:flex;gap:40px;align-items:center;margin-top:24px}
.prof .qr .code{background:#fff;border-radius:20px;padding:14px;line-height:0}
.prof .qr .code svg{width:340px;height:340px}
.prof .url{font-size:34px;font-weight:700;color:var(--amber);word-break:break-all}
.prof .steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:28px}
.prof .steps .card{font-size:21px;line-height:1.35;color:var(--mute)}
.prof .steps .card b{display:block;color:var(--ink);font-size:26px;margin-bottom:6px}
.prof .steps .card i{display:block;font-style:normal;font-weight:800;font-size:40px;color:var(--amber);line-height:1}
.prof .qgrid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-top:14px}
.prof .qgrid .card{font-size:15.5px;line-height:1.32;padding:12px}
.prof .qgrid .card b{display:block;margin-bottom:6px}
.prof .qgrid .card span{display:block;color:var(--mute)}
.prof aside h3{font-size:14px;letter-spacing:.1em;text-transform:uppercase;color:var(--mute);margin:4px 0 10px}
.prof .team{display:block;width:100%;text-align:left;background:var(--panel);border-radius:12px;padding:10px 12px;margin-bottom:8px;border:2px solid transparent}
.prof .team.empty{opacity:.4}
.prof .team.done{border-color:var(--good)}
.prof .team .row{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.prof .team .name{font-weight:700;font-size:17px}
.prof .team .pts{font-weight:800;color:var(--amber);font-variant-numeric:tabular-nums}
.prof .team .sub{font-size:13px;color:var(--mute);margin-top:2px}
.prof .modal{position:fixed;inset:0;background:rgba(8,9,26,.8);display:flex;align-items:center;justify-content:center;z-index:10}
.prof .modal .box{background:var(--panel);border-radius:18px;padding:24px;width:520px;max-height:86vh;overflow:auto}
.prof .modal h2{font-size:26px;margin-bottom:14px}
.prof .modal input{padding:10px;border-radius:10px;border:2px solid var(--line);background:var(--bg);color:var(--ink);width:100%}
.prof .modal .m{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}
.prof .modal .acts{display:flex;gap:6px}
.prof .bar{height:26px;border-radius:8px;background:var(--amber);min-width:4px}
.prof ul.cm{margin:10px 0 0;padding-left:26px;font-size:22px;line-height:1.45;color:var(--mute)}
.prof .two{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:16px}
.prof .two h3{font-size:22px;margin-bottom:6px}
.prof .rank{font-size:110px;font-weight:800;color:var(--amber);line-height:1}
.prof .review{display:grid;grid-template-columns:1.15fr 1fr;gap:32px;margin-top:10px;align-items:start}
.prof .review table{font-size:19px;margin-top:8px}
.prof .review th,.prof .review td{padding:7px 10px}
.prof .review h3{font-size:22px;margin:14px 0 4px}
.prof .review ul.cm{font-size:19px;margin-top:4px}
