@import "https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Noto+Sans+TC:wght@400;600;700;800;900&display=swap";:root{--glass:#ffffff29;--glass-hover:#ffffff47;--glass-active:#fff6;--glass-line:#ffffffb3;--glass-filter:blur(14px) brightness(.72) saturate(1.15);--text:#fff;--text-shadow:0 0 1px #000000d9, 0 1px 2px #0009, 0 0 8px #0000004d;--radius:14px;color:var(--text);font-family:Outfit,Noto Sans TC,Microsoft JhengHei,PingFang TC,system-ui,sans-serif}*{box-sizing:border-box}html,body{-webkit-tap-highlight-color:transparent;background:#8fc6ec;height:100%;margin:0;overflow:hidden}#stage{touch-action:none;width:100%;height:100%;display:block;position:fixed;inset:0}#ui{pointer-events:none;position:fixed;inset:0}.screen{pointer-events:none;position:absolute;inset:0}.screen>*{pointer-events:auto}.glass{background:var(--glass);border:1px solid var(--glass-line);border-radius:var(--radius);-webkit-backdrop-filter:var(--glass-filter);text-shadow:var(--text-shadow);color:var(--text);box-shadow:0 4px 18px #0000001f}button.glass{font:inherit;cursor:pointer;transition:background .15s,transform .1s}button.glass:hover{background:var(--glass-hover)}button.glass:active,button.glass.on{background:var(--glass-active)}button.glass:active{transform:scale(.98)}button.glass:focus-visible{outline-offset:2px;outline:2px solid #fff}.lobby{flex-direction:column;justify-content:space-between;align-items:center;padding:max(7vh,28px) 16px max(8vh,28px);display:flex}.lobby h1{letter-spacing:.04em;text-shadow:0 0 2px #00000080,0 3px #0000002e,0 6px 22px #0000004d;pointer-events:none;margin:0;font-size:clamp(44px,9vw,92px);font-weight:900}.lobby .menu{flex-direction:column;align-items:center;gap:14px;display:flex}.lobby .menu-btn{letter-spacing:.08em;width:min(320px,78vw);padding:16px 20px;font-size:22px;font-weight:700}.corner-tl{top:max(16px, env(safe-area-inset-top));padding:10px 18px;font-size:16px;position:absolute;left:16px}.phase-bar{top:max(16px, env(safe-area-inset-top));white-space:nowrap;align-items:center;gap:12px;padding:8px 8px 8px 18px;display:flex;position:absolute;left:50%;transform:translate(-50%)}.phase-bar .phase-name{letter-spacing:.06em;font-size:18px;font-weight:700}.phase-bar button{padding:8px 18px;font-size:16px;font-weight:700}.center-card{flex-direction:column;align-items:center;gap:14px;min-width:min(340px,86vw);padding:28px 34px;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.center-card h2{letter-spacing:.08em;margin:0 0 6px;font-size:30px}.center-card button{width:100%;padding:12px 16px;font-size:18px;font-weight:700}.lab-list{flex-direction:column;gap:8px;width:180px;display:flex;position:absolute;top:74px;left:16px}.lab-list button{text-align:left;padding:10px 14px;font-size:16px}.lab-modes{gap:8px;margin-top:6px;display:flex}.lab-modes button{text-align:center;flex:1}.lab-title{top:max(16px, env(safe-area-inset-top));text-align:center;white-space:nowrap;padding:8px 18px;position:absolute;left:50%;transform:translate(-50%)}.lab-title .name{font-size:18px;font-weight:700}.lab-title .meta{opacity:.92;font-size:13px}.lab-swatches{flex-direction:column;gap:8px;padding:10px;display:flex;position:absolute;top:74px;right:16px}.lab-swatches button{cursor:pointer;border:2px solid #ffffffbf;border-radius:50%;width:34px;height:34px;box-shadow:0 1px 4px #0000004d}.lab-swatches button.on{outline-offset:2px;outline:3px solid #fff}.lab-dock{left:50%;bottom:max(16px, env(safe-area-inset-bottom));flex-direction:column;gap:10px;width:min(860px,100vw - 32px);padding:12px 14px;display:flex;position:absolute;transform:translate(-50%)}.lab-clips{flex-wrap:wrap;gap:6px;display:flex}.lab-clips button{padding:6px 12px;font-size:14px}.lab-timeline{align-items:center;gap:12px;display:flex}.lab-timeline button{flex:none;width:44px;height:36px;font-size:16px}.lab-timeline input[type=range]{accent-color:#fff;flex:1;min-width:0;height:28px}.lab-timeline .time{text-align:right;font-variant-numeric:tabular-nums;flex:none;min-width:92px;font-size:14px}.loading{letter-spacing:.1em;text-shadow:var(--text-shadow);place-items:center;font-size:20px;display:grid;position:absolute;inset:0}@media (width<=640px){.lab-list{flex-flow:wrap;width:calc(100vw - 32px);top:auto;bottom:150px}.lab-list button{padding:8px 10px;font-size:14px}.phase-bar .phase-name{font-size:15px}.corner-tl{padding:8px 12px;font-size:14px}}[hidden]{display:none!important}.match-hud{text-align:center;pointer-events:none;padding:10px 22px;font-weight:700;line-height:1.7;position:absolute;top:16px;left:50%;transform:translate(-50%)}.match-hud>:first-child{font-variant-numeric:tabular-nums;font-size:22px}.match-dialog{text-align:center;width:min(780px,100vw - 32px);max-height:calc(100dvh - 40px);padding:24px;overflow-y:auto}.match-dialog::backdrop{background:#17233552}.match-dialog h2{margin:0 0 16px}.match-dialog>button{margin:8px 5px 0;padding:12px 22px;font-size:17px}.match-dialog table{border-collapse:collapse;width:100%;margin:16px 0}.match-dialog th,.match-dialog td{font-variant-numeric:tabular-nums;border-bottom:1px solid #ffffff40;padding:9px}.match-dialog th{font-weight:600}.size-dialog{max-width:380px}.size-dialog>button{width:100%;margin:8px 0;display:block}.obstacle-cards{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;display:grid}.obstacle-cards button{padding:10px;font-size:17px}.obstacle-cards img{aspect-ratio:4/3;object-fit:contain;width:100%;display:block}.obstacle-cards button.taken{opacity:.55}.pick-roster{justify-content:center;gap:10px;min-height:30px;margin:0 0 18px;display:flex}.pick-slot{border:1.5px dashed #ffffff8c;border-radius:50%;width:30px;height:30px}.pick-layer{pointer-events:none;position:absolute;inset:0}.doll-icon{filter:drop-shadow(0 2px 3px #0005);width:30px;height:30px;transition:transform .3s cubic-bezier(.3,1.35,.5,1);position:absolute;top:0;left:0}.doll-icon svg{width:100%;height:100%;display:block}.place-marks{pointer-events:none;position:absolute;inset:0;overflow:hidden}.place-mark-icon{transition:none;transform:translate(-50%,-50%)}button:disabled{cursor:default;opacity:.45}.rotate-button{padding:10px 24px;position:absolute;bottom:20px;left:50%;transform:translate(-50%)}.sandbox-panel{flex-direction:column;gap:8px;width:152px;padding:10px;display:flex;position:absolute;top:72px;left:16px}.sandbox-panel button{padding:9px 8px}.sandbox-check{cursor:pointer;justify-content:center;align-items:center;gap:8px;padding:4px;display:flex}.sandbox-check input{accent-color:#46c86e;cursor:pointer;width:18px;height:18px;margin:0}.sandbox-check:has(input:disabled){opacity:.45;cursor:default}.team-switch{gap:8px;display:flex}.team-switch button{white-space:nowrap;flex:1}.team-switch button:first-child{border-color:#7eb0ff}.team-switch button:last-child{border-color:#ff9990}.lab-team{padding:8px;position:absolute;top:76px;right:16px}.lab-team button{padding:10px 16px}.sandbox-status{pointer-events:none;padding:10px 18px;position:absolute;top:16px;right:16px}@media (width<=640px){.match-hud{width:max-content;max-width:calc(100vw - 24px);padding:6px 14px;top:62px}.match-hud>:first-child{font-size:18px}.match-dialog{padding:16px}.obstacle-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.obstacle-cards img{max-height:96px}.sandbox-panel{flex-flow:wrap;gap:6px;width:calc(100vw - 24px);top:auto;bottom:12px;left:12px}.sandbox-panel>button{flex:1 0 22%}.sandbox-panel .team-switch,.sandbox-panel .sandbox-check{flex:1 0 100%}.lab-title{max-width:calc(100vw - 120px);left:auto;right:12px;transform:none}.lab-list{gap:5px;bottom:225px}.lab-dock{max-height:210px;overflow-y:auto}.lab-clips button{padding:6px 8px}.lab-team{top:90px}}.skill-hud{pointer-events:none;justify-items:center;gap:6px;display:grid;position:absolute;bottom:26px;left:50%;transform:translate(-50%)}.skill-hud[hidden]{display:none}.skill-circle{background:#ffffff52;border:2px solid #ffffffb3;border-radius:50%;place-items:center;width:76px;height:76px;display:grid;position:relative}.skill-circle img{object-fit:contain;width:68px;height:68px}.skill-circle span{color:#fff;text-shadow:0 1px 4px #222;font-size:22px;font-weight:800;position:absolute}.skill-hud.cooling img{opacity:.35}.skill-hud.active .skill-circle{box-shadow:0 0 18px #fff8}.skill-hud kbd{color:#fff;background:#ffffff30;border:1px solid #ffffff80;border-radius:5px;padding:2px 10px;font:700 15px sans-serif}.size-dialog label{margin:10px 0;display:block}.size-dialog select{border-radius:6px;padding:6px}.lab-list{overscroll-behavior:contain;max-height:calc(100dvh - 170px);padding-right:5px;overflow-y:auto}.lab-list>button,.lab-list>.lab-modes{flex-shrink:0}.sandbox-panel{max-height:calc(100dvh - 90px);overflow-y:auto}@media (width<=700px){.lab-list{max-height:145px}.sandbox-panel{max-height:40dvh}}#boot-loading{z-index:10000;color:#51301c;background:radial-gradient(at 50% 35%,#bcecff 0%,#83cef3 55%,#65b9e9 100%);flex-direction:column;justify-content:center;align-items:center;gap:24px;font-family:Outfit,Noto Sans TC,sans-serif;display:flex;position:fixed;inset:0}#boot-loading>img{object-fit:contain;width:min(480px,76vw);height:auto}.boot-track{background:#d7bf97;border:3px solid #80552e;border-radius:20px;width:min(360px,68vw);height:18px;overflow:hidden;box-shadow:inset 0 2px 4px #51301c30}#boot-fill{border-radius:inherit;background:linear-gradient(#f7c45b,#dfa033);width:0;height:100%;transition:width .15s linear}#boot-label{margin:0;font-size:16px;font-weight:800}#boot-retry{color:#51301c;font:inherit;cursor:pointer;background:#fff1d2;border:2px solid #80552e;border-radius:8px;padding:10px 24px}@media (prefers-reduced-motion:reduce){#boot-fill{transition:none}}body[data-fourlo-route=home] #ui,body[data-fourlo-route=room] #ui,body[data-fourlo-route=multiplayer] #ui,body[data-fourlo-route=join] #ui{visibility:hidden}body[data-fourlo-route=game] .settings-button{display:none}.lobby .home-content{flex-direction:column;align-items:center;gap:max(20px,48.1vh - 1.3*min(21.85vw,313.5px));width:54vw;display:flex;position:absolute;top:46dvh;left:0;transform:translateY(-50%)}.lobby .home-content .lobby-brand{width:min(46vw,660px);height:auto;display:block;position:static}.lobby .home-content .menu{align-items:stretch;gap:14.4px;width:min(34vw,440px);position:static}.lobby .home-content .menu .menu-btn{color:#fff;text-shadow:none;--fabric:url(/games/dollbash/ui/home-fabric-blue.webp)}.lobby .home-content .menu .menu-btn[data-tone=red]{--fabric:url(/games/dollbash/ui/home-fabric-red.webp)}.lobby .home-content .menu .menu-btn[data-tone=green]{--fabric:url(/games/dollbash/ui/home-fabric-green.webp)}.lobby .home-content .menu .menu-btn:after{border:16px solid #0000;border-image:var(--fabric) 22% 12% fill /16px 36px stretch;box-shadow:none;filter:none;background:0 0;border-radius:0;outline:none;inset:7px 12px}.lobby .home-content .menu-symbol{color:#fff;filter:none}@media (width<=900px) and (width>=601px){.lobby .home-content .menu{width:40vw}}@media (width<=600px){.lobby .home-content{gap:clamp(128px,22dvh,200px);width:100%;display:flex;inset:46dvh auto auto 0}.lobby .home-content .lobby-brand{width:80vw;position:static}.lobby .home-content .menu{gap:8px;width:76vw;position:static}.lobby .home-content .menu .menu-btn:after{border-image-width:12px 28px}}.craft-settings.settings-dialog{color:#55301a;filter:drop-shadow(0 12px 16px #20170f55);border:48px solid #0000;border-image:url(/games/dollbash/ui/craft-frame.webp) 17% fill/48px;width:min(740px,94vw);max-height:92dvh;margin:auto;padding:36px 22px 18px;overflow:visible}.craft-settings.settings-dialog h2{isolation:isolate;color:#fff0cc;text-shadow:0 3px 2px #382016;letter-spacing:.1em;width:65%;margin:-91px auto 30px;padding:22px 20px;font-size:46px;position:relative}.craft-settings h2:before,.craft-label:before,.craft-action:before{content:"";z-index:-1;border:24px solid #0000;border-image:url(/games/dollbash/ui/craft-plaque.webp) 25% 12% fill/24px;position:absolute;inset:0}.craft-control{font:inherit;cursor:pointer;isolation:isolate;color:inherit;touch-action:manipulation;background:0 0;border:0;font-weight:900;transition:transform .12s;position:relative}.craft-control:hover{transform:translateY(-2px)}.craft-control:active{transform:translateY(1px)}.craft-icon{color:#ffe9ba;filter:drop-shadow(0 2px 1px #3d2316);flex-shrink:0;width:36px;height:36px;display:inline-flex}.craft-icon svg{width:100%;height:100%}.craft-close{border:12px solid #0000;border-image:url(/games/dollbash/ui/wood-simple.webp) 9% fill/12px;place-items:center;width:58px;height:58px;display:grid;position:absolute;top:-34px;right:-30px}.craft-quality{border:0;min-width:0;margin:0;padding:0}.craft-label{isolation:isolate;color:#fff0cb;text-shadow:0 2px #492917;align-items:center;gap:18px;width:100%;padding:16px 28px;font-size:27px;font-weight:900;display:flex;position:relative}.craft-segments{border:12px solid #0000;border-image:url(/games/dollbash/ui/wood.webp) 18% fill/12px;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:12px 0 26px;padding:10px;display:grid}.craft-quality-option{border:12px solid #0000;border-image:url(/games/dollbash/ui/wood-simple.webp) 9% fill/12px;height:64px;font-size:30px}.craft-quality-option[aria-pressed=true]{filter:sepia(.5)saturate(2);color:#512d09;background:#ffc35e;border-image-source:url(/games/dollbash/ui/wood-simple.webp);border-radius:12px;box-shadow:0 0 0 3px #e9a333}.craft-quality-option[aria-pressed=true]:after{content:"✓";font-size:14px;position:absolute;top:-8px;right:0}.craft-sound-row{align-items:center;margin-bottom:24px;display:flex;position:relative}.craft-sound-row .craft-label{padding-right:190px}.craft-switch{background:#597c2d padding-box padding-box;border:14px solid #0000;border-image:url(/games/dollbash/ui/wood-simple.webp) 9% fill/14px;border-radius:36px;width:174px;height:72px;position:absolute;right:8px;box-shadow:inset 0 0 0 8px #53702c}.craft-switch:before{content:"";z-index:-1;background:#47722e;border-radius:24px;position:absolute;inset:0;box-shadow:inset 0 2px 4px #223c1f}.craft-switch[aria-checked=false]:before{background:#77614b}.craft-switch-state{color:#fff2cd;font-size:29px;position:absolute;top:1px;left:23px}.craft-switch-knob{background:url(/games/dollbash/ui/wood-simple.webp) 50%/cover;border-radius:50%;width:52px;height:52px;transition:transform .18s;position:absolute;top:-4px;right:0;box-shadow:0 3px 5px #291b1655}.craft-switch[aria-checked=false] .craft-switch-knob{transform:translate(-88px)}.craft-switch[aria-checked=false] .craft-switch-state{left:auto;right:20px}.craft-actions{grid-template-columns:1fr 1fr;gap:12px;display:grid}.craft-action{color:#fff0cf;text-shadow:0 2px 1px #412519;justify-content:center;align-items:center;gap:12px;min-height:92px;padding:24px 20px;font-size:24px;display:flex}.craft-danger:before{filter:sepia(.6)saturate(2.5)hue-rotate(325deg)}.craft-resume:before{filter:sepia()saturate(2)hue-rotate(110deg)}.room-shell .team-panel{border-width:34px;border-image:url(/games/dollbash/ui/craft-frame.webp) 17% fill/34px;padding:12px;overflow:visible}.room-shell .team-heading{min-width:75%;margin:-48px auto 16px;padding:15px 20px;font-size:30px}.room-shell .team-heading:before{border-image:url(/games/dollbash/ui/craft-plaque.webp) 25% 12% fill/22px}.room-shell .room-slot{box-shadow:none;background:#ead5b0;border-image:url(/games/dollbash/ui/wood-simple.webp) 9% fill/10px;padding:6px;position:relative;border:10px solid #0000!important}.room-shell .room-slot.locked{filter:saturate(.45);opacity:.75}.room-shell .character-controls{padding:0 4px;position:absolute;bottom:8px;left:0;right:0}.room-shell .character-portrait{height:clamp(95px,16vh,150px);margin-bottom:20px}.room-shell .room-teams{gap:16px;padding-top:28px}.room-shell .versus{color:#fff0bf;text-shadow:0 3px #54281a;border-image:url(/games/dollbash/ui/craft-plaque.webp) 25% 12% fill/18px;padding:22px 0;font-size:32px}@media (width<=900px){.room-shell .team-panel{border-width:24px;border-image-width:24px;padding:7px}.room-shell .team-heading{margin-top:-39px;padding:12px;font-size:23px}.room-shell .team-heading .team-badge{width:38px;height:38px}}@media (width<=600px){.craft-settings.settings-dialog{border-width:28px;border-image-width:28px;max-height:88dvh;padding:28px 6px 8px}.craft-settings.settings-dialog h2{width:78%;margin:-63px auto 22px;padding:16px 10px;font-size:32px}.craft-close{width:44px;height:44px;top:-24px;right:-22px}.craft-close .craft-icon{width:24px;height:24px}.craft-label{gap:10px;padding:13px 16px;font-size:22px}.craft-icon{width:28px;height:28px}.craft-segments{border-width:8px;border-image-width:8px;gap:4px;margin:10px 0 20px;padding:3px}.craft-quality-option{height:54px;font-size:25px}.craft-sound-row .craft-label{padding-right:120px}.craft-switch{border-width:10px;border-image-width:10px;width:124px;height:58px;right:0}.craft-switch-knob{width:40px;height:40px;top:-1px}.craft-switch-state{font-size:23px;left:12px}.craft-switch[aria-checked=false] .craft-switch-knob{transform:translate(-62px)}.craft-switch[aria-checked=false] .craft-switch-state{right:12px}.craft-actions{gap:7px}.craft-action{gap:7px;min-height:76px;padding:18px 9px;font-size:17px}.craft-actions .craft-icon{width:24px;height:24px}.room-shell .room-teams{gap:46px}.room-shell .character-portrait{height:105px;margin-bottom:20px}.room-shell .team-heading{font-size:26px}}@media (prefers-reduced-motion:reduce){.craft-control,.craft-switch-knob{transition:none}}.craft-switch-state{z-index:2;pointer-events:none}.craft-switch-knob{z-index:3}.room-shell .room-slot.active-slot{grid-template-rows:30px 16px minmax(0,1fr) 34px;place-items:center;gap:0;display:grid}.room-shell .room-slot .slot-name{max-width:100%;height:30px;padding:3px 12px;line-height:24px}.room-shell .room-slot .character-portrait{height:100%;min-height:0;max-height:145px;margin:0}.room-shell .character-controls{height:34px;padding:0;position:static}.room-map-preview{object-fit:cover;object-position:center 75%;border:2px solid #a27442;border-radius:5px;width:120px;height:48px;margin:5px auto;display:block}.room-info .toy-panel{position:relative}.room-info .toy-panel:after{content:"";z-index:-1;border-left:5px solid #8c5b2e;border-right:5px solid #8c5b2e;height:45px;position:absolute;top:-45px;left:20%;right:20%}.room-shell .team-heading:after{content:"";clip-path:polygon(0 0,100% 10%,100% 90%,0 100%,15% 50%);z-index:-2;background:#aa3035;width:45px;height:46px;position:absolute;top:8px;left:-42px}.room-shell .team-panel[data-team=blue] .team-heading:after{background:#2768ae;left:auto;right:-42px;transform:scaleX(-1)}.craft-title-star{filter:drop-shadow(0 3px 2px #54331866);width:58px;height:58px;position:absolute;top:-14px;left:-17px;transform:rotate(-13deg)}@media (width<=600px){.room-map-preview{width:92px;height:32px}.craft-title-star{width:40px;height:40px;top:-10px;left:-8px}}.toy-button.settings-button:before{filter:none;border:14px solid #0000;border-image:url(/games/dollbash/ui/settings-fabric.webp) 24% fill/14px}.toy-button.settings-button:after{display:none}.settings-gear{object-fit:contain;pointer-events:none;width:34px;height:34px}@media (width<=600px){.settings-gear{width:27px;height:27px}.toy-button.settings-button:before{border-image-width:11px}}.craft-settings.settings-dialog h2{color:#51301c;width:auto;text-shadow:none;letter-spacing:.04em;margin:-8px 0 24px;padding:0;font-size:36px}.craft-settings.settings-dialog h2:before,.craft-settings .craft-title-star,.craft-settings .craft-label:before{display:none}.craft-settings .craft-label{color:#51301c;text-shadow:none;padding:8px 0;font-size:25px}.craft-settings .craft-label .craft-icon{color:#785232;filter:none}.craft-settings .craft-segments{background:0 0;border:0;border-image:;gap:12px;margin:16px 0 30px;padding:0}.craft-settings .craft-quality-option{box-shadow:none;color:#66452c;filter:none;background:0 0;border:0;border-image:;border-radius:10px;height:60px;font-size:28px}.craft-settings .craft-quality-option[aria-pressed=true]{color:#432916;filter:none;background:#e9c890;box-shadow:inset 0 0 0 2px #a77435}.craft-settings .craft-quality-option[aria-pressed=true]:after{top:8px;right:12px}@media (width<=600px){.craft-settings.settings-dialog h2{margin:0 0 20px;font-size:30px}.craft-settings .craft-label{font-size:22px}.craft-settings .craft-quality-option{height:52px;font-size:25px}.craft-settings .craft-sound-row .craft-label{padding-right:125px}}.lobby .toy-button.settings-button:before{filter:none;border-image:url(/games/dollbash/ui/wood-slab.webp) 12% fill/12px}.craft-settings .craft-segments{border:12px solid #0000;border-image:url(/games/dollbash/ui/cloth-inset.webp) 15% fill/12px;gap:6px;padding:5px}.craft-settings .craft-quality-option{border-radius:8px;height:54px}.craft-settings .craft-quality-option[aria-pressed=true]{background:#c69a5355;box-shadow:inset 0 0 0 2px #99744880}.craft-settings .craft-switch{background:#65834c;border:0;border-image:;border-radius:24px;width:76px;height:40px;right:4px;box-shadow:inset 0 1px 3px #382b2433}.craft-settings .craft-switch[aria-checked=false]{background:#9d9384}.craft-settings .craft-switch:before,.craft-settings .craft-switch-state{display:none}.craft-settings .craft-switch-knob{background:#fff5e1;width:30px;height:30px;top:5px;right:5px;transform:none;box-shadow:0 1px 3px #34251b55}.craft-settings .craft-switch[aria-checked=false] .craft-switch-knob{transform:translate(-36px)}.craft-settings .craft-sound-row .craft-label{padding-right:92px}.craft-settings .craft-action{color:#51301c;min-height:68px;text-shadow:none;padding:18px 10px;font-size:24px}.craft-settings .craft-action:before{filter:none;border:12px solid #0000;border-image:url(/games/dollbash/ui/wood-slab.webp) 12% fill/12px}@media (width<=600px){.craft-settings .craft-action{min-height:60px;font-size:18px}.craft-settings .craft-quality-option{height:46px}.craft-settings .craft-segments{gap:4px;padding:2px}}.craft-settings .craft-quality-option[aria-pressed=true]{box-shadow:none;color:#51301c;background:0 0;border:8px solid #0000;border-image:url(/games/dollbash/ui/wood-slab.webp) 12% fill/8px}.craft-settings .craft-close{box-shadow:none;background:0 0;border:10px solid #0000;border-image:url(/games/dollbash/ui/wood-slab.webp) 12% fill/10px}.craft-settings .craft-close .craft-icon{color:#51301c;filter:none}.craft-settings .craft-quality-option,.craft-settings .craft-close{place-items:center;padding:0;line-height:1;display:grid}.craft-settings .craft-close .craft-icon{width:26px;height:26px;margin:0;display:block}.craft-settings .craft-close .craft-icon svg{display:block}@media (width<=600px){.craft-settings .craft-close .craft-icon{width:22px;height:22px}}.craft-settings .craft-action{--fabric:url(/games/dollbash/ui/home-fabric-blue.webp);color:#fff;text-shadow:none}.craft-settings .craft-danger{--fabric:url(/games/dollbash/ui/home-fabric-red.webp)}.craft-settings .craft-resume{--fabric:url(/games/dollbash/ui/home-fabric-green.webp)}.craft-settings .craft-action:after,.craft-settings .craft-quality-option[aria-pressed=true]:after{content:"";z-index:-1;border:12px solid #0000;border-image:var(--fabric) 22% 12% fill /12px 22px stretch;pointer-events:none;background:0 0;display:block;position:absolute;inset:5px 7px}.craft-settings .craft-quality-option[aria-pressed=true]{--fabric:url(/games/dollbash/ui/home-fabric-blue.webp);color:#fff;text-shadow:none;border:0;border-image:}.craft-settings .craft-quality-option[aria-pressed=true]:before{content:"";z-index:-1;pointer-events:none;border:8px solid #0000;border-image:url(/games/dollbash/ui/wood-slab.webp) 12% fill/8px;position:absolute;inset:0}.craft-settings .craft-quality-option[aria-pressed=true]:after{border-image-width:10px 16px;inset:4px 5px}.craft-settings .craft-action{font-weight:800}.craft-settings .craft-action:after{border-image-slice:45% 12% fill;border-image-width:26px 30px}.craft-settings .craft-quality-option[aria-pressed=true]{font-weight:800}.craft-settings .craft-quality-option[aria-pressed=true]:after{border-image-slice:45% 12% fill;border-image-width:20px 24px}@media (width<=600px){.craft-settings .craft-action:after{border-image-width:22px 26px}.craft-settings .craft-quality-option[aria-pressed=true]:after{border-image-width:17px 20px}}.craft-settings.settings-dialog,.craft-settings.settings-dialog :where(h2,legend,span,button,label,p){font-weight:800}.craft-settings .craft-action .craft-button-text,.craft-settings .craft-quality-option[aria-pressed=true] .craft-button-text{pointer-events:none;line-height:1;display:block;transform:translateY(-2px)}.craft-settings.settings-dialog .craft-action,.craft-settings.settings-dialog .craft-action .craft-button-text,.craft-settings.settings-dialog .craft-quality-option[aria-pressed=true],.craft-settings.settings-dialog .craft-quality-option[aria-pressed=true] .craft-button-text{font-weight:700}.craft-settings .craft-segments{margin-bottom:60px}.craft-settings .craft-sound-row{margin-bottom:48px}.craft-settings .craft-segments{border-width:8px;border-image-width:8px;gap:6px;padding:0}.craft-settings .craft-quality-option{height:70px;padding:8px 16px}.craft-settings.settings-dialog .craft-quality-option[aria-pressed=true]{color:#51301c}.craft-settings .craft-quality-option[aria-pressed=true]:after{display:none}.craft-settings .craft-quality-option[aria-pressed=true] .craft-button-text{transform:none}@media (width<=600px){.craft-settings .craft-quality-option{height:62px;padding:8px 12px}}.craft-form-dialog .field-label{color:#51301c;font-size:24px}.craft-form-dialog .toy-field{gap:14px;margin:16px 0 0}.craft-form-dialog .toy-field:after{display:none}.craft-input-well{isolation:isolate;display:block;position:relative}.craft-input-well:before{content:"";pointer-events:none;z-index:-1;border:12px solid #0000;border-image:url(/games/dollbash/ui/cloth-inset.webp) 15% fill/12px;position:absolute;inset:0}.craft-input-well:after{content:"";pointer-events:none;border:2px solid #0000;border-radius:6px;transition:border-color .12s;position:absolute;inset:6px}.craft-form-dialog .toy-input,.craft-form-dialog .toy-input:focus,.craft-form-dialog .toy-input:focus-visible{height:66px;min-height:66px;box-shadow:none;color:#51301c;background:0 0;border:0;border-radius:0;outline:none;padding:14px 20px;font-family:inherit;font-weight:800}.craft-form-dialog .dialog-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:28px;display:grid}.craft-form-dialog .craft-action{width:100%}.craft-form-dialog .form-error{min-height:24px;margin:8px 0;font-size:16px}.craft-form-dialog .help-copy{text-align:left;color:#51301c;font-size:18px;font-weight:800;line-height:1.8}.craft-form-dialog .help-copy p{margin:0 0 22px}.craft-form-dialog .help-copy kbd{color:#51301c;background:#d9bb88;border:1px solid #b28a52;border-radius:4px;padding:1px 6px}.craft-form-dialog.help-dialog{max-height:92dvh;overflow:auto}@media (width<=600px){.craft-form-dialog .field-label{font-size:21px}.craft-form-dialog .dialog-actions{gap:8px}.craft-form-dialog .help-copy{font-size:16px}.craft-form-dialog .help-copy p{margin-bottom:16px}}.craft-form-dialog .toy-input::placeholder{color:#ad8b68;opacity:1}.room-shell .room-slot.locked{box-shadow:none;filter:none;opacity:1;color:#927353;background:0 0;border-image:url(/games/dollbash/ui/cloth-inset.webp) 15% fill/12px}.craft-form-dialog.help-dialog{overflow:visible}.craft-form-dialog.help-dialog .help-copy{max-height:55dvh;padding-right:8px;overflow:auto}.room-shell .character-controls{pointer-events:none;height:auto;padding:0;position:absolute;inset:0}.room-shell .character-controls .toy-button{pointer-events:auto;width:34px;min-width:0;height:40px;padding:0;position:absolute;top:56%;transform:translateY(-50%)}.room-shell .character-controls .toy-button:first-child{left:8px}.room-shell .character-controls .toy-button:last-child{right:8px}.room-shell .character-controls>span{text-align:center;position:absolute;bottom:8px;left:44px;right:44px}@media (width<=600px){.room-shell .character-controls .toy-button{width:28px;height:36px}.room-shell .character-controls .toy-button:first-child{left:5px}.room-shell .character-controls .toy-button:last-child{right:5px}.room-shell .character-controls>span{left:32px;right:32px}}.room-shell .character-arrow{object-fit:contain;pointer-events:none;width:26px;height:26px;display:block}.room-shell .character-arrow.is-right{transform:scaleX(-1)}.room-shell .character-controls .toy-button{place-items:center;display:grid}@media (width<=600px){.room-shell .character-arrow{width:22px;height:22px}}.room-shell .room-slot.locked{box-shadow:none;background:0 0;border-image:url(/games/dollbash/ui/cloth-inset.webp) 15% fill/14px!important}.room-shell .team-heading:after{display:none}.room-shell .team-heading{box-sizing:border-box;--team-fabric:url(/games/dollbash/ui/home-fabric-blue.webp);border:8px solid #0000;border-image:url(/games/dollbash/ui/wood-slab.webp) 12% fill/8px;height:76px;padding:12px 30px}.room-shell .team-panel[data-team=red] .team-heading{--team-fabric:url(/games/dollbash/ui/home-fabric-red.webp)}.room-shell .team-panel .team-heading:before{border:12px solid #0000;border-image:var(--team-fabric) 45% 12% fill /26px 30px stretch;filter:none;inset:0}@media (width<=600px){.room-shell .team-heading{height:64px;padding:8px 24px}.room-shell .team-panel .team-heading:before{border-image-width:21px 25px}}.room-shell .room-teams{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(24px,3vw,48px)}.room-shell .room-footer .toy-button{color:#fff;width:min(320px,80vw);min-height:68px;text-shadow:none;padding:18px 28px;font-size:24px;font-weight:700;line-height:1}.room-shell .room-footer .toy-button:before{filter:none;border-image:url(/games/dollbash/ui/wood-slab.webp) 12% fill/12px}.room-shell .room-footer .toy-button:after{content:"";z-index:-1;box-shadow:none;filter:none;pointer-events:none;background:0 0;border:12px solid #0000;border-image:url(/games/dollbash/ui/home-fabric-green.webp) 45% 12% fill/26px 30px;border-radius:0;outline:none;display:block;position:absolute;inset:5px 7px}@media (width<=600px){.room-shell .room-teams{grid-template-columns:1fr;gap:40px}.room-shell .room-footer .toy-button{font-size:22px}}.room-shell .team-heading{text-align:center;justify-content:center;align-items:center;gap:0;display:flex}.room-shell .room-slot.active-slot{grid-template-rows:34px minmax(0,1fr) 34px}.room-shell .room-slot .slot-name{isolation:isolate;height:34px;box-shadow:none;color:#51301c;text-shadow:none;background:0 0;border:0;border-image:;justify-content:center;align-items:center;gap:6px;padding:4px 14px;line-height:1;display:flex;position:relative}.room-shell .room-slot .slot-name:before{content:"";z-index:-1;border:8px solid #0000;border-image:url(/games/dollbash/ui/name-cloth.webp) 25% 8% fill/8px;position:absolute;inset:0}.room-shell .computer-icon{object-fit:contain;width:18px;height:18px}.room-back-icon{object-fit:contain;pointer-events:none;width:30px;height:30px}.room-shell .room-back{place-items:center;padding:0;display:grid}.room-shell .team-heading{font-weight:800}.room-shell .team-title-text{display:block;transform:translateY(-2px)}.room-shell .size-selector .toy-button{color:#fff3d8;text-shadow:none;box-shadow:none;outline:none;font-weight:800}.room-shell .size-selector .toy-button:before{filter:none;border-image:url(/games/dollbash/ui/mode-idle.webp) 22% fill/14px}.room-shell .size-selector .toy-button[aria-pressed=true]{color:#51301c;box-shadow:none;background:0 0;outline:none}.room-shell .size-selector .toy-button[aria-pressed=true]:before{filter:none;border-image-source:url(/games/dollbash/ui/mode-active.webp)}.room-shell .room-info{isolation:isolate;align-items:flex-start}.room-shell .room-info .toy-panel{isolation:auto;background:0 0;border:12px solid #0000;border-image:url(/games/dollbash/ui/wood-slab.webp) 12% fill/12px;min-width:140px;padding:4px 0;position:relative}.room-shell .room-info .toy-panel:before{display:none}.room-shell .room-info .toy-panel:after{z-index:-1;height:65px;top:-65px}.room-shell .room-info small{color:#51301c;text-align:left;margin:0 4px 8px;font-size:20px}.room-info-cloth{color:#51301c;border:9px solid #0000;border-image:url(/games/dollbash/ui/name-cloth.webp) 25% 8% fill/9px;padding:4px 8px}.room-shell .room-number-board strong{font-size:30px;line-height:1.4}.room-shell .room-map-preview{border:0;border-radius:3px;width:150px;height:60px;margin:0 auto 4px}.room-shell .room-map-board strong{font-size:18px}.room-shell .room-info select{color:#51301c;background:#f2dfbd;border:1px solid #ac8350;border-radius:5px;width:100%;margin-top:6px}@media (width<=600px){.room-shell .room-info .toy-panel{border-width:8px;border-image-width:8px;min-width:110px}.room-shell .room-map-preview{width:125px;height:48px}.room-shell .room-info small{font-size:17px}.room-shell .room-number-board strong{font-size:26px}}.toy-button.settings-button:before{border-image:url(/games/dollbash/ui/wood-slab.webp) 12% fill/12px}.skill-hud,.placement-actions{position:absolute;bottom:26px;left:50%;transform:translate(-50%)}.placement-actions{align-items:start;gap:18px;display:flex}.placement-actions[hidden],.placement-action[hidden]{display:none}.placement-action{box-shadow:none;background:0 0;border:0;justify-items:center;gap:6px;padding:0;display:grid}.skill-circle,.action-cloth{box-sizing:border-box;background:0 0;border:10px solid #0000;border-image:url(/games/dollbash/ui/name-cloth.webp) 25% 8% fill/10px;border-radius:0;place-items:center;width:76px;height:76px;display:grid}.skill-circle img,.action-cloth img{object-fit:contain;width:46px;height:46px}.skill-hud kbd,.placement-action kbd{color:#fff;background:#171410;border:1px solid #443c32;border-radius:5px;padding:3px 10px;font:800 15px sans-serif}.skill-circle span{color:#51301c;text-shadow:none}.placement-help{text-align:left;width:280px;min-width:0;max-width:35vw;box-shadow:none;background:0 0;padding:10px;bottom:18px;left:18px;transform:none;border:16px solid #0000!important;border-image:url(/games/dollbash/ui/paper.webp) 70 fill/16px!important}.pick-layer .doll-icon[data-character=bird] .character-avatar{visibility:visible;opacity:1;width:36px;height:36px;display:block}@media (width<=600px){.placement-help{width:155px;max-width:40vw;padding:4px;bottom:12px;left:8px;border-image-width:10px!important}.placement-help strong{font-size:16px}.placement-help span{font-size:11px}.placement-actions{gap:8px;left:72%}.skill-circle,.action-cloth{width:62px;height:62px}.skill-circle img,.action-cloth img{width:38px;height:38px}}.craft-result.result-dialog{color:#51301c;border:34px solid #0000;border-image:url(/games/dollbash/ui/craft-frame.webp) 17% fill/34px;width:min(820px,94vw);padding:25px 20px}.craft-result h2{color:#51301c;text-shadow:none;margin:0 0 32px;font-weight:800}.result-race{grid-template-columns:1fr 70px 1fr;align-items:center;gap:10px;display:grid}.result-lane h3{margin:0 0 16px;font-size:25px}.result-lane[data-team=blue]{color:#245ca0}.result-lane[data-team=red]{color:#ad3438}.result-track{background:#c7b392;border-radius:8px;height:40px;overflow:hidden;box-shadow:inset 0 2px 4px #59402355}.result-fill{background:url(/games/dollbash/ui/home-fabric-blue.webp) 50%/cover;height:100%}.result-lane[data-team=red] .result-fill{background-image:url(/games/dollbash/ui/home-fabric-red.webp);margin-left:auto}.result-value{margin-top:10px;font-size:28px;display:block}.result-goal{color:#795522;font-size:22px}.result-toast{color:#51301c;border:16px solid #0000;border-image:url(/games/dollbash/ui/paper.webp) 70 fill/16px;min-height:65px;margin:26px auto 16px;padding:10px;font-weight:800}.result-toast[hidden]{visibility:hidden;display:block}.result-countdown{margin:16px 0 0;font-weight:800}@media (width<=600px){.craft-result.result-dialog{border-width:20px;border-image-width:20px;padding:18px 8px}.result-race{grid-template-columns:1fr 52px 1fr;gap:6px}.result-goal{font-size:17px}.result-lane h3{font-size:22px}.result-track{height:30px}.result-toast{padding:4px;font-size:14px}}.draft-dialog{background-size:24px 24px!important;border-image:url(/games/dollbash/ui/paper.webp) 70/24px!important}@media (width<=600px){.draft-dialog{border-image-width:20px!important}}.draft-dialog{min-height:min(705px,90dvh);max-height:90dvh}@media (width<=600px){.draft-dialog{min-height:min(645px,90dvh)}}.result-race{flex-direction:column;align-items:stretch;gap:24px;display:flex}.result-goal{align-self:flex-end;margin-right:46px;font-size:18px}.result-lane{grid-template-columns:100px minmax(0,1fr) 40px;align-items:center;gap:12px;display:grid}.result-team-label{align-items:center;gap:8px;display:flex}.result-team-label .team-badge{object-fit:contain;width:40px;height:40px}.result-lane h3{white-space:nowrap;margin:0;font-size:20px}.result-lane .result-fill,.result-lane[data-team=red] .result-fill{margin-left:0}.result-track{background:repeating-linear-gradient(90deg,#c7b392 0 calc(20% - 1px),#aa916a calc(20% - 1px) 20%);border-right:3px solid #815728;position:relative}.result-value{margin:0;font-size:24px}@media (width<=600px){.result-lane{grid-template-columns:62px minmax(0,1fr) 24px;gap:6px}.result-team-label{gap:3px}.result-team-label .team-badge{width:27px;height:27px}.result-lane h3{font-size:16px}.result-value{font-size:20px}.result-goal{margin-right:30px;font-size:15px}}.craft-input-well:focus-within:after{border-color:#0000}.draft-dialog button:focus,.draft-dialog button:focus-visible{box-shadow:none!important;outline:none!important}.skill-circle,.action-cloth{background:url(/games/dollbash/ui/rune-circle.webp) 50%/contain no-repeat;border:0;border-image:;border-radius:50%;padding:15px}.skill-circle img,.action-cloth img{filter:brightness(.7);width:46px;height:46px}.skill-hud.active .skill-circle{filter:drop-shadow(0 0 6px #ffcf6a)drop-shadow(0 0 2px #ffcf6a)}.skill-gallery{z-index:30;box-sizing:border-box;gap:12px;width:max-content;max-width:calc(100% - 32px);max-height:calc(100% - 96px);padding:20px 24px;display:grid;position:absolute;top:50%;left:50%;overflow:auto;transform:translate(-50%,-50%)}.skill-gallery h2{color:#51301c;margin:0;font:800 22px Outfit,Noto Sans TC,sans-serif}.skill-gallery-row{grid-template-columns:120px repeat(3,auto);align-items:center;gap:16px;display:grid}.skill-gallery-row strong{color:#51301c;font:700 15px Outfit,Noto Sans TC,sans-serif}.skill-gallery-cell{justify-items:center;gap:4px;margin:0;display:grid}.skill-gallery-cell figcaption{color:#3d2412;font:700 13px Outfit,Noto Sans TC,sans-serif}.skill-gallery .skill-hud{justify-items:center;gap:6px;display:grid;position:static;transform:none}.skill-gallery .placement-action{display:grid}@media (width<=600px){.skill-gallery{padding:12px}.skill-gallery-row{grid-template-columns:repeat(3,auto);gap:10px}.skill-gallery-row strong{grid-column:1/-1}}.skill-circle{position:relative}.skill-circle:after{content:"";background:conic-gradient(#2a170be0 calc(var(--cooldown,0) * 360deg),#2a170b70 0);opacity:0;pointer-events:none;z-index:1;border-radius:50%;transition:opacity .12s ease-out;position:absolute;inset:9%}.skill-hud.cooling .skill-circle:after{opacity:1}.skill-hud.cooling .skill-circle img{filter:brightness(.55)grayscale(.6)}.skill-circle .skill-time{z-index:2;font-variant-numeric:tabular-nums;pointer-events:none;place-items:center;font:800 24px/1 Outfit,Noto Sans TC,sans-serif;display:grid;position:absolute;inset:0;color:#fff7e6!important;text-shadow:0 1px 2px #1b0e06,0 0 6px #1b0e06!important}.skill-circle .skill-time:empty{display:none}.placement-action,.placement-action:hover{box-shadow:none;background:0 0;border:0}.result-lane{min-height:72px;padding:8px 0}.result-track{box-sizing:border-box;height:32px;min-height:32px;box-shadow:none;background:#d6c7ac;border:0;border-radius:6px;overflow:hidden}.result-lane .result-fill{background:#357aca;border-radius:6px;height:100%}.result-lane[data-team=red] .result-fill{background:#cc4947}@media (width<=600px){.skill-circle,.action-cloth{padding:12px}.skill-circle img,.action-cloth img{width:38px;height:38px}.result-lane{min-height:60px}.result-track{height:26px;min-height:26px}}.result-actions{justify-content:center;gap:16px;margin-top:20px;display:flex}.result-actions button{isolation:isolate;color:#51301c;cursor:pointer;background:0 0;border:10px solid #0000;border-image:url(/games/dollbash/ui/wood-slab.webp) 12% fill/10px;padding:16px 22px;font:700 20px Outfit,Noto Sans TC,sans-serif;position:relative}@media (width<=600px){.result-actions{gap:8px}.result-actions button{padding:12px 8px;font-size:16px}}.draft-dialog .obstacle-cards{grid-template-columns:repeat(var(--card-cols,3),minmax(0,1fr));align-items:center;gap:34px 18px;margin:20px auto;padding:20px 12px}.draft-dialog .obstacle-cards .toy-button{max-width:100%;min-height:170px;transform:rotate(calc(var(--item-tilt,0deg)*.4)) translateY(calc(var(--item-y,0px)*.3));padding:8px 4px;overflow:visible}.draft-dialog .obstacle-art{aspect-ratio:4/3;flex-shrink:0;width:180px;max-width:100%;height:auto;overflow:visible}.draft-dialog .obstacle-art img{object-fit:contain;width:100%;height:100%;display:block}@media (width<=600px){.draft-dialog .obstacle-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px;margin:12px auto;padding:8px 4px}.draft-dialog .obstacle-cards .toy-button{min-height:120px;font-size:14px}.draft-dialog .obstacle-art{width:140px}.draft-dialog:has(.obstacle-cards>button:nth-child(5)){overflow-y:auto!important}}.pick-layer .doll-icon[data-character=bird] .character-avatar{clip-path:none;border-radius:0;width:32px;height:32px;overflow:visible}.pick-layer .character-avatar svg{overflow:visible}.placement-action:before,.placement-action:after{display:none!important}.placement-action{min-width:0;min-height:0;color:inherit;cursor:pointer;font:inherit;outline:none}.draft-dialog .obstacle-art{width:216px}.draft-dialog .obstacle-cards .toy-button{min-height:190px}@media (width<=600px){.draft-dialog .obstacle-art{width:168px}.draft-dialog .obstacle-cards .toy-button{min-height:132px}}.room-slot.locked[role=button]{cursor:pointer}.room-slot.locked[role=button]:hover{filter:brightness(1.04)}.match-hud.glass{box-shadow:none;color:#51301c;background:0 0;border:18px solid #0000;border-image:url(/games/dollbash/ui/craft-frame.webp) 17% fill/18px;min-width:240px;padding:5px 18px}.match-score{justify-content:center;align-items:center;gap:40px;display:flex}.match-team{align-items:center;gap:10px;display:flex}.match-team .team-badge{object-fit:contain;width:36px;height:36px}.match-team strong{font-size:28px;font-weight:800}.match-status{white-space:nowrap;margin-top:4px;font-size:15px;font-weight:800}@media (width<=600px){.match-hud.glass{border-width:12px;border-image-width:12px;min-width:200px;padding:3px 10px;top:12px}.match-score{gap:25px}.match-team .team-badge{width:28px;height:28px}.match-team strong{font-size:23px}.match-status{font-size:12px}}.draft-skip{color:#51301c;cursor:pointer;background:0 0;border:0;justify-items:center;gap:4px;margin:12px auto 0;padding:4px 20px;font:800 16px Outfit,Noto Sans TC,sans-serif;display:grid}.draft-skip img{object-fit:contain;width:54px;height:54px}.draft-skip.chosen span:after{content:" ✓";color:#317c3b}.draft-skip:disabled{cursor:default;opacity:.8}.room-shell .room-slot .character-portrait{object-fit:contain;aspect-ratio:auto;width:auto;max-width:calc(100% - 60px)}.draft-dialog .obstacle-art img{max-height:none}.match-hud.glass{box-shadow:none;background:0 0;border:12px solid #0000;border-image:url(/games/dollbash/ui/name-cloth.webp) 25% 8% fill/12px;padding:5px 18px}@media (width<=600px){.match-hud.glass{border-width:9px;border-image-width:9px;padding:4px 12px}}.draft-dialog{padding-bottom:112px!important}.draft-dialog .draft-skip{z-index:3;min-height:76px;margin:0;position:absolute;bottom:18px;left:50%;transform:translate(-50%)}@media (width<=600px){.draft-dialog{padding-bottom:100px!important}.draft-dialog .draft-skip{min-height:68px;bottom:14px}.draft-skip img{width:46px;height:46px}}.draft-dialog .draft-skip{z-index:0;gap:8px;transition:transform .15s}.draft-dialog .draft-skip:hover:not(:disabled){transform:translate(-50%)translateY(-5px)scale(1.06)}.draft-dialog .pick-layer{z-index:5}.pick-layer .player-pointer,.draft-dialog .item-check,.pick-layer .avatar-check,.draft-skip.chosen span:after{color:#111}.pick-layer .doll-icon[data-character=bird] .character-avatar{width:40px;height:34px}.draft-dialog .item-check,.pick-layer .avatar-check{color:#fff;background:#111}.draft-skip.chosen span:after{color:#fff;content:"✓";background:#111;border-radius:50%;place-items:center;width:20px;height:20px;margin-left:6px;display:inline-grid}.room-shell .room-slot .character-portrait{object-fit:contain;justify-self:center;width:100%;max-width:calc(100% - 60px);height:100%;max-height:145px}.room-shell .room-slot.active-slot{grid-template-columns:minmax(0,1fr);justify-content:stretch}.draft-dialog .item-check,.draft-skip.chosen span:after{background:var(--selection-color,#111);color:#fff}.pick-layer .avatar-check{background:var(--player-color);color:#fff}.pick-layer .doll-icon[data-character=bird] .avatar-check{background:#111}.draft-dialog .pick-layer .doll-icon[hidden]{display:none}.pick-layer .player-pointer{color:var(--player-color)}.pick-layer .doll-icon[data-character=bird] .player-pointer{color:#111}.touch-controls{pointer-events:none;z-index:12;position:absolute;inset:0}.touch-controls[hidden]{display:none}.touch-stick{left:max(22px,env(safe-area-inset-left));bottom:calc(28px + env(safe-area-inset-bottom));pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;background:#f8e6c2a8;border:3px solid #76543388;border-radius:50%;place-items:center;width:120px;height:120px;display:grid;position:absolute;box-shadow:inset 0 3px 10px #50301925}.stick-guide{color:#67482877;font-size:20px}.stick-knob{filter:drop-shadow(0 3px 3px #49322155);background:url(/games/dollbash/ui/rune-circle.webp) 50%/contain no-repeat;border-radius:50%;width:56px;height:56px;position:absolute}.touch-jump{right:max(24px,env(safe-area-inset-right));bottom:calc(26px + env(safe-area-inset-bottom));color:#51301c;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;background:url(/games/dollbash/ui/rune-circle.webp) 50%/contain no-repeat;border:0;border-radius:50%;place-content:center;width:80px;height:80px;font:800 32px/1.1 Outfit,Noto Sans TC,sans-serif;display:grid;position:absolute}.touch-jump span{font-size:13px}.touch-jump:active{filter:brightness(.9)}.touch-layout .skill-hud.touch-skill{left:auto;right:max(28px,env(safe-area-inset-right));bottom:calc(128px + env(safe-area-inset-bottom));z-index:12;touch-action:none;-webkit-user-select:none;user-select:none;transform:none}.touch-skill .skill-circle{width:72px;height:72px}.touch-skill kbd{font-size:12px}@media (orientation:landscape) and (height<=600px){.touch-stick{width:104px;height:104px;bottom:calc(18px + env(safe-area-inset-bottom))}.touch-layout .skill-hud.touch-skill{right:calc(125px + env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom))}.touch-jump{bottom:calc(22px + env(safe-area-inset-bottom))}.touch-layout .match-hud.glass{min-width:180px;padding:2px 10px;top:8px}.touch-layout .match-team strong{font-size:20px}.touch-layout .match-team .team-badge{width:24px;height:24px}.touch-layout .match-status{font-size:11px}}@media (pointer:coarse){.placement-actions{left:50%;bottom:calc(16px + env(safe-area-inset-bottom))}.placement-action kbd{font-size:0}.placement-action[aria-label=旋轉] kbd:after{content:"旋轉";font-size:13px}.placement-action[aria-label=鏡射] kbd:after{content:"鏡射";font-size:13px}.placement-help{max-width:55vw;bottom:120px}}.touch-draft{padding-bottom:170px!important}.touch-draft .touch-controls{z-index:8;height:0;display:block;position:sticky;bottom:0}.touch-draft .touch-controls[hidden]{display:none}.touch-draft .touch-stick{width:96px;height:96px;bottom:-145px;left:0}.touch-draft .touch-jump{width:72px;height:72px;bottom:-140px;right:0}.touch-draft .pick-layer{z-index:9}.touch-draft .draft-skip{bottom:24px}.draft-dialog .obstacle-cards .toy-button.joystick-hover:not(:disabled){transform:rotate(0)translateY(-5px)scale(1.06)}.draft-dialog .draft-skip.joystick-hover:not(:disabled){transform:translate(-50%)translateY(-5px)scale(1.06)}.draft-dialog.touch-draft{padding-bottom:140px!important;overflow:hidden!important}.touch-draft .touch-controls{height:auto;position:absolute;inset:0}.touch-draft .touch-stick{bottom:18px;left:14px}.touch-draft .touch-jump{bottom:23px;right:14px}.touch-draft .obstacle-cards{overscroll-behavior:contain;min-height:80px;max-height:calc(90dvh - 300px);overflow-y:auto}@media (orientation:landscape) and (height<=600px){.touch-draft h2{margin:0 0 4px;font-size:23px}.touch-draft .draft-instruction{display:none}.touch-draft .pick-roster{height:0;margin:0}.touch-draft .obstacle-cards{max-height:calc(90dvh - 205px);margin:4px 0;padding:5px 8px}.touch-draft .obstacle-cards .toy-button{min-height:90px;font-size:14px}.touch-draft .obstacle-art{max-height:80px}.touch-draft .draft-skip{bottom:20px}}.match-hud.time-urgent .match-status{color:#a12717;text-shadow:0 1px #fff4da}.match-hud.time-urgent .countdown-seconds{font-variant-numeric:tabular-nums;font-size:1.3em;display:inline-block}.match-hud.time-critical .match-status{color:#850d0d}:root{--ui-ink:#55331f;--ui-cream:#fff4d7;--ui-gold:#ffd659;--space-1:6px;--space-2:12px;--space-3:20px;--space-4:32px;--control-h:58px;color:var(--ui-ink);font-family:Outfit,Noto Sans TC,sans-serif}button,input,select{font-family:inherit}button{touch-action:manipulation}button:focus-visible,input:focus-visible,select:focus-visible{outline-offset:4px;outline:3px solid var(--ui-gold)!important}button:disabled{cursor:default}.toy-button,.glass.toy-button{--skin-hue:230deg;--skin-light:.62;isolation:isolate;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;color:var(--ui-cream);min-height:var(--control-h);text-shadow:0 2px 1px #4c291b;cursor:pointer;border:0;border-radius:0;justify-content:center;align-items:center;gap:12px;padding:15px 28px;font-weight:900;line-height:1.35;transition:transform .13s,filter .13s;display:inline-flex;position:relative;background:0 0!important}.toy-button:before,.toy-button:after{content:"";pointer-events:none;border-style:solid;border-color:#0000;position:absolute}.toy-button:before{z-index:-2;filter:drop-shadow(0 4px 1px #64341466);border-width:20px;border-image:url(/games/dollbash/ui/wood.webp) 70 fill/20px;inset:0}.toy-button:after{z-index:-1;filter:sepia(1) saturate(4) hue-rotate(calc(var(--skin-hue) - 45deg)) brightness(var(--skin-light));border-width:15px;border-image:url(/games/dollbash/ui/leather.webp) 64 fill/15px;inset:7px 13px}.toy-button[data-tone=brown]{--skin-hue:28deg;--skin-light:.68}.toy-button[data-tone=gold],.toy-button[aria-pressed=true]{--skin-hue:45deg;--skin-light:1.15;color:#593215;text-shadow:0 1px #ffeaae}.toy-button:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-2px)}.toy-button:active:not(:disabled){transform:translateY(2px)}.toy-button:disabled{filter:saturate(.55);opacity:.7}.toy-button.icon-button{width:64px;min-height:64px;padding:12px;font-size:30px}.toy-panel,.glass:not(button){-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;color:var(--ui-ink);text-shadow:none;background:0 0;border:22px solid #0000;border-image:url(/games/dollbash/ui/wood.webp) 70 fill/22px;border-radius:0}.toy-panel{isolation:isolate;filter:drop-shadow(0 10px 15px #30200e55);padding:18px 24px;position:relative}.toy-panel:before{content:"";z-index:-1;pointer-events:none;border:28px solid #0000;border-image:url(/games/dollbash/ui/paper.webp) 65 fill/28px;position:absolute;inset:0}.toy-dialog{text-align:center;width:min(590px,94vw);max-height:90dvh;position:fixed;overflow:auto}.panel-title,.toy-dialog h2{letter-spacing:.06em;text-shadow:0 2px #fff1c9;margin:4px 0 22px;font-size:clamp(24px,3vw,34px);font-weight:900}.dialog-actions{flex-wrap:wrap;justify-content:center;gap:12px;margin-top:24px;display:flex}.toy-field{text-align:left;gap:9px;margin:16px 0;display:grid}.field-label{font-size:18px;font-weight:800}.toy-input{width:100%;min-height:56px;color:var(--ui-ink);background:#fff7e6;border:2px solid #b88248;border-radius:12px;padding:12px 18px;font-size:21px;font-weight:700;box-shadow:inset 0 2px 5px #5c351d25}.form-error{color:#ac2d27;min-height:24px;font-weight:700}.setting-row{border:0;flex-wrap:wrap;justify-content:center;gap:6px;padding:8px 0 24px;display:flex}.setting-row legend{margin-bottom:10px;font-size:20px;font-weight:800}.settings-button{z-index:30;top:18px;right:18px;position:absolute!important}.settings-dialog>.toy-button{min-width:200px}.lobby{padding:0;display:block}.lobby-brand{filter:drop-shadow(0 8px 3px #432e2340);width:min(46vw,690px);position:absolute;top:6vh;left:4vw}.lobby .menu{align-items:stretch;gap:18px;width:min(34vw,440px);position:absolute;top:38vh;left:7vw}.lobby .menu .menu-btn{width:100%;min-height:88px;padding:18px 26px;font-size:clamp(22px,2.6vw,34px)}.menu-symbol{filter:drop-shadow(0 2px #5a351b);width:42px;font-size:34px;line-height:1}.dev-tools{align-items:center;gap:6px;display:flex;position:absolute;bottom:15px;left:22px}.dev-tools>span{color:#ffdea4;letter-spacing:.12em;background:#422e24bc;border-radius:5px;padding:4px 8px;font-size:11px;font-weight:900}.dev-tools .toy-button{min-height:40px;padding:8px 16px;font-size:12px}.dev-tools .toy-button:before{border-image-width:12px}.dev-tools .toy-button:after{border-image-width:10px;inset:5px 8px}.room-shell{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#95c8e11a;flex-direction:column;gap:20px;padding:22px 3vw 18px;display:flex;position:absolute;inset:0;overflow:auto}.room-top{grid-template-columns:64px minmax(150px,.7fr) minmax(230px,1fr) auto;align-items:center;gap:20px;display:grid}.room-logo{width:min(100%,290px)}.room-info{justify-content:center;gap:12px;display:flex}.room-info .toy-panel{border-width:16px;text-align:center;border-image-width:16px;min-width:120px;padding:2px 12px}.room-info small{font-size:12px;font-weight:800;display:block}.room-info strong{font-size:24px;font-weight:900;display:block}.room-info select{max-width:170px;font-size:14px}.size-selector{gap:2px;display:flex}.size-selector .toy-button{min-height:56px;padding:12px 19px;font-size:20px}.room-teams{flex:1;grid-template-columns:1fr 70px 1fr;align-items:center;gap:10px;min-height:350px;display:grid}.versus{text-align:center;color:#fff1c9;text-shadow:3px 3px #814322;font-size:40px;font-weight:900;transform:rotate(-8deg)}.team-panel{flex-direction:column;align-self:stretch;padding:10px;display:flex}.team-heading{justify-content:center;align-items:center;gap:15px;margin:-4px 0 10px;font-size:30px;font-weight:900;display:flex}.team-badge{object-fit:contain;width:64px;height:64px}.team-panel[data-team=blue]{--team-color:#2c6bd1}.team-panel[data-team=red]{--team-color:#cf4035}.team-heading{color:var(--team-color)}.room-slots{flex:1;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.room-slot{background:#fff4dcaa;border:3px solid #b7916266;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;min-height:155px;display:flex;position:relative;overflow:hidden}.room-slot.active-slot{border-color:var(--team-color)}.slot-name{text-overflow:ellipsis;white-space:nowrap;background:#fff5df;border-radius:5px;max-width:90%;padding:3px 12px;font-size:15px;font-weight:900;overflow:hidden}.slot-kind{color:#866746;font-size:11px}.character-portrait{object-fit:contain;filter:drop-shadow(0 5px 2px #392a2433);width:100%;height:125px}.character-controls{justify-content:center;align-items:center;gap:4px;width:100%;font-size:13px;font-weight:800;display:flex}.character-controls .toy-button{min-height:34px;padding:7px 15px;font-size:16px}.character-controls .toy-button:before{border-image-width:10px}.character-controls .toy-button:after{border-image-width:8px;inset:4px 7px}.room-footer{justify-content:center;align-items:center;gap:20px;display:flex}.room-footer .toy-button{min-width:180px;font-size:22px}.empty-slot{color:#8e6a43;font-size:38px}.room-note{color:#664626;text-align:center;margin:0;font-size:12px}.match-dialog{max-height:88dvh}.draft-dialog{min-height:470px;width:min(1000px,94vw)!important;color:var(--ui-ink)!important;background:0 0!important;border:32px solid #0000!important;border-image:url(/games/dollbash/ui/paper.webp) 70 fill/32px!important;padding:24px 28px!important;overflow:visible!important}.draft-dialog h2{margin:0 0 14px;font-size:34px;font-weight:900}.draft-dialog .pick-roster{justify-content:center;margin:0 auto 16px}.draft-dialog .obstacle-cards{grid-template-columns:repeat(var(--card-cols,3), minmax(100px, 1fr));justify-content:center;align-items:center;gap:30px 28px;max-width:850px;margin:24px auto 30px;display:grid}.draft-dialog .obstacle-cards .toy-button{width:auto;min-width:0;min-height:150px;color:var(--ui-ink);text-shadow:0 1px #fff5d8;opacity:1;transform:rotate(var(--item-tilt,0deg)) translateY(var(--item-y,0px));border:0;flex-direction:column;padding:8px;font-size:17px}.draft-dialog .obstacle-cards .toy-button:before,.draft-dialog .obstacle-cards .toy-button:after{display:none}.obstacle-art{width:150px;height:116px;display:block;position:relative}.draft-dialog .obstacle-art img{object-fit:contain;filter:drop-shadow(0 6px 3px #553b3340);width:100%;height:100%}.item-tint{background:var(--player-color);-webkit-mask:var(--item-image) center/contain no-repeat;mask:var(--item-image) center/contain no-repeat;mix-blend-mode:color;display:none;position:absolute;inset:0}.taken .item-tint{display:block}.item-check{color:#fff;background:var(--player-color,#328ccc);border:3px solid #fff8df;border-radius:50%;justify-content:center;align-items:center;width:34px;height:34px;font-size:23px;font-weight:900;display:none;position:absolute;top:2px;right:8px;box-shadow:0 3px 4px #49352644}.taken .item-check{display:flex}.draft-dialog .pick-layer{pointer-events:none;position:absolute;inset:0}.doll-icon .character-avatar{object-fit:contain;width:100%;height:100%}.pick-layer .doll-icon{filter:drop-shadow(0 2px 1px #3d2b35);width:56px;height:56px;overflow:visible}.pick-layer .doll-icon:after{content:"➤";color:#fff;text-shadow:1px 1px #523c2b;font-size:24px;position:absolute;bottom:-6px;right:-7px;transform:rotate(-45deg)}.avatar-check{color:#fff;text-align:center;background:#3aa367;border-radius:50%;width:20px;font-size:13px;line-height:20px;position:absolute;bottom:-2px;left:-2px}.doll-icon[data-checked=false] .avatar-check{display:none}.result-dialog{width:min(800px,94vw)!important;padding:20px!important}.score-progress{grid-template-columns:1fr 1fr;gap:24px;margin:14px 0 22px;display:grid}.score-team{justify-items:center;gap:9px;font-weight:900;display:grid}.score-team .team-badge{width:88px;height:88px}.score-track{background:#69422c;border:4px solid #9e7446;border-radius:18px;width:100%;height:26px;overflow:hidden;box-shadow:inset 0 2px 4px #2b180f80}.score-fill{height:100%;width:var(--score);background:linear-gradient(#68baff,#2670d3);border-radius:12px}.score-team[data-team=red] .score-fill{background:linear-gradient(#ff9277,#d63839)}.result-dialog table{border-collapse:collapse;width:100%;color:var(--ui-ink);margin:10px 0 20px;font-size:16px}.result-dialog th,.result-dialog td{border-bottom:1px solid #b78b5c55;padding:10px}.result-dialog>button{margin:5px}.lab .sidebar,.sandbox .toolbar,.lab .playback{color:var(--ui-ink)}.lab .sidebar .toy-button{min-height:44px;padding:9px 15px}.lab .playback button{min-height:40px;padding:9px 18px}.sandbox select,.lab select,.toy-panel select{font:inherit;color:var(--ui-ink);background:#fff2d3;border:2px solid #b8834c;border-radius:8px;padding:6px}.lab input[type=range]{accent-color:#ba6e21}.corner-tl.toy-button{top:16px;left:16px}.game .corner-tl{font-size:13px}.game .scoreboard{margin-right:70px}.help-copy{text-align:left;font-size:17px;line-height:1.9}.help-copy kbd{background:#ead6af;border:1px solid #b5915f;border-radius:5px;padding:2px 8px;font-family:inherit;font-weight:900}@media (width<=900px){.room-top{grid-template-columns:50px 1fr auto;gap:10px}.room-logo{display:none}.room-info{gap:6px}.room-info .toy-panel{min-width:90px;padding:0 5px}.size-selector .toy-button{padding:10px 13px;font-size:16px}.room-shell{gap:12px;padding:12px 2vw}.room-teams{grid-template-columns:1fr 40px 1fr}.versus{font-size:26px}.team-panel{border-width:15px;border-image-width:15px;padding:4px}.room-slot{min-height:138px}.character-portrait{height:90px}.team-heading{gap:6px;font-size:23px}.team-badge{width:48px;height:48px}.room-footer .toy-button{font-size:18px}.lobby .menu{width:40vw;top:39vh;left:5vw}.lobby .menu .menu-btn{min-height:75px}.draft-dialog .obstacle-cards{gap:14px}.obstacle-art{width:120px;height:95px}}@media (width<=600px){.lobby-brand{width:80vw;top:4vh;left:10vw}.lobby .menu{gap:10px;width:76vw;top:auto;bottom:11vh;left:12vw}.lobby .menu .menu-btn{min-height:64px;font-size:24px}.dev-tools{gap:2px;bottom:8px;left:8px}.dev-tools .toy-button{padding:7px 11px;font-size:10px}.settings-button{top:10px;right:10px}.toy-button.icon-button{width:48px;min-height:48px;padding:10px;font-size:24px}.toy-panel{border-width:15px;border-image-width:15px;padding:12px}.toy-dialog{max-height:92dvh}.room-top{grid-template-columns:46px 1fr;gap:7px}.size-selector{grid-column:1/-1;justify-content:center}.room-info .toy-panel{min-width:90px}.room-info strong{font-size:19px}.room-teams{grid-template-columns:1fr;gap:16px}.versus{display:none}.room-shell{overflow-y:auto}.team-panel{min-height:290px}.room-slot{min-height:115px}.room-footer{padding-bottom:15px}.room-footer .toy-button{min-width:145px}.room-info select{max-width:140px;font-size:12px}.draft-dialog{min-height:430px;max-height:90dvh;border-width:20px!important;border-image-width:20px!important;width:96vw!important;padding:15px 8px!important}.draft-dialog h2{font-size:25px}.draft-dialog .obstacle-cards{grid-template-columns:repeat(2,minmax(95px,1fr));gap:10px 8px;margin:20px 0 10px}.draft-dialog .obstacle-cards .toy-button{min-height:120px;font-size:14px}.obstacle-art{width:110px;height:80px}.pick-layer .doll-icon{width:42px;height:42px}.score-progress{gap:14px}.result-dialog table{font-size:13px}.result-dialog th,.result-dialog td{padding:7px 3px}.setting-row .toy-button{padding:12px 20px}.toy-dialog .dialog-actions .toy-button{padding:12px 22px}}@media (prefers-reduced-motion:reduce){.toy-button,.score-fill{transition:none}}.toy-button,.glass.toy-button{font-size:18px}.toy-button:after{filter:sepia(1) saturate(8) hue-rotate(calc(var(--skin-hue) - 45deg)) brightness(var(--skin-light))}.toy-button{--skin-hue:230deg;--skin-light:.62}.toy-button[data-tone=red]{--skin-hue:355deg;--skin-light:.58}.toy-button[data-tone=green]{--skin-hue:105deg;--skin-light:.5}.toy-button[data-tone=brown]{--skin-light:.52}.lobby-brand{width:min(46vw,660px)}.lobby .menu{top:43vh}.room-slot{isolation:isolate;background:0 0;padding:8px}.room-slot:before{content:"";z-index:-1;filter:sepia(.8)brightness(1.35);opacity:.75;border:20px solid #0000;border-image:url(/games/dollbash/ui/leather.webp) 64 fill/20px;position:absolute;inset:0}.draft-dialog .obstacle-cards{padding-top:16px}.draft-dialog .settings-button{top:5px;right:5px}.toy-field{isolation:isolate;position:relative}.toy-field:after{content:"";z-index:-1;filter:sepia(.85)brightness(1.4);border:16px solid #0000;border-image:url(/games/dollbash/ui/leather.webp) 64 fill/16px;height:56px;position:absolute;bottom:0;left:0;right:0}.toy-input{box-shadow:none;background:0 0;border:0}@media (width<=900px){.character-portrait{height:120px}}@media (width<=600px){.lobby-brand{width:80vw}.lobby .menu{top:auto;bottom:11vh}.character-portrait{height:110px}.room-footer .toy-button{font-size:18px}.dev-tools .toy-button{font-size:10px}.character-controls .toy-button,.size-selector .toy-button{font-size:16px}}.menu-symbol svg{width:100%;height:100%;display:block}.menu-symbol{color:#ffe3a0;height:36px}.toy-panel:before{filter:sepia(.85)brightness(1.5);border-image-source:url(/games/dollbash/ui/leather.webp);border-image-slice:64 fill}.team-panel:before{filter:sepia()saturate(8)hue-rotate(185deg)brightness(.62)}.team-panel[data-team=red]:before{filter:sepia()saturate(8)hue-rotate(310deg)brightness(.58)}.team-heading{color:#fff2d2;text-shadow:0 2px 1px #603820}.room-slot:before{opacity:1;filter:sepia(.85)brightness(1.5)}.room-slot.locked{opacity:.65}.in-room .dev-tools{display:none}.room-top,.room-footer,.room-note{flex-shrink:0}.room-teams,.team-panel,.room-slots,.room-slot{min-height:0}.character-portrait{height:clamp(90px,15vh,145px)}.room-info .toy-panel:before{border-image-width:12px}.lab .lab-dock,.lab .lab-title,.lab .lab-swatches,.sandbox .sandbox-panel,.sandbox .sandbox-status{border-width:12px;border-image-width:12px;padding:10px}.lab .lab-dock .toy-button,.lab .lab-list .toy-button,.sandbox .sandbox-panel .toy-button{white-space:nowrap;gap:5px;min-height:34px;padding:7px 14px;font-size:13px}.lab .lab-dock .toy-button:before,.lab .lab-list .toy-button:before,.sandbox .sandbox-panel .toy-button:before{border-image-width:12px}.lab .lab-dock .toy-button:after,.lab .lab-list .toy-button:after,.sandbox .sandbox-panel .toy-button:after{border-image-width:9px;inset:4px 7px}.sandbox .sandbox-panel{gap:6px;width:220px}.sandbox .sandbox-status{right:90px}@media (width<=600px){.room-teams{flex-direction:column;flex:none;gap:16px;display:flex}.team-panel{flex:none;width:100%;min-height:0}.room-slots{flex:none;grid-auto-rows:190px}.room-slot{min-height:0}.character-portrait{height:100px}.room-footer{padding:0 0 15px}.sandbox .sandbox-panel{width:calc(100vw - 24px)}.sandbox .sandbox-panel .toy-button{padding:7px 9px;font-size:11px}}:root{--panel-slice:9%;--panel-edge:24px;--ui-red:#d52835;--ui-blue:#1469d7;--ui-green:#16863a}.toy-panel,.glass:not(button){border-image:url(/games/dollbash/ui/panel-v2.webp) var(--panel-slice) fill / var(--panel-edge) round;-webkit-backdrop-filter:none;backdrop-filter:none;filter:none}.toy-panel:before,.room-slot:before{display:none}.room-shell{-webkit-backdrop-filter:none;backdrop-filter:none;background:#99cce8}.team-panel{background:0 0}.team-heading{color:var(--team-color);text-shadow:none;font-size:26px}.room-slot{background:#f8edd6;border:1px solid #cbb890;border-radius:10px}.room-slot.active-slot{border:2px solid var(--team-color)}.room-slot.locked{opacity:1;background:#e8ddc8}.slot-name{color:#412b20;background:0 0;font-size:16px}.slot-kind{color:#705138}.room-info .toy-panel{--panel-edge:16px}.toy-dialog::backdrop,.match-dialog::backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:#1d304875}.menu-symbol{color:#fff;filter:none}.toy-button{--skin-color:var(--ui-blue)}.toy-button[data-tone=red]{--skin-color:var(--ui-red)}.toy-button[data-tone=green]{--skin-color:var(--ui-green)}.toy-button[data-tone=brown]{--skin-color:#775039}.toy-button[data-tone=gold],.toy-button[aria-pressed=true]{--skin-color:#e7ac2b}.toy-button:after{filter:none;background:var(--skin-color);background-clip:padding-box;background-image:linear-gradient(var(--skin-color), var(--skin-color)), url(/games/dollbash/ui/leather.webp);background-blend-mode:color, multiply;outline-offset:-5px;background-size:auto,100% 100%;border:1px solid #ffffff60;border-radius:12px;outline:1px dashed #fff6;box-shadow:inset 0 2px 2px #ffffff40,inset 0 -3px 2px #00000020}.toy-button[aria-pressed=true]{color:#452b13;text-shadow:none}.draft-dialog{background-color:#f5ecd6!important;background-image:linear-gradient(#94b5b825 1px,#0000 1px),linear-gradient(90deg,#94b5b825 1px,#0000 1px)!important;background-size:24px 24px!important;background-clip:padding-box!important;border-image:url(/games/dollbash/ui/paper.webp) 70/24px round!important}.draft-instruction{color:#71553c;margin:0 0 16px;font-size:15px}.draft-dialog .obstacle-cards{gap:24px;margin:32px auto 20px}.draft-dialog .obstacle-cards .toy-button{gap:8px;min-height:145px;font-size:18px}.draft-dialog .pick-roster{height:38px}.doll-icon .character-avatar{width:32px;height:32px;display:block}.character-avatar svg{width:100%;height:100%;display:block}.pick-layer .doll-icon{filter:none;width:58px;height:44px;transition:transform .1s linear}.pick-layer .doll-icon.local-pointer{transition:none}.pick-layer .doll-icon .character-avatar{filter:drop-shadow(0 1px 1px #2d241e50);position:absolute;top:10px;left:23px}.pick-layer .doll-icon:after{display:none}.player-pointer{width:24px;height:30px;color:var(--player-color);filter:drop-shadow(0 1px 1px #362a2360);position:absolute;top:0;left:0}.player-pointer svg{width:100%;height:100%}@media (pointer:fine){.draft-dialog,.draft-dialog *{cursor:none!important}}.placement-help{text-align:center;pointer-events:none;gap:6px;min-width:300px;max-width:90vw;padding:12px 20px;display:grid;position:absolute;bottom:20px;left:50%;transform:translate(-50%)}.placement-help[hidden]{display:none}.placement-help strong{font-size:21px}.placement-help span{font-size:14px}.placement-verdict{color:#91302a;font-weight:800}.placement-help[data-valid=true] .placement-verdict{color:#27683a}.settings-dialog{text-align:left;width:min(580px,94vw);padding:25px 28px}.settings-dialog h2{text-align:center;margin-bottom:30px}.settings-dialog .setting-row{grid-template-columns:repeat(3,1fr);gap:10px;padding:0 0 24px;display:grid}.settings-dialog .setting-row legend{margin-bottom:16px;font-size:20px}.settings-dialog .quality-option{color:#513722;min-height:70px;text-shadow:none;flex-direction:column;gap:4px;padding:12px 8px;font-size:19px;display:flex}.settings-dialog .quality-option:before{display:none}.settings-dialog .quality-option:after{box-shadow:none;background:#fff8e9;border:2px solid #baaa8c;border-radius:10px;outline:none;inset:0}.settings-dialog .quality-option[aria-pressed=true]:after{background:#145fac;border:3px solid #0b4177}.settings-dialog .quality-option[aria-pressed=true]{color:#fff}.settings-dialog .quality-option[aria-pressed=true]:before{content:"已選擇";color:#fff;filter:none;border:0;order:2;font-size:11px;display:block;position:static}.sound-row{border-top:1px solid #cdb995;justify-content:space-between;align-items:center;gap:15px;padding:24px 0;font-size:20px;display:flex}.settings-dialog .sound-switch{color:#fff;min-width:158px;text-shadow:none;padding:12px 20px;font-size:17px}.settings-dialog .sound-switch:before{display:none}.settings-dialog .sound-switch:after{box-shadow:none;background:#276c43;border:0;border-radius:24px;outline:none;inset:0}.settings-dialog .dialog-actions{border-top:1px solid #cdb995;grid-template-columns:1fr 1fr;margin-top:0;padding-top:22px;display:grid}.settings-dialog .dialog-actions .toy-button{padding:15px 18px;font-size:18px}@media (width<=600px){.settings-dialog{padding:20px 14px}.settings-dialog .quality-option{font-size:17px}.settings-dialog .dialog-actions .toy-button{padding:14px 12px;font-size:16px}.sound-row{font-size:18px}.draft-dialog .obstacle-cards{gap:18px 8px}.draft-dialog .obstacle-cards .toy-button{font-size:15px}.placement-help{bottom:15px}.team-heading{font-size:24px}}:root{--ui-red:#b9343c;--ui-blue:#2866b2;--ui-green:#4b7d32;--wood-panel:url(/games/dollbash/ui/wood-slab.webp)}.toy-panel,.glass:not(button){border-image-source:var(--wood-panel);--panel-edge:20px;border-image-slice:7% fill;border-image-repeat:stretch}.toy-button:not(.menu-btn){color:#4b2b16;text-shadow:0 1px #ffe5b9}.toy-button:not(.menu-btn):before{border:12px solid #0000;border-image:var(--wood-panel) 7% fill / 12px stretch;filter:none;display:block;inset:0}.toy-button:not(.menu-btn):after{display:none}.toy-button:not(.menu-btn)[aria-pressed=true]{color:#352010;outline-offset:-5px;outline:3px solid #80531e}.toy-button:not(.menu-btn)[aria-pressed=true]:before{filter:brightness(.88)}.settings-dialog .quality-option[aria-pressed=true]:before{content:"";font-size:inherit;border:12px solid #0000;order:0;position:absolute}.settings-dialog .quality-option[aria-pressed=true]{color:#3f2815;padding-bottom:26px}.settings-dialog .quality-option[aria-pressed=true]:after{content:"✓ 已選擇";box-shadow:none;color:#4c351f;background:0 0;border:0;outline:none;font-size:12px;display:block;position:absolute;inset:auto 0 8px}.settings-dialog .sound-switch{color:#422814;outline-offset:-5px;outline:2px solid #71532a}.settings-dialog .sound-switch[aria-checked=false]{opacity:.7}.settings-dialog .dialog-actions .toy-button:last-child{outline-offset:-5px;outline:3px solid #785326;font-weight:900}.room-info .toy-panel,.lab .lab-dock,.sandbox .sandbox-panel{border-image-width:16px}.menu-btn:after{background-color:var(--skin-color);background-image:linear-gradient(var(--skin-color), var(--skin-color)), url(/games/dollbash/ui/leather.webp);background-blend-mode:color, multiply;color:#fff}.room-shell{background:#89c4e12b}.team-panel{border-width:25px;border-image-width:25px;padding:12px 14px 16px;position:relative;box-shadow:0 9px 16px #46321b35}.team-heading{isolation:isolate;color:#fff5dc;text-shadow:0 2px 2px #38251970;align-self:center;gap:12px;min-width:65%;margin:-14px 0 14px;padding:8px 22px;font-size:30px;position:relative}.team-heading:before{content:"";z-index:-1;border:14px solid #0000;border-image:var(--wood-panel) 7% fill / 14px stretch;filter:sepia()saturate(3)hue-rotate(165deg)brightness(.7);position:absolute;inset:0}.team-heading .team-badge{width:52px;height:52px}.room-slots{gap:14px}.room-slot{background:#f4deb6;border-radius:12px;padding:12px 8px 8px;box-shadow:inset 0 2px 5px #58351c40;border:0!important}.room-slot.locked{background:#dabd8e;box-shadow:inset 0 2px 5px #58351c40}.slot-name{isolation:isolate;flex-shrink:0;max-width:95%;padding:6px 16px;font-size:16px;position:relative}.slot-name:before{content:"";z-index:-1;border:8px solid #0000;border-image:var(--wood-panel) 7% fill / 8px stretch;filter:brightness(1.12);position:absolute;inset:0}.character-controls{justify-content:space-between;padding:0 6px;font-size:15px}.character-controls .toy-button{min-width:38px;min-height:38px}.versus{border:14px solid #0000;border-image:var(--wood-panel) 7% fill / 14px stretch;color:#8f3426;text-shadow:0 2px #ffe8b5;padding:18px 0;font-size:33px;transform:rotate(-5deg)}.room-footer .toy-button{min-width:230px}.room-top .size-selector{border:10px solid #0000;border-image:var(--wood-panel) 7% fill / 10px stretch;padding:7px}.size-selector .toy-button[aria-pressed=true]{outline-color:#e8ad23;background:#edb747!important}.rotate-button{bottom:20px;left:auto;right:20px;transform:none}.rotate-button:hover:not(:disabled){transform:translateY(-2px)}@media (width<=900px){.team-heading{min-width:80%;padding:6px 12px;font-size:24px}.team-panel{border-width:18px;border-image-width:18px;padding:8px}.room-top .size-selector{border-width:5px;border-image-width:5px;padding:2px}.room-slots{gap:9px}.slot-name{font-size:14px}}@media (width<=600px){.team-heading{min-width:72%;font-size:26px}.rotate-button{bottom:150px;right:12px}.room-slot{padding:8px 5px}.character-controls{font-size:13px}.room-top .size-selector{margin:auto}}.draft-dialog{border-width:24px!important;border-image-width:24px!important}.toy-button:not(.menu-btn)[aria-pressed=true],.settings-dialog .dialog-actions .toy-button:last-child,.settings-dialog .sound-switch{border-radius:12px;outline:none;box-shadow:inset 0 0 0 3px #8a5a25}.settings-dialog .quality-option[aria-pressed=true]:before{border:12px solid #0000;border-image:var(--wood-panel) 7% fill / 12px stretch;filter:brightness(.9);display:block;position:absolute;inset:0}.settings-dialog .dialog-actions .toy-button:last-child{color:#fff5df;text-shadow:0 1px 1px #302414}.settings-dialog .dialog-actions .toy-button:last-child:before{filter:brightness(.52)}.settings-dialog .sound-switch{opacity:1;gap:10px}.settings-dialog .sound-switch:after{content:"";background:#32754a;border:2px solid #f9e9c9;border-radius:50%;outline:none;flex-shrink:0;width:14px;height:14px;position:relative;inset:auto;box-shadow:0 0 0 1px #526036;display:block!important}.settings-dialog .sound-switch[aria-checked=false]:after{background:#796b58}.team-heading:before{filter:sepia()saturate(7)hue-rotate(170deg)brightness(.65)}.team-panel[data-team=red] .team-heading:before{filter:sepia()saturate(7)hue-rotate(310deg)brightness(.66)}.pick-slot{border:0;width:48px;height:36px}@media (width<=600px){.draft-dialog{border-width:20px!important;border-image-width:20px!important}}.room-slots{grid-template-rows:repeat(2,minmax(0,1fr));grid-template-columns:repeat(2,minmax(0,1fr));height:100%;min-height:0}.room-slot{min-width:0;min-height:0}.team-panel{overflow:hidden}@media (width<=600px){.room-slots{grid-template-rows:repeat(2,190px);grid-auto-rows:190px;height:394px}}.toy-button:not(.menu-btn):not(.settings-button):before{border-image-source:var(--wood-panel);border-image-slice:12% fill}.result-dialog:focus,.result-dialog:focus-visible,.result-dialog button:focus,.result-dialog button:focus-visible{outline-offset:0;outline:none!important}.draft-dialog{box-sizing:border-box;height:min(760px,100svh - 32px);width:min(1040px,100vw - 32px)!important;min-height:0!important;max-height:calc(100svh - 32px)!important;padding:24px!important;overflow:hidden!important}.draft-dialog[open]{grid-template-rows:auto auto 40px minmax(0,1fr) 64px;align-content:stretch;gap:12px;display:grid}.draft-dialog h2{margin:0;font-size:24px;line-height:32px}.draft-instruction{margin:0;font-size:16px;line-height:24px}.draft-dialog .pick-roster{justify-self:center;height:40px;margin:0}.draft-dialog .obstacle-cards{grid-template-columns:repeat(var(--card-cols,3),minmax(0,1fr));align-items:start;gap:24px;width:100%;max-width:none;min-height:0;max-height:none;margin:0;padding:4px;overflow:hidden auto}.draft-dialog .obstacle-cards .toy-button,.draft-dialog .obstacle-cards .toy-button:hover:not(:disabled),.draft-dialog .obstacle-cards .toy-button:active{grid-template-rows:40px 144px auto;align-content:start;justify-items:center;gap:8px;width:100%;min-height:232px;padding:12px;display:grid;overflow:hidden;transform:translate(0,0)scale(1)}.draft-dialog .obstacle-art{min-width:0;max-width:100%;aspect-ratio:auto!important;width:100%!important;height:144px!important}.draft-dialog .obstacle-label{text-align:center;max-width:100%;font-size:16px;line-height:24px}.draft-dialog .obstacle-art img{object-fit:contain;max-width:100%;max-height:100%;transform:none}.draft-dialog .draft-skip{grid-template-columns:40px max-content;justify-content:center;place-self:center;place-items:center;gap:12px;width:min(240px,100%);height:56px;min-height:56px;padding:8px 16px;display:grid;margin:0!important;position:relative!important;inset:auto!important;transform:none!important}.draft-dialog .draft-skip img{object-fit:contain;width:40px;height:40px}.draft-dialog .draft-skip span{font-size:16px;line-height:24px}.touch-direction-pad{pointer-events:auto;touch-action:none;grid-template-rows:repeat(3,48px);grid-template-columns:repeat(3,48px);width:144px;height:144px;display:grid}.touch-direction-pad button{color:#51301c;touch-action:none;background:#fff4dd;border:0;border-radius:8px;place-items:center;width:48px;height:48px;padding:12px;display:grid;transform:none}.touch-direction-pad [data-direction=up]{grid-area:1/2}.touch-direction-pad [data-direction=left]{grid-area:2/1}.touch-direction-pad [data-direction=down]{grid-area:3/2}.touch-direction-pad [data-direction=right]{grid-area:2/3}.touch-direction-pad .ph-fill{font-size:24px;line-height:24px}.touch-draft .draft-instruction{display:block}@media (width<=600px){.draft-dialog{border-width:16px!important;border-image-width:16px!important;padding:12px!important}.draft-dialog .obstacle-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.draft-dialog .obstacle-cards .toy-button{grid-template-rows:32px 112px auto;min-height:200px;padding:8px}.draft-dialog .obstacle-art{height:112px!important}}@media (orientation:landscape) and (height<=600px){.draft-dialog{grid-template-rows:auto auto 0 minmax(0,1fr) 48px;gap:8px;border-width:12px!important;border-image-width:12px!important;padding:8px 16px!important}.draft-dialog .pick-roster{display:none}.draft-dialog .obstacle-cards .toy-button{grid-template-rows:24px 80px auto;min-height:160px}.draft-dialog .obstacle-art{height:80px!important}.draft-dialog .draft-skip{height:48px;min-height:48px}.touch-direction-pad{grid-template-rows:repeat(3,40px);grid-template-columns:repeat(3,40px);width:120px;height:120px}.touch-direction-pad button{width:40px;height:40px;padding:8px}}.draft-dialog.touch-draft{padding:12px!important;overflow:hidden!important}.draft-dialog:has(.obstacle-cards>button:nth-child(5)){overflow:hidden!important}@media (orientation:landscape) and (height<=600px){.draft-dialog.touch-draft{padding:8px 16px!important}}.draft-dialog>h2{grid-row:1}.draft-dialog>.draft-instruction{grid-row:2}.draft-dialog>.pick-roster{grid-row:3}.draft-dialog>.obstacle-cards{grid-row:4}.draft-dialog>.draft-skip{grid-row:5}@media (orientation:landscape) and (height<=600px){.draft-dialog[open]{grid-template-rows:auto auto 0 minmax(0,1fr) 48px;gap:8px}}.draft-dialog{--draft-art-height:144px;--preview-scale:1}.draft-dialog .obstacle-art{grid-row:2;place-self:center;max-width:none;width:calc(var(--preview-width) * var(--preview-scale))!important;height:calc(var(--preview-height) * var(--preview-scale))!important}@media (width<=600px){.draft-dialog{--draft-art-height:112px}}@media (orientation:landscape) and (height<=600px){.draft-dialog{--draft-art-height:80px}}.touch-direction-pad{left:max(16px,env(safe-area-inset-left));bottom:calc(16px + env(safe-area-inset-bottom));grid-template-rows:repeat(3,48px);grid-template-columns:repeat(3,48px);width:144px;height:144px;position:absolute}.touch-direction-pad button{width:48px;height:48px;padding:12px}.touch-layout .touch-controls[data-phase=place] .touch-jump{right:max(16px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom))}.touch-layout .placement-actions{left:auto;right:max(16px,env(safe-area-inset-right));bottom:calc(120px + env(safe-area-inset-bottom));z-index:13;grid-auto-flow:column;gap:8px;display:grid;transform:none}.touch-layout .placement-action{gap:4px}.touch-layout .placement-action .action-cloth{width:64px;height:64px}.touch-layout .placement-action .action-cloth img{width:40px;height:40px}.touch-layout .placement-action kbd{padding:4px 8px;line-height:16px}.touch-layout .placement-help{left:max(16px,env(safe-area-inset-left));right:auto;bottom:calc(176px + env(safe-area-inset-bottom));box-sizing:border-box;text-align:left;gap:4px;width:calc(100% - 180px);min-width:0;max-width:240px;min-height:0;padding:8px;transform:none;border-width:12px!important;border-image-width:12px!important}.touch-layout .placement-help strong{font-size:16px;line-height:20px}.touch-layout .placement-help span{font-size:12px;line-height:16px}.touch-layout .placement-help>span:not(.placement-verdict){display:none}.touch-layout .touch-jump:disabled{opacity:.6}@media (orientation:landscape) and (height<=600px){.touch-layout .placement-actions{right:calc(112px + env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom))}.touch-layout .placement-help{left:calc(184px + env(safe-area-inset-left));right:calc(260px + env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));width:auto;max-width:none}}@keyframes game-dialog-in{0%{opacity:0;transform:translateY(16px)scale(.96)}to{opacity:1;transform:none}}@keyframes game-toast-in{0%{opacity:0;translate:0 10px}to{opacity:1;translate:0}}@keyframes check-pop{0%{opacity:0;scale:.45}65%{scale:1.16}to{opacity:1;scale:1}}@keyframes check-draw{0%{stroke-dashoffset:1px}to{stroke-dashoffset:0}}@keyframes cursor-confirm{0%{rotate:-12deg;scale:.7}55%{rotate:6deg;scale:1.3}to{rotate:0deg;scale:1}}.match-dialog[open],.toy-dialog[open]{animation:.32s cubic-bezier(.2,.8,.2,1) game-dialog-in}.match-dialog:focus,.match-dialog:focus-visible{outline:none!important}.draft-dialog .obstacle-cards .toy-button:focus-visible,.draft-dialog .draft-skip:focus-visible{border-radius:12px;outline-offset:2px!important;outline:3px solid #377fb4!important}.pick-owner{color:#23485b;opacity:0;text-overflow:ellipsis;white-space:nowrap;background:#d8e9ed;border-radius:8px;grid-row:4;place-items:center;min-width:56px;max-width:100%;height:24px;padding:0 8px;font-size:12px;line-height:20px;display:grid;overflow:hidden}.pick-owner.visible{opacity:1;animation:.24s ease-out game-toast-in}.pick-layer .doll-icon[hidden]{display:none!important}.match-hud{gap:8px!important;width:276px!important;max-width:calc(100vw - 112px)!important;min-height:0!important;padding:12px 16px!important}.match-score{grid-template-columns:1fr auto 1fr;align-items:center;width:100%;gap:12px!important;display:grid!important}.match-team{grid-template-columns:32px auto;justify-content:center;align-items:center;gap:8px!important;display:grid!important}.match-team:last-child{grid-template-columns:auto 32px}.match-team:last-child .team-badge{grid-area:1/2}.match-team:last-child strong{grid-area:1/1}.match-team strong{line-height:32px;font-size:28px!important}.match-team img,.match-team .team-badge{width:32px!important;height:36px!important}.score-separator{color:#b49a72;font-size:20px}.match-status{white-space:nowrap;border-top:1px solid #c6af87;grid-template-columns:1fr auto;align-items:center;width:100%;padding-top:8px;line-height:20px;gap:8px!important;font-size:12px!important;display:grid!important}.phase-label{text-align:left;font-weight:500}.hud-timer{grid-auto-flow:column;justify-content:center;align-items:center;gap:6px;display:inline-grid}.countdown-seconds{font-variant-numeric:tabular-nums;line-height:24px;font-size:16px!important}.game-clock{width:20px;height:20px;display:inline-grid}.game-clock svg{width:100%;height:100%}.time-urgent .hud-timer{color:#b54929}.time-critical .hud-timer{color:#bf292c}.time-critical .game-clock{filter:sepia(.5)saturate(2)}.placement-help{pointer-events:none;max-width:calc(100vw - 32px);animation:.22s ease-out game-toast-in;left:max(16px,env(safe-area-inset-left))!important;text-align:left!important;width:240px!important;bottom:16px!important;right:auto!important;transform:none!important}.touch-layout .placement-help{max-width:calc(100vw - 32px);bottom:calc(176px + env(safe-area-inset-bottom))!important;width:220px!important}.player-labels{pointer-events:none;z-index:4;position:absolute;inset:0;overflow:hidden}[data-victory]:after{content:"";pointer-events:none;z-index:0;background:radial-gradient(at 50% 80%,#fff3a333,#0000 60%);position:absolute;inset:0}.sandbox-panel{overflow:auto;grid-template-columns:1fr!important;gap:12px!important;width:288px!important;max-height:calc(100svh - 104px)!important;padding:16px!important;display:grid!important;top:80px!important;bottom:auto!important}.sandbox-panel details{border-top:1px solid #bea47a;padding-top:8px}.sandbox-panel summary{cursor:pointer;padding:4px 0;font-weight:700}.sandbox-tool-grid,.sandbox-actions,.sandbox-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px;display:grid}.sandbox-panel .toy-button{width:100%;min-width:0!important;min-height:40px!important;padding:8px!important;font-size:12px!important}.sandbox-search{box-sizing:border-box;color:#50331e;width:100%;font:inherit;background:#fff7e5;border:1px solid #b99b6e;border-radius:8px;padding:8px}.sandbox-panel h2{margin:0;font-size:20px}.sandbox-status{max-width:calc(100vw - 360px);font-size:12px;bottom:16px!important;left:auto!important;right:16px!important}.sandbox-panel .on{border-radius:8px;box-shadow:inset 0 0 0 3px #2b80b5}@media (width<=600px){.match-hud{width:240px!important;padding:8px 12px!important}.match-team strong{font-size:24px!important}.match-score{gap:8px!important}.sandbox-panel{width:calc(100vw - 32px)!important;max-height:42svh!important;top:auto!important;bottom:16px!important}.sandbox-status{max-width:calc(100vw - 32px);top:80px!important;bottom:auto!important}}@media (orientation:landscape) and (height<=600px){.touch-layout .placement-help{width:200px!important;bottom:148px!important}.sandbox-panel{width:264px!important;max-height:calc(100svh - 88px)!important;top:72px!important;bottom:auto!important}}@media (prefers-reduced-motion:reduce){.match-dialog,.toy-dialog,.placement-help,.pick-owner{transition:none!important;animation:none!important}}.net-toast:not([hidden]){animation:.22s ease-out game-toast-in}.victory-confetti{pointer-events:none;z-index:3;position:absolute;inset:0;overflow:hidden}.victory-confetti i{left:var(--x);width:8px;height:16px;animation:victory-fall 3.2s var(--delay) both ease-in;background:#f1ca63;border-radius:2px;position:absolute;top:-20px}.victory-confetti i:nth-child(3n){background:#83ccec}.victory-confetti i:nth-child(3n+1){background:#ef8c7d}@keyframes victory-fall{0%{opacity:0;transform:translateY(0)rotate(0)}10%{opacity:1}to{transform:translateY(95svh) rotate(var(--turn));opacity:0}}@media (prefers-reduced-motion:reduce){.net-toast:not([hidden]){animation:none}.victory-confetti{display:none}}.draft-dialog:has(.preview-toolbar)[open]{gap:12px;grid-template-rows:auto 32px minmax(0,1fr) auto!important}.draft-dialog .obstacle-cards button:focus,.draft-dialog .obstacle-cards button:focus-visible,.draft-dialog .draft-skip:focus,.draft-dialog .draft-skip:focus-visible{box-shadow:none!important;outline:none!important}.draft-dialog .pick-layer .doll-icon{width:58px;height:44px;overflow:visible}.draft-dialog .player-pointer{aspect-ratio:1;color:var(--player-color);filter:drop-shadow(0 2px 1px #40291840);display:block;opacity:1!important;width:32px!important;height:32px!important}.draft-dialog .player-pointer svg{display:block;overflow:visible;width:32px!important;height:32px!important}.pointer-disc,.pointer-check{opacity:0;transform-origin:16px 16px}.pointer-disc{transition:transform .22s ease-out,opacity .16s;transform:scale(.4)}.pointer-arrow{transform-origin:12px 14px;transition:transform .18s,opacity .14s}.pointer-check{stroke-dasharray:1;stroke-dashoffset:1px}.confirming .pointer-arrow{opacity:0;transform:scale(.4)}.confirming .pointer-disc{opacity:1;transform:scale(1)}.confirming .pointer-check{opacity:1;animation:.24s ease-out .12s both check-draw}.confirming .character-avatar,.confirming .avatar-check{opacity:0!important}.draft-dialog .pick-layer .doll-icon:after{display:none!important}.player-id{max-width:144px;box-shadow:none;color:#fff7df;letter-spacing:.02em;white-space:nowrap;text-overflow:ellipsis;text-shadow:-1px -1px #254b75,1px -1px #254b75,-1px 1px #254b75,1px 1px #254b75,0 2px 3px #142941b3;background:0 0;border:0;border-radius:0;padding:0;font-size:13px;font-weight:800;line-height:18px;position:absolute;overflow:hidden;transform:translate(-50%,-100%)}.player-id[data-team=red]{color:#fff7df;text-shadow:-1px -1px #942e31,1px -1px #942e31,-1px 1px #942e31,1px 1px #942e31,0 2px 3px #401619a6}.phase-label{font-size:16px;font-weight:700;line-height:24px}.countdown-seconds{font-weight:700;line-height:24px;font-size:16px!important}.hud-timer{gap:6px}.game-clock{width:22px;height:22px}.craft-result.result-dialog{box-sizing:border-box;color:#51301c;height:fit-content;border-width:20px!important;border-image-width:20px!important;width:min(740px,100vw - 32px)!important;min-height:0!important;max-height:calc(100svh - 24px)!important;margin:auto!important;padding:16px 24px!important;position:fixed!important;inset:0!important;overflow:hidden!important}.result-dialog[open]{grid-template-columns:minmax(0,1fr);align-content:start;gap:12px;display:grid!important}.result-dialog h2{font-weight:800;text-align:center!important;margin:0!important;padding:0!important;font-size:28px!important;line-height:36px!important}.result-race{grid-template-columns:minmax(0,1fr);min-width:0;gap:12px!important;display:grid!important}.result-goal{color:#78512b;place-self:auto end;line-height:20px;margin:0!important;font-size:14px!important;position:static!important}.result-lane{grid-template-columns:88px minmax(0,1fr) 32px;align-items:center;gap:12px!important;min-height:40px!important;margin:0!important;padding:0!important;display:grid!important}.result-team-label{grid-template-columns:28px auto;align-items:center;gap:8px;display:grid}.result-team-label img{width:28px!important;height:32px!important}.result-lane h3{line-height:24px;margin:0!important;font-size:18px!important}.result-value{font-variant-numeric:tabular-nums;font-size:24px;font-weight:800;line-height:28px}.result-lane[data-team=blue]{--score-color:#287bd8;color:#2469b6}.result-lane[data-team=red]{--score-color:#e74746;color:#c83235}.result-track{box-shadow:inset 0 2px 3px #704b2720;background:#dbc9a4!important;border-radius:8px!important;height:28px!important;position:relative!important;overflow:hidden!important}.result-lane .result-fill{opacity:1;height:100%;position:absolute;inset:0 auto 0 0;background:var(--score-color)!important;border-radius:0!important;margin:0!important}.result-award{border:0;position:absolute;top:0;bottom:0;box-shadow:inset 2px 0 #fff5ce85;background:var(--score-color)!important;border-radius:0!important}.result-award.soloWin{background:#ffbd24!important}.result-baseline{z-index:2;background:#fff4dcb3;width:2px;position:absolute;top:0;bottom:0;left:0}.result-finish-line{z-index:2;background:#80552e;width:3px;position:absolute;top:0;bottom:0;right:0}.result-dialog .result-toast{color:#78512b;place-items:center;font-size:16px;font-weight:800;line-height:24px;border-width:12px!important;opacity:1!important;border-image-width:12px!important;min-height:48px!important;margin:0!important;padding:8px 12px!important;display:grid!important;translate:none!important}.result-toast[data-team=blue]{color:#2469b6}.result-toast[data-team=red]{color:#c83235}.result-countdown{grid-auto-flow:column;justify-content:center;align-items:center;gap:8px;min-height:44px;font-size:14px;font-weight:600;line-height:20px;display:inline-grid;margin:0!important}.result-countdown[hidden]{display:none!important}.result-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important;margin:0!important;display:grid!important}.result-actions button{color:#fff5df;isolation:isolate;place-items:center;min-width:0;line-height:24px;display:grid;background:0 0!important;border:0!important;min-height:44px!important;padding:8px 12px!important;font-size:16px!important}.result-actions button:before{content:"";z-index:-1;border:12px solid #0000;position:absolute;inset:0;background:0 0!important;border-image:url(/games/dollbash/fourlo/assets/games/dollbash/dollbash-primary-v2.webp) 15% fill/12px!important;display:block!important}.result-actions button:last-child{color:#20577b}.result-actions button:last-child:before{border-image-source:url(/games/dollbash/fourlo/assets/games/dollbash/dollbash-secondary-v2.webp)!important}.result-actions button:after{display:none!important}.result-dialog button:focus-visible{outline-offset:2px;outline:2px solid #287bd8!important}.preview-toolbar{z-index:40;pointer-events:auto;background:#e4eff1;border:1px solid #76a2b5;border-radius:8px;grid-template-columns:1fr;grid-auto-columns:auto;grid-auto-flow:column;gap:8px;padding:4px 8px;font-size:12px;line-height:20px;display:grid}.game>.preview-toolbar{width:240px;position:absolute;top:16px;left:16px}.preview-toolbar select{min-width:0;font:inherit;color:#244358;background:#fff8e5;border:0;border-radius:4px;padding:4px}.preview-toolbar button{font:inherit;color:#fff;background:#2b6b99;border:0;border-radius:4px;padding:4px 8px}.draft-dialog .preview-toolbar,.draft-dialog .preview-toolbar *{cursor:auto!important}@media (width<=600px){.craft-result.result-dialog{border-width:12px!important;border-image-width:12px!important;padding:12px!important}.result-dialog h2{font-size:24px!important;line-height:32px!important}.result-lane{grid-template-columns:64px minmax(0,1fr) 28px;gap:8px!important}.result-team-label{grid-template-columns:24px auto;gap:4px}.result-team-label img{width:24px!important;height:28px!important}.result-lane h3{font-size:14px!important}.result-value{font-size:20px}.result-track{height:24px!important}.result-actions{gap:8px!important}.result-actions button{font-size:14px!important}.phase-label,.countdown-seconds{line-height:20px;font-size:14px!important}}@media (orientation:landscape) and (height<=600px){.craft-result.result-dialog{border-width:8px!important;border-image-width:8px!important;width:min(640px,100vw - 32px)!important;padding:8px 16px!important}.result-dialog[open]{gap:6px}.result-dialog h2{font-size:22px!important;line-height:28px!important}.result-race{gap:6px!important}.result-goal{line-height:16px;font-size:12px!important}.result-lane{grid-template-columns:72px minmax(0,1fr) 28px;min-height:24px!important}.result-team-label{grid-template-columns:24px auto}.result-team-label img{width:24px!important;height:24px!important}.result-lane h3{line-height:20px;font-size:14px!important}.result-value{font-size:20px;line-height:24px}.result-track{border-radius:8px!important;height:20px!important}.result-dialog .result-toast{font-size:14px;line-height:20px;border-width:8px!important;border-image-width:8px!important;min-height:32px!important;padding:4px 8px!important}.result-countdown{min-height:32px;font-size:12px}.result-actions button{line-height:20px;min-height:32px!important;padding:4px 8px!important;font-size:14px!important}.result-actions button:before{border-image-width:8px!important}.result-dialog .preview-toolbar{padding:2px 4px;font-size:10px;line-height:16px}.result-dialog .preview-toolbar select,.result-dialog .preview-toolbar button{padding:2px 4px}}@media (prefers-reduced-motion:reduce){.pointer-arrow,.pointer-disc,.pointer-check,.pick-layer .doll-icon,.result-toast{transition:none!important;animation:none!important}.confirming .pointer-check{stroke-dashoffset:0}}.result-progress{border-radius:8px;height:100%;position:absolute;inset:0 auto 0 0;overflow:hidden}.result-dialog .result-toast{box-sizing:border-box}.result-actions .toy-button{color:#fff5df!important}.result-actions .toy-button:last-child{color:#20577b!important}.draft-dialog .obstacle-cards .toy-button{grid-template-rows:40px var(--draft-art-height) auto 28px;transform:rotate(calc(var(--item-tilt,0deg)*.4)) translateY(calc(var(--item-y,0px)*.3));overflow:visible}.draft-dialog .obstacle-cards .toy-button:hover:not(:disabled){transform:rotate(0)translateY(-5px)scale(1.04)}.draft-dialog .obstacle-cards{align-items:center;padding:16px 12px}.draft-dialog .obstacle-cards .toy-button.taken{opacity:1}.draft-dialog .pick-owner{place-self:start center}.draft-dialog .draft-skip.chosen span:after{content:none!important;display:none!important}.draft-dialog .obstacle-cards .toy-button:focus,.draft-dialog .obstacle-cards .toy-button:focus-visible{box-shadow:none!important;outline:none!important}.draft-dialog:has(.preview-toolbar)[open]{grid-template-rows:auto auto 40px minmax(0,1fr) 56px auto}.draft-dialog>.preview-toolbar{grid-row:6}.touch-draft .pick-layer{display:block}@media (width<=600px){.draft-dialog .obstacle-cards .toy-button{grid-template-rows:24px var(--draft-art-height) auto 28px}}@media (orientation:landscape) and (height<=600px){.draft-dialog .obstacle-cards .toy-button{grid-template-rows:12px var(--draft-art-height) auto 28px}.draft-dialog:has(.preview-toolbar)[open]{grid-template-rows:auto auto 0 minmax(0,1fr) 48px auto}}.hud-timer{font-weight:700}.player-id{flex-direction:column;align-items:center;gap:2px;max-width:none;padding:2px 4px;font-size:13px;line-height:20px;display:flex;overflow:visible}.player-id-name{white-space:nowrap;max-width:180px;display:block}.player-id-arrow{fill:#2f6fe0;stroke:#1d3f8a;stroke-width:1.8px;stroke-linejoin:round;filter:drop-shadow(0 1px 1px #182a4055);flex:none;width:14px;height:12px;display:block}.player-id[data-team=red] .player-id-arrow{fill:#e0453a;stroke:#8a2620}.player-id.self .player-id-arrow{stroke:#fff5df}.player-id[hidden]{display:none!important}.draft-dialog .obstacle-cards .toy-button[aria-pressed=true]{box-shadow:none!important}.player-id{text-shadow:none;--name-outline:#254b75;gap:5px}.player-id[data-team=red]{text-shadow:none;--name-outline:#942e31}.player-id-name{text-shadow:0 -1px 0 var(--name-outline),.7px -.7px 0 var(--name-outline),1px 0 0 var(--name-outline),.7px .7px 0 var(--name-outline),0 1px 0 var(--name-outline),-.7px .7px 0 var(--name-outline),-1px 0 0 var(--name-outline),-.7px -.7px 0 var(--name-outline),0 1px 2px #14294180;padding:1px 2px}.result-race{gap:12px!important}.result-track{height:28px!important;min-height:0!important;box-shadow:none!important;background:0 0!important;border:0!important;overflow:visible!important}.result-progress{border-radius:0;gap:0;width:100%;height:100%;display:flex;position:relative;inset:auto;overflow:visible}.result-lane .result-fill,.result-award,.result-remainder{flex-basis:0;min-width:0;height:100%;box-shadow:none!important;margin:0 0 0 var(--seam,0px)!important;border:0!important;border-radius:6px!important;position:static!important;inset:auto!important}.result-remainder{background:#dbc9a4}.result-progress>[hidden]{display:none!important}.result-dialog .result-toast{font-size:14px;font-weight:700;line-height:20px;border-width:8px!important;border-image-width:8px!important;min-height:40px!important;padding:2px 12px!important}.result-dialog .result-toast.result-toast{justify-content:center;align-items:center;display:flex!important}.result-toast .toast-line{white-space:nowrap;align-items:center;display:inline-flex}.result-toast .toast-main{opacity:0;transition:opacity .22s ease-out,transform .32s cubic-bezier(.2,.9,.25,1.25);transform:translateY(6px)scale(.92)}.result-toast .toast-main.shown{opacity:1;transform:none}.result-toast .toast-extra{opacity:0;grid-template-columns:0fr;transition:grid-template-columns .36s cubic-bezier(.2,.8,.2,1),opacity .26s ease-out 80ms;display:inline-grid}.result-toast .toast-extra>span{white-space:nowrap;min-width:0;overflow:hidden}.result-toast .toast-extra b{color:#5a3a12;background:#ffbd24;border-radius:999px;margin-left:8px;padding:0 8px;font-weight:800;transition:transform .34s cubic-bezier(.2,.9,.25,1.4) 60ms;display:inline-block;transform:scale(.7)}.result-toast .toast-extra.shown{opacity:1;grid-template-columns:1fr}.result-toast .toast-extra.shown b{transform:none}@media (prefers-reduced-motion:reduce){.result-toast .toast-main,.result-toast .toast-extra,.result-toast .toast-extra b{transition:none!important}}.result-actions{justify-self:center;width:min(100%,520px);gap:16px!important}.result-actions .toy-button{box-sizing:border-box;letter-spacing:0;-webkit-text-stroke:0;gap:0;height:44px;font-family:inherit;min-height:44px!important;text-shadow:none!important;padding:8px 16px!important;font-size:16px!important;font-weight:700!important;line-height:24px!important}.result-actions .toy-button:before{filter:none!important}.match-status .phase-label,.match-status .countdown-seconds{font-size:16px!important;font-weight:700!important;line-height:24px!important}@media (width<=600px){.result-dialog[open]{gap:16px}.result-actions{gap:12px!important}.result-actions .toy-button{font-size:14px!important}.match-status .phase-label,.match-status .countdown-seconds{font-size:14px!important;line-height:20px!important}}@media (orientation:landscape) and (height<=600px){.result-dialog[open]{gap:10px}.result-race{gap:6px!important}.result-track{height:20px!important}.result-dialog .result-toast{font-size:13px;line-height:20px;border-width:6px!important;border-image-width:6px!important;min-height:32px!important;padding:0 8px!important}.result-actions .toy-button{height:32px;min-height:32px!important;padding:4px 12px!important;font-size:14px!important;line-height:24px!important}.match-status .phase-label,.match-status .countdown-seconds{font-size:14px!important;line-height:20px!important}}.draft-dialog .obstacle-art{position:relative}.draft-dialog .obstacle-art img{transition:filter .18s}.draft-dialog .taken .obstacle-art img{filter:brightness(.85)}.draft-dialog .taken .obstacle-art:after{content:"";pointer-events:none;background:repeating-linear-gradient(135deg,transparent 0 4px,#fff1d899 4px 5px),linear-gradient(var(--selection-color),var(--selection-color));-webkit-mask-image:var(--item-image);mask-image:var(--item-image);-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-image:var(--item-image);position:absolute;inset:0;-webkit-mask-position:50%;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat}@media (prefers-reduced-motion:reduce){.draft-dialog .obstacle-art img{transition:none}}.draft-dialog .taken .obstacle-art:after{opacity:.62}.draft-dialog .pick-layer .doll-icon.confirming{transition:none}.result-dialog[open]{gap:28px}.result-actions{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:16px!important}.result-actions .toy-button{height:52px;min-height:52px!important;padding:12px 16px!important;font-size:17px!important;line-height:24px!important}.result-countdown{min-height:52px}@media (width<=600px){.result-dialog[open]{gap:24px}.result-actions{gap:12px!important}.result-actions .toy-button{font-size:16px!important}}@media (orientation:landscape) and (height<=600px){.result-dialog[open]{gap:16px}.result-actions .toy-button{height:40px;min-height:40px!important;padding:8px 12px!important;font-size:15px!important}.result-countdown{min-height:40px}}.result-actions{gap:12px!important}.draft-dialog:has(.preview-toolbar)[open]{grid-template-rows:auto auto 40px minmax(0,1fr) 56px auto!important;grid-template-columns:minmax(0,1fr)!important}.draft-dialog>.preview-toolbar{box-sizing:border-box;place-self:end stretch;width:100%;min-height:0;grid-area:6/1/auto/-1!important}@media (orientation:landscape) and (height<=600px){.draft-dialog:has(.preview-toolbar)[open]{grid-template-rows:auto auto 0 minmax(0,1fr) 48px auto!important}}.sandbox .sandbox-panel{border-radius:16px;box-shadow:0 6px 20px #173e5626;color:#193c52!important;background:#f4f8fb!important;border:2px solid #a5c6da!important;border-image:!important;gap:12px!important;padding:14px!important}.sandbox-heading h2{color:#193c52;font-size:19px!important}.sandbox-quick{gap:10px;display:grid}.sandbox-character-row,.sandbox-toggles{grid-template-columns:1fr 1fr;gap:8px;display:grid}.sandbox-toggles{font-size:12px;font-weight:700}.sandbox-toggles label{align-items:center;gap:5px;margin:0;display:flex}.sandbox-toggles input{accent-color:#216ab5;flex-shrink:0;width:17px;height:17px}.sandbox .sandbox-panel .sandbox-status{text-align:left;box-shadow:none;pointer-events:none;border-radius:8px;margin:0;line-height:1.5;color:#33586e!important;background:#e3eef5!important;border:0!important;border-image:!important;width:auto!important;max-width:none!important;min-height:0!important;padding:8px 10px!important;font-size:12px!important;position:static!important;inset:auto!important}.sandbox-editing{border-top:1px solid #c7dce9;padding-top:12px}.sandbox-editing h3{color:#193c52;margin:0 0 8px;font-size:14px}.sandbox-editing .team-switch{margin-bottom:8px}.sandbox-search{color:#193c52!important;background:#fff!important;border-color:#a5bfce!important}.sandbox .sandbox-panel .toy-button{white-space:normal;outline-offset:2px;isolation:auto;line-height:1.3;color:#17496b!important;text-shadow:none!important;background:#deedf7!important;border:1px solid #9cc1db!important;border-radius:9px!important;font-weight:700!important;box-shadow:0 2px #b2cbdc!important}.sandbox .sandbox-panel .toy-button:before,.sandbox .sandbox-panel .toy-button:after{display:none!important}.sandbox .sandbox-panel .toy-button:hover{background:#cbe4f4!important}.sandbox .sandbox-panel .toy-button.on,.sandbox .sandbox-panel .sandbox-test-button{color:#fff!important;background:#216bb5!important;border-color:#185792!important;box-shadow:0 2px #164c82!important}.sandbox .sandbox-panel .toy-button:disabled{opacity:.5}.sandbox .sandbox-panel .toy-button:focus-visible{outline:3px solid #2585d0!important}.sandbox .sandbox-panel details{border-color:#c7dce9}.sandbox-preview summary{color:#33586e}.sandbox-actions{margin-top:0}.sandbox-tool-grid [hidden]{display:none!important}.draft-dialog .draft-skip .skip-art{width:40px;height:40px;font-size:0;line-height:0;display:block;position:relative}.draft-dialog .draft-skip .skip-art img{object-fit:contain;width:100%;height:100%;display:block}.draft-dialog .draft-skip.chosen{opacity:1}.draft-dialog .draft-skip.chosen .skip-art img{filter:brightness(.85)}.draft-dialog .draft-skip.chosen .skip-art:after{pointer-events:none;opacity:.62;background:repeating-linear-gradient(135deg,transparent 0 4px,#fff1d899 4px 5px),linear-gradient(var(--selection-color),var(--selection-color));width:auto;height:auto;-webkit-mask:var(--item-image) center/contain no-repeat;mask:var(--item-image) center/contain no-repeat;-webkit-mask:var(--item-image) center/contain no-repeat;border-radius:0;margin:0;position:absolute;inset:0;content:""!important;display:block!important}:root{--safe-t:env(safe-area-inset-top,0px);--safe-r:env(safe-area-inset-right,0px);--safe-b:env(safe-area-inset-bottom,0px);--safe-l:env(safe-area-inset-left,0px);--edge-t:max(12px,calc(var(--safe-t) + 8px));--edge-r:max(16px,calc(var(--safe-r) + 8px));--edge-b:max(16px,calc(var(--safe-b) + 8px));--edge-l:max(16px,calc(var(--safe-l) + 8px))}.touch-layout .touch-direction-pad{left:var(--edge-l);bottom:var(--edge-b);grid-template-rows:repeat(3,56px);grid-template-columns:repeat(3,56px);width:168px;height:168px}.touch-layout .touch-direction-pad button{width:56px;height:56px;padding:14px}.touch-layout .touch-direction-pad .ph-fill{font-size:28px;line-height:28px}.touch-layout .touch-skill kbd{padding:2px 10px;font-size:13px;line-height:16px}@media (orientation:landscape) and (height<=600px){.touch-layout .touch-stick{left:var(--edge-l);bottom:var(--edge-b);width:136px;height:136px}.touch-layout .stick-knob{width:62px;height:62px}.touch-layout .touch-controls[data-phase] .touch-jump{right:var(--edge-r);bottom:var(--edge-b);width:104px;height:104px;font-size:38px}.touch-layout .touch-controls[data-phase] .touch-jump span{font-size:14px}.touch-layout .skill-hud.touch-skill{right:calc(var(--edge-r) + 118px);bottom:calc(var(--edge-b) + 30px)}.touch-layout .touch-skill .skill-circle{width:88px;height:88px}.touch-layout .touch-skill .skill-circle img{width:54px;height:54px}.touch-layout .placement-actions{right:calc(var(--edge-r) + 118px)!important;bottom:calc(var(--edge-b) + 20px)!important}.game.touch-layout .placement-help{min-width:150px;top:auto!important;left:50%!important;right:auto!important;bottom:var(--edge-b)!important;width:min(236px,calc(100vw - 2 * var(--edge-r) - 456px))!important;border-width:10px!important;border-image-width:10px!important;padding:2px 8px!important;transform:translate(-50%)!important}}@media (orientation:portrait) and (width<=600px){.touch-layout .touch-stick{left:var(--edge-l);bottom:calc(var(--edge-b) + 8px);width:132px;height:132px}.touch-layout .stick-knob{width:60px;height:60px}.touch-layout .touch-controls[data-phase] .touch-jump{right:var(--edge-r);bottom:calc(var(--edge-b) + 8px);width:100px;height:100px;font-size:36px}.touch-layout .touch-controls[data-phase] .touch-jump span{font-size:14px}.touch-layout .skill-hud.touch-skill{right:calc(var(--edge-r) + 8px);bottom:calc(var(--edge-b) + 124px)}.touch-layout .touch-skill .skill-circle{width:84px;height:84px}.touch-layout .touch-skill .skill-circle img{width:50px;height:50px}.touch-layout .placement-actions{right:var(--edge-r)!important;bottom:calc(var(--edge-b) + 124px)!important}.game.touch-layout .placement-help{left:var(--edge-l)!important;bottom:calc(var(--edge-b) + 184px)!important}}@media (orientation:landscape) and (height<=600px){.game .match-hud.glass{align-items:center;top:max(6px,var(--safe-t))!important;width:auto!important;min-width:0!important;max-width:calc(100vw - 2 * var(--edge-r) - 128px)!important;gap:14px!important;padding:2px 16px!important;display:flex!important}.game .match-hud .match-score{gap:10px!important;width:auto!important}.game .match-hud .match-status{border-top:0;border-left:1px solid #c6af87;margin:0;padding:0 0 0 14px;gap:10px!important;width:auto!important}}@media (orientation:portrait) and (width<=600px){.game .match-hud.glass{top:max(12px,calc(var(--safe-t) + 4px))!important}.game .net-toast{top:calc(max(12px,calc(var(--safe-t) + 4px)) + 116px)}}@media (orientation:landscape) and (height<=600px){.game>dialog.draft-dialog[open]{--draft-art-height:clamp(72px,calc(100dvh - max(6px,var(--safe-t)) - max(6px,var(--safe-b)) - 232px),320px);inset:max(6px,var(--safe-t)) var(--edge-r) max(6px,var(--safe-b)) var(--edge-l)!important;border-width:12px!important;border-image-width:12px!important;grid-template-rows:auto 0 0 minmax(0,1fr) 48px auto!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important;width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:6px 16px!important}.game>.draft-dialog h2{margin:0!important;font-size:22px!important;line-height:28px!important}.game>.draft-dialog .draft-instruction,.game>.draft-dialog .pick-roster{display:none!important}.game>.draft-dialog .obstacle-cards{grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;align-content:center;grid-template-columns:none!important;align-items:center!important;gap:6px 12px!important;min-height:0!important;max-height:none!important;margin:0!important;padding:4px 8px!important;overflow:visible!important}.game>.draft-dialog .obstacle-cards .toy-button{grid-template-rows:0 var(--draft-art-height) auto 24px!important;gap:6px!important;min-height:0!important;padding:6px 4px!important}.game>.draft-dialog .draft-skip{height:48px!important;min-height:48px!important}}@media (orientation:portrait) and (width<=600px){.game>dialog.draft-dialog[open]{--draft-rows:2;--draft-art-height:clamp(80px,calc((100dvh - max(8px,calc(var(--safe-t) + 4px)) - max(8px,calc(var(--safe-b) + 4px)) - 268px) / var(--draft-rows) - 76px),280px);inset:max(8px,calc(var(--safe-t) + 4px)) 8px max(8px,calc(var(--safe-b) + 4px)) 8px!important;border-width:16px!important;border-image-width:16px!important;grid-template-rows:auto 0 40px minmax(0,1fr) 56px auto!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:10px 12px!important}.game>dialog.draft-dialog:not(:has(.obstacle-cards>button:nth-child(2)))[open]{--draft-rows:1}:is(.game>dialog.draft-dialog:has(.obstacle-cards>button:nth-child(3))[open],.game>dialog.draft-dialog:has(.obstacle-cards>button:nth-child(5))[open]){--draft-rows:3}.game>dialog.draft-dialog:has(.obstacle-cards>button:nth-child(4)):not(:has(.obstacle-cards>button:nth-child(5)))[open]{--draft-rows:2}.game>.draft-dialog h2{margin:0!important;font-size:24px!important;line-height:32px!important}.game>.draft-dialog .draft-instruction{display:none!important}.game>.draft-dialog .obstacle-cards{align-content:center;grid-template-columns:minmax(0,1fr)!important;align-items:center!important;gap:12px!important;min-height:0!important;max-height:none!important;margin:0!important;padding:4px 8px!important;overflow:visible!important}.game>.draft-dialog .obstacle-cards:has(>button:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))!important}.game>.draft-dialog .obstacle-cards:has(>button:nth-child(4))>.toy-button:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc(50% - 6px)}.game>.draft-dialog .obstacle-cards .toy-button{grid-template-rows:0 var(--draft-art-height) auto 24px!important;gap:6px!important;min-height:0!important;padding:6px 4px!important}}@media (orientation:landscape) and (height<=600px),(orientation:portrait) and (width<=600px){.game>.draft-dialog{--draft-scale-scope:offered}.game>.draft-dialog .obstacle-cards{align-items:stretch!important}.game>.draft-dialog .obstacle-cards .toy-button,.game>.draft-dialog .obstacle-cards .toy-button:hover:not(:disabled),.game>.draft-dialog .obstacle-cards .toy-button:active{transform:rotate(calc(var(--item-tilt,0deg) * .3))!important;background:#fffaf0a8!important;border-radius:18px!important;align-content:center!important;box-shadow:inset 0 0 0 2px #dcc596,0 3px #d6bf8f!important}.game>.draft-dialog .obstacle-cards .toy-button.joystick-hover:not(:disabled){transform:none!important}.game>.draft-dialog .obstacle-cards .toy-button.taken{box-shadow:inset 0 0 0 3px var(--selection-color,#8a5a25),0 3px 0 #d6bf8f!important}.game>.draft-dialog .obstacle-art{max-height:none!important}.game>.draft-dialog .obstacle-label{font-size:17px!important;line-height:22px!important}.game>.draft-dialog .pick-owner{height:24px;font-size:13px}}@media (orientation:landscape) and (height<=600px){.game:not([data-victory])>.craft-result.result-dialog{width:min(820px,calc(100vw - var(--safe-l) - var(--safe-r) - 32px))!important;border-width:14px!important;border-image-width:14px!important;padding:12px 24px!important}.game:not([data-victory])>.result-dialog[open]{gap:14px}.game:not([data-victory])>.result-dialog h2{font-size:28px!important;line-height:34px!important}.game:not([data-victory])>.result-dialog .result-race{gap:8px!important}.game:not([data-victory])>.result-dialog .result-goal{line-height:18px;font-size:14px!important}.game:not([data-victory])>.result-dialog .result-lane{grid-template-columns:96px minmax(0,1fr) 40px;min-height:36px!important}.game:not([data-victory])>.result-dialog .result-team-label{grid-template-columns:32px auto}.game:not([data-victory])>.result-dialog .result-team-label img{width:32px!important;height:34px!important}.game:not([data-victory])>.result-dialog .result-lane h3{line-height:24px;font-size:18px!important}.game:not([data-victory])>.result-dialog .result-value{font-size:28px;line-height:32px}.game:not([data-victory])>.result-dialog .result-track{height:28px!important}.game:not([data-victory])>.result-dialog .result-toast{font-size:17px;line-height:24px;min-height:44px!important}.game:not([data-victory])>.result-dialog .result-countdown{min-height:40px;font-size:15px}}@media (orientation:portrait) and (width<=600px){.game:not([data-victory])>.result-dialog h2{font-size:28px!important;line-height:36px!important}.game:not([data-victory])>.result-dialog .result-goal{font-size:14px!important}.game:not([data-victory])>.result-dialog .result-lane{grid-template-columns:80px minmax(0,1fr) 36px}.game:not([data-victory])>.result-dialog .result-team-label img{width:28px!important;height:32px!important}.game:not([data-victory])>.result-dialog .result-lane h3{font-size:17px!important}.game:not([data-victory])>.result-dialog .result-value{font-size:26px}.game:not([data-victory])>.result-dialog .result-track{height:28px!important}.game:not([data-victory])>.result-dialog .result-toast{font-size:16px;line-height:22px;min-height:44px!important}.game:not([data-victory])>.result-dialog .result-countdown{font-size:15px}}
