:root{--bg: #fff7ed;--surface: #ffffff;--ink: #1f2937;--muted: #5b6472;--accent: #e11d48;--accent-ink: #ffffff;--ok: #15803d;--bad: #b91c1c;--border: #e7d7c4;--focus: #1d4ed8;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--ink);background:var(--bg);line-height:1.5}*{box-sizing:border-box}body{margin:0;min-height:100vh}h1,h2{line-height:1.2;margin:0 0 .5rem}h1{font-size:1.75rem}h2{font-size:1.25rem}p{margin:.5rem 0}button,select,input{font:inherit}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.muted,.lead{color:var(--muted)}button{min-height:48px;padding:.6rem 1.1rem;border-radius:10px;border:2px solid var(--ink);cursor:pointer;background:var(--surface);color:var(--ink);font-weight:600}button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}button.secondary{background:var(--surface)}button:hover{filter:brightness(.96)}input,select{min-height:44px;padding:.4rem .6rem;border:2px solid var(--border);border-radius:8px;background:#fff;width:100%}.setup{max-width:640px;margin:0 auto;padding:1.5rem 1rem 3rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:1rem 1.25rem;margin:1rem 0}fieldset.card{border:1px solid var(--border)}legend{font-weight:700;padding:0 .3rem}.radio{display:inline-flex;align-items:center;gap:.4rem;margin-right:1.2rem;min-height:44px}.field{display:flex;flex-direction:column;gap:.3rem;font-weight:600;margin-top:.6rem}.player-row{display:grid;grid-template-columns:1fr 1fr auto;gap:.75rem;align-items:end}.swatch{width:28px;height:28px;border-radius:50%;border:2px solid var(--ink);display:inline-block}.swatch-inline{width:16px;height:16px;border-radius:50%;display:inline-block;margin-left:.4rem;vertical-align:middle;border:2px solid var(--ink)}.setup details summary{cursor:pointer;font-weight:700}.setup>button.primary{width:100%;margin-top:.5rem}.game{max-width:1100px;margin:0 auto;padding:1rem}.topbar{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:.5rem}.layout{display:grid;grid-template-columns:1fr;gap:1rem;margin-top:.75rem}@media (min-width: 900px){.layout{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);grid-template-areas:"board activity" "side activity"}.board{grid-area:board}.side{grid-area:side}.activity{grid-area:activity}}.board{list-style:none;padding:.75rem;margin:0;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;background:var(--surface);border:1px solid var(--border);border-radius:14px}.cell{position:relative;aspect-ratio:1 / 1;border-radius:10px;border:2px solid var(--border);background:#fffdf8;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:.8rem;min-width:0}.cell.station{background:#fdf2f8;border-color:#f9a8d4}.cell.goal{background:#ecfdf5;border-color:var(--ok)}.cell.is-here{outline:3px solid var(--ink);outline-offset:1px}.cell .num{position:absolute;top:2px;left:4px;font-size:.65rem;color:var(--muted)}.cell .sym{font-size:1.2rem;line-height:1}.cell .pieces{position:absolute;bottom:3px;display:flex;gap:2px}.piece{width:12px;height:12px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px var(--ink)}.players{list-style:none;padding:0;margin:0;display:grid;gap:.5rem}.players li{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:.6rem .8rem}.players li.is-current{border:2px solid var(--ink)}.players .dot{width:14px;height:14px;border-radius:50%}.pname{font-weight:700}.pstat{color:var(--muted);font-size:.9rem}.badge{margin-left:auto;background:var(--ink);color:#fff;border-radius:999px;padding:.1rem .6rem;font-size:.8rem}.turn-hint{font-size:1.05rem}.task{display:grid;gap:.75rem}.category{font-weight:700;color:var(--muted)}.question{font-size:1.4rem;margin:.25rem 0}.answers{display:grid;gap:.6rem;grid-template-columns:1fr}@media (min-width: 560px){.answers{grid-template-columns:1fr 1fr}}.answer{text-align:left;font-size:1.05rem}.letter{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ink);color:#fff;font-size:.85rem;margin-right:.4rem}.verdict{display:flex;gap:.6rem;flex-wrap:wrap}.timer{position:relative;height:34px;border-radius:999px;background:#f3ebe0;overflow:hidden;display:flex;align-items:center;justify-content:center;font-weight:700}.timer-bar{position:absolute;left:0;top:0;bottom:0;background:#fbbf24;transition:width .2s linear}.timer span{position:relative}.emojis{font-size:3rem;text-align:center;margin:.5rem 0}.term{font-size:2rem;font-weight:800;text-align:center;margin:.5rem 0}.solution{background:#fef9c3;padding:.5rem .75rem;border-radius:10px}.result.ok{border-color:var(--ok)}.result.bad{border-color:var(--bad)}.verdict-text{font-size:1.15rem;font-weight:700}.result.ok .verdict-text{color:var(--ok)}.result.bad .verdict-text{color:var(--bad)}.explanation{background:#f5f5f4;padding:.6rem .8rem;border-radius:10px}.ranking{list-style:none;padding:0;display:grid;gap:.3rem}.ranking .dot{display:inline-block;width:12px;height:12px;border-radius:50%}@media (prefers-reduced-motion: reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
