:root{--bg:#2a1a12;--bg2:#3a2216;--panel:#3f281b;--panel2:#4d3222;--ink:#fbefdc;--muted:#c9ad8c;--accent:#e8833a;--accent2:#f2c14e;--good:#8bd06f;--bad:#e2574c;--line:#6a4630;--shadow:0 6px 0 rgba(0,0,0,.25)}
*{box-sizing:border-box}
html,body{margin:0;background:radial-gradient(ellipse at top,var(--bg2),var(--bg) 70%) fixed;background-color:var(--bg);color:var(--ink);font-family:"Fredoka","Trebuchet MS",system-ui,sans-serif;-webkit-tap-highlight-color:transparent}
button{font:inherit;font-size:18px;border:0;border-radius:16px;padding:14px 18px;background:var(--accent);color:#2a1a12;font-weight:600;cursor:pointer;box-shadow:var(--shadow);transition:transform .08s}
button:active{transform:translateY(3px);box-shadow:0 3px 0 rgba(0,0,0,.25)}
button.alt{background:var(--panel2);color:var(--ink);border:2px solid var(--line)}
button.gold{background:var(--accent2)}
button:disabled{opacity:.45}
input,textarea,select{font:inherit;font-size:18px;width:100%;padding:14px;border-radius:14px;border:2px solid var(--line);background:#1e120c;color:var(--ink)}
input:focus,textarea:focus{outline:none;border-color:var(--accent2)}
.card{background:var(--panel);border:2px solid var(--line);border-radius:22px;padding:18px;box-shadow:var(--shadow)}
.muted{color:var(--muted)}
.big{font-size:28px;font-weight:700}
.center{text-align:center}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.timer{font-variant-numeric:tabular-nums;font-weight:700;color:var(--accent2)}
.pill{display:inline-block;padding:4px 12px;border-radius:99px;background:#1e120c;border:1px solid var(--line);font-size:14px}
.err{color:var(--bad);min-height:1.2em}
.pop{animation:pop .35s cubic-bezier(.2,1.6,.4,1)}
@keyframes pop{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}
.rise{animation:rise .5s ease-out both}
@keyframes rise{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}
.wobble{animation:wobble 2.4s ease-in-out infinite}
@keyframes wobble{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}
.placeholder{border:3px dashed var(--muted);border-radius:18px;color:var(--muted);display:flex;align-items:center;justify-content:center;text-align:center;font-size:14px;padding:8px;background:rgba(0,0,0,.15)}
/* ---------- scurgis look (the normal one). plum room, cream sticker cards, ink outlines ---------- */
:root[data-theme=scurgis]{--bg:#5e1450;--bg2:#9c277f;--panel:#fff8eb;--panel2:#ffe9c9;--ink:#fff8eb;--muted:#f3c7e4;--accent:#f2b36e;--accent2:#ffd36b;--good:#7fdc8c;--bad:#ff6b6b;--line:#210f1c;--shadow:0 5px 0 #210f1c;--cardink:#210f1c}
[data-theme=scurgis] body,[data-theme=scurgis] button,[data-theme=scurgis] input,[data-theme=scurgis] textarea,[data-theme=scurgis] select{font-family:Nunito,"Fredoka",ui-rounded,system-ui,sans-serif;font-weight:800}
[data-theme=scurgis] html,[data-theme=scurgis] body{background:linear-gradient(var(--bg2),var(--bg)) fixed;background-color:var(--bg)}
[data-theme=scurgis] .card,[data-theme=scurgis] .opt,[data-theme=scurgis] .rv,[data-theme=scurgis] .pill,[data-theme=scurgis] button.alt,[data-theme=scurgis] input,[data-theme=scurgis] textarea,[data-theme=scurgis] select,[data-theme=scurgis] .chip{--ink:#210f1c;--muted:#80506f;--line:#210f1c;color:var(--ink)}
[data-theme=scurgis] .card,[data-theme=scurgis] .opt,[data-theme=scurgis] .rv{border:3px solid #210f1c}
[data-theme=scurgis] button{border:3px solid #210f1c;color:#210f1c}
[data-theme=scurgis] button.alt{background:#fff8eb}
[data-theme=scurgis] input,[data-theme=scurgis] textarea,[data-theme=scurgis] select{background:#fff;border:3px solid #210f1c}
[data-theme=scurgis] .pill{background:#fff8eb;border:2px solid #210f1c}
[data-theme=scurgis] .rv.truth{background:#d9f7d6}
[data-theme=scurgis] .placeholder{border-color:#fff8eb88;color:#fff8ebaa}

/* ---------- christmas look: same sticker style as scurgis, pine room, red + gold ---------- */
:root[data-theme=christmas]{--bg:#0f3b26;--bg2:#1d6b43;--panel:#fff8eb;--panel2:#ffe9c9;--ink:#fff8eb;--muted:#cfe8d2;--accent:#e2463c;--accent2:#ffd36b;--good:#7fdc8c;--bad:#ff6b6b;--line:#210f1c;--shadow:0 5px 0 #210f1c;--cardink:#210f1c}
[data-theme=christmas] body,[data-theme=christmas] button,[data-theme=christmas] input,[data-theme=christmas] textarea,[data-theme=christmas] select{font-family:Nunito,"Fredoka",ui-rounded,system-ui,sans-serif;font-weight:800}
[data-theme=christmas] html,[data-theme=christmas] body{background:linear-gradient(var(--bg2),var(--bg)) fixed;background-color:var(--bg)}
[data-theme=christmas] .card,[data-theme=christmas] .opt,[data-theme=christmas] .rv,[data-theme=christmas] .pill,[data-theme=christmas] button.alt,[data-theme=christmas] input,[data-theme=christmas] textarea,[data-theme=christmas] select,[data-theme=christmas] .chip{--ink:#210f1c;--muted:#5d6b55;--line:#210f1c;color:var(--ink)}
[data-theme=christmas] .card,[data-theme=christmas] .opt,[data-theme=christmas] .rv{border:3px solid #210f1c}
[data-theme=christmas] button{border:3px solid #210f1c;color:#210f1c}
[data-theme=christmas] button.alt{background:#fff8eb}
[data-theme=christmas] input,[data-theme=christmas] textarea,[data-theme=christmas] select{background:#fff;border:3px solid #210f1c}
[data-theme=christmas] .pill{background:#fff8eb;border:2px solid #210f1c}
[data-theme=christmas] .rv.truth{background:#e6f6e0}
[data-theme=christmas] .placeholder{border-color:#fff8eb88;color:#fff8ebaa}
