*{box-sizing:border-box} :root{color-scheme:dark;font-family:system-ui,-apple-system,sans-serif;background:#160e29;color:#fff;--yellow:#ffd13d}body{margin:0;overscroll-behavior:none}main{max-width:530px;margin:auto;padding:10px 12px max(12px,env(safe-area-inset-bottom));min-height:100dvh;background:radial-gradient(ellipse at 50% 5%,#472074,#170f29 60%)}header{display:flex;align-items:center;justify-content:space-between;margin:3px 0 12px}.logo{font-size:clamp(28px,7vw,40px);font-weight:1000;font-style:italic;letter-spacing:-2px;text-shadow:3px 3px #a71a68;transform:rotate(-3deg)}.logo em{color:var(--yellow)}header small,small,.note,footer{font-size:11px;color:#c7b9da}h1{font-size:27px;margin:20px 0 5px}h2{font-size:25px}p{line-height:1.45}button,select,input{font:inherit;color:inherit;background:#38264f;border:1px solid #735b90;border-radius:12px;padding:12px;min-height:46px;touch-action:manipulation}button{font-weight:750;cursor:pointer}button:disabled{opacity:.5;cursor:default}button.primary,.selected{background:var(--yellow);color:#281c28;border-color:var(--yellow)}.skins,.join,#ratings{display:flex;gap:7px}.skins button,#ratings button{flex:1;padding:12px 4px}.actions{display:grid;gap:10px;margin-top:18px}.join input{min-width:0;flex:1}label{display:flex;justify-content:space-between;align-items:center;margin-top:16px}.note{line-height:1.5}footer{margin-top:12px;text-align:center}#lobby button,#result>button{display:block;width:100%;margin:8px 0}#players,#results{display:grid;gap:7px;margin:15px 0}.player{display:flex;align-items:center;gap:10px;background:#3d2854;padding:8px 12px;border-radius:10px}.player img{width:38px;height:40px;object-fit:contain}.player b:last-child{margin-left:auto}.hud{display:flex;align-items:center;gap:8px;justify-content:space-between}.you{display:flex;align-items:center;min-width:100px;gap:4px}.you img{width:50px;height:46px;object-fit:contain;background:#42266c;border-radius:12px;border:2px solid #e8ba37}.you strong,.stat strong{display:block;font-size:20px}.stat{text-align:center;background:#2c1b42;border:1px solid #c6a346;border-radius:13px;padding:5px 12px}.stat strong{font-variant-numeric:tabular-nums}#mute{min-height:36px;padding:6px 9px}#scoreboard{display:flex;gap:5px;overflow:hidden;font-size:11px;margin:7px 0;min-height:17px}#scoreboard span{white-space:nowrap;background:#3c2850;padding:2px 6px;border-radius:8px}.arena{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));height:min(67dvh,610px);min-height:310px;gap:5px;padding:9px;border-radius:20px;overflow:hidden;isolation:isolate;touch-action:manipulation}.arena.holes{background:radial-gradient(ellipse at 50% 35%,#f2c27d,#b56b38 80%);border:4px solid #70402a;box-shadow:inset 0 0 30px #6c381f}.arena.doors{background:repeating-linear-gradient(90deg,#4a164e 0 3px,#732861 3px 60px);border:4px solid #bf8129;box-shadow:inset 0 0 20px #240e39}.arena.windows{background:repeating-linear-gradient(0deg,#edaa55 0 24px,#d89544 24px 26px);border:4px solid #a95029}.cell{position:relative;min-width:0;min-height:0;border:0;border-radius:0;background:none;padding:0;overflow:hidden;touch-action:manipulation;user-select:none;-webkit-tap-highlight-color:transparent;outline-offset:-3px;cursor:pointer}.opening,.character,.front,.shutter{position:absolute;pointer-events:none}.holes .opening{left:5%;right:5%;bottom:8%;height:25%;border-radius:50%;background:#29160e;border:5px solid #8e542d;box-shadow:0 4px 0 #67391e,inset 0 4px 10px #0e0807}.holes .front{left:5%;right:5%;bottom:8%;height:12%;border-radius:0 0 80% 80%;border-bottom:5px solid #995a32;z-index:3}.character{object-fit:contain;opacity:0;transition:none;filter:drop-shadow(0 3px 3px #0007);transform:translateY(12%) scale(.94);transform-origin:center bottom}.cell.active .character{opacity:1;transform:translateY(0) scale(1);transition:transform 100ms ease-out}.holes .character{width:100%;height:82%;left:0;bottom:15%;object-position:center bottom}.doors .opening,.windows .opening{inset:5px 5px 10px;background:linear-gradient(#1b102c,#321944);border:4px solid #f4b948;border-radius:12px 12px 3px 3px;box-shadow:0 4px 0 #6e331c}.doors .character{inset:7px 8px 12px;width:calc(100% - 16px);height:calc(100% - 19px);object-position:center bottom;z-index:2}.doors .shutter{top:9px;bottom:14px;width:calc(50% - 9px);background:repeating-linear-gradient(90deg,#d94429 0 12px,#b12b24 12px 15px);border:2px solid #ff9a42;z-index:3;transition:transform 100ms;box-shadow:inset 0 0 0 3px #a93224}.shutter.left{left:8px;transform-origin:left center}.shutter.right{right:8px;transform-origin:right center}.doors .active .shutter.left,.windows .active .shutter.left{transform:scaleX(.12)}.doors .active .shutter.right,.windows .active .shutter.right{transform:scaleX(.12)}.windows .opening{inset:12% 9% 12%;border:5px solid #fbe0ad;border-radius:12px 12px 1px 1px;background:#221a2b}.windows .character{width:90%;height:76%;left:5%;bottom:12%;object-position:center bottom;z-index:2}.windows .shutter{top:15%;bottom:14%;width:41%;background:repeating-linear-gradient(0deg,#216aaf 0 7px,#184779 7px 9px);border:2px solid #123a66;z-index:3;transition:transform 100ms}.windows .shutter.left{left:9%}.windows .shutter.right{right:9%}.windows .front{left:5%;right:5%;bottom:7%;height:8%;background:#a95f36;border-top:4px solid #e0b07e;border-radius:2px 2px 5px 5px;z-index:4}.holes .shutter{display:none}.cell.hit .character{opacity:1;transform:scale(.88) translateY(3%);filter:brightness(1.7) drop-shadow(0 0 8px #fff)}.cell.wrong .character{filter:grayscale(.8) drop-shadow(0 0 8px red)}.cell .marker{position:absolute;top:3%;left:50%;transform:translateX(-50%);z-index:5;font-weight:900;font-size:clamp(13px,4vw,24px);text-shadow:0 2px 4px #000;pointer-events:none}.cell.mine.active .marker{font-size:10px;color:#fff;background:#a62278;border-radius:7px;padding:2px 5px}.cell.mine.active .marker::before{content:'YOU'}#feedback{min-height:25px;text-align:center;font-weight:800;padding:6px;font-size:14px}.quiet{display:block;margin:auto;min-height:32px;padding:4px 14px;font-size:12px}#metrics{color:#d8c8ed;font-size:13px;line-height:1.6}#ratings .selected{background:#ffcf42;color:#261c2d}[hidden]{display:none!important}@media(max-height:650px){header{margin-bottom:5px}.arena{height:61dvh;min-height:260px}.hud{gap:4px}footer{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.checkline input{min-height:0;width:22px;height:22px;accent-color:var(--yellow)}#castPick{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}#castPick button{padding:7px 4px;min-height:34px;font-size:12px}#previewStage{height:min(43dvh,350px);display:flex;align-items:center;justify-content:center;position:relative;background:radial-gradient(ellipse,#66458b,#24183b);margin:10px 0;border-radius:20px;overflow:hidden}#previewImg{max-height:100%;max-width:90%;object-fit:contain;transform-origin:center 85%}#previewName{text-align:center;font-weight:800;margin-bottom:8px}#previewFx,.specialfx{position:absolute;pointer-events:none;z-index:6;font-size:clamp(18px,5vw,36px);right:9%;top:13%;font-weight:900;color:#ffe46a;text-shadow:0 2px 3px #4d1859;opacity:0}.special #previewFx,.special .specialfx{animation:comicfx .75s ease-out both}.previewControls{display:flex;gap:4px;margin-bottom:10px}.previewControls button{flex:1;padding:8px 3px;font-size:12px}#previewBack{width:100%}.cell.special .character,.special #previewImg{animation:shimmy .22s ease-in-out 4 alternate}.cell.special.chicken .character,.special.chicken #previewImg{animation:bounce .24s ease-in-out 4 alternate}.cell.special.fart .character,.special.fart #previewImg{animation:fart .48s ease-in-out 2}.cell.special.kiss .character,.special.kiss #previewImg,.cell.special.kisses .character,.special.kisses #previewImg{animation:kiss .36s ease-in-out 2 alternate}.cell.special.nose .character,.special.nose #previewImg{animation:nose .32s ease-in-out 3 alternate}.cell.special.slap .character,.special.slap #previewImg{animation:slap .22s ease-in-out 4 alternate}.cell.special.tease .character,.special.tease #previewImg{animation:tease .16s ease-in-out 5 alternate}.cell.special.party .character,.special.party #previewImg{animation:party .24s ease-in-out 4 alternate}.cell.special.wiggle .character,.special.wiggle #previewImg{animation:wiggle .19s ease-in-out 5 alternate}.holes .full-special .character{height:94%;bottom:9%}.windows .full-special .character{height:85%;bottom:10%}.cell.hit .character,.cell.wrong .character{animation:none!important}.cell.hit .marker,.cell.wrong .marker{animation:hitpop .17s ease-out both;color:#fff4a8;font-size:clamp(22px,6vw,34px)}.cell.wrong .marker{color:#ff7373}.cell.hit .shutter,.cell.wrong .shutter{transition:none;transform:scaleX(.12)}@keyframes shimmy{from{transform:rotate(-7deg)}to{transform:rotate(7deg)}}@keyframes bounce{from{transform:translateY(0) rotate(-5deg)}to{transform:translateY(-9%) rotate(5deg)}}@keyframes fart{0%,100%{transform:rotate(0)}35%{transform:rotate(-7deg) translateX(4%)}65%{transform:rotate(3deg)}}@keyframes kiss{from{transform:scale(.94)}to{transform:scale(1.05) rotate(-4deg)}}@keyframes nose{from{transform:rotate(-3deg)}to{transform:rotate(5deg) translateY(-2%)}}@keyframes slap{from{transform:rotate(-7deg) scaleX(.97)}to{transform:rotate(4deg) scaleX(1.04)}}@keyframes tease{from{transform:rotate(-4deg) scale(.98)}to{transform:rotate(4deg) scale(1.03)}}@keyframes party{from{transform:translateX(-4%) rotate(-7deg)}to{transform:translateX(4%) translateY(-5%) rotate(7deg)}}@keyframes wiggle{from{transform:translateX(-4%) rotate(-6deg)}to{transform:translateX(4%) rotate(6deg)}}@keyframes comicfx{0%{opacity:0;transform:scale(.5) translateY(10px)}30%{opacity:1;transform:scale(1.1)}100%{opacity:0;transform:translateY(-18px) scale(1.4)}}@keyframes hitpop{from{transform:translateX(-50%) scale(.6)}to{transform:translateX(-50%) scale(1.15)}}@media(prefers-reduced-motion:reduce){.special .character,.special #previewImg,.specialfx,#previewFx,.cell .marker{animation:none!important}.special .specialfx,.special #previewFx{opacity:1}}
