.game{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}@media(min-width:820px){.game{grid-template-columns:minmax(0,1fr) 300px;align-items:start}}.card-wrap{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%}.card{position:relative;width:min(100%,420px);aspect-ratio:3 / 2;border-radius:22px;padding:14px;background:var(--blue);box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--white) 25%,transparent);user-select:none;-webkit-user-select:none;touch-action:none}.face{position:absolute;inset:7px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:12px;background:radial-gradient(circle at 50% 40%,var(--white),color-mix(in srgb,var(--blue) 8%,var(--white)));text-align:center}.face .label{font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:clamp(.9rem,3.5vw,1.2rem);color:var(--blue)}.face .amount{font-weight:900;font-size:clamp(2.4rem,13vw,4.6rem);line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.face .amount.item{max-width:100%;padding:6px 14px 0;font-size:clamp(1.5rem,7.5vw,2.6rem);line-height:1.1;overflow-wrap:anywhere}.face.lost{background:color-mix(in srgb,var(--blue) 6%,var(--white))}.face .sub{color:var(--muted);font-weight:600;font-size:clamp(.9rem,3.5vw,1.1rem)}.face.lost .label{font-size:clamp(1.4rem,6vw,2.2rem);color:var(--muted);text-transform:none;letter-spacing:0}.card.done .face.won{animation:face-pop .7s cubic-bezier(.2,1.6,.4,1);box-shadow:inset 0 0 0 4px var(--accent)}.card.done .face.won .amount{color:var(--gold)}@keyframes face-pop{40%{transform:scale(1.06)}}.cover,.particles{position:absolute;inset:7px;width:calc(100% - 14px);height:calc(100% - 14px);border-radius:12px}.cover{cursor:grab;transition:opacity .6s ease}.cover.gone{opacity:0;pointer-events:none}.particles{pointer-events:none}.card-overlay{position:absolute;inset:7px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,var(--blue),color-mix(in srgb,var(--blue) 70%,var(--white)) 45%,var(--gold))}.result{text-align:center;min-height:3.5em}.result h2{margin:0;font-size:1.8rem}.result.won h2{color:var(--accent);animation:pop .5s cubic-bezier(.2,1.6,.4,1)}@keyframes pop{0%{transform:scale(.4);opacity:0}}.legend{list-style:none;margin:0;padding:0;display:grid;gap:10px}.legend li{display:grid;grid-template-columns:1fr;gap:2px;align-items:center;padding:10px;border-radius:12px;background:var(--surface-2)}.legend .name{font-weight:700}.legend .meta{font-size:.85rem;color:var(--muted)}.legend li[data-tier="1"]{border-left:4px solid var(--tier-1)}.legend li[data-tier="2"]{border-left:4px solid var(--tier-2)}.legend li[data-tier="3"]{border-left:4px solid var(--tier-3)}.result .owner{margin:6px 0 0}.result .owner small{display:block}body.play{min-height:100vh;background:var(--bg)}body.play main{max-width:760px}.play .game{display:flex;flex-direction:column;gap:22px;align-items:stretch}.play .card-wrap{gap:16px}.play .card-wrap h1{font-size:clamp(1.6rem,6vw,2.4rem);font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:var(--blue)}.play .card{width:min(100%,520px);border-radius:10px;box-shadow:0 0 0 2px color-mix(in srgb,var(--gold) 80%,transparent)}.play .face{background:linear-gradient(145deg,var(--white) 35%,color-mix(in srgb,var(--gold) 30%,var(--white)));color:var(--blue)}.play .card.done .face.won .amount{color:var(--gold)}.play .result .owner{color:var(--muted)}.play .result .owner strong{color:var(--text)}.play .hud{text-align:center}.play .hud h2{font-size:.95rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin:0}.play .hud p{margin:0 0 10px;font-size:.85rem}.play .legend{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.play .legend li{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:130px;padding:10px 14px;border-radius:14px;background:var(--surface);border:2px solid var(--border);box-shadow:var(--shadow)}.play .legend .name{font-size:.9rem}.play .legend li[data-tier="1"]{border-color:var(--tier-1)}.play .legend li[data-tier="2"]{border-color:var(--tier-2)}.play .legend li[data-tier="3"]{border-color:var(--tier-3)}.play .message{max-width:440px;margin:48px auto}.play button.big{font-size:1.2rem;padding:14px 32px;border-radius:999px;box-shadow:0 8px 24px color-mix(in srgb,var(--blue) 40%,transparent)}.play .card-overlay button{background:var(--white);color:var(--blue)}.arena-wrap{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%}.arena-wrap h1{margin:0;font-size:clamp(1.5rem,6vw,2.3rem);font-weight:900;text-transform:uppercase;letter-spacing:.05em}.arena-body{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%}.arena-body>p{margin:0;max-width:460px}.arena-status{font-size:1.15rem;font-weight:800;text-align:center;min-height:1.5em}.arena-status.yours{color:var(--gold)}.croc{width:min(100%,480px);height:auto;user-select:none;-webkit-user-select:none;touch-action:manipulation}.croc .skin{fill:#3f8f3a;stroke:#27621f;stroke-width:4}.croc .mouth{fill:#8e1f2f}.croc .tongue{fill:#cf5566}.croc .eye{fill:#ffe9a3}.croc .pupil,.croc .nostril{fill:#14260f}.croc .enamel{fill:#fffdf4;stroke:#cfc8b0;stroke-width:2;transition:transform .18s ease,fill .18s ease}.croc .hit{fill:transparent}.croc .tooth{outline:none}.croc.yours .tooth:not(.down){cursor:pointer}.croc.yours .tooth:not(.down) .enamel{stroke:var(--gold)}.croc .tooth:focus-visible .enamel{fill:#ffe9a3;stroke:var(--blue);stroke-width:3}.croc .tooth.down .enamel{transform:translateY(8px) scaleY(.4);fill:#b9b29c}.croc .upper{transition:transform .5s ease}.croc.bite .upper{transform:translateY(150px);transition:transform .12s ease-in}.croc.bite{animation:shake .4s ease .12s}@keyframes shake{25%{transform:translate(-8px)}75%{transform:translate(8px)}}.chairs{display:flex;gap:12px;font-size:2.6rem}.chair{opacity:.2;filter:grayscale(1)}.chair.taken{opacity:1;filter:none}.seats{list-style:none;margin:0;padding:0;width:100%;max-width:520px;display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}.seat{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;padding:8px;border-radius:12px;border:2px solid var(--border);font-size:.9rem}.seat.you{background:var(--surface-2)}.seat.turn{border-color:var(--blue);box-shadow:0 0 0 2px var(--blue)}.seat.out{opacity:.65}.seat.winner{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold)}.arena-prize{overflow-wrap:anywhere;margin:6px 0 0;font-size:1.5rem;font-weight:900;color:var(--gold)}.granny-scene{width:min(100%,480px);height:auto;user-select:none;-webkit-user-select:none;touch-action:manipulation}.granny-scene .chair-back{fill:#8c3f5d}.granny-scene .dress{fill:#6c5a9e}.granny-scene .hair{fill:#d9d9e0;stroke:#b4b4c0;stroke-width:2}.granny-scene .face{fill:#f6cfae}.granny-scene .line{fill:none;stroke:#4a3328;stroke-width:4;stroke-linecap:round}.granny-scene .eye{fill:#fff}.granny-scene .pupil{fill:#2b1c15}.granny-scene .scream{fill:#7a1f2b}.granny-scene .glasses{fill:none;stroke:#6b4a1f;stroke-width:3;transition:transform .2s ease}.granny-scene .zzz{fill:#fff;font-weight:800;font-size:20px}.granny-scene .shout{fill:#ffe9a3;font-weight:900;font-size:34px}.granny-scene .awake{display:none}.granny-scene.scared .awake{display:inline}.granny-scene.scared .asleep{display:none}.granny-scene.scared .granny{animation:jump .6s ease}.granny-scene.scared .glasses{transform:translateY(-34px)}@keyframes jump{30%{transform:translateY(-24px)}55%{transform:translate(-7px,-8px)}75%{transform:translate(7px)}}.granny-scene .tray{fill:#e7d3b1;stroke:#b8860b;stroke-width:4}.granny-scene .dough{fill:#d79a4e;stroke:#a86e2b;stroke-width:3}.granny-scene .chip{fill:#55321a}.granny-scene .crumbs{fill:#b9a481}.granny-scene .cookie{outline:none}.granny-scene .whole{transition:opacity .2s ease,transform .2s ease}.granny-scene.yours .cookie:not(.taken){cursor:pointer}.granny-scene .cookie:focus-visible .dough{stroke:var(--blue);stroke-width:5}.granny-scene .cookie.taken .whole{opacity:0;transform:scale(.3)}@media(hover:hover){.croc.yours .tooth:not(.down):hover .enamel{fill:#ffe9a3;stroke:var(--blue);stroke-width:3}.granny-scene.yours .cookie:not(.taken):hover .dough{stroke:var(--blue);stroke-width:5}}.croc,.granny-scene{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;max-height:62vh;max-height:62svh}@media(max-width:560px){body.at-table .topbar{padding:6px 12px;flex-wrap:nowrap;justify-content:space-between}body.at-table .topbar .brand{flex-basis:auto;flex-direction:row;gap:8px;font-size:.9rem}body.at-table .topbar .brand .logo{height:32px}body.at-table main{padding:4px 8px 32px}body.at-table .arena-wrap{gap:6px}body.at-table .arena-wrap h1{font-size:1.15rem}body.at-table .arena-body{gap:8px}.arena-status{font-size:1rem;margin:0}.seats{grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);grid-template-columns:none;gap:4px}.seat{padding:6px 2px;font-size:.75rem;line-height:1.3;overflow-wrap:anywhere}}
