:root{--pink:#e8577e;--ink:#fff;--panel:#140c1ec7}*{box-sizing:border-box}html,body{height:100%;color:var(--ink);-webkit-user-select:none;user-select:none;touch-action:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;background:#140f24;margin:0;font-family:system-ui,-apple-system,Segoe UI,sans-serif;overflow:hidden}body.touch .desktop-only,body:not(.touch) .touch-only{display:none}#game{width:100vw;height:100dvh;transition:filter .4s;display:block}.hidden{display:none!important}#hud{pointer-events:none;position:fixed;inset:0}.panel{background:var(--panel);border-radius:14px;padding:10px 14px;font-size:14px;position:absolute;top:12px}.stats{width:230px;left:12px}.right{text-align:right;line-height:1.6;right:12px}.who{align-items:center;gap:8px;margin-bottom:6px;font-size:17px;font-weight:800;display:flex}.who img{object-fit:cover;border-radius:50%;width:34px;height:34px}label{opacity:.9;margin-top:6px;font-size:12px;display:block}label b{float:right}.bar{background:#ffffff26;border-radius:6px;height:12px;position:relative;overflow:hidden}.fill{border-radius:6px;width:0;height:100%;transition:width .15s}.fill.energy{background:linear-gradient(90deg,#f0c020,#6bd36b)}.fill.sus{background:linear-gradient(90deg,#f0a020,#e03030)}#bar-promile{background:#ffdc78e6;position:relative}.bar.promile .sweet{background:#50dc7859;width:46.7%;position:absolute;top:0;bottom:0;left:26.6%}#clock{font-variant-numeric:tabular-nums;font-size:26px;font-weight:800}#watching{color:#ff8fb0;font-weight:800;animation:.6s infinite alternate pulse}#hidden-tag{color:#9fe0a8;font-weight:700}@keyframes pulse{to{opacity:.4}}.bottom{text-align:center;position:absolute;bottom:16px;left:50%;transform:translate(-50%)}#hand,#hint{background:var(--panel);border-radius:10px;margin-top:6px;padding:6px 14px;display:inline-block}#hint:empty{display:none}#hint{color:#ffd27a;font-weight:700;display:block}#progress{background:#fff3;border-radius:4px;width:180px;height:8px;margin:8px auto 0;overflow:hidden}#progress-fill{background:var(--pink);width:0;height:100%}#toasts{flex-direction:column;align-items:center;gap:6px;display:flex;position:absolute;top:90px;left:50%;transform:translate(-50%)}.toast{background:var(--panel);white-space:nowrap;border-radius:10px;padding:6px 14px;font-weight:700;animation:2.6s forwards toast}@keyframes toast{0%{opacity:0;transform:translateY(-8px)}10%,80%{opacity:1;transform:none}to{opacity:0}}.overlay{text-align:center;background:radial-gradient(circle at 50% 30%,#e8577e59,#140f24f5 70%);flex-direction:column;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0;overflow-y:auto}.overlay h1{margin:0 0 4px;font-size:clamp(26px,5vw,46px)}.sub{opacity:.85;margin:0 0 18px}#heroes{flex-wrap:wrap;justify-content:center;gap:16px;display:flex}.hero-card{width:210px;color:inherit;font:inherit;cursor:pointer;background:#ffffff0f;border:2px solid #fff3;border-radius:16px;padding:14px;transition:transform .15s,border-color .15s}.hero-card:hover{border-color:var(--pink);transform:translateY(-4px)rotate(-1deg)}.hero-card img{object-fit:cover;border-radius:50%;width:110px;height:110px}.hero-card h2{margin:8px 0 4px}.hero-card p{opacity:.85;margin:0;font-size:13px}.rules{text-align:left;opacity:.9;max-width:560px;font-size:14px;line-height:1.6}#again,.overlay button#again{background:var(--pink);color:#fff;cursor:pointer;border:0;border-radius:12px;margin-top:10px;padding:12px 26px;font-size:18px;font-weight:800}#touch{pointer-events:none;height:200px;position:fixed;inset:auto 0 0}#stick{pointer-events:auto;background:#ffffff1f;border-radius:50%;width:110px;height:110px;position:absolute;bottom:90px;left:24px}#knob{background:#ffffff80;border-radius:50%;width:40px;height:40px;position:absolute;top:35px;left:35px}#touch button{color:#fff;pointer-events:auto;background:#e8577ebf;border:0;border-radius:50%;width:70px;height:70px;font-size:20px;font-weight:800;position:absolute;bottom:100px}#touch small{font-size:10px}#btn-e{right:110px}#btn-q{right:24px;background:#f0c020cc!important}body.touch .panel{top:max(8px, env(safe-area-inset-top))}body.touch .bottom{bottom:auto;top:calc(max(8px, env(safe-area-inset-top)) + 150px)}body.touch #toasts{top:auto;bottom:calc(190px + env(safe-area-inset-bottom))}body.touch #stick{bottom:calc(40px + env(safe-area-inset-bottom));width:130px;height:130px}body.touch #knob{width:46px;height:46px;top:42px;left:42px}body.touch #touch button{bottom:calc(50px + env(safe-area-inset-bottom));width:80px;height:80px}body.touch #btn-e{right:112px;bottom:calc(90px + env(safe-area-inset-bottom))!important}body.touch #touch{height:260px}#touch button:active{transform:scale(.92)}@media (width<=640px){.panel{border-radius:10px;padding:7px 9px;font-size:11px}.stats{width:150px;left:8px}.right{right:8px}.who{margin-bottom:2px;font-size:14px}.who img{width:26px;height:26px}label{margin-top:3px;font-size:10px}.bar{height:9px}#clock{font-size:18px}#hand,#hint{padding:4px 10px;font-size:12px}.toast{white-space:normal;text-align:center;max-width:86vw;font-size:12px}#heroes{flex-wrap:nowrap;gap:10px}.hero-card{width:42vw;max-width:180px;padding:10px}.hero-card img{width:80px;height:80px}.hero-card p{font-size:11px}.rules{padding-left:18px;font-size:12px}.overlay{padding-top:max(24px, env(safe-area-inset-top));justify-content:flex-start}}@media (orientation:landscape) and (height<=500px){body.touch .bottom{top:auto;bottom:8px}body.touch #toasts{top:60px;bottom:auto}.stats{width:150px}}
