:root{color-scheme:dark;--page:#13131e;--panel:#242334;--line:#39384d;--pink:#ffabd2;--text:#f8f5fa;--soft:#b9b7cb;--mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;--sans:"Inter","Avenir Next",Avenir,system-ui,sans-serif}
*{box-sizing:border-box}html{background:var(--page)}body{margin:0;min-height:100dvh;color:var(--text);font:500 15px/1.45 var(--sans);background:radial-gradient(ellipse at 50% 5%,#211d33 0,transparent 58%),var(--page)}button,input{font:inherit}button{color:inherit;cursor:pointer}button:disabled{cursor:wait;opacity:.68}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ffdf80;outline-offset:4px}button{touch-action:manipulation}button:active:enabled{translate:0 1px}[hidden]{display:none!important}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}img{display:block}.mast{height:73px;border-bottom:1px solid #32303f;background:#171620}.mast-inner,.wrap{width:min(1240px,calc(100% - 88px));margin:auto}.mast-inner{height:100%;display:flex;align-items:center;justify-content:space-between}.brand{display:inline-flex;align-items:center;gap:11px;font-weight:820;letter-spacing:-1.1px;font-size:22px}.brand strong{color:#e5c3e1;font-weight:inherit}.brand-mark{width:39px;height:39px;display:grid;place-items:center;border:1px solid #52445b;background:#302635;border-radius:10px}.brand-mark img{image-rendering:pixelated;width:35px;height:35px}.mast nav{display:flex;gap:9px}.nav-button{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #3b384a;background:#22212e;border-radius:8px;font-size:12px;font-weight:680;padding:8px 13px;min-height:35px;color:#e8e6f2}.nav-button svg{width:15px;height:15px;color:#c8c4d9}.nav-button:hover{background:#322c41}.wrap{padding:28px 0 22px}.cabinet{border:1px solid #46435c;border-radius:16px;overflow:hidden;box-shadow:0 12px 36px #0b081c38;background:#1d1c2c}.stage{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) minmax(286px,34%);align-items:center;gap:1.4%;min-height:495px;height:clamp(495px,40vw,556px);padding:28px 4% 28px 0;background:#46419b url('/art/moon-garden.png') center 56% /cover no-repeat}.stage::after{content:"";pointer-events:none;position:absolute;inset:0;box-shadow:inset 0 0 0 1px #ffffff14;z-index:-1}.illustration{position:relative;width:100%;height:100%;min-width:0;container-type:inline-size}.title-group{position:absolute;z-index:2;top:4.8%;left:19%;width:62.5%;text-align:center}.genre{display:inline-flex;align-items:center;gap:8px;font:750 10px/1 var(--mono);letter-spacing:1.85px;color:#fcdfb8;background:#2b214ca8;border:1px solid #ffdec94a;box-shadow:0 2px 0 #35225040;padding:6px 10px;border-radius:5px;white-space:nowrap}.tiny-spark{width:9px;height:9px;background:#ffdb82;clip-path:polygon(40% 0,60% 0,65% 35%,100% 45%,100% 56%,65% 64%,56% 100%,44% 100%,35% 65%,0 56%,0 44%,35% 35%)}h1{margin:15px 0 0}h1 img{width:100%;height:auto;image-rendering:pixelated;filter:drop-shadow(0 4px 0 #49305d40)}.sky-actors{position:absolute;inset:0;pointer-events:none}.sky-actors img,.bao-card img,.item-art img,.paired img{image-rendering:pixelated}.sky-bao{position:absolute;width:21%;bottom:4%;left:20%}.sky-bao .hero-platform{width:100%;height:auto;filter:drop-shadow(0 5px 2px #2c1c5740)}.sky-bao .hero-bao{width:68%;margin:0 auto -3%;animation:bob 3.4s ease-in-out infinite;transform-origin:50% 95%;filter:drop-shadow(2px 3px 0 #402b6a36)}.blue-actor{bottom:14%;left:60%;width:18.8%}.blue-actor .hero-bao{width:70%;animation-delay:-1.1s}.stray-platform{position:absolute;width:12%;top:62%;left:-3%;opacity:.94}.sky-star{position:absolute;width:6.4%;animation:twinkle 3.3s ease-in-out infinite}.star1{top:62%;left:43%;rotate:-12deg}.star2{top:57.5%;left:50%;width:5%;animation-delay:-1s}.star3{top:53%;left:56%;width:4%;animation-delay:-2s}.trail{position:absolute;inset:0;width:100%;height:100%;stroke:none}.lobby-panel{align-self:center;width:100%;position:relative;z-index:3;background:linear-gradient(140deg,#292639 0%,#242234 70%);border:1px solid #756785;outline:3px solid #27203a77;border-radius:13px;box-shadow:0 7px 0 #211c345e,0 15px 46px #1c103b75,inset 0 1px #beb2d21a;padding:25px 26px 18px}.panel-top{display:flex;align-items:center;justify-content:space-between;gap:6px}.eyeline{font:700 10px/1.4 var(--mono);letter-spacing:1.55px;color:#cabcd9;display:flex;align-items:center;gap:7px}.eyeline svg{width:15px;height:15px;color:#d5bedf}.online{font:600 10px/1 var(--mono);color:#a4e5c4;display:inline-flex;gap:6px;align-items:center}.online i,.beacon{width:6px;height:6px;border-radius:50%;background:#88dfb0;box-shadow:0 0 7px #80e7b247}.lobby-panel h2,dialog h2{font-size:clamp(26px,2.3vw,35px);line-height:1.15;letter-spacing:-1.4px;margin:10px 0 17px;font-weight:820}.chooser-label{color:#dbd6e6;font-size:12px;font-weight:650;margin:0 0 8px}.bao-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.bao-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:93px;border:1px solid #474456;background:#302f42;border-radius:8px;padding:4px 8px 7px;font-size:12px;font-weight:750}.bao-card img{width:clamp(45px,4.15vw,64px);height:auto;transition:translate .18s}.bao-card:hover img{translate:0 -3px}.bao-card .selection{display:none;position:absolute;right:6px;top:6px;width:14px;height:14px;align-items:center;justify-content:center;border-radius:50%;background:var(--accent);color:#372237}.selection svg{width:10px;height:10px;stroke-width:3}.pink{--accent:#ffb4d8;--tint:#493446}.blue{--accent:#a4dcff;--tint:#2e4051}.bao-card[aria-pressed=true]{border:2px solid var(--accent);background:var(--tint);color:var(--accent);box-shadow:inset 0 0 0 2px #261e2f40}.bao-card[aria-pressed=true] .selection{display:flex}.action{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:43px;padding:9px 16px;border-radius:7px;font-weight:780;font-size:14px;letter-spacing:-.15px}.action svg{width:17px;height:17px;stroke-width:2.4}.primary{border:1px solid #ffbadb;border-bottom:3px solid #cc74a3;background:#ffacd3;color:#352237;box-shadow:inset 0 1px 0 #ffcee8}.primary:hover{background:#ffbfdf}.secondary{border:1px solid #5e566d;background:#363245;border-bottom:2px solid #4e485e;color:#f3edf6;margin-top:9px}.secondary:hover{background:#454052}.solo{margin:12px auto 0;min-height:22px;display:flex;align-items:center;justify-content:center;gap:6px;border:0;background:none;color:#cec5d8;font-size:12px;font-weight:600}.solo:hover{text-decoration:underline;color:white}.solo svg{width:12px;height:12px;fill:currentColor;stroke:none}.cabinet-bar{height:45px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:#20202d;border-top:1px solid #4c405c}.zone,.best{display:flex;align-items:center;gap:9px}.zone .beacon{background:#b3a1ed;border-radius:1px;width:6px;height:6px;box-shadow:0 0 8px #8b6cc4}.stage-label{font:700 10px var(--mono);letter-spacing:1.1px;color:#c4b2e8;border-right:1px solid #53495f;padding-right:10px}.zone b,.best{font-size:12px;font-weight:620;color:#cdc8dc}.best{gap:7px}.best svg{color:#ffdb93;width:15px;height:15px}.best strong{font:700 13px var(--mono);color:#ffdea3;margin-left:2px}.guide{margin-top:26px}.section-head{display:flex;align-items:center;gap:10px;margin-bottom:13px}.section-head h2{font-size:23px;line-height:1.2;letter-spacing:-.75px;margin:0;font-weight:775}.section-emblem{display:grid;place-items:center;width:25px;height:27px;color:#ffdc95}.section-emblem svg{width:23px;height:23px}.rule{height:1px;background:#353141;flex:1;margin-left:8px}.guide-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.guide-card{display:flex;gap:15px;align-items:center;min-width:0;padding:18px 17px;background:#22212e;border:1px solid #3a3747;border-radius:10px;box-shadow:inset 0 1px 0 #ffffff03}.item-art{height:61px;width:61px;flex-shrink:0;border-radius:9px;display:grid;place-items:center;background:var(--itembg);border:1px solid var(--itemline)}.item-art img{width:50px;height:50px}.orange{--itembg:#3c3133;--itemline:#584342}.cyan{--itembg:#293541;--itemline:#3a505d}.rose{--itembg:#3d2e39;--itemline:#553d50}.guide-card h3{font-size:16px;font-weight:760;letter-spacing:-.35px;margin:0 0 4px}.guide-card p{font-size:12px;line-height:1.6;color:var(--soft);margin:0;max-width:32ch}.footer{display:flex;align-items:center;justify-content:space-between;padding:17px 2px 0;color:#aaa5b9;font-size:11px}.desk-keys{display:flex;align-items:center;gap:5px}.desk-keys span{margin:0 3px}.desk-keys i{height:11px;border-right:1px solid #4b4556;margin:0 4px}kbd{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;padding:0 4px;border:1px solid #4a465a;border-bottom:2px solid #443e51;border-radius:4px;background:#292634;font:600 11px var(--mono);color:#d9d3e3}.hearts{color:#ffafd7;letter-spacing:3px;font-size:13px}.hearts b{color:#9cd9ff}.touch-keys{display:none}#game-host{height:clamp(520px,77dvh,780px);position:relative;background:#1d1b30}body.playing .guide,body.playing .footer{display:none}#network-toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);font-size:13px;padding:9px 16px;border-radius:9px;background:#312b3f;border:1px solid #938399;z-index:9;max-width:90%}dialog{background:#272536;color:#f7f3fa;border:1px solid #64566e;border-radius:14px;box-shadow:0 25px 90px #09051270;margin:auto;padding:0;max-height:88dvh;max-width:min(440px,calc(100% - 30px));width:100%}dialog::backdrop{background:#0f0d1bbd;backdrop-filter:blur(4px)}.dialog-inner{position:relative;padding:29px}.dialog-inner .close{position:absolute;right:12px;top:12px;background:#343041;border:1px solid #51485c;border-radius:7px;width:29px;height:29px;display:grid;place-items:center}.close svg{width:15px;height:15px}.dialog-inner p,.sub{font-size:14px;color:#cbc5d7;line-height:1.6}.dialog-inner h3{font-size:16px;margin:16px 0 -5px}.dialog-inner h2{margin:10px 0}.dialog-inner label{display:block;margin:19px 0 8px;font-size:13px;color:#e1d9e9}.dialog-inner input{width:100%;background:#1f1e2b;color:white;padding:12px;letter-spacing:4px;text-transform:uppercase;font:700 23px var(--mono);border:1px solid #60556d;border-radius:6px;margin-bottom:18px}.dialog-inner button.action{margin-top:14px}.paired{display:flex;justify-content:center;align-items:end;gap:15px;min-height:68px}.paired img{width:65px}.paired .awaiting{opacity:.25;filter:grayscale(1)}.code-box{padding:12px;border-radius:8px;background:#1f1d2b;border:1px dashed #70627b;text-align:center;margin:13px 0}.code-box .eyeline{justify-content:center;font-size:9px}.code-box strong{font:800 29px/1.4 var(--mono);letter-spacing:5px}.sub{margin:6px 0}.error{color:#ffc3c8;font-size:12px;margin:10px 0 0}.result-height{font-size:42px;color:#ffdd97;font-weight:800;letter-spacing:-2px}#result-menu .action{margin-top:18px}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-9px) rotate(2deg)}}@keyframes twinkle{0%,100%{scale:.95}50%{scale:1.1}}
@media(min-width:1500px){.wrap{padding-top:34px}}@media(max-width:1050px){.mast-inner,.wrap{width:calc(100% - 48px)}.stage{grid-template-columns:minmax(0,1fr) minmax(275px,34%);padding-right:3%;height:470px;min-height:470px}.lobby-panel{padding:21px 20px 16px}.title-group{left:13%;width:75%;top:7%}.guide-card{padding:14px 12px;gap:10px}.item-art{width:50px;height:50px}.item-art img{width:43px;height:43px}.guide-card h3{font-size:15px}}
@media(max-width:720px){.mast{height:60px}.mast-inner,.wrap{width:calc(100% - 28px)}.wrap{padding-top:14px}.mast nav{gap:5px}.brand{font-size:18px;gap:7px}.brand-mark{width:32px;height:32px}.brand-mark img{width:29px;height:29px}.nav-button{padding:7px 8px;gap:5px;font-size:11px}.cabinet{border-radius:12px}.stage{display:flex;flex-direction:column;height:auto;min-height:0;gap:0;padding:0 13px 15px;background-size:auto max(100%,480px);background-position:38% top}.illustration{height:clamp(246px,62vw,360px);flex:none}.title-group{left:21%;width:58%;top:6%}.genre{font-size:8px;letter-spacing:1.25px;padding:4px 6px;gap:5px}h1{margin-top:6px}.sky-bao{width:19%;left:10%;bottom:1%}.blue-actor{width:16%;left:71%;bottom:7%}.star1{top:75%;left:39%}.star2{top:70%;left:49%}.star3{top:65%;left:58%}.stray-platform{width:12%;left:-8%;top:60%}.lobby-panel{width:min(100%,480px);padding:16px 17px 11px;border-radius:10px}.lobby-panel h2{font-size:25px;margin:6px 0 11px}.bao-options{gap:9px;margin-bottom:12px}.bao-card{min-height:56px;flex-direction:row;gap:5px;padding:3px 8px}.bao-card img{width:44px}.chooser-label{margin-bottom:6px}.action{min-height:39px}.secondary{margin-top:7px}.solo{margin-top:7px}.cabinet-bar{height:39px;padding:0 12px}.zone,.best{gap:6px}.zone b,.best{font-size:10px}.stage-label{font-size:9px;padding-right:7px}.guide{margin-top:20px}.section-head{margin-bottom:10px}.section-head h2{font-size:20px}.guide-cards{grid-template-columns:1fr;gap:8px}.guide-card{padding:11px 14px;gap:13px}.guide-card h3{margin-bottom:1px}.guide-card p{max-width:none}.item-art{width:45px;height:45px}.item-art img{width:39px;height:39px}.desk-keys{display:none}.touch-keys{display:block}.footer{padding-top:12px}#game-host{height:calc(100dvh - 126px);min-height:365px}}
@media(max-width:380px){.nav-button span{display:none}.nav-button{width:34px}.best span{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}
.copy-fallback{display:block;width:100%;border:1px solid #645773;border-radius:5px;background:#1b1929;color:white;padding:5px;font-size:11px}.bao-engine{height:100%}#game-host .be-stage{max-height:100%;width:auto;height:min(100%,686px);aspect-ratio:400/586;max-width:100%}#game-host .be-stage canvas{width:100%;height:100%}
