:root{--bg: #0d0f14;--panel: rgba(16, 19, 28, .86);--panel-2: rgba(28, 32, 44, .9);--line: rgba(255, 255, 255, .12);--text: #e8eaf0;--muted: #9aa1b4;--accent: #ff3fd6;--accent-2: #39e6a3;--danger: #ff4d4d;--seeker: #ff5a2a;--hider: #39e6a3;--spec: #8f97ad;font-family:Noto Sans TC,PingFang TC,Microsoft JhengHei,system-ui,sans-serif}*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0;height:100%;background:var(--bg);color:var(--text);overflow:hidden}#gl{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block}#overlay{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none}#overlay>*{pointer-events:auto}#overlay>.hud{pointer-events:none}button,input,select{font:inherit;color:inherit;border-radius:8px;border:1px solid var(--line);background:var(--panel-2);padding:8px 12px}button{cursor:pointer;transition:background .15s,transform .05s}button:hover{background:#ffffff1a}button:active{transform:translateY(1px)}button.primary{background:var(--accent);border-color:transparent;color:#140b12;font-weight:700}button.primary:hover{filter:brightness(1.1)}button.good{background:var(--accent-2);border-color:transparent;color:#06251a;font-weight:700}button.danger{background:var(--danger);border-color:transparent;color:#fff}button:disabled{opacity:.45;cursor:not-allowed}input:focus,select:focus{outline:2px solid var(--accent);outline-offset:1px}h1,h2,h3{margin:0 0 8px}.muted{color:var(--muted)}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.col{display:flex;flex-direction:column;gap:8px}.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:700}.badge.hider{background:var(--hider);color:#06251a}.badge.seeker{background:var(--seeker);color:#fff}.badge.spectator{background:var(--spec);color:#fff}.badge.host{background:#ffd23f;color:#3a2a00}.screen{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:radial-gradient(1200px 600px at 50% -10%,rgba(255,63,214,.18),transparent 60%),radial-gradient(900px 500px at 90% 110%,rgba(57,230,163,.14),transparent 60%)}.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:24px;min-width:340px;max-width:92vw;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 20px 60px #00000080}.logo{font-size:34px;letter-spacing:.08em;font-weight:900;line-height:1;background:linear-gradient(90deg,#ff3fd6,#ffd23f,#39e6a3);-webkit-background-clip:text;background-clip:text;color:transparent}.logo small{display:block;font-size:12px;letter-spacing:.3em;color:var(--muted);-webkit-text-fill-color:var(--muted);margin-top:6px}.error{color:var(--danger);font-size:13px;min-height:1.2em}.room-list{max-height:180px;overflow:auto;display:flex;flex-direction:column;gap:6px}.room-list button{text-align:left;display:flex;justify-content:space-between}.lobby{display:grid;grid-template-columns:1.1fr .9fr;gap:16px;width:min(1000px,94vw)}.lobby .card{min-width:0}.player-list{display:flex;flex-direction:column;gap:6px}.player{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;background:#ffffff0a;border:1px solid var(--line)}.player .nick{flex:1;font-weight:600}.player.me .nick:after{content:"（你）";color:var(--muted);font-weight:400}.player .ready{font-size:12px;color:var(--muted)}.player .ready.on{color:var(--accent-2);font-weight:700}.player select{padding:3px 6px;font-size:12px}.player .kick{padding:3px 8px;font-size:12px}.player.offline{opacity:.5}.settings{display:grid;grid-template-columns:auto 1fr;gap:8px 12px;align-items:center;font-size:14px}.settings input,.settings select{width:100%}.code{font-family:ui-monospace,monospace;font-size:26px;letter-spacing:.25em;font-weight:800}.voice-ico{width:18px;text-align:center}.voice-ico.on{color:var(--accent-2)}.voice-ico.muted{color:var(--danger)}.chat{display:flex;flex-direction:column;min-height:0}.chat-log{flex:1;min-height:160px;max-height:300px;overflow-y:auto;display:flex;flex-direction:column;gap:3px;font-size:13px;padding:6px;background:#00000040;border-radius:8px}.chat-log .m .n{font-weight:700;margin-right:4px}.chat-log .m.system{color:#ffd23f}.chat-log .m.team .n{color:var(--accent-2)}.chat-log .m.team .n:before{content:"[隊伍] ";font-size:11px}.chat-form{display:flex;gap:6px;margin-top:6px}.chat-form input{flex:1}.hud{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.hud>*{pointer-events:none}.hud .top{position:absolute;top:14px;left:50%;transform:translate(-50%);text-align:center}.hud .timer{font-size:40px;font-weight:900;font-variant-numeric:tabular-nums;text-shadow:0 2px 10px rgba(0,0,0,.6)}.hud .phase{font-size:14px;letter-spacing:.2em;color:#fff;text-shadow:0 1px 6px #000}.hud .left{position:absolute;top:14px;left:14px;display:flex;flex-direction:column;gap:6px}.hud .right{position:absolute;top:14px;right:14px;text-align:right}.hud .pill{background:#00000080;border-radius:999px;padding:4px 12px;font-size:13px;display:inline-block}.hud .crosshair{position:absolute;left:50%;top:50%;width:18px;height:18px;transform:translate(-50%,-50%)}.hud .crosshair:before,.hud .crosshair:after{content:"";position:absolute;background:#fff;box-shadow:0 0 2px #000}.hud .crosshair:before{left:50%;top:0;width:2px;height:100%;transform:translate(-50%)}.hud .crosshair:after{top:50%;left:0;height:2px;width:100%;transform:translateY(-50%)}.hud .swatch{position:absolute;left:50%;top:calc(50% + 24px);transform:translate(-50%);width:28px;height:28px;border-radius:6px;border:2px solid #fff;box-shadow:0 0 6px #000;display:none}.hud .swatch.on{display:block}.hud .bottom{position:absolute;bottom:18px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:6px}.hud .camo{width:220px;height:10px;background:#00000080;border-radius:999px;overflow:hidden;border:1px solid rgba(255,255,255,.3)}.hud .camo>i{display:block;height:100%;width:0;background:linear-gradient(90deg,#ff4d4d,#ffd23f,#39e6a3);transition:width .15s}.hud .cool{width:120px;height:6px;background:#00000080;border-radius:999px;overflow:hidden}.hud .cool>i{display:block;height:100%;width:100%;background:var(--seeker)}.hud .hint{font-size:12px;color:#fff;text-shadow:0 1px 4px #000;background:#0006;padding:3px 10px;border-radius:999px}.hud .center-msg{position:absolute;left:50%;top:32%;transform:translate(-50%);font-size:30px;font-weight:900;text-shadow:0 2px 12px #000;text-align:center;white-space:nowrap}.hud .lounge-banner{position:absolute;top:90px;left:50%;transform:translate(-50%);background:#ff5a2ad9;color:#fff;padding:6px 16px;border-radius:999px;font-weight:700;font-size:14px;white-space:nowrap}.hud .paint-panel{position:absolute;right:14px;top:70px;width:270px;max-height:calc(100vh - 90px);overflow-y:auto;pointer-events:auto;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.hud .paint-panel button{padding:5px 8px;font-size:13px}.hud .paint-panel button.active{background:var(--accent);color:#140b12;border-color:transparent;font-weight:700}.pp-tools{display:flex;gap:4px}.pp-tools button{flex:1}.pp-sv,.pp-hue{width:100%;border-radius:8px;border:1px solid var(--line);touch-action:none;cursor:crosshair;display:block}.pp-sv{height:150px}.pp-hue{height:16px}.pp-preview{width:44px;height:32px;border-radius:8px;border:2px solid #fff;flex:none}.pp-hex{flex:1;min-width:0;font-family:ui-monospace,monospace}.pp-rgb{display:flex;flex-direction:column;gap:2px}.pp-rgb label{display:flex;gap:6px;align-items:center;font-size:12px}.pp-rgb input{flex:1;padding:0}.pp-swatches{display:grid;grid-template-columns:repeat(9,1fr);gap:4px}.pp-swatches.small{grid-template-columns:repeat(10,1fr);min-height:22px}.pp-swatches .sw{height:24px;padding:0;border-radius:6px;border:2px solid rgba(255,255,255,.25)}.pp-swatches .sw:hover{border-color:#fff}.hud .chat-mini{position:absolute;left:14px;bottom:14px;width:360px;max-width:60vw;pointer-events:auto}.hud .chat-mini .chat-log{max-height:160px;min-height:60px;background:#00000059}.hud .chat-mini.idle .chat-form{display:none}.hud .chat-mini.idle .chat-log{background:transparent;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 30%);mask-image:linear-gradient(to bottom,transparent,#000 30%)}.hud .voice-bar{position:absolute;right:14px;bottom:14px;pointer-events:auto;display:flex;gap:6px;z-index:5}.hud .pause{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;z-index:4}.hud .pause .card{text-align:center;pointer-events:auto;max-width:min(560px,92vw)}.hud .pause .controls{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;margin:10px 0}.hud .pause .controls input[type=range]{width:120px}.results .card{text-align:center;min-width:420px}.results .winner{font-size:40px;font-weight:900}.results .winner.hiders{color:var(--hider)}.results .winner.seekers{color:var(--seeker)}.results ul{list-style:none;padding:0;margin:12px 0;text-align:left;max-height:200px;overflow:auto}.results li{padding:4px 0;border-bottom:1px solid var(--line);font-size:14px}.toast{position:absolute;top:70px;left:50%;transform:translate(-50%);background:#000000bf;padding:8px 16px;border-radius:10px;font-size:14px;border:1px solid var(--line)}@media(max-width:800px){.lobby{grid-template-columns:1fr}.results .card{min-width:0}}.hud .pill.score{color:#ffd23f;font-weight:700}.hud .exposure{position:absolute;left:50%;top:calc(50% - 64px);transform:translate(-50%);padding:4px 12px;border-radius:999px;font-weight:800;font-size:14px;color:#fff;text-shadow:0 1px 3px #000}.hud .exposure.lv1{background:#ffaa28bf}.hud .exposure.lv2{background:#e63228d9;animation:pulse .6s infinite alternate}@keyframes pulse{0%{transform:translate(-50%) scale(1)}to{transform:translate(-50%) scale(1.08)}}.hud .floats{position:absolute;left:50%;top:40%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:2px}.hud .float{color:#ffd23f;font-weight:900;font-size:18px;text-shadow:0 2px 6px #000;animation:floatUp 1.6s ease-out forwards;white-space:nowrap}@keyframes floatUp{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-50px)}}.hud .bell-ping{position:absolute;left:50%;top:50%;width:0;height:0;font-weight:900;color:#ffd23f;text-shadow:0 1px 4px #000;transform:rotate(var(--a, 0rad))}.hud .bell-ping:before{content:"▲";position:absolute;left:-10px;top:-150px;font-size:22px}.hud .bell-ping:after{content:""}.hud .cool.bell>i{background:#ffd23f}.hud .pose-panel{position:absolute;left:50%;bottom:120px;transform:translate(-50%);pointer-events:auto;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:6px;font-size:13px}.hud .pose-list{display:flex;flex-wrap:wrap;gap:6px}.hud .pose-list button{padding:6px 10px}.results table.scores{width:100%;border-collapse:collapse;margin:8px 0;font-size:14px}.results table.scores th,.results table.scores td{padding:4px 6px;border-bottom:1px solid var(--line);text-align:left}.results table.scores tr.me td{color:#ffd23f;font-weight:700}html.is-touch,html.is-touch body{overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}html.is-touch,html.is-touch *{touch-action:pan-x pan-y}html.is-touch #gl,html.is-touch .touch .tc-zone,html.is-touch .touch .tc-btn,html.is-touch .pp-sv,html.is-touch .pp-hue{touch-action:none}html.is-touch button,html.is-touch select,html.is-touch input,html.is-touch label{touch-action:manipulation}html.is-touch input,html.is-touch select,html.is-touch textarea{font-size:max(16px,1em)}html.is-touch input,html.is-touch textarea{-webkit-user-select:text;user-select:text}#gl{touch-action:none}.hud>.touch{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.touch .tc-zone{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:auto;touch-action:none}.touch.covered{display:none}.touch .tc-stick{position:absolute;width:120px;height:120px;margin:-60px 0 0 -60px;border-radius:50%;border:2px solid rgba(255,255,255,.35);background:#0000002e;display:none;pointer-events:none}.touch .tc-stick.on{display:block}.touch .tc-stick>i{position:absolute;left:50%;top:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:#ffffff8c}.touch .tc-btn{pointer-events:auto;touch-action:none;border-radius:999px;border:2px solid rgba(255,255,255,.35);background:#0000006b;color:#fff;font-weight:800;padding:0;display:grid;place-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.touch .tc-btn:active,.touch .tc-btn.down{background:#ffffff4d;transform:none}.touch .tc-pad{position:absolute;right:calc(14px + env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:flex-end;gap:10px;pointer-events:none}.touch .tc-row{display:flex;gap:8px;align-items:flex-end;pointer-events:none}.touch .tc-sm{width:50px;height:50px;font-size:14px}.touch .tc-letgo{background:#ffd23f8c}.touch .tc-jump{width:66px;height:66px;font-size:18px}.touch .tc-fire{position:relative;width:92px;height:92px;font-size:19px}.touch .tc-fire.seeker{background:#ff5a2a99}.touch .tc-fire.hider{background:#39e6a380}.touch .tc-fire>span{position:relative}.touch .tc-ring{position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border-radius:50%;background:conic-gradient(#fff calc(var(--p, 1) * 360deg),transparent 0);-webkit-mask:radial-gradient(circle,transparent 60%,#000 61%);mask:radial-gradient(circle,transparent 60%,#000 61%);opacity:.8}.touch .tc-topbar{position:absolute;top:calc(10px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right));display:flex;gap:8px}.touch .tc-top{width:44px;height:44px;font-size:18px}.touch .tc-portrait{display:none}@media(orientation:portrait){.touch .tc-portrait{display:block;position:absolute;top:46%;left:50%;transform:translate(-50%);background:#0009;padding:6px 14px;border-radius:999px;font-size:13px;white-space:nowrap;pointer-events:none;animation:fadeOut 4s forwards}}@keyframes fadeOut{0%,70%{opacity:1}to{opacity:0}}html.is-touch .hud .chat-mini{width:300px;max-width:42vw;bottom:auto;top:50%;left:calc(10px + env(safe-area-inset-left))}html.is-touch .hud .chat-mini.idle{pointer-events:none}html.is-touch .hud .chat-mini .chat-log{max-height:90px;font-size:12px}html.is-touch .hud .voice-bar{bottom:auto;top:calc(62px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right))}html.is-touch .hud .voice-bar button{padding:5px 8px;font-size:12px}html.is-touch .hud .bottom{bottom:calc(12px + env(safe-area-inset-bottom))}html.is-touch .hud .left{top:calc(10px + env(safe-area-inset-top));left:calc(10px + env(safe-area-inset-left))}html.is-touch .hud .pose-panel{bottom:auto;top:18%}html.is-touch .hud .pose-list button{padding:10px 12px}html.is-touch .hud .paint-panel:not([hidden])~.voice-bar{display:none}html.is-touch .hud .pause .card{padding:14px 18px}html.is-touch .hud .pause .card h2{font-size:18px;margin:0}html.is-touch .hud .paint-panel{top:10px;right:10px;max-height:calc(100vh - 20px);width:250px}@media(max-height:500px),(max-width:700px){.hud .timer{font-size:26px}.hud .phase{font-size:11px}.hud .left{gap:3px}.hud .pill{font-size:11px;padding:2px 8px}.hud .center-msg{font-size:20px;white-space:normal;width:80vw}.hud .lounge-banner{top:64px;font-size:12px;white-space:normal;text-align:center;max-width:70vw}.hud .camo{width:150px}.card{padding:16px;min-width:0}.hud .pause .card{max-height:90vh;overflow-y:auto}.screen{overflow-y:auto;place-items:start center;padding:12px 0}.lobby{grid-template-columns:1fr 1fr;gap:10px}.chat-log{min-height:80px;max-height:140px}.logo{font-size:24px}}@media(max-width:700px){.lobby{grid-template-columns:1fr}}.results .missed ul{margin:6px 0 10px}.results .missed li.miss{color:#ffb24d;font-weight:700}.results .card{max-height:94vh;overflow-y:auto}.hud .board{position:absolute;right:14px;top:64px;width:210px;background:#0000006b;border-radius:12px;padding:6px 8px;font-size:13px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.hud .board-title{font-size:11px;letter-spacing:.15em;color:var(--muted);margin-bottom:3px}.hud .board-list{display:flex;flex-direction:column;gap:2px}.hud .board-row{position:relative;display:flex;align-items:center;gap:6px;padding:2px 4px;border-radius:6px}.hud .board-row .dot{width:8px;height:8px;border-radius:50%;flex:none;background:var(--spec)}.hud .board-row.hider .dot{background:var(--hider)}.hud .board-row.seeker .dot{background:var(--seeker)}.hud .board-row .n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hud .board-row b{font-variant-numeric:tabular-nums;color:#ffd23f}.hud .board-row.me .n{font-weight:800}.hud .board-row.out{opacity:.45;text-decoration:line-through}.hud .board-row.jump b{animation:boardJump .6s ease-out}.hud .board-row .pop{position:absolute;right:-4px;top:-6px;color:#fff;font-weight:700;font-size:11px;text-shadow:0 1px 3px #000;animation:floatUp 1.4s ease-out forwards;pointer-events:none}@keyframes boardJump{0%{transform:scale(1.2)}to{transform:scale(1)}}html.is-touch .hud.seeking .left .p-room,html.is-touch .hud.seeking .left .p-hiders,html.is-touch .hud.seeking .left .score{display:none}html.is-touch .hud .board{top:calc(62px + env(safe-area-inset-top));left:calc(10px + env(safe-area-inset-left));right:auto;width:170px;font-size:11px;padding:4px 6px}html.is-touch .hud .board-list{max-height:104px;overflow:hidden}html.is-touch .hud.seeking .chat-mini{top:calc(50% + 24px)}html.is-touch .hud .board-row .pop{font-size:11px}@media(max-height:500px){.hud .board-list{max-height:34vh;overflow:hidden}}html.is-touch,html.is-touch body{height:100dvh}.fs-btn{width:100%;background:#39e6a329;border-color:#39e6a380;font-weight:700}.fs-guide{position:absolute;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-items:center;background:#0000008c;padding:12px}.fs-guide .card{max-width:420px;max-height:92dvh;overflow-y:auto}.fs-guide ol{padding-left:1.3em;line-height:1.8;margin:8px 0 10px}.fs-guide button{width:100%;margin-top:4px}html.ios-standalone,html.ios-standalone body{height:var(--app-h, 100vh);width:var(--app-w, 100vw)}html.ios-standalone #gl,html.ios-standalone #overlay{inset:auto;left:0;top:0;width:var(--app-w, 100vw);height:var(--app-h, 100vh)}
