:root{--bg: #2b3a55;--ink: #f4efe6;--panel: #fffdf8;--panel-ink: #2b2b2b;--accent: #e8913a;--line: #3a3a3a}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-tap-highlight-color:transparent;overscroll-behavior:none}button{font:inherit;color:inherit;background:#3d4f72;border:1px solid #5a6e94;border-radius:10px;padding:10px 14px;min-height:44px;touch-action:manipulation;cursor:pointer}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--accent);color:#1d1d1d;border-color:transparent;font-weight:700}button.link{background:none;border:none;text-decoration:underline}button:focus-visible,.cell:focus-visible{outline:3px solid #fff;outline-offset:2px}.screen{height:100%;max-width:560px;margin:0 auto;padding:max(12px,env(safe-area-inset-top)) 16px max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px}.menu{justify-content:center;align-items:center;text-align:center}.menu h1{font-size:2.4rem;margin:0}.tagline{margin:0 0 8px;opacity:.85}.levels{display:flex;flex-direction:column;gap:10px;width:min(320px,100%)}.levels button{font-size:1.15rem;padding:14px}.size{font-weight:500;margin-left:6px}.toggle{display:flex;gap:8px;align-items:center;font-size:.95rem}.bar{display:flex;justify-content:space-between;align-items:center;gap:8px}.bones{display:flex;gap:6px}.bone{width:50px;height:20px}.hint{text-align:center;margin:0;color:#c9d3e6;font-size:.85rem}.play{justify-content:flex-start}.grid{display:grid;gap:4px;width:min(100%,calc(100dvh - 190px));aspect-ratio:1;margin:0 auto;touch-action:none;user-select:none;-webkit-user-select:none}.cell{position:relative;border:none;border-radius:7px;padding:0;min-width:0;min-height:0;overflow:hidden;color:var(--panel-ink);box-shadow:inset 0 0 0 1px #0000001f}.cell .dog{position:absolute;inset:9%;width:82%;height:82%;pointer-events:none}.cell .mark{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:clamp(1.4rem,9vw,2.6rem);line-height:1;color:#fff;font-weight:900;text-shadow:0 0 2px rgba(0,0,0,.55),0 1px 2px rgba(0,0,0,.35);pointer-events:none}.cell .mark.wrong{color:#c4001a;opacity:1;font-weight:900;font-size:clamp(1.4rem,9vw,2.6rem);text-shadow:0 0 2px #fff,0 0 4px #fff,0 0 6px #fff,0 0 8px #fff}.cell.error{animation:shake .35s}@keyframes shake{25%{transform:translate(-4px)}75%{transform:translate(4px)}}@media(prefers-reduced-motion:reduce){.cell.error{animation:none}}.overlay{position:fixed;inset:0;background:#0a0e18b3;display:flex;align-items:center;justify-content:center;padding:16px;z-index:10}.card{background:var(--panel);color:var(--panel-ink);border-radius:16px;padding:20px;max-width:380px;width:100%;text-align:center}.card h2{margin:0 0 8px}.card.help{text-align:left}.card button{background:#ece7da;color:var(--panel-ink);border-color:#cfc8b6}.card button.primary{background:var(--accent);color:#1d1d1d;border-color:transparent}.actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:12px}.pwa-bar{position:fixed;bottom:8px;left:0;right:0;text-align:center;font-size:.85rem}.pwa-update{display:inline-flex;gap:8px;align-items:center;background:#1d2433;padding:6px 10px;border-radius:10px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.generating{background:#141c2ceb}.generating-card{text-align:center;color:var(--ink)}.generating-card p{margin:8px 0 0;font-size:1.2rem;font-weight:700}.generating-card .generating-sub{font-size:.95rem;font-weight:500;color:#c9d3e6}.generating-dog{width:96px;height:96px;animation:pup-bounce .7s ease-in-out infinite}.paws{display:flex;justify-content:center;gap:10px;margin-top:14px}.paws i{width:12px;height:12px;border-radius:50%;background:var(--accent);animation:paw-pulse 1.2s ease-in-out infinite}.paws i:nth-child(2){animation-delay:.15s}.paws i:nth-child(3){animation-delay:.3s}.paws i:nth-child(4){animation-delay:.45s}@keyframes pup-bounce{0%,to{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-16px) rotate(6deg)}}@keyframes paw-pulse{0%,to{transform:scale(.6);opacity:.4}50%{transform:scale(1.1);opacity:1}}@media(prefers-reduced-motion:reduce){.generating-dog,.paws i{animation:none}}
