:root{--bg:#2b1d3a;--surface:#3c2852;--surface-2:#53386d;--badge-bar:#6c4c8c;--text:#fff0fb;--muted:#d9bce8;--accent:#ff7ac6;--accent-text:#2b1d3a;--vignette:#14051e73;--sky:#7cc6f2;--sage:#8fd19e;--coral:#ff8a7a;--lilac:#c9a7ff;--honey:#ffc061;--danger:#ff6b6b;--radius:14px;--shadow:0 4px 14px #00000047;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:var(--text);background:var(--bg);font-family:Nunito,ui-rounded,system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}[hidden]{display:none!important}html,body,#app{height:100%;margin:0}body{background:var(--bg)}button,.button,input{font:inherit;color:inherit;border:1px solid var(--surface-2);background:var(--surface-2);border-radius:12px;padding:9px 16px;transition:transform .12s,filter .12s,background .15s}button:active,.button:active{transform:scale(.96)}.icon{vertical-align:-.25em;flex:none;width:1.25em;height:1.25em;display:inline-block}.light-theme .icon svg{--icon-edge:color-mix(in srgb, var(--text) 75%, transparent);filter:drop-shadow(1px 0 0 var(--icon-edge)) drop-shadow(-1px 0 0 var(--icon-edge)) drop-shadow(0 1px 0 var(--icon-edge)) drop-shadow(0 -1px 0 var(--icon-edge))}button,.button{cursor:pointer;text-decoration:none;display:inline-block}button:hover,.button:hover{filter:brightness(1.15)}button:disabled{opacity:.5;cursor:default}.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text);box-shadow:var(--shadow);font-weight:800}input{background:var(--bg);width:100%}.home{max-width:1200px;margin:0 auto;padding:32px 16px 64px}.home h1{letter-spacing:-.01em;background:linear-gradient(90deg, var(--coral), var(--honey), var(--sage), var(--sky));color:#0000;-webkit-background-clip:text;background-clip:text;margin:0;font-size:2.4rem;font-weight:800}.subtitle{color:var(--muted);margin:4px 0 24px}.panel{background:var(--surface);border-radius:var(--radius);flex-direction:column;gap:12px;margin-bottom:16px;padding:20px;display:flex}.panel h2{margin:8px 0 0;font-size:1rem}.panel label{color:var(--muted);flex-direction:column;gap:6px;font-size:.9rem;display:flex}.gallery{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;display:grid}.tile{background:var(--bg);border:2px solid #0000;flex-direction:column;padding:0;display:flex;overflow:hidden}.tile img{aspect-ratio:4/3;object-fit:cover;width:100%;display:block}.tile span{text-align:left;padding:6px 8px;font-size:.85rem}.tile.selected{border-color:var(--accent)}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip.selected{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.join .row{gap:8px;display:flex}.join input{text-transform:uppercase;letter-spacing:.15em}.error{color:var(--danger);min-height:1em;margin:0}.modal .error:empty{display:none}.room{position:fixed;inset:0;overflow:hidden}.canvas-host{position:absolute;inset:0}.canvas-host canvas{display:block}.hud{pointer-events:none;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 12px;display:flex;position:absolute;top:0;left:0;right:0}.hud>*{pointer-events:auto}.hud .spacer{pointer-events:none;flex:1}.back{color:var(--text);background:var(--surface);border-radius:8px;padding:4px 12px;font-size:1.3rem;text-decoration:none}.code{letter-spacing:.15em;background:var(--surface);border-radius:8px;padding:6px 12px;font-family:ui-monospace,monospace;font-size:1.1rem}.timer{font-variant-numeric:tabular-nums;background:var(--surface);border-radius:8px;padding:6px 12px;font-size:.95rem}.timer[hidden]{display:none}.status{color:var(--muted);font-size:.9rem}.players{flex-direction:column;align-items:flex-end;gap:6px;margin:0;padding:0;list-style:none;display:flex}.players li{background:var(--surface);border-radius:999px;align-items:center;gap:6px;padding:4px 10px 4px 6px;font-size:.85rem;display:flex}.dot{border-radius:50%;width:12px;height:12px;display:inline-block;box-shadow:0 0 0 1px #2a1f2d59}.tools{flex-direction:column;gap:6px;display:flex;position:absolute;bottom:12px;right:12px}.tools button{background:var(--surface);width:44px;height:44px;padding:0;font-size:1.2rem}.tools button.active{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.preview{border-radius:var(--radius);pointer-events:none;width:min(320px,45vw);position:absolute;bottom:12px;left:12px;box-shadow:0 6px 24px #00000080}.progress{background:color-mix(in srgb, var(--surface) 88%, transparent);min-height:36px;box-shadow:var(--shadow);border-radius:999px;flex:160px;align-items:center;gap:10px;padding:0 14px;display:flex}.hud>.progress{pointer-events:none}.progress-bar{background:var(--surface);border-radius:999px;flex:1;height:8px;overflow:hidden}.progress-fill{background:var(--accent);width:0;height:100%;transition:width .3s}.progress-text{color:var(--muted);white-space:nowrap;font-size:.82rem;font-weight:700}.banner{background:var(--surface);border-radius:var(--radius);align-items:center;gap:16px;padding:14px 18px;display:flex;position:absolute;top:70px;left:50%;transform:translate(-50%);box-shadow:0 6px 24px #00000080}.preview.size-small{width:min(200px,32vw)}.preview.size-large{width:min(480px,62vw)}.segmented.corners button{padding:4px 6px}.corner-dot{opacity:.85;border:1.5px solid;border-radius:3px;width:18px;height:13px;display:block;position:relative}.corner-dot:after{content:"";background:currentColor;border-radius:1.5px;width:6px;height:5px;position:absolute}.corner-dot.tl:after{top:1px;left:1px}.corner-dot.tr:after{top:1px;right:1px}.corner-dot.bl:after{bottom:1px;left:1px}.corner-dot.br:after{bottom:1px;right:1px}.banner[hidden],.preview[hidden]{display:none}.modal-backdrop{z-index:10;background:#0009;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.modal{background:var(--surface);border-radius:var(--radius);overscroll-behavior:contain;scrollbar-width:none;flex-direction:column;gap:10px;width:min(360px,100%);max-height:calc(100dvh - 32px);padding:20px;display:flex;position:relative;overflow-y:auto}.modal::-webkit-scrollbar{display:none}html.modal-open,html.modal-open body{overflow:hidden}.modal-backdrop{touch-action:none;overscroll-behavior:contain}.modal-close.corner{margin:0;position:absolute;top:10px;right:10px}.modal:has(>.modal-close.corner){padding-top:52px}.modal h2{margin:0;font-size:1.15rem}.setup-step{flex-direction:column;gap:10px;display:flex}.setup-head{align-items:center;gap:12px;display:flex}.setup-head img{object-fit:cover;border-radius:8px;flex:none;width:64px;height:48px}.setup-head h2{margin:0}.step-dots{justify-content:center;gap:8px;margin:4px 0 12px;display:flex}.choice .icon.lock{width:16px;height:16px;margin-left:auto}.choices[hidden]{display:none}.step-dots span{background:var(--surface-2);border-radius:50%;width:8px;height:8px}.step-dots span.on{background:var(--accent)}.modal.setup{width:min(540px,100%);max-height:calc(100vh - 32px);overflow-y:auto}.setup-image{aspect-ratio:16/9;object-fit:cover;border-radius:8px;width:100%;max-height:170px}.modal h3{color:var(--muted);margin:6px 0 0;font-size:.95rem;font-weight:600}.choices{grid-template-columns:1fr 1fr;gap:8px;display:grid}.choice{text-align:left;border:2px solid var(--surface-2);background:var(--bg);flex-direction:column;gap:4px;display:flex}.choice small{color:var(--muted);font-size:.8rem}.choice.selected{border-color:var(--accent)}.check{cursor:pointer;align-items:center;gap:10px;font-size:.9rem;display:flex}.check input{width:18px;height:18px;accent-color:var(--accent)}.row.actions{justify-content:flex-end;gap:8px;display:flex}.recent-list{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;display:grid}.recent-card{background:var(--bg);border-radius:8px;position:relative;overflow:hidden}.recent-link{color:var(--text);align-items:center;gap:10px;padding:8px;text-decoration:none;display:flex}.recent-link img{object-fit:cover;border-radius:6px;flex:none;width:72px;height:54px}.recent-info{flex-direction:column;gap:2px;min-width:0;font-size:.85rem;display:flex}.recent-info span{color:var(--muted)}.recent-progress{color:var(--accent)!important}.recent-remove{color:var(--muted);background:0 0;border:none;padding:0 8px;font-size:1.1rem;position:absolute;top:4px;right:4px}.badge-btn{position:relative}.badge{background:var(--accent);min-width:18px;height:18px;color:var(--accent-text);border-radius:9px;padding:0 4px;font-size:.7rem;font-weight:700;line-height:18px;position:absolute;top:-4px;right:-4px}.badge[hidden],.tools button[hidden]{display:none}.menu-btn{background:var(--surface);padding:7px 12px;font-size:1.25rem;line-height:1}.scrim{z-index:6;background:#00000059;position:absolute;inset:0}.side-panel{background:var(--surface);z-index:7;flex-direction:column;width:min(330px,88vw);animation:.18s ease-out slide-in;display:flex;position:absolute;top:0;bottom:0;left:0;box-shadow:6px 0 30px #00000080}@keyframes slide-in{0%{transform:translate(-100%)}}.side-head{border-bottom:1px solid var(--surface-2);justify-content:space-between;align-items:center;padding:12px 14px;display:flex}.side-head .close{background:0 0;border:none;padding:0 6px;font-size:1.4rem}.sub-panel{background:var(--surface);z-index:8;border-radius:18px;flex-direction:column;width:min(310px,100vw - 32px);max-height:calc(100% - 16px);animation:.14s ease-out pop-in;display:flex;position:absolute;box-shadow:0 10px 34px #00000080}@keyframes pop-in{0%{opacity:0;transform:translate(-10px)}}.sub-title{align-items:center;gap:10px;display:flex}.sub-title .icon{width:22px;height:22px}.sub-body{scrollbar-width:none;flex-direction:column;gap:2px;padding:8px 12px 12px;display:flex;overflow-y:auto}.sub-body::-webkit-scrollbar{display:none}.sub-row .chevron{color:var(--muted);margin-left:auto;font-size:1.4rem;line-height:1;transition:transform .15s}.sub-row.active{background:var(--surface-2)}.sub-row.active .chevron{color:var(--accent);transform:translate(3px)}.panel-body.more-below{-webkit-mask-image:linear-gradient(#000 calc(100% - 40px),#0000);mask-image:linear-gradient(#000 calc(100% - 40px),#0000)}.panel-body.dragging{cursor:grabbing;-webkit-user-select:none;user-select:none}.panel-body,.chat-history,.profile-puzzles{scrollbar-width:none}.panel-body::-webkit-scrollbar{display:none}.chat-history::-webkit-scrollbar{display:none}.profile-puzzles::-webkit-scrollbar{display:none}.panel-body{flex-direction:column;gap:4px;padding:6px 14px 20px;display:flex;overflow-y:auto}.panel-body section{border-bottom:1px solid var(--surface-2);flex-direction:column;gap:2px;padding:10px 0;display:flex}.panel-body section:last-child{border-bottom:none}.panel-body h3{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:0 0 6px;font-size:.75rem}.panel-body .note{color:var(--muted);margin:0 0 4px;font-size:.8rem}.invite{align-items:center;gap:8px;display:flex}.toggle{cursor:pointer;align-items:center;gap:10px;padding:8px 2px;display:flex}.toggle-text{flex-direction:column;flex:1;gap:2px;display:flex}.toggle-text small{color:var(--muted);font-size:.78rem}.toggle input{opacity:0;width:0;height:0;position:absolute}.switch{background:var(--surface-2);border-radius:11px;flex:none;width:40px;height:22px;transition:background .15s;position:relative}.switch:after{content:"";background:var(--text);border-radius:50%;width:16px;height:16px;transition:transform .15s;position:absolute;top:3px;left:3px}.toggle input:checked+.switch{background:var(--accent)}.toggle input:checked+.switch:after{background:var(--accent-text);transform:translate(18px)}.toggle input:focus-visible+.switch{outline:2px solid var(--accent);outline-offset:2px}.volumes{flex-direction:column;display:flex}.volume{align-items:center;gap:10px;padding:6px 2px;display:flex}.volume .icon{width:22px;height:22px}.volume-icon{box-shadow:none;background:0 0;border:none;border-radius:10px;place-items:center;margin:-5px;padding:5px;display:inline-grid}.volume-icon:hover{background:var(--surface-2)}.modal h3.music-heading{margin:20px 0 10px}.music-picker{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;display:grid}.music-choice{background:var(--surface-2);text-align:left;box-shadow:none;border:2px solid #0000;border-radius:12px;align-items:center;gap:10px;padding:10px 12px;font-weight:700;display:flex}.music-choice .icon{flex:none;width:22px;height:22px}.music-title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.music-title.long{font-size:.72em}.music-choice.selected{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent)}.volume-text{flex:1}.volume input{width:46%;accent-color:var(--accent);cursor:pointer}.leave{text-align:center}.popover{z-index:5;background:var(--surface);border:1px solid var(--surface-2);border-radius:var(--radius);flex-direction:column;gap:2px;min-width:220px;padding:6px;display:flex;position:fixed;box-shadow:0 8px 28px #00000080}.popover[hidden],.toast[hidden]{display:none}.menu-title{color:var(--muted);padding:4px 8px;font-size:.75rem}.menu-item{text-align:left;background:0 0;border:none;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 10px;display:flex}.menu-item:hover{background:var(--surface-2);filter:none}.menu-item small{color:var(--muted);font-size:.78rem}.menu-item.active strong:before{content:"✓ ";color:var(--accent)}.react-row{gap:4px;display:flex}.react{touch-action:none;cursor:grab;background:0 0;border:none;padding:4px 8px;font-size:1.5rem}.react:hover{background:var(--surface-2)}.players .count{background:var(--surface-2);color:var(--accent);border-radius:999px;padding:0 6px;font-size:.75rem}.banner{flex-wrap:wrap;justify-content:center;max-width:calc(100vw - 32px)}.ranking{margin:0;padding-left:1.2em;font-size:.9rem}.ranking .count{color:var(--muted);margin-left:6px}.toast{background:var(--surface);border-radius:var(--radius);pointer-events:none;max-width:min(560px,100vw - 32px);padding:10px 14px;font-size:.9rem;position:absolute;top:64px;left:50%;transform:translate(-50%);box-shadow:0 6px 24px #00000080}@media (width<=520px){.hud{gap:6px;padding:8px}.hud>button{padding:6px 10px;font-size:.85rem}.code{padding:5px 8px;font-size:.95rem}.players li{font-size:.75rem}.modal-backdrop{padding:10px}.modal{gap:8px;max-height:calc(100dvh - 20px);padding:16px}.modal h3{font-size:.88rem}.setup-image{max-height:130px}.chips{flex-wrap:nowrap;gap:6px}.chips .chip{flex:1;padding:6px 0;font-size:.9rem}.choice{padding:8px 10px}.choice small{font-size:.72rem}.tools button{width:40px;height:40px}}.panel,.modal,.side-panel,.popover,.banner,.toast{border-radius:18px}.panel{box-shadow:var(--shadow)}.tile{border-radius:14px;transition:transform .15s,box-shadow .15s}.tile:hover{box-shadow:var(--shadow);filter:none;transform:translateY(-3px)}.tile span{font-weight:700}.chip.selected,.choice.selected{box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent)}.canvas-host:after{content:"";pointer-events:none;background:radial-gradient(ellipse at center, transparent 55%, var(--vignette) 100%);position:absolute;inset:0}.tools button,.menu-btn,.timer,.players li,.code{box-shadow:var(--shadow);border:none}.tools button{border-radius:14px;justify-content:center;align-items:center;display:flex}.tools button .icon{width:24px;height:24px}.tool-sky{color:var(--sky)}.tool-sage{color:var(--sage)}.tool-coral{color:var(--coral)}.tool-lilac{color:var(--lilac)}.tool-honey{color:var(--honey)}.tools button.active{background:color-mix(in srgb, var(--honey) 28%, var(--surface));color:var(--honey)}.progress-bar{height:10px;box-shadow:inset 0 1px 3px #0000004d}.progress-fill{background:linear-gradient(90deg, var(--coral), var(--honey), var(--sage));border-radius:999px}.side-panel .menu-item,.toggle{border-radius:12px}.menu-row{align-items:center;gap:12px;display:flex}.menu-row .icon,.toggle .icon{width:22px;height:22px}.theme-groups{flex-direction:column;gap:6px;display:flex}.theme-group-title{color:var(--muted);margin-top:4px;font-size:.8rem;font-weight:800}.theme-picker{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px;display:grid}.swatch{background:var(--sw-bg);border:2px solid color-mix(in srgb, var(--sw-text) 14%, transparent);color:var(--sw-text);border-radius:14px;flex-direction:column;gap:6px;padding:6px 6px 7px;display:flex}.swatch.selected{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent)}.swatch .sw-name{text-align:center;color:var(--sw-text);font-size:.72rem;font-weight:800}.sw-mini{flex-direction:column;gap:4px;display:flex}.sw-bar{justify-content:space-between;align-items:center;display:flex}.sw-title{background:var(--sw-text);opacity:.85;border-radius:3px;width:40%;height:5px}.sw-btn{background:var(--sw-accent);border-radius:4px;width:18%;height:7px}.sw-panel{background:var(--sw-surface);border-radius:6px;padding:4px 12% 5px;container-type:inline-size}.sw-tile{background:var(--sw-badge-bar);border-radius:4px;padding-bottom:11cqw;display:block;overflow:hidden}.sw-pic{aspect-ratio:4/3;background:url(/puzzles/ss-46KSWRAA9X-thumb.jpg) 50%/cover;display:block;position:relative}.sw-tab{background:var(--sw-badge-bar);border-radius:10cqw 10cqw 0 0;gap:4cqw;padding:4cqw;display:flex;position:absolute;bottom:0;left:50%;transform:translate(-50%,50%)}.sw-tab i{background:var(--sw-badge-bar);border:1px solid color-mix(in srgb, var(--sw-text) 28%, transparent);border-radius:50%;place-items:center;width:14cqw;height:14cqw;display:grid}.sw-tab i svg{width:67%;height:67%;fill:color-mix(in srgb, var(--sw-text) 35%, transparent)}.sw-tab i.done{border-color:#0000}.sw-tab i.c1{background:#4caf50}.sw-tab i.c2{background:#3d8bfd}.sw-tab i.done svg{fill:#fff}.theme-row{flex-direction:column;gap:6px;display:flex}.theme-row .label{color:var(--muted);font-size:.9rem}input{color:var(--text)}.icon svg{width:100%;height:100%;display:block}.with-icon{align-items:center;gap:8px;display:inline-flex}.tools button.tool{border:none}.tools button.tool .icon,.menu-btn .icon{width:24px;height:24px}.menu-btn{justify-content:center;align-items:center;padding:8px;display:flex}.tint-sky{background:color-mix(in srgb, var(--sky) 34%, var(--surface))}.tint-sage{background:color-mix(in srgb, var(--sage) 34%, var(--surface))}.tint-coral{background:color-mix(in srgb, var(--coral) 34%, var(--surface))}.tint-lilac{background:color-mix(in srgb, var(--lilac) 34%, var(--surface))}.tint-honey{background:color-mix(in srgb, var(--honey) 34%, var(--surface))}.tools button.tool.active{background:color-mix(in srgb, var(--honey) 55%, var(--surface));color:inherit}.timer{align-items:center;gap:6px;display:inline-flex}.timer .icon{width:18px;height:18px}.menu-item.menu-row{flex-direction:row;align-items:center;font-weight:600}.toggle .toggle-text{font-weight:600}.side-head .close .icon,.recent-remove .icon{width:16px;height:16px}.leave{justify-content:center}.home-footer{justify-content:center;padding:8px 0 24px;display:flex}.link-btn{color:var(--muted);background:0 0;border:none;font-weight:600}.modal.credits{width:min(520px,100%);max-height:calc(100vh - 32px);overflow-y:auto}.modal.credits ul{flex-direction:column;gap:6px;margin:0;padding-left:1.1em;font-size:.92rem;display:flex}.modal.credits a{color:var(--accent)}.modal.credits h2 .icon{width:26px;height:26px}.license{white-space:pre-wrap;background:var(--bg);color:var(--muted);border-radius:10px;margin:0;padding:10px;font-size:.7rem}.modal.picker{width:min(640px,100%);max-height:calc(100vh - 32px);overflow-y:auto}.players li{cursor:pointer}.segmented-row{flex-wrap:wrap;align-items:center;gap:10px;padding:8px 2px;font-weight:600;display:flex}.segmented-row .icon{width:22px;height:22px}.segmented{background:var(--bg);border-radius:10px;margin-left:auto;padding:2px;display:flex}.segmented button{background:0 0;border:none;border-radius:8px;padding:4px 8px;font-size:.78rem}.segmented button.selected{background:var(--accent);color:var(--accent-text);font-weight:700}.qr{background:#fff;border-radius:12px;align-self:center;width:180px;padding:6px}.qr svg{width:100%;height:auto;display:block}.phrases{flex-wrap:wrap;gap:6px;max-width:300px;padding:6px 4px;display:flex}.phrase{background:var(--surface-2);border:none;border-radius:999px;padding:5px 10px;font-size:.8rem}.chat-form{gap:6px;padding:4px;display:flex}.chat-form input{flex:1;padding:7px 10px}.chat-form button{align-items:center;padding:6px 10px;display:flex}.modal.help,.modal.backgrounds{width:min(520px,100%);max-height:calc(100vh - 32px);overflow-y:auto}.modal h2.with-icon .icon,.modal h3.with-icon .icon{width:26px;height:26px}.tips{flex-direction:column;gap:6px;margin:0;padding-left:1.2em;display:flex}.shortcuts{border-collapse:collapse;font-size:.92rem}.shortcuts td{padding:4px 8px 4px 0}kbd{background:var(--bg);border:1px solid var(--surface-2);white-space:nowrap;border-bottom-width:3px;border-radius:7px;padding:1px 7px;font-family:inherit;font-size:.8rem;font-weight:700}.modal .note{color:var(--muted);margin:0;font-size:.85rem}.bg-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px;display:grid}.bg-tile{background:var(--bg);border:2px solid #0000;border-radius:14px;flex-direction:column;align-items:center;gap:6px;padding:6px 6px 8px;font-size:.8rem;font-weight:700;display:flex}.bg-tile.selected{border-color:var(--accent)}.bg-swatch{aspect-ratio:4/3;background-size:128px;border-radius:10px;width:100%;box-shadow:inset 0 0 0 1px #00000026}.hud-right{flex-direction:column;align-items:flex-end;gap:6px;margin-left:auto;display:flex;position:relative}.hud-right .players{white-space:nowrap;position:absolute;top:calc(100% + 6px);right:0}.hud.stacked .progress{flex-basis:100%;order:-1}.names-btn{background:var(--surface);width:36px;height:36px;box-shadow:var(--shadow);border:none;border-radius:12px;justify-content:center;align-items:center;padding:0;display:flex}.names-btn.off .icon path:first-of-type{fill:#9b7fd1}.names-btn.off .icon path:nth-of-type(2){fill:#c9b3f0}.invite{flex-wrap:wrap}.icon-btn{align-items:center;padding:7px 9px;display:flex}.icon-btn .icon,.invite .with-icon .icon{width:20px;height:20px}.invite button.active{background:color-mix(in srgb, var(--accent) 35%, var(--surface-2))}.tray-controls{background:color-mix(in srgb, var(--surface) 92%, transparent);box-shadow:var(--shadow);z-index:2;border-radius:12px;gap:2px;padding:3px;display:flex;position:absolute}.tray-controls button{white-space:nowrap;background:0 0;border:none;border-radius:9px;flex:1;padding:3px 10px;font-size:.75rem;font-weight:700}.tray-controls button.selected{background:var(--accent);color:var(--accent-text)}.photo-credits{columns:2 200px;font-size:.82rem!important}.names-btn .icon{width:24px;height:24px}.tray-controls.side{flex-direction:column;align-items:stretch;gap:2px;padding:4px 6px}.tray-order-label{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;text-align:center;font-size:.68rem;font-weight:700}.tray-controls select{font:inherit;color:var(--text);background:var(--surface-2);border:none;border-radius:8px;width:100%;padding:3px 4px;font-size:.75rem;font-weight:700}.hud-row{gap:6px;display:flex}.hud-btn{background:color-mix(in srgb, var(--coral) 34%, var(--surface));width:36px;height:36px;box-shadow:var(--shadow);border:none;border-radius:12px;justify-content:center;align-items:center;padding:0;display:flex}.hud-btn .icon{width:22px;height:22px}.hud-left{flex-direction:column;align-items:flex-start;gap:6px;display:flex}.hud-left .hud-row{align-items:center}.hud{align-items:flex-start}.hint-btn{background:color-mix(in srgb, var(--honey) 34%, var(--surface))}.reaction-layer{pointer-events:none;z-index:3;position:absolute;inset:0;overflow:hidden}.reaction{flex-direction:column;align-items:center;gap:2px;animation:1.8s ease-out forwards reaction-float;display:flex;position:absolute}.reaction-emoji{filter:drop-shadow(0 3px 6px #0000004d);font-size:36px;line-height:1}.reaction-name{white-space:nowrap;border-radius:6px;padding:1px 7px;font-size:11px;font-weight:700}@keyframes reaction-float{0%{opacity:0;transform:translateY(10px)scale(.5)}15%{opacity:1;transform:translate(0)scale(1.15)}30%{transform:translate(calc(var(--drift) * .3), -6px) scale(1)}75%{opacity:1}to{transform:translate(var(--drift), -40px) scale(1);opacity:0}}.action-bar{background:var(--surface);box-shadow:var(--shadow);z-index:4;border-radius:16px;align-items:center;gap:12px;max-width:calc(100vw - 32px);padding:8px 8px 8px 16px;font-size:.92rem;font-weight:600;display:flex;position:absolute;top:64px;left:50%;transform:translate(-50%)}.action-bar button{white-space:nowrap;padding:6px 14px}.reaction-ghost{z-index:50;pointer-events:none;filter:drop-shadow(0 6px 10px #00000059);font-size:40px;line-height:1;position:fixed;transform:translate(-50%,-50%)scale(1.1)}.tools .chat-btn{background:color-mix(in srgb, var(--coral) 34%, var(--surface))}.chat-feed{z-index:2;pointer-events:none;flex-direction:column;align-items:flex-end;gap:4px;max-width:min(280px,100vw - 100px);display:flex;position:absolute;bottom:12px;right:68px}.chat-line{background:color-mix(in srgb, var(--surface) 94%, transparent);color:var(--text);box-shadow:var(--shadow);overflow-wrap:anywhere;border-radius:12px;padding:5px 10px;font-size:.82rem;line-height:1.3;transition:opacity .6s;animation:.25s ease-out chat-in}.chat-line.fading{opacity:0}.chat-name{border-radius:6px;margin-right:6px;padding:0 6px;font-weight:800}.chat-history .chat-line{box-shadow:none;background:0 0;padding:2px 4px;animation:none}.chat-history{border-bottom:1px solid var(--surface-2);flex-direction:column;gap:2px;width:0;min-width:100%;max-height:160px;margin-bottom:4px;padding-bottom:6px;display:flex;overflow-y:auto}@keyframes chat-in{0%{opacity:0;transform:translateY(4px)}}.vote-bar{flex-wrap:wrap;justify-content:center;top:116px}.vote-tally,.vote-done{color:var(--muted);white-space:nowrap;font-size:.82rem}.remove-btn{background:var(--surface-2);color:var(--muted);white-space:nowrap;border:none;border-radius:8px;padding:3px 8px;font-size:.72rem;font-weight:700}.remove-btn.armed{color:#fff;background:#d9534f}.remove-btn:disabled{opacity:.45}.tray-tab{z-index:2;background:color-mix(in srgb, var(--honey) 34%, var(--surface));height:44px;box-shadow:none;border:none;border-radius:16px 16px 0 0;justify-content:center;align-items:center;gap:6px;padding:0 8px;display:flex;position:absolute}.tray-tab.bottom{height:36px}.tray-tab.docked{box-shadow:var(--shadow);border-radius:14px;padding:0}.tray-tab.docked .tray-tab-arrow{display:none}.tray-tab.docked .badge{position:absolute;top:-4px;right:-4px}.tray-tab.docked{height:44px;bottom:12px;width:44px!important;top:auto!important;left:12px!important}.touch .tray-tab.docked{height:50px;width:50px!important}.tray-tab:not(.bottom):not(.docked){border-radius:0 0 16px 16px}@media (height<=500px){.tray-tab.docked,.touch .tray-tab.docked{height:42px;bottom:8px;width:42px!important;left:8px!important}}.tray-tab[hidden]{display:none}.tray-tab .icon{flex:none;width:24px;height:24px}.tray-tab .badge{position:static}.tray-tab-arrow{color:var(--muted);font-size:1.1rem;font-weight:800;line-height:1}.touch .tools .zoom-btn,.touch .hud .hint-btn,html:not(.touch) .tools .hint-tool{display:none}.touch .tools button,.touch .chat-btn{width:50px;height:50px}.touch .hud-btn:not(.chat-btn),.touch .menu-btn,.touch .names-btn{min-width:42px;height:42px}@media (height<=500px){.hud{padding:6px 8px}.tools{gap:4px;bottom:8px}.tools button,.touch .tools button,.chat-btn,.touch .chat-btn{width:42px;height:42px}.tools{right:8px}}.tools.fit-tray{gap:6px;bottom:8px}.tools.fit-tray button,.touch .tools.fit-tray button{width:var(--tool-size);height:var(--tool-size);border-radius:12px}.tools.fit-tray button .icon{width:calc(var(--tool-size) * .55);height:calc(var(--tool-size) * .55)}.players .remove-btn{border-radius:10px;height:20px;margin-left:2px;padding:0 6px;font-size:.7rem;line-height:20px}.tools.row{flex-direction:row-reverse}.chat-feed.above-row{right:12px}.account-bar{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-bottom:8px;display:flex}.account-bar[hidden],.wallet[hidden]{display:none}.wallet{gap:6px;display:inline-flex}.wallet-chip{background:var(--surface);font-variant-numeric:tabular-nums;box-shadow:var(--shadow);border-radius:999px;align-items:center;gap:5px;padding:5px 10px;font-weight:800;display:inline-flex}.wallet-chip.coins{color:var(--honey)}.wallet-chip.gems{color:var(--sky)}.profile-btn{font-weight:700}.hint{color:var(--muted);margin:0;font-size:.85rem}.hint .link-btn,.earn-note .link-btn{color:var(--accent);padding:0;text-decoration:underline}.earn-note{background:color-mix(in srgb, var(--honey) 16%, var(--surface));border-radius:14px;margin:0 0 12px;padding:10px 14px;font-size:.9rem}.tile{position:relative}.tile.locked img{filter:saturate(.55)brightness(.8)}.price-badge{color:#fff;background:#140a14c7;border-radius:999px;align-items:center;gap:3px;font-weight:800;display:inline-flex;position:absolute;top:6px;right:6px;padding:3px 8px!important;font-size:.8rem!important}.price-badge .icon{width:16px;height:16px}.modal.unlock{width:min(400px,100%)}.unlock-price{margin:0;font-size:1.2rem;font-weight:800}.unlock-price small{color:var(--muted);font-size:.85rem;font-weight:600}.lobby-card{color:var(--text);align-items:center;gap:10px;padding:8px;text-decoration:none;display:flex}.lobby-card img{object-fit:cover;border-radius:6px;flex:none;width:72px;height:54px}.lobby-card .recent-info{flex:1}.lobby-card .join-btn{flex:none;padding:6px 14px}.lobbies h2.with-icon .icon{width:26px;height:26px}.choices.access-choices{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.choice:disabled{opacity:.55;cursor:not-allowed}.choice .with-icon{gap:6px}.hud-wallet .wallet-chip{border-radius:8px;padding:6px 10px;font-size:.95rem}.reward-pop{z-index:40;color:var(--honey);text-shadow:0 2px 6px #00000080;pointer-events:none;gap:8px;font-size:1.05rem;font-weight:800;animation:1.6s ease-out forwards reward-pop;display:flex;position:fixed;transform:translate(-50%)}.reward-pop .with-icon{gap:3px}@keyframes reward-pop{0%{opacity:0;translate:0 6px}15%{opacity:1;translate:0}70%{opacity:1}to{opacity:0;translate:0 26px}}.finish-reward{flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 12px;font-weight:800;display:flex}.finish-reward small{color:var(--muted);font-weight:600}.modal.profile{width:min(620px,100%);max-height:calc(100vh - 32px);overflow-y:auto}.name-row{flex-wrap:wrap;align-items:flex-end;gap:8px;display:flex}.name-row label{flex:1;min-width:180px}.name-msg{color:var(--muted);align-self:center}.profile-totals{grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px;display:grid}.stat{background:var(--bg);border-radius:12px;flex-direction:column;align-items:center;gap:2px;padding:10px 6px;display:flex}.stat .icon{width:26px;height:26px}.stat strong{font-variant-numeric:tabular-nums;font-size:1.2rem}.stat small{color:var(--muted);text-align:center;font-size:.75rem}.milestones{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:6px;margin:0;padding:0;list-style:none;display:grid}.milestones li{background:var(--bg);opacity:.5;filter:grayscale(.8);border-radius:10px;align-items:center;gap:8px;padding:6px 10px;font-size:.85rem;display:flex}.milestones li.reached{opacity:1;filter:none}.milestones .reward{color:var(--sky);gap:2px;margin-left:auto;font-weight:800}.profile-puzzles{overflow-x:auto}.puzzle-stats{border-collapse:collapse;width:100%;font-size:.85rem}.puzzle-stats th{text-align:left;color:var(--muted);padding:4px 6px;font-weight:600}.puzzle-stats td{border-top:1px solid var(--surface-2);font-variant-numeric:tabular-nums;padding:4px 6px}.puzzle-cell{align-items:center;gap:8px;min-width:160px;display:flex}.puzzle-cell img{object-fit:cover;border-radius:4px;width:40px;height:30px}.modal.profile .row.actions{flex-wrap:wrap}.account-anchor{position:relative}.account-trigger{box-shadow:var(--shadow);border-radius:999px;align-items:center;gap:8px;padding:6px 12px 6px 8px;font-weight:700;display:inline-flex}.account-trigger .icon{width:24px;height:24px}.music-toggle{width:38px;height:38px;box-shadow:var(--shadow);border-radius:50%;place-items:center;padding:0;display:inline-grid}.music-toggle .icon{width:24px;height:24px}.account-trigger .avatar{object-fit:cover;border-radius:50%;width:28px;height:28px}.trigger-name{text-overflow:ellipsis;white-space:nowrap;max-width:140px;overflow:hidden}.account-trigger .caret{color:var(--muted);font-size:.8rem}.account-menu{z-index:20;background:var(--surface);border-radius:16px;flex-direction:column;gap:2px;min-width:240px;padding:8px;display:flex;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 10px 30px #0006}.account-menu[hidden]{display:none}.account-head{border-bottom:1px solid var(--surface-2);flex-direction:column;gap:6px;margin-bottom:4px;padding:8px 10px 10px;display:flex}.account-head small{color:var(--muted)}.account-item{text-align:left;background:0 0;border:none;border-radius:10px;justify-content:flex-start;width:100%;padding:9px 10px;font-weight:600}.account-item:hover,.account-item:focus-visible{background:var(--surface-2)}.account-menu hr{border:none;border-top:1px solid var(--surface-2);width:100%;margin:4px 0}.modal.preferences{width:min(780px,100%);height:min(860px,100vh - 32px);overflow:hidden}.pref-tabs-wrap{flex-direction:column;flex:1;min-height:0;display:flex}.modal-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.modal-close{width:36px;height:36px;box-shadow:none;background:0 0;border:none;border-radius:50%;place-items:center;margin:-6px -8px 0 0;padding:0;display:inline-grid}.modal-close:hover{background:var(--surface-2)}.modal-close .icon{width:20px;height:20px}@media (width<=520px){.modal.preferences{height:auto;max-height:calc(100vh - 32px);overflow-y:auto}.modal.preferences .pref-tabs-wrap,.modal.preferences .pref-tab-body{flex:none;overflow:visible}}.modal.preferences,.pref-tab-body{scrollbar-width:none}.modal.preferences::-webkit-scrollbar{display:none}.pref-tab-body::-webkit-scrollbar{display:none}.pref-tabs{border-bottom:2px solid var(--surface-2);gap:6px;display:flex}.pref-tabs .pref-tab{color:var(--muted);box-shadow:none;background:0 0;border:none;border-radius:12px 12px 0 0;align-items:center;gap:8px;padding:8px 16px;font-weight:800;display:flex}.pref-tabs .pref-tab.selected{background:var(--surface-2);color:var(--text)}.pref-tab .icon,.pref-tab .classic-arrow{width:20px;height:20px}.pref-tab .classic-arrow svg{width:100%;height:100%}@media (width<=520px){.pref-tabs .pref-tab{flex:1;justify-content:center;gap:5px;padding:8px 4px}}.pref-tab-body{flex:1;min-height:0;padding:14px 4px 4px;overflow-y:auto}.collections{flex-direction:column;gap:18px;display:flex}.collection-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.collection-title{flex-wrap:wrap;align-items:baseline;gap:4px 10px;display:flex}.collection-title h3{margin:0;font-size:1.05rem;font-weight:800}.collection-progress{background:var(--bg);color:var(--muted);border-radius:999px;align-items:center;gap:4px;padding:2px 9px;font-size:.78rem;font-weight:700;display:inline-flex}.collection.complete .collection-progress{background:color-mix(in srgb, var(--honey) 30%, var(--surface));color:var(--text)}.collection-progress .icon{width:16px;height:16px}.collection-desc{color:var(--muted);margin:2px 0 8px;font-size:.85rem}.row-scroll{scrollbar-width:none;grid-auto-columns:150px;grid-auto-flow:column;gap:10px;padding:4px 2px 10px;display:grid;overflow-x:auto}.row-scroll::-webkit-scrollbar{display:none}.row-scroll.dragging{cursor:grabbing;-webkit-user-select:none;user-select:none}.row-scroll.dragging *{cursor:grabbing}.row-arrows{gap:4px;display:flex}.row-arrows[hidden],.touch .row-arrows{display:none}.row-arrow{border-radius:50%;width:30px;height:30px;padding:0;font-size:1.2rem;line-height:1}.done-badge{background:#140a14b3;border-radius:50%;place-items:center;width:26px;height:26px;display:grid;position:absolute;top:6px;left:6px;padding:0!important}.done-badge .icon{width:18px;height:18px}@media (width<=520px){.row-scroll{grid-auto-columns:128px}}.tile-pic{display:block;position:relative;padding:0!important}.lv-strip{z-index:1;cursor:pointer;justify-content:center;display:flex;position:absolute;bottom:0;left:0;right:0;transform:translateY(50%);padding:0!important}.lv-tab{background:var(--badge-bar);border-radius:15px 15px 0 0;gap:6px;display:flex;padding:6px!important}.lv-strip:focus-visible .lv-tab{outline:2px solid var(--accent);outline-offset:-2px}.lv-badge{--c:#fff;background:var(--badge-bar);border:1.5px solid color-mix(in srgb, var(--text) 28%, transparent);border-radius:50%;flex:none;place-items:center;width:21px;height:21px;display:grid;position:relative;padding:0!important}.lv-badge svg{width:14px;height:14px;fill:color-mix(in srgb, var(--text) 35%, transparent);position:relative}.lv-badge.done{background:var(--c);border-color:#0000}.lv-badge.done svg{fill:#fff}.lv-badge.turned{box-shadow:0 0 0 2px #ffd34d,0 0 5px 1px #ffd34d8c}.mastered-tag{color:#3a2400;background:#ffd34d;border-radius:999px;position:absolute;top:6px;left:6px;box-shadow:0 2px 6px #0006;padding:2px 8px!important;font-size:.7rem!important;font-weight:900!important}.lv-badge.partway{border-color:var(--c);background:conic-gradient(var(--bg) calc(100% - var(--p)), var(--c) 0)}.lv-badge.partway svg{fill:color-mix(in srgb, var(--text) 85%, transparent)}.lv-badge.small{width:24px;height:24px}.lv-badge.small svg{width:15px;height:15px}.modal.finishes{width:min(440px,100%);max-height:calc(100vh - 32px);overflow-y:auto}.fin-empty{background:var(--surface-2);color:var(--muted);border-radius:10px;justify-content:center;margin:0;padding:10px}.fin-table{border-collapse:collapse;width:100%;font-size:.85rem}.fin-table td{border-top:1px solid var(--surface-2);vertical-align:middle;font-variant-numeric:tabular-nums;padding:6px 4px}.fin-what{white-space:nowrap;align-items:center;gap:8px;display:flex}.fin-tags{text-align:right}.fin-tags .tag{background:var(--surface-2);white-space:nowrap;border-radius:999px;margin:1px 0 1px 4px;padding:1px 7px;font-size:.72rem;font-weight:800;display:inline-block}.fin-tags .tag.solo{background:var(--text);color:var(--bg)}.fin-tags .tag.turned{color:#3a2400;background:#ffe08a}.fin-tags .tag.fast{background:color-mix(in srgb, var(--honey) 40%, var(--surface))}.button.small{padding:4px 10px;font-size:.8rem}.modal.finishes .setup-image{max-height:150px}@media (width<=520px){.lv-tab{border-radius:13px 13px 0 0;gap:5px;padding:5px!important}.lv-badge{width:17px;height:17px}.mastered-tag{top:5px;left:5px;padding:1px 6px!important;font-size:.62rem!important}.lv-badge svg{width:11px;height:11px}}.tile.badged{background:var(--badge-bar);padding-bottom:14.5px}.tile.badged .tile-name{z-index:2;color:#fff;opacity:0;pointer-events:none;background:linear-gradient(#0a050cd9,#0a050c99 55%,#0000);line-height:1.2;transition:opacity .15s;position:absolute;top:0;left:0;right:0;padding:7px 8px 18px!important}.tile.badged .mastered-tag{transition:opacity .15s}.tile.badged:hover .tile-name,.tile.badged:focus-visible .tile-name{opacity:1}.tile.badged:hover .mastered-tag,.tile.badged:focus-visible .mastered-tag{opacity:0}@media (width<=520px){.tile.badged{padding-bottom:11.5px}}.cursor-picker{grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:6px;display:grid}.cursor-choice{background:var(--bg);border:2px solid #0000;border-radius:12px;place-items:center;height:48px;padding:0;display:grid}.cursor-choice img,.cursor-choice .classic-arrow{width:32px;height:32px}.cursor-choice .classic-arrow svg{width:100%;height:100%}.cursor-choice.selected{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent)}.tray-right .tools,.tray-right .tools.fit-tray{left:12px;right:auto}.tray-right .tools.row{flex-direction:row}.tray-right .chat-feed{align-items:flex-start;left:68px;right:auto}.tray-right .chat-feed.above-row{left:12px}.tray-right .tray-tab.docked{right:12px;left:auto!important}@media (height<=500px){.tray-right .tools{left:8px}.tray-right .tray-tab.docked{right:8px}}.tray-right .side-panel{animation-name:slide-in-right;left:auto;right:0;box-shadow:-6px 0 30px #00000080}@keyframes slide-in-right{0%{transform:translate(100%)}}.tray-right .sub-panel{animation-name:pop-in-right}@keyframes pop-in-right{0%{opacity:0;transform:translate(10px)}}.hud-left{position:relative}.hud-left .players{white-space:nowrap;align-items:flex-start;position:absolute;top:calc(100% + 6px);left:0}.tray-right .sub-row .chevron{transform:scaleX(-1)}.tray-right .sub-row.active .chevron{transform:scaleX(-1)translate(3px)}@media (width<=660px){.sub-row .chevron,.tray-right .sub-row .chevron{transform:rotate(90deg)}.sub-row.active .chevron,.tray-right .sub-row.active .chevron{transform:rotate(90deg)translate(3px)}}.sub-panel.over{background:var(--surface-2)}.sub-panel.over .side-head{border-bottom-color:var(--surface)}.sub-panel.over .toggle input:not(:checked)+.switch{background:var(--surface)}.music-anchor{align-items:center;gap:12px;display:inline-flex}.music-ask{background:var(--surface);box-shadow:var(--shadow);white-space:nowrap;border-radius:14px;order:-1;align-items:center;gap:8px;padding:6px 6px 6px 10px;font-weight:700;animation:.3s ease-out music-ask-in;display:flex;position:relative}.music-ask:before{content:"";background:var(--surface);border-radius:2px;width:12px;height:12px;position:absolute;top:calc(50% - 6px);right:-5px;transform:rotate(45deg)}.music-ask .icon{width:20px;height:20px}.music-ask .primary{padding:5px 12px;font-size:.85rem}.music-ask .close{width:26px;height:26px;box-shadow:none;background:0 0;border:none;place-items:center;padding:0;display:grid}.music-ask .close .icon{width:14px;height:14px}@keyframes music-ask-in{0%{opacity:0;transform:translate(-6px)}}
