: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)}button:disabled{opacity:.5;cursor:not-allowed}input,select{min-height:44px;padding:.4rem .6rem;border:2px solid var(--border);border-radius:8px;background:#fff;width:100%}.setup{max-width:880px;margin:0 auto;padding:.75rem 1rem 1rem;min-height:100vh;display:flex;flex-direction:column;gap:.6rem}.setup-head{display:flex;justify-content:space-between;align-items:center;gap:1rem}.setup-head h1{margin:0;font-size:1.6rem}.brand{margin:0;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}.setup-head .lead{margin:0;font-size:.9rem;color:var(--muted)}.logo{width:64px;height:64px;border-radius:14px;flex-shrink:0}.setup-grid{display:grid;gap:.6rem;grid-template-columns:1fr}@media (min-width: 640px){.setup-grid{grid-template-columns:1fr 1fr}.setup-grid .wide{grid-column:1 / -1}}.panel{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:.65rem .8rem}.panel h2{font-size:.95rem;margin:0 0 .45rem;display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;flex-wrap:wrap}.count{font-size:.8rem;font-weight:600;color:var(--muted)}.seg{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}.seg button{min-height:42px;padding:.4rem .5rem;font-size:.95rem;background:var(--surface)}.seg button.on{background:var(--ink);color:#fff;border-color:var(--ink)}.row-label{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-top:.5rem;font-weight:600;font-size:.95rem}.row-label select{width:auto;min-width:90px}.full{width:100%}.chips{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}@media (min-width: 560px){.chips{grid-template-columns:repeat(5,minmax(0,1fr))}}.chip{position:relative;display:flex;align-items:center;gap:.35rem;min-height:42px;padding:.35rem .5rem;border:2px solid var(--border);border-radius:10px;background:#fff;font-size:.9rem;font-weight:600;cursor:pointer;line-height:1.2}.chip.on{border-color:var(--ink);background:#fff7ed}.chip input{position:absolute;opacity:0;width:1px;height:1px;margin:0}.chip:focus-within{outline:3px solid var(--focus);outline-offset:2px}.player-row{display:grid;grid-template-columns:22px 1fr 120px;gap:.5rem;align-items:center;margin-top:.4rem}.player-row:first-of-type{margin-top:0}.player-row input,.player-row select{min-height:42px}.swatch{width:22px;height:22px;border-radius:50%;border:2px solid var(--ink);display:inline-block}.setup-foot{display:flex;justify-content:space-between;align-items:center;gap:.5rem;flex-wrap:wrap}.setup-foot .check{min-height:40px}.link{background:none;border:none;padding:.3rem 0;min-height:40px;color:var(--ink);text-decoration:underline;font-weight:600}.help{margin:0;padding-left:1.2rem;font-size:.9rem;display:grid;gap:.25rem}.setup-actions{position:sticky;bottom:0;padding:.4rem 0 .2rem;background:var(--bg)}.start-main{width:100%;font-size:1.1rem;min-height:54px}.credit{text-align:center;font-size:.8rem;color:var(--muted);margin-top:.2rem}.warning{color:var(--bad);font-weight:700;background:#fef2f2;padding:.4rem .6rem;border-radius:10px;font-size:.9rem;margin:.5rem 0 0}.hint{color:#92400e;background:#fffbeb;padding:.4rem .6rem;border-radius:10px;font-size:.9rem;margin:.5rem 0 0}.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:0;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;padding:.75rem}.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}}.check{display:flex;align-items:center;gap:.6rem;min-height:44px;font-weight:500}.check input[type=checkbox]{width:20px;height:20px;min-height:20px}.topbar-right{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.sound-toggle{min-height:40px;padding:.3rem .8rem;font-size:.9rem}.sound-toggle[aria-pressed=false]{background:#f3f4f6}.start-gate{display:grid;gap:.75rem;justify-items:start}.start-gate .primary{font-size:1.15rem;min-width:160px}
