@font-face{font-family:Golos;src:url(/fonts/golos.ttf)}@font-face{font-family:Unbounded;src:url(/fonts/unbounded.ttf);font-weight:100 900}
:root{--bg:#15121e;--panel:#201b2b;--panel2:#292335;--border:#3a3347;--ink:#f8f5ff;--muted:#bcb4ca;--lime:#c7fb67;--violet:#bca2ff;--display:Unbounded,Arial,sans-serif;--body:Golos,system-ui,sans-serif;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 90% 10%,#231a34 0%,transparent 41%),var(--bg);color:var(--ink);font:16px/1.42 var(--body);min-height:100vh}button,a,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #86dcff;outline-offset:3px}
.top{border-bottom:1px solid var(--border);background:#191520}.bar,main{width:min(1240px,calc(100% - 80px));margin:auto}.bar{height:68px;display:flex;align-items:center;justify-content:space-between}.brand,.top-actions,.tvlink,.inline,.row,.paneltop,.sectiontitle,.chip,.pill,.action,.other,.tool,.clock{display:flex;align-items:center}.brand{font:800 21px var(--display);letter-spacing:-1.4px;gap:3px}.brand canvas{width:36px;height:36px;image-rendering:pixelated;margin-right:9px;transform:rotate(-5deg)}.brand b{color:var(--lime)}.top-actions{gap:10px}.tvlink,.iconbtn,.other,.tool{border:1px solid var(--border);background:#26202f;border-radius:10px;justify-content:center;gap:8px}.tvlink,.other,.tool{padding:9px 14px;font-size:14px;font-weight:bold}.iconbtn{display:grid;place-items:center;width:39px;height:39px}.ico{width:19px;height:19px;flex:none;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.tvlink:hover,.other:hover,.iconbtn:hover,.tool:hover{border-color:#9a86b4}
main{padding:35px 0 44px}.sectiontitle{gap:16px;justify-content:space-between;margin:0 0 19px}.titlegroup{display:flex;align-items:center;gap:12px}.spark{color:var(--lime);width:30px;height:30px}.spark path{fill:currentColor;stroke:none}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--display);line-height:1.18;letter-spacing:-.045em}h1{font-size:clamp(32px,4.1vw,58px)}h2{font-size:clamp(22px,2.6vw,33px)}h3{font-size:21px}.pill,.chip{border-radius:30px;font-size:13px;font-weight:bold;gap:8px;white-space:nowrap}.pill{background:#263125;color:#c7edac;padding:7px 12px;border:1px solid #3a4936}.dot{width:7px;height:7px;background:#adf771;border-radius:100%;display:inline-block;box-shadow:0 0 8px #acff6a55}.lobbygrid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(306px,1fr);gap:20px;align-items:stretch}.window,.panel,.gamepanel{background:var(--panel);border:1px solid var(--border);border-radius:18px;overflow:hidden}.window{display:flex;flex-direction:column}.paneltop{padding:13px 17px;justify-content:space-between;gap:10px}.paneltop strong,.inline{gap:8px}.paneltop strong{display:inline-flex;align-items:center;font-size:15px}.paneltop strong .ico{color:#ccaeff}.pane-dots{display:flex;gap:5px}.pane-dots i{background:#ff9bb1;width:7px;height:7px;border-radius:2px}.pane-dots i:nth-child(2){background:#f7d77b}.pane-dots i:nth-child(3){background:#b2e78b}.world{overflow:hidden;position:relative;aspect-ratio:1.85;min-height:210px;background:#493856 url(/art/lobby.png) center/100% 100% no-repeat;image-rendering:pixelated;isolation:isolate;touch-action:manipulation;flex:1}.world.live{cursor:crosshair}.world:after{content:'';pointer-events:none;position:absolute;inset:0;box-shadow:inset 0 0 38px #150b2633}.sprite{position:absolute;transform:translate(-50%,-100%);width:clamp(27px,4vw,53px);aspect-ratio:1;transition:left .28s linear,top .28s linear;display:grid;place-items:end center;pointer-events:none}.sprite canvas,.portrait,.game-icon,.brand canvas{image-rendering:pixelated}.sprite canvas{width:100%;height:100%}.sprite label{position:absolute;bottom:96%;left:50%;transform:translateX(-50%);font:600 12px/1.2 var(--body);color:white;padding:3px 6px;background:#20182ddc;border-radius:5px;white-space:nowrap;max-width:120px;text-overflow:ellipsis;overflow:hidden}.sprite.mine label{color:var(--lime)}.walking canvas{animation:bop .18s infinite alternate}@keyframes bop{to{transform:translateY(-3px) rotate(3deg)}}.pet{position:absolute;left:24%;top:78%;width:5%;min-width:22px;image-rendering:pixelated;animation:catwalk 13s ease-in-out infinite alternate}@keyframes catwalk{0%,15%{left:22%;transform:scaleX(1)}75%,100%{left:33%;transform:scaleX(1)}}
.worldfoot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 17px;color:var(--muted);font-size:14px}.worldfoot .ico{width:16px;height:16px}.worldfoot .inline{gap:7px}.cheer{display:flex;align-items:center;justify-content:center;gap:7px;flex:none;border:1px solid #69516f;border-radius:8px;background:#392a40;color:#ffd0e7;font-weight:bold;padding:6px 10px;font-size:13px}.cheer .ico{width:16px}.panel{padding:20px 22px;display:flex;flex-direction:column;gap:13px}.panel h2{font-size:21px}.portraitbox{background-color:#342a44;background-image:conic-gradient(#3b304c 25%,transparent 0 50%,#3b304c 0 75%,transparent 0);background-size:20px 20px;border:1px solid #4b3e5c;border-radius:11px;display:grid;place-items:center;min-height:65px;position:relative;overflow:hidden}.portrait{width:67px;height:67px}.portraitbox:after,.portraitbox:before{content:'✦';position:absolute;color:#aa8fc7;left:25%;top:35%;font-size:13px}.portraitbox:after{left:72%;top:20%;font-size:19px}.field{display:grid;gap:5px;font-size:14px;font-weight:bold}input[type=text],textarea{width:100%;background:#17131f;border:1px solid #4b405a;border-radius:9px;padding:11px 13px;color:var(--ink);outline-offset:2px}input::placeholder,textarea::placeholder{color:#a599b2}.choices{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.choices b{width:83px;font-size:14px}.swatch,.hat{border:2px solid transparent;display:grid;place-items:center;cursor:pointer}.swatch{width:23px;height:23px;border-radius:50%;background:var(--sw);box-shadow:inset 0 0 0 2px #ffffff22}.swatch.sel{outline:2px solid white;outline-offset:2px}.hat{height:31px;min-width:40px;border-radius:7px;background:#302939}.hat.sel{border-color:var(--violet);background:#423454}.hat canvas{width:25px;height:25px;image-rendering:pixelated}.action{background:var(--lime);color:#202519;border:0;border-bottom:3px solid #83b448;font-weight:800;border-radius:10px;padding:12px 18px;justify-content:center;gap:10px}.action:hover{filter:brightness(1.05)}.panel .action{width:100%;margin-top:auto}.muted,.loading,.help{color:var(--muted)}.help{font-size:14px}.catalog{margin-top:30px}.catalog .sectiontitle{margin-bottom:15px}.catalog h2{font-size:26px}.num{font:600 14px var(--body);letter-spacing:0;background:#30283b;color:#d1c5df;padding:3px 9px;border-radius:7px;vertical-align:middle}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.card{position:relative;text-align:left;display:flex;flex-direction:column;align-items:flex-start;color:#211a2a;background:var(--card);border:0;border-radius:14px;padding:15px 17px 17px;min-height:154px;overflow:hidden;transition:transform .16s}.card:hover{transform:translateY(-3px)}.card:before{content:'';position:absolute;right:-19px;top:-14px;width:97px;height:97px;border:10px double #ffffff33;border-radius:24px;transform:rotate(27deg)}.card-top{display:flex;align-items:center;justify-content:space-between;width:100%;position:relative;margin-bottom:9px}.game-icon{width:52px;height:52px}.chip{background:#ffffff55;color:#362c39;padding:4px 8px;font-size:12px}.chip .ico{width:14px;height:14px}.card strong{font:800 clamp(15px,1.35vw,21px)/1.24 var(--display);letter-spacing:-.045em;max-width:100%;position:relative}.card small{font-size:14px;margin-top:6px;color:#3e3442}.roster{display:flex;gap:6px;flex-wrap:wrap}.person{display:inline-flex;align-items:center;gap:5px;background:#30283c;border-radius:20px;padding:4px 10px 4px 5px;font-size:14px}.person canvas{width:25px;height:25px;image-rendering:pixelated}.qrcode{background:white;width:min(100%,245px);align-self:center;border-radius:12px}.joinaddr{text-align:center;font:700 18px var(--display)}.tv .lobbygrid{grid-template-columns:1.9fr 1fr}.tv .world{aspect-ratio:1.8}.tv .panel{align-items:center;justify-content:center}.tv .panel h2{text-align:center}.tv .qrcode{width:min(100%,280px)}.gamegrid{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:18px}.gamepanel{padding:clamp(20px,4vw,46px);display:flex;flex-direction:column;gap:18px;align-items:flex-start}.gamepanel h2{max-width:900px;font-size:clamp(24px,3.5vw,46px)}.gamepanel .question{font-size:clamp(19px,2vw,27px);font-weight:bold}.gamepanel textarea{font:18px var(--body);resize:vertical;min-height:95px}.gform,.answers,.gallery,.resultlist{width:100%;display:grid;gap:12px}.choice,.resultbox,.quotebox{background:#30283d;border:1px solid #51415f;border-radius:12px;padding:14px 16px;text-align:left;overflow-wrap:anywhere}.choice{font-weight:bold;display:flex;align-items:center;gap:10px}.choice:not(:disabled):hover{background:#443451;border-color:#b495d7}.letter{border-radius:7px;background:#bca2ff;color:#241f2f;padding:5px 10px;font-weight:bold}.choice:nth-child(2) .letter{background:#ffb09a}.resultbox b{color:var(--lime)}.row{gap:8px;flex-wrap:wrap}.clock{color:var(--lime);gap:7px;font-variant-numeric:tabular-nums}.subhead{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:14px}.status{border:1px solid #49573a;border-radius:9px;padding:10px 14px;color:var(--lime);background:#273023}.drawarea{background:#fff4de;border-radius:10px;width:100%;max-width:640px;aspect-ratio:1.6;touch-action:none;display:block}.gallery{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.gallery .drawarea{margin-top:8px}.gallery p{margin-top:8px}.quotebox{font-size:clamp(22px,3vw,39px);background:#382c47;color:#ead9ff;font-weight:bold}.gamepanel .other,.panel .other{min-height:40px}.tool{color:var(--muted);background:transparent}.tv .gamegrid{grid-template-columns:minmax(0,1fr) 220px}.tv .gamepanel{min-height:45vh}.tv .gamepanel h2{font-size:clamp(30px,4vw,65px)}.tv .resultbox,.tv .choice{font-size:clamp(18px,2vw,28px)}
dialog{max-width:min(440px,calc(100% - 28px));width:100%;background:#292133;color:var(--ink);border:1px solid #60516f;border-radius:18px;padding:24px;box-shadow:0 18px 80px #0009}dialog::backdrop{background:#0b0816bd}dialog .row{margin-top:18px}dialog h2{font-size:24px}dialog p{margin-top:12px;color:#d9d0e2}dialog .game-icon{width:64px;height:64px;margin-bottom:9px}#notice{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:15;border-radius:12px;max-width:calc(100% - 24px);text-align:center;background:#eee6ff;color:#271d35;padding:0;font-weight:bold;pointer-events:none}#notice:not(:empty){padding:10px 18px;box-shadow:0 4px 25px #110c20aa}#fireworks{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:12}.error{color:#ffb5bd;font-size:14px}.empty{display:none!important}
@media(min-width:1550px){.bar,main{width:min(1460px,calc(100% - 100px))}.card{min-height:177px}.panel{gap:18px}}
@media(max-width:940px){.bar,main{width:calc(100% - 40px)}.lobbygrid{grid-template-columns:minmax(0,1.5fr) 306px;gap:14px}.panel{padding:16px;gap:10px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.card{min-height:135px}.worldfoot{flex-wrap:wrap}.gamegrid{grid-template-columns:minmax(0,1fr) 215px}.gamepanel{padding:20px}}
@media(max-width:700px){.bar,main{width:calc(100% - 28px)}.bar{height:56px}.brand{font-size:18px}.brand canvas{width:30px;height:30px;margin-right:5px}.top-actions{gap:6px}.tvlink{font-size:12px;padding:8px}.iconbtn{width:34px;height:34px}.ico{width:17px;height:17px}main{padding:21px 0 30px}.lobbygrid,.gamegrid,.tv .lobbygrid,.tv .gamegrid{grid-template-columns:1fr}.sectiontitle{margin-bottom:13px;gap:6px}.titlegroup{gap:5px}h1{font-size:clamp(25px,7.6vw,42px)}.spark{width:20px;height:20px}.pill{font-size:12px;padding:6px 8px;gap:5px}.world{min-height:0;aspect-ratio:1.83;flex:auto}.paneltop{padding:9px 12px}.worldfoot{padding:9px 10px;font-size:12px}.cheer{font-size:12px;padding:6px}.panel{gap:12px}.portraitbox{min-height:57px}.portrait{height:56px;width:56px}.panel h2{font-size:19px}.catalog{margin-top:23px}.catalog h2{font-size:22px}.cards{gap:9px}.card{padding:11px;min-height:138px}.card strong{font-size:15px}.card small{font-size:12px}.game-icon{width:40px;height:40px}.chip{font-size:11px;padding:4px 6px}.chip .ico{width:12px;height:12px}.sprite{width:33px}.sprite label{font-size:10px}.gamepanel{gap:14px}.tv .qrcode{width:185px}.tv .gamepanel{min-height:0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(min-width:941px){body:not(.tv) .world{aspect-ratio:2.65}body:not(.tv) main{padding-top:27px}body:not(.tv) .panel{gap:12px}body:not(.tv) .catalog{margin-top:23px}}
.choice:disabled{opacity:.88}.tv .choice:disabled{opacity:1}.choices .hat canvas{transform:scale(1.12)}
