:root{--bg:#f4f5f7;--surface:#fff;--ink:#14213d;--ink-soft:#5b6478;--line:#d9dde5;--accent:#1f5fd1;--accent-ink:#fff;--good:#14804a;--good-bg:#e6f5ec;--bad:#b3261e;--bad-bg:#fdecea;--radius:14px;color:var(--ink);background:var(--bg);-webkit-text-size-adjust:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}*{box-sizing:border-box}html,body{min-height:100%;margin:0}#root{flex-direction:column;min-height:100dvh;display:flex}body{-webkit-tap-highlight-color:transparent;min-height:100dvh}h1{margin:0 0 .5rem;font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.2}h2{margin:0 0 .5rem;font-size:1.25rem}p{margin:0 0 .75rem;line-height:1.5}a{color:var(--accent)}.screen{width:100%;max-width:960px;padding:max(20px, env(safe-area-inset-top)) 24px 40px;flex-direction:column;gap:18px;margin:0 auto;display:flex}.screen.center{text-align:center;flex:1;justify-content:center;align-items:center}.screen.host{max-width:1180px}.eyebrow{letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft);margin:0 0 .35rem;font-size:.85rem;font-weight:600}.lead{color:var(--ink-soft);font-size:1.2rem}.muted{color:var(--ink-soft);font-size:.95rem}.good{color:var(--good);font-weight:700}.bad{color:var(--bad);font-weight:600}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.demo-banner{color:#5c4300;background:#fff4d6;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 18px;margin:0;padding:8px 16px;font-size:.9rem;display:flex}.demo-banner a{color:#5c4300;padding:6px 4px;font-weight:700}.demo-banner a[aria-current]{border-bottom:3px solid #5c4300;text-decoration:none}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px}.mission-bar{justify-content:space-between;align-items:center;gap:16px;display:flex}.progress-label{margin:0;font-size:1.15rem;font-weight:700}.countdown{font-variant-numeric:tabular-nums;background:var(--surface);border:1px solid var(--line);white-space:nowrap;border-radius:999px;padding:8px 16px;font-size:1.6rem;font-weight:700}.countdown-low{color:var(--bad);border-color:var(--bad)}.countdown-over{color:var(--accent-ink);background:var(--bad);border-color:var(--bad);font-size:1.1rem}.btn{min-height:52px;font:inherit;cursor:pointer;border:2px solid #0000;border-radius:12px;justify-content:center;align-items:center;padding:0 24px;font-size:1.05rem;font-weight:700;text-decoration:none;display:inline-flex}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-primary{background:var(--accent);color:var(--accent-ink)}.btn-quiet{background:var(--surface);color:var(--ink);border-color:var(--line)}.btn-danger{background:var(--bad);color:#fff}.btn-small{min-height:40px;padding:0 14px;font-size:.95rem}.btn:focus-visible,.option:focus-visible,.tile:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;display:flex}.join-form{flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;display:flex}.join-form label{width:100%;font-weight:700}.join-form input{border:2px solid var(--line);width:min(420px,80vw);height:60px;font:inherit;text-align:center;border-radius:12px;padding:0 16px;font-size:1.4rem}.rejoin{margin-top:24px}.rejoin .actions{justify-content:center}.name-box{width:100%;min-width:150px;height:44px;font:inherit;background:0 0;border:2px solid #0000;border-radius:10px;padding:0 10px;font-weight:700}.name-box:hover,.name-box:focus{border-color:var(--line);background:var(--surface)}.host-grid td:last-child{white-space:nowrap}.host-grid td:last-child .btn+.btn{margin-left:8px}.team-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;width:100%;max-width:760px;display:grid}.btn-team{background:var(--surface);border-color:var(--line);color:var(--ink);min-height:72px}.notice{background:var(--surface);border:2px solid var(--bad);border-radius:var(--radius);max-width:520px;padding:20px}.score-pill{background:var(--ink);color:#fff;border-radius:999px;padding:8px 20px;font-size:1.15rem;font-weight:700;display:inline-block}.body-text{white-space:pre-line;font-size:1.15rem}.upload{border-top:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:16px;margin-top:16px;padding-top:16px;display:flex}.upload p{margin:0}.collected{flex-wrap:wrap;gap:8px;display:flex}.chip{border:2px dashed var(--line);background:var(--surface);border-radius:10px;justify-content:center;align-items:center;min-width:46px;height:46px;padding:0 10px;font-size:1.2rem;font-weight:800;display:inline-flex}.chip:not(:empty){border-style:solid;border-color:var(--ink)}.collected-phrases .chip{min-width:150px;font-size:.85rem}.prompt{white-space:pre-line;font-size:clamp(1.15rem,2.2vw,1.45rem);font-weight:650}.options{gap:12px;margin-top:18px;display:grid}.option{text-align:left;border:2px solid var(--line);background:var(--surface);width:100%;min-height:64px;color:var(--ink);font:inherit;cursor:pointer;border-radius:12px;align-items:flex-start;gap:14px;padding:14px 16px;font-size:1.05rem;line-height:1.4;display:flex}.option:disabled{cursor:default;color:var(--ink);opacity:1}.option-letter{background:var(--bg);border-radius:50%;flex:none;justify-content:center;align-items:center;width:34px;height:34px;font-weight:800;display:inline-flex}.option.is-picked{border-color:var(--accent);background:#eef4ff}.option.is-picked .option-letter{background:var(--accent);color:#fff}.option.is-correct{border-color:var(--good);background:var(--good-bg)}.option.is-correct .option-letter{background:var(--good);color:#fff}.option.is-wrong{border-color:var(--bad);background:var(--bad-bg)}.option.is-wrong .option-letter{background:var(--bad);color:#fff}.outcome{border-radius:var(--radius);border:2px solid;padding:20px 24px}.outcome-good{background:var(--good-bg);border-color:var(--good)}.outcome-bad{background:var(--bad-bg);border-color:var(--bad)}.token-line{font-size:1.15rem;font-weight:800}.tiles{gap:18px;margin-top:18px;display:grid}.tile-row{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.tile{border:2px solid var(--ink);background:var(--surface);width:72px;height:72px;color:var(--ink);font:inherit;cursor:pointer;border-radius:12px;font-size:1.9rem;font-weight:800}.tile:disabled{opacity:.25;cursor:default}.slot{border-color:var(--accent);background:#eef4ff}.slot.slot-empty{background:var(--bg);border-style:dashed;border-color:var(--line);opacity:1}.tiles-wide .tile{width:auto;min-width:220px;height:64px;padding:0 16px;font-size:1rem}.solved-word{letter-spacing:.12em;margin:0;font-size:clamp(2.5rem,8vw,4.5rem);font-weight:900}.solved-sentence{max-width:26ch;font-size:clamp(1.3rem,3.2vw,2rem);font-weight:800}.leaderboard,.host-grid{border-collapse:collapse;background:var(--surface);border-radius:var(--radius);width:100%;overflow:hidden}.leaderboard th,.leaderboard td,.host-grid th,.host-grid td{text-align:left;border-bottom:1px solid var(--line);padding:12px 16px}.leaderboard thead th,.host-grid thead th{text-transform:uppercase;letter-spacing:.06em;color:var(--ink-soft);font-size:.8rem}.leaderboard{max-width:620px;font-size:1.1rem}.leaderboard td:first-child{width:4.5rem;font-weight:800}.num{font-variant-numeric:tabular-nums;font-weight:700;text-align:right!important}.leaderboard tr.is-me td{background:#eef4ff;font-weight:800}.board{flex:1;max-width:1100px}.board h1{font-size:clamp(2rem,5vw,3.5rem)}.board .leaderboard{max-width:none;font-size:clamp(1.2rem,2.6vw,2rem)}.board .leaderboard th,.board .leaderboard td{padding:clamp(8px,1.4vh,18px) 24px}.host-controls{flex-wrap:wrap;align-items:center;gap:20px;display:flex}.host-controls p{margin:0}.toggle{cursor:pointer;align-items:center;gap:10px;min-height:48px;font-weight:600;display:inline-flex}.toggle input{width:24px;height:24px}.links{margin-left:auto!important}.host-grid tbody th{white-space:nowrap;font-weight:700}.num-box{border:2px solid var(--line);width:84px;height:44px;font:inherit;text-align:center;border-radius:10px;font-size:1.05rem}.tag{background:var(--good-bg);color:var(--good);border-radius:999px;margin-left:10px;padding:2px 10px;font-size:.85rem;font-weight:700;display:inline-block}.start-code{justify-content:space-between;align-items:center;gap:24px;display:flex}.url{word-break:break-all;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.qr{flex:none;width:200px;height:200px}.pin-form{flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;display:flex}.pin-form input{border:2px solid var(--line);height:52px;font:inherit;border-radius:12px;width:180px;padding:0 14px;font-size:1.1rem}@media (width<=720px){.join-form{flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;display:flex}.join-form label{width:100%;font-weight:700}.join-form input{border:2px solid var(--line);width:min(420px,80vw);height:60px;font:inherit;text-align:center;border-radius:12px;padding:0 16px;font-size:1.4rem}.rejoin{margin-top:24px}.rejoin .actions{justify-content:center}.name-box{width:100%;min-width:150px;height:44px;font:inherit;background:0 0;border:2px solid #0000;border-radius:10px;padding:0 10px;font-weight:700}.name-box:hover,.name-box:focus{border-color:var(--line);background:var(--surface)}.host-grid td:last-child{white-space:nowrap}.host-grid td:last-child .btn+.btn{margin-left:8px}.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tile{width:56px;height:56px;font-size:1.5rem}.start-code{flex-direction:column;align-items:flex-start}}@media print{body *{visibility:hidden}.start-code,.start-code *{visibility:visible}.start-code{text-align:center;border:0;flex-direction:column;justify-content:center;position:absolute;inset:0}.start-code .btn,.demo-banner{display:none}.qr{width:12cm;height:12cm}}.card-top{justify-content:space-between;align-items:center;gap:12px;display:flex}.challenge-timer{font-variant-numeric:tabular-nums;color:var(--bad);margin:0 0 .35rem;font-weight:800}.hold{color:var(--ink-soft);font-variant-numeric:tabular-nums;margin:0;font-weight:700}.release-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.release-list li{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:10px 0;display:flex}.release-list li>span:first-child{flex:1}.host-tabs{flex-wrap:wrap;gap:8px;display:flex}.editor{flex-direction:column;gap:18px;display:flex}.editor-tabs{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}fieldset.card{min-width:0;margin:0}.editor-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 16px;display:grid}.editor-challenge .editor-fields{margin-top:14px}.editor-fields label{flex-direction:column;grid-column:span 2;gap:6px;font-size:.9rem;font-weight:600;display:flex}.editor-fields label.wide{grid-column:1/-1}.editor-fields label.narrow{grid-column:span 1}.editor input,.editor textarea,.editor select{font:inherit;border:2px solid var(--line);background:var(--surface);color:var(--ink);border-radius:10px;width:100%;padding:10px 12px;font-size:1rem;font-weight:400}.editor textarea{resize:vertical;line-height:1.4}.editor :disabled{background:var(--bg);color:var(--ink-soft)}.hint{color:var(--ink-soft);font-size:.85rem;font-weight:400}.editor-head{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.editor-head h2{margin:0}.editor-head select{width:auto}.editor-moves{gap:8px;margin-left:auto;display:flex}.editor-save{flex-direction:column;align-items:flex-start;gap:14px;display:flex}.editor-save .actions{align-self:stretch}.editor-save .notice{align-self:stretch;max-width:none}.editor-save ul{margin:0;padding-left:1.2rem}@media (width<=720px){.editor-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
