*{box-sizing:border-box}body{margin:0;background:#00190f;color:#fffae6;font:17px/1.35 system-ui,sans-serif}button,input{font:inherit;color:inherit;width:100%;border-radius:10px;padding:14px 18px}button{cursor:pointer;background:linear-gradient(#ffd15a,#edac18);color:#031e12;font:700 clamp(21px,2vw,32px) Georgia;border:1px solid #ffc448;margin-top:18px;transition:filter .2s}button:hover{filter:brightness(1.12)}button:disabled{cursor:default;opacity:.55}input{margin-top:8px;border:1px solid #ffefd2;background:#052317a8}input:focus-visible,button:focus-visible{outline:3px solid #ffe49b;outline-offset:3px}.outline{color:#fff5d9;background:#00231680;border:2px solid #f5d284}.link{background:none;color:#fff6df;font:inherit;text-decoration:underline;text-underline-offset:5px;border:0;margin-top:8px}header{position:absolute;top:5vh;left:4vw;right:4vw;display:flex;align-items:center;justify-content:space-between;z-index:1}.brand{display:flex;align-items:center;gap:16px;font:bold clamp(25px,3vw,48px) Georgia;letter-spacing:.04em}.brand i{width:1.33em;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 20%,#fff9,transparent 18%),radial-gradient(circle at 35% 20%,transparent 40%,#351b0080 85%),linear-gradient(150deg,#faf1d4 32%,#e9a51e 33% 67%,#fff1cc 68%);box-shadow:inset 0 0 3px #ffebac}a{color:inherit;font-size:14px;text-decoration:none;background:#00190faa;padding:9px 12px;border-radius:10px}
#welcome{background:linear-gradient(90deg,#00190f77,transparent 60%),url('/club.png') center/cover;min-height:100svh;display:flex;align-items:center;padding:15vh 4vw 4vh}.intro{width:clamp(335px,31vw,525px)}h1,h2{font-family:Georgia,serif;line-height:1;margin:0}h1{font-size:clamp(74px,9vw,155px);letter-spacing:-.05em;margin-bottom:5vh;white-space:nowrap}label,input{font-size:clamp(17px,1.55vw,25px)}#code{text-transform:uppercase;letter-spacing:.14em}#error,#phase{color:#ffcf84}#error:empty{margin:0}
#room{min-height:100svh;display:grid;grid-template-columns:minmax(0,1fr) clamp(355px,33vw,590px)}body:has(#room:not([hidden])) header a{display:none}body:has(#room:not([hidden])) .brand i{background:linear-gradient(150deg,#fff0cf 32%,#195737 33% 67%,#fff1cc 68%)}#lobby{height:100%;min-height:100svh;background:linear-gradient(140deg,#00120899,transparent 50%),url('/table.png') center/cover;padding:17vh 3.7vw 30px}#lobby h1{font-size:clamp(50px,5.6vw,96px)}.kicker{font:bold clamp(18px,1.9vw,32px) Georgia;letter-spacing:.09em;color:#ffce62}.kicker:after{content:"";display:block;margin:14px 0 20px;width:72px;height:3px;background:#ffcc5e}
aside{background:linear-gradient(115deg,#00150e,#002819);padding:3vh 3vw 24px;display:flex;flex-direction:column;justify-content:center;min-width:0}#leave{align-self:end;width:auto;font:500 17px system-ui;margin:0 0 auto;padding:10px 18px;border-width:1px}h2{display:flex;justify-content:space-between;font-size:clamp(31px,3.4vw,60px);margin:6vh 0 0;padding-bottom:20px;border-bottom:2px solid #efba49}ul{list-style:none;margin:0 0 4vh;padding:1vh 0 2vh;border-bottom:1px solid #efba49}li{display:flex;align-items:center;gap:14px;padding:1.5vh 0;font:clamp(20px,1.85vw,31px) Georgia;overflow-wrap:anywhere}li:before{content:attr(data-avatar);display:grid;place-items:center;flex:none;width:2.2em;aspect-ratio:1;border:2px solid #f5d28a;background:#134d34;border-radius:50%}li.empty:before{background:none;border-style:dashed;border-color:#d8d8bc}li small{color:#f6cd73}li[data-ready=true] small{color:#86efb1}#roomcode{display:block;font:700 clamp(30px,3.2vw,53px) Georgia;text-align:center;padding:16px;border-radius:10px;letter-spacing:.12em;border:1px solid #46604c}#match,#sync{margin:12px 0 0;font-size:15px}#sync{color:#acc5b7}#match:empty,#sync:empty{display:none}
body.live header{display:none}.live #room{grid-template-columns:minmax(0,1fr) 305px}.live aside{padding:24px;justify-content:start}.live #leave{margin-bottom:12px}.live h2{font-size:29px;margin-top:20px}.live li{font-size:19px}.live .game{align-self:center}.game{min-width:0}#screen{position:relative;background:#000}video,#relay{width:100%;aspect-ratio:16/9;object-fit:contain;display:block}#fps,#full,#waiting{position:absolute;top:12px;left:12px;background:#00150ddd;border-radius:7px;padding:7px 10px;font:600 13px system-ui;color:white}#full{left:auto;right:12px;margin:0;border:0;width:auto;font-size:19px}#waiting{top:45%;left:35%}#controls{padding:14px;background:#09251e;display:grid;grid-template-columns:auto 1fr auto 1fr auto 1fr auto;align-items:center;gap:12px}#controls label{font:14px system-ui}output{color:#ffd467}#controls input{accent-color:#ffc452;margin:0;padding:0;min-width:0}#shoot{margin:0;width:auto;font:700 16px system-ui}#screen:fullscreen{display:flex;flex-direction:column}#screen:fullscreen :is(video,img){flex:1;min-height:0}.bar{display:flex;justify-content:space-between;color:#b2c7bd;font-size:14px;padding:12px;gap:12px}
@media(max-width:940px){#room,.live #room{grid-template-columns:1fr}#lobby{min-height:0;height:42svh;padding-top:14vh;background-position:center 60%}#lobby h1{font-size:clamp(38px,8vw,68px)}.kicker{font-size:14px}.kicker:after{margin:6px 0}aside{padding:20px 6vw}#leave{position:absolute;right:4vw;top:4vh;font-size:14px}.live #leave{position:static}h2{margin-top:5px}ul{margin-bottom:18px}#controls{grid-template-columns:auto 1fr}#shoot{grid-column:1/-1}#welcome{background-position:65% center}.intro{max-width:95%}#welcome:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#001408e8,#00140852)}.intro{position:relative}header{top:4vh}#fps{font-size:11px}}[hidden]{display:none!important}
body:has(#room:not([hidden])) header{pointer-events:none}li small:before{content:'· ';color:#ffe9ae}
