:root{--hit:#2e7d32;--hot:#e0b100;--warm:#e8892b;--cold:#c0392b;--l1:#f2d54a;--l2:#8bc34a;--l3:#5aa9e6;--l4:#b388eb}@media (prefers-color-scheme:dark){:root{--l1:#a8901f;--l2:#4f7a26;--l3:#2f6c9c;--l4:#6f4fa0}}.game{gap:14px;max-width:640px;margin:8px auto 0;display:grid}.g-head{flex-wrap:wrap;align-items:center;gap:8px 14px;display:flex}.g-head strong{font-size:1.25rem}.g-streak{font-weight:700}.g-steps{gap:6px;margin:0 0 0 auto;padding:0;list-style:none;display:flex}.g-steps li{border:1px solid var(--line);color:var(--muted);border-radius:999px;padding:2px 10px;font-size:.85rem}.g-steps li[aria-current=step]{background:var(--red);border-color:var(--red);color:var(--red-ink);font-weight:700}.g-note{background:var(--paper);border:1px dashed var(--saffron);border-radius:10px;margin:0;padding:10px 14px;font-size:.95rem}.g-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:18px}.g-card h2{color:var(--red);margin-bottom:4px}.g-card h3{margin:18px 0 6px;font-size:1.05rem}.g-center{text-align:center}.g-help{margin-top:0}.g-msg{min-height:1.5em;margin:10px 0;font-weight:700}.g-msg.ok{color:var(--ok)}.g-msg.err{color:var(--red)}.g-verdict{color:var(--red);margin:6px 0;font-size:1.3rem;font-weight:800}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.k-guesses{gap:6px;margin:10px 0;padding:0;list-style:none;display:grid}.k-row{background:var(--bg);border-left:6px solid var(--cold);border-radius:10px;grid-template-columns:minmax(0,1fr) auto 2rem 5rem;align-items:center;gap:10px;padding:8px 12px;display:grid}.k-row.heat-hot{border-left-color:var(--hot)}.k-row.heat-warm{border-left-color:var(--warm)}.k-row.heat-hit{border-left-color:var(--hit);grid-template-columns:1fr auto}.k-name{text-overflow:ellipsis;white-space:nowrap;font-weight:700;overflow:hidden}.k-km{font-variant-numeric:tabular-nums}.k-arrow{text-align:center;font-size:1.4rem;line-height:1}.k-warm{background:var(--line);border-radius:999px;height:10px;overflow:hidden}.k-warm span{background:linear-gradient(90deg, var(--cold), var(--warm), var(--hot), var(--hit));background-size:5rem 100%;height:100%;display:block}.k-input{gap:8px;margin-top:8px;display:flex}.k-input input{min-width:0;font:inherit;border:2px solid var(--line);background:var(--bg);min-height:48px;color:var(--ink);border-radius:10px;flex:1;padding:12px;font-size:1.05rem}.k-input input:focus{border-color:var(--red);outline:none}.k-list{border:1px solid var(--line);background:var(--bg);border-radius:10px;max-height:320px;margin:6px 0 0;padding:4px;list-style:none;overflow-y:auto}.k-list li{cursor:pointer;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;min-height:44px;padding:10px 12px;display:flex}.k-list li small{color:var(--muted)}.k-list li[aria-selected=true]{background:var(--red);color:var(--red-ink)}.k-list li[aria-selected=true] small{color:inherit;opacity:.85}.k-hints dl{gap:6px;margin:0;display:grid}.k-hints dl div{grid-template-columns:9rem 1fr;gap:10px;display:grid}.k-hints dt{color:var(--muted);font-weight:700}.k-hints dd{margin:0}.k-done{border-top:1px solid var(--line);margin-top:16px;padding-top:12px}.k-fact{background:var(--bg);border-radius:10px;padding:12px}.b-group{color:#1d1a16;border-radius:10px;gap:2px;margin-bottom:8px;padding:10px 14px;display:grid}.b-group.lvl-1{background:var(--l1)}.b-group.lvl-2{background:var(--l2)}.b-group.lvl-3{background:var(--l3)}.b-group.lvl-4{background:var(--l4)}@media (prefers-color-scheme:dark){.b-group{color:#fff}}.b-group.missed{opacity:.75;outline-offset:-4px;outline:2px dashed}.b-group small{font-size:.9rem}.b-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px;display:grid}.b-tile{font:inherit;border:2px solid var(--line);background:var(--bg);min-height:64px;color:var(--ink);cursor:pointer;border-radius:10px;padding:8px;font-size:1rem;font-weight:700;line-height:1.2}.b-tile[aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}.b-mistakes{margin:12px 0 4px}.b-mistakes .spent{opacity:.2}.b-actions{flex-wrap:wrap;gap:8px;display:flex}.btn.ghost{color:var(--red);border:2px solid var(--red);background:0 0}.btn[disabled]{opacity:.45;cursor:not-allowed}.r-score{margin:6px 0}.r-score span{color:var(--red);font-size:4rem;font-weight:800;line-height:1}.r-break{text-align:left;gap:6px;max-width:360px;margin:10px auto;display:grid}.r-share{white-space:pre-wrap;background:var(--bg);text-align:left;border-radius:10px;max-width:360px;margin:12px auto;padding:12px;font-family:inherit}.r-share-btn{min-width:200px}@media (width<=420px){.k-row{grid-template-columns:minmax(0,1fr) auto 1.6rem 3.2rem;gap:6px;padding:8px}.k-hints dl div{grid-template-columns:1fr;gap:0}.b-tile{min-height:58px;font-size:.92rem}}.k-row.fresh{animation:p12-slide-in .38s var(--ease-out) both}.k-row.fresh .k-arrow{animation:p12-spin-in .65s var(--ease-out) .1s both;display:inline-block}.k-row.fresh .k-warm span{transform-origin:0;animation:p12-grow-x .7s var(--ease-out) .15s both}.k-row.fresh.heat-hit{animation:p12-pop .5s var(--ease-bounce) both}.k-row.heat-hit .k-hit{animation:p12-pop .5s var(--ease-bounce) .15s both;display:inline-block}.k-hint{animation:p12-fade-up .4s var(--ease-out) both}.k-done.fresh{transform-origin:top;animation:p12-flip-in .6s var(--ease-out) .35s both}.k-list li{transition:background-color .12s}.b-tile{transition:transform .18s var(--ease-bounce), background-color .15s, color .15s, border-color .15s}.b-tile:hover:not([disabled]){transform:translateY(-2px)}.b-tile[aria-pressed=true]{transform:translateY(-3px)scale(1.05)}.b-group.fresh{animation:p12-pop .45s var(--ease-bounce) both}.b-mistakes .spent{transition:opacity .4s}.r-stamp{border:4px solid var(--red);animation:p12-stamp .55s var(--ease-out) 1s both;border-radius:8px;padding:4px 14px;display:inline-block}.r-fire{animation:.6s ease-in-out .9s 2 p12-pulse;display:inline-block}.r-score span{font-variant-numeric:tabular-nums;display:inline-block}.game>*{animation:p12-fade-up .45s var(--ease-out) both}.r-zone{text-align:left;gap:8px;max-width:420px;margin:18px auto 6px;display:grid}.r-zone select{font:inherit;border:1px solid var(--line);background:var(--bg);min-height:46px;color:var(--ink);border-radius:10px;padding:10px}.r-zone h3{margin:0;font-size:1.05rem}.r-zones{gap:4px;margin:0;padding:0;list-style:none;display:grid}.r-zones li{background:var(--bg);animation:p12-slide-in .35s var(--ease-out) both;animation-delay:calc(var(--i,0) * 60ms);border-radius:10px;justify-content:space-between;gap:10px;padding:8px 12px;display:flex}.r-zones li.mine{outline:2px solid var(--red);font-weight:700}
