:root{--bg:#fff;--card:#f6f7f9;--line:#e3e5ea;--text:#202124;--muted:#5f6368;--accent:#1a73e8}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);justify-content:center;margin:0;padding:16px;font:13px/1.3 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;display:flex}.card{background:var(--card);border:1px solid var(--line);border-radius:20px;width:100%;max-width:600px;overflow:hidden}#stage canvas{display:block;width:100%!important;height:auto!important}.counters{border-top:1px solid var(--line);grid-template-columns:repeat(6,1fr);gap:4px;padding:10px;display:grid}.counter{border:1px solid var(--line);text-align:center;background:#fff;border-radius:3px;padding:3px 2px 4px;font-size:11px}.counter .name{border-bottom:1.5px solid;margin:0 4px 3px;padding-bottom:2px}.counter .n{font-weight:700}.mixture-bar{border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--muted);background:#eef1f6;justify-content:space-between;align-items:center;gap:8px;padding:6px 14px;display:flex}.link-btn{color:var(--accent);font:inherit;cursor:pointer;white-space:nowrap;background:#dbe7fb;border:0;border-radius:4px;padding:3px 8px;font-weight:600}.pills{grid-template-columns:repeat(4,1fr);gap:8px;padding:14px 14px 10px;display:grid}.pill{font:inherit;text-align:left;cursor:pointer;background:#e8eaed;border:2px solid #0000;border-radius:999px;align-items:center;gap:8px;padding:6px 10px;font-weight:500;display:flex}.pill:hover{background:#dfe2e6}.pill.held{border-color:var(--accent);background:#fff}.pill .dot{border-radius:50%;flex:none;width:10px;height:10px}.actions{border-top:1px solid var(--line);flex-wrap:wrap;justify-content:center;gap:8px;margin:0 14px;padding:12px 0 10px;display:flex}.act{font:inherit;color:#fff;cursor:pointer;border:0;border-radius:999px;padding:9px 14px;font-weight:600}.act:disabled{opacity:.5;cursor:default}.blue{background:#2f6fde}.green{background:#43a047}.yellow{background:#f5a623}.gray{color:var(--text);background:#e3e5ea}.help{text-align:center;color:var(--muted);margin:0 0 12px;font-size:11px}@media (width<=520px){.counters{grid-template-columns:repeat(4,1fr)}.pills{grid-template-columns:repeat(2,1fr)}}.cookbook{border:1px solid var(--line);width:min(560px,100vw - 24px);max-height:calc(100vh - 32px);color:var(--text);background:#fff;border-radius:16px;padding:16px 18px}.cookbook::backdrop{background:#20212473}.cookbook h2{margin:0 0 6px}.cookbook h3{margin:14px 0 4px}.cookbook .note{color:var(--muted);margin:0 0 6px}.cookbook .close{float:right;background:var(--line);cursor:pointer;border:0;border-radius:50%;width:28px;height:28px;font-size:14px;position:sticky;top:0}.cookbook ul{margin:0;padding:0;list-style:none}.cookbook .entry{border-top:1px solid var(--line);gap:10px;padding:6px 0;display:flex}.cookbook .who{flex-wrap:wrap;flex:0 0 38%;align-items:center;gap:2px 6px;font-weight:600;display:flex}.cookbook .dot{border-radius:50%;width:10px;height:10px;margin-right:4px;display:inline-block}.cookbook .what{flex:1}.cookbook .found{margin:0 0 6px}.cookbook .unknown{color:var(--muted)}.cookbook .reset{background:var(--line);font:inherit;cursor:pointer;border:0;border-radius:999px;margin-top:12px;padding:7px 14px;font-weight:600}.cookbook .reset.sure{color:#fff;background:#e53935}.yard-bar,.haul-bar{border-top:1px solid var(--line);color:#33691e;background:#f1f8e9;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px 14px;display:flex}.haul-bar{color:#6d4c00;background:#fff8e1}.haul-bar[hidden],.yard-bar{display:none}body.mode-yard .yard-bar{display:flex}body.mode-yard .counters,body.mode-yard .mixture-bar,body.mode-yard .pills,body.mode-yard .actions,body.mode-yard .help,body.mode-yard .haul-bar{display:none}.pill .count{color:var(--muted);margin-left:auto;font-weight:700}.pill.empty{opacity:.4}.haul{columns:2;margin:4px 0 0;padding:0;list-style:none}.haul li{align-items:center;gap:6px;padding:3px 0;display:flex}.haul .dot{border-radius:50%;width:10px;height:10px;display:inline-block}.haul-buttons{flex-wrap:wrap;gap:8px;margin-top:14px;display:flex}#bag-empty.sure{color:#fff;background:#e53935}#mode-btn.sure{background:#e53935}.cookbook .helps{color:#2e7d32;font-size:12px}
