:root{color-scheme:dark;--bg:#10120f;--surface:#1b1e19;--line:#30352b;--ink:#f0f2e9;--muted:#959e8c;--lime:#d3ed9c;--error:#ffafa3;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.5}button,input,textarea{font:inherit}button,a,input,textarea,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--lime);outline-offset:5px}a{color:inherit;text-decoration:none}.app{max-width:740px;margin:auto;padding:env(safe-area-inset-top) 24px env(safe-area-inset-bottom)}.header{height:96px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;font-weight:650;font-size:22px;letter-spacing:-.6px}.brand-icon{width:34px;height:34px;background:var(--lime);color:#22291a;border-radius:11px;display:grid;place-items:center;font-weight:750;font-size:25px;padding-bottom:4px}.icon-button{border:1px solid var(--line);border-radius:50%;height:38px;width:38px;display:grid;place-items:center;background:transparent;color:var(--muted);font-size:22px}.eyebrow{display:flex;gap:7px;align-items:center;color:var(--muted);font-size:11px;letter-spacing:.3px}.dot{width:6px;height:6px;border-radius:50%;background:#717969}.dot.connected{background:var(--lime)}.hero{padding:35px 0 29px}.section-kicker{font-size:10px;font-weight:650;letter-spacing:1.65px;color:var(--muted)}h1{font-size:clamp(30px,7.4vw,46px);line-height:1.15;font-weight:560;letter-spacing:-1.6px;margin:16px 0}h1 span{color:var(--lime)}.hero p{font-size:13px;color:var(--muted);line-height:1.7;margin:0}.answer-card{border:1px solid #465139;border-radius:20px;background:radial-gradient(ellipse at top right,#2a3420 0,transparent 75%),#1c2218;padding:23px;min-height:255px;overflow-wrap:anywhere}.card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.card-top .section-kicker{color:#bcc7ad;font-size:9px}.status-badge{border:1px solid #526043;border-radius:30px;padding:4px 9px;font-size:10px;color:#c3d3b0;white-space:nowrap}.answer-card h2{font-size:32px;line-height:1.14;letter-spacing:-.8px;font-weight:550;margin:29px 0 13px}.answer-description{font-size:13px;color:#aab69d;line-height:1.65;max-width:420px;margin:0}.question{font-size:12px;color:#a9b49e;margin:20px 0 0}.question:empty{display:none}.answer-meta{display:flex;gap:10px;justify-content:space-between;font-size:10px;color:#b1bea3;margin:24px 0 15px}details{border-top:1px solid #414a36;padding-top:14px;font-size:12px}summary{cursor:pointer;color:var(--lime)}details p{white-space:pre-wrap;color:#c5cdbd;font-size:13px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:29px 0 12px}.section-title h2{font-size:15px;font-weight:550;letter-spacing:-.2px;margin:0}.section-title>span{font-size:11px;color:var(--muted)}textarea,input{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;padding:14px;width:100%;font-size:16px;outline:none}textarea{resize:vertical;min-height:105px;line-height:1.5}textarea::placeholder{font-size:13px;color:#818a78}textarea:focus,input:focus{border-color:#9aad83}.composer-bottom{display:flex;align-items:center;gap:13px;justify-content:space-between;margin-top:10px}.composer-bottom>span{font-size:10px;color:var(--muted);max-width:170px}.primary,.secondary{border:0;border-radius:10px;background:var(--lime);color:#1b2612;font-weight:650;font-size:12px;padding:13px 16px}.primary span{padding-left:12px;font-size:17px}.secondary{border:1px solid var(--line);background:#252c20;color:var(--lime)}.text-button{padding:5px 0;border:none;background:none;font-size:12px;color:var(--muted)}.text-button:hover{color:var(--ink)}.history{border-top:1px solid var(--line)}.empty{font-size:12px;color:var(--muted);padding:13px 0}.history-item{width:100%;border:0;border-bottom:1px solid var(--line);background:none;color:inherit;text-align:left;display:flex;justify-content:space-between;align-items:center;padding:17px 0;gap:18px}.history-copy{min-width:0}.history-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500}.history-copy small{font-size:11px;color:var(--muted);display:block;margin-top:4px}.history-arrow{color:var(--muted)}.guide-teaser{display:flex;align-items:center;gap:13px;background:#191d16;border:1px solid var(--line);border-radius:13px;padding:17px;width:100%;color:var(--ink);text-align:left;margin:28px 0}.guide-teaser strong{font-size:12px;display:block;font-weight:550}.guide-teaser small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.guide-teaser>span:last-child{margin-left:auto;color:var(--muted)}.guide-symbol{color:var(--lime);font-size:24px}footer{color:#737d69;font-size:10px;text-align:center;padding:0 0 27px}dialog{width:min(560px,calc(100% - 24px));max-height:88dvh;background:#171b14;color:var(--ink);border:1px solid var(--line);border-radius:20px;padding:24px;overscroll-behavior:contain}dialog::backdrop{background:#060806c9;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-head h2{font-size:23px;letter-spacing:-.6px;margin:0}dialog h3{font-size:16px}.muted{color:var(--muted);font-size:13px}.field-help{color:var(--muted);font-size:11px;line-height:1.65}label{font-size:12px;display:block;margin:22px 0 8px}.full{width:100%;margin-top:9px}.message{font-size:12px;overflow-wrap:anywhere;white-space:pre-wrap}.error,.danger{color:var(--error)}.config{font-size:12px;margin:24px 0 12px}.config div{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:11px 0;gap:14px}.config dt{color:var(--muted)}.config dd{margin:0;text-align:right;overflow-wrap:anywhere}.divider{height:1px;background:var(--line);margin-top:24px}.steps{padding-left:22px;font-size:13px}.steps li{padding:13px 0 0 5px}.steps p{color:var(--muted);margin:7px 0}.code-value{font-family:ui-monospace,monospace;overflow-wrap:anywhere;font-size:11px;background:var(--surface);padding:10px;border-radius:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@media(min-width:600px){.app{padding-left:40px;padding-right:40px}.hero{padding-top:45px}.answer-card{padding:30px}.answer-card h2{font-size:40px}.header{height:110px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s,opacity .15s}.answer-card{transition:border-color .2s}}

.game-context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.game-context label{font-size:12px}.game-context input,.game-context select,#view-game{display:block;width:100%;padding:10px;margin-top:6px;border:1px solid #464a3f;border-radius:8px;background:#171a15;color:inherit}.game-controls{margin-bottom:24px}#reject-answer{width:auto}#view-game{margin-bottom:16px}@media(max-width:420px){.game-context{grid-template-columns:1fr}}

.remember-choice{display:flex;align-items:center;gap:10px;margin-top:16px}.remember-choice input{width:auto;flex:0 0 auto;margin:0}

.execution-controls{margin:18px 0 24px;padding:16px;border:1px solid var(--line);border-radius:14px}.execution-controls h2{font-size:14px;margin:0 0 12px}.execution-buttons{display:flex;gap:10px}.execution-buttons button{flex:1;padding:12px 8px}.execution-buttons button[aria-pressed="true"]{background:var(--lime);color:#1b2612;opacity:1;cursor:default}.execution-controls .field-help{margin-bottom:0}

.plaud-controls{margin:18px 0 24px;padding:16px;border:1px solid var(--line);border-radius:14px}.plaud-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.plaud-heading h2{font-size:14px;margin:0}.plaud-buttons{display:flex;gap:10px}.plaud-buttons button{flex:1;min-height:44px}.plaud-buttons button[aria-pressed="true"]{background:var(--lime);color:#1b2612;opacity:1;cursor:default}.plaud-ready{color:var(--lime)}.plaud-controls .field-help:last-child{margin-bottom:0}

/* Settings live in one dialog; the main page keeps read-only summaries. */
.eyebrow{flex-wrap:wrap;gap:8px}.eyebrow .status-badge{margin-left:auto}
.runtime-status{font-size:11px;color:var(--muted);margin:0 0 10px}
.game-status{margin:15px 0 0}.game-status .message{font-size:11px;color:var(--muted)}
#settings{overflow-y:auto;scrollbar-gutter:stable}
#settings .dialog-head{position:sticky;top:-24px;background:#171b14;z-index:2;padding:12px 0;margin-top:-12px;border-bottom:1px solid var(--line)}
#settings .settings-section{margin:22px 0;padding-top:8px;border-top:1px solid var(--line)}
#settings .settings-section h3{margin-bottom:0}
#settings .game-context{margin-bottom:10px}
#settings .game-context label{margin-top:12px;min-width:0}
#settings .guide-teaser{margin:22px 0}
#settings .execution-controls,#settings .plaud-controls{margin:24px 0}
@media(max-width:420px){dialog{padding:18px}#settings .dialog-head{top:-18px}.eyebrow .status-badge{margin-left:0}}

#clarify-selected{margin-right:14px}

/* Per-question diagnostics; configuration remains inside Settings. */
.timing-details{margin-top:18px}.timing-details summary{font-weight:600}.timing-details .timing-summary{font-size:12px;color:var(--muted);white-space:normal}
.timing-rows{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.2fr);gap:8px 16px;font-size:11px;margin:16px 0}.timing-rows dt{color:var(--muted)}.timing-rows dd{margin:0;min-width:0;overflow-wrap:anywhere}.timing-note{font-size:10px!important;color:var(--muted)!important;white-space:normal!important}
@media(max-width:420px){.timing-rows{grid-template-columns:1fr;gap:3px}.timing-rows dd{margin-bottom:9px}}

/* One read-only estimate for the selected current or archived game. */
.game-cost{margin:18px 0 24px;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow-wrap:anywhere}
.game-cost-head{display:flex;gap:12px;align-items:baseline;justify-content:space-between;flex-wrap:wrap}.game-cost h3{font-size:14px;font-weight:550;margin:0}.game-cost-scope{font-size:11px;color:var(--muted)}
.game-cost-total{font-size:18px;font-weight:550;line-height:1.45;margin:12px 0 8px;font-variant-numeric:tabular-nums}.game-cost-note{font-size:11px;color:var(--muted);margin:0;line-height:1.65}
