@font-face{font-family:DotGothic;src:url(./DotGothic16-Regular-BIxi1sSd.woff2)format("woff2");font-display:swap}:root{--game-font:DotGothic, monospace;font-family:var(--game-font);color:#152943;--muted:#294967;font-synthesis:none}*{box-sizing:border-box}body{background:linear-gradient(#d3eeff33,#c4e5ff88),url(./background_castle-CcT7VgOc.png) 50%/cover fixed;min-height:100vh;margin:0}button,select,input{font:inherit;color:#152943}button{cursor:pointer;-webkit-tap-highlight-color:transparent;border:0}button:hover:not(:disabled){filter:brightness(1.08)}button:focus-visible,[tabindex]:focus-visible,select:focus-visible,summary:focus-visible{outline-offset:3px;outline:3px solid #b57a12}button:disabled{cursor:default;color:#505c70;filter:grayscale(.65)}img,svg{image-rendering:pixelated}[hidden]{display:none!important}h1,h2,h3,p{margin:0}.shell{max-width:1700px;margin:auto;padding:12px 18px}.header{align-items:center;gap:21px;padding:0 6px 15px;display:flex}.brand-logo{width:204px}.header h1{color:#122c50;text-shadow:1px 1px #fff;background:#d9f0ffb8;padding:4px 9px;font-size:27px}.icon-button{background:0 0;flex-shrink:0;width:46px;height:46px;margin-left:auto;padding:0}.icon-button img{width:100%}.stats,.frame,.world-card,.shop-card{border:17px solid #0000;border-image:url(./header_panel-DUsdc_Mn.png) 25 35 24 fill/18px 22px;position:relative;box-shadow:3px 4px #27508038}.stats{z-index:20;align-items:center;min-height:84px;margin:10px 0 25px;padding:3px 15px;display:flex;position:sticky;top:8px}.stats:before,.world-card:before,.equipment-panel:before{content:"";pointer-events:none;z-index:2;background:url(./status_crest-CCtVnv90.png) 50%/contain no-repeat;width:72px;height:39px;position:absolute;top:-31px;left:calc(50% - 36px)}.stat{border-left:1px solid #7a9bbf;flex-direction:column;flex:1;align-items:center;display:flex}.stat>span,.stat div>span{color:#234464;font-size:16px;line-height:1.3;display:block}.stat strong{font:700 27px/1.3 var(--game-font);font-variant-numeric:tabular-nums;color:#172e4b}.stat.primary{border:0;flex-direction:row;flex:1.3;justify-content:flex-start;gap:10px}.primary strong{color:#68420a}.coin-icon{object-fit:contain;flex-shrink:0;width:40px;height:36px}.stat strong.full{color:#914119}.save-status{color:#244e35;margin-left:15px;font-size:16px}.save-status:before{content:"● "}.save-status.error{color:#a01f28}.workspace{grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:18px;display:grid}.world-card{background:linear-gradient(#f0fbffb0,#fff9e5b0);flex-direction:column;min-width:0;display:flex}.world-card>.world-heading{order:0}.world-card>.view-controls{order:1}.world-card>.mode-bar{order:2}.world-card>.mode-legend{order:3}.world-card>.scene{order:4}.world-card>.expansion-strip{order:5}.world-card>.installed-heading{order:6}.world-card>.installed-list{order:7}.world-card>.machine-stock{order:8}.world-card.editing>.machine-stock{order:3;margin:8px 8px 12px;padding-top:7px}.editing .machine-stock-list{padding-bottom:3px;display:flex;overflow-x:auto}.editing .stock-machine-card{flex:0 0 260px;min-width:260px}.world-card.editing>.view-controls{display:none}.world-heading{justify-content:space-between;align-items:center;gap:8px;padding:8px 9px;display:flex}.world-heading h2{font-size:22px}.view-controls{align-items:center;gap:9px;padding:0 8px 9px;display:flex}.view-controls label{white-space:nowrap;font-size:16px}#zoom-range{appearance:none;cursor:pointer;background:0 0;flex:1;width:100%;min-width:45px;height:32px}#zoom-range::-webkit-slider-runnable-track{background:#c1dbea;border:2px solid #486981;height:9px;box-shadow:inset 1px 1px #7fa0bb}#zoom-range::-webkit-slider-thumb{appearance:none;background:#fff3b3;border:3px solid #98713b;width:23px;height:23px;margin-top:-9px;box-shadow:inset 2px 2px #fffdf0,2px 2px #36546c55}#zoom-range::-moz-range-track{background:#c1dbea;border:2px solid #486981;height:6px}#zoom-range::-moz-range-thumb{background:#fff3b3;border:3px solid #98713b;border-radius:0;width:18px;height:18px}#zoom-range:disabled{opacity:.45;cursor:default}.expansion-strip{margin:0 9px 15px;display:flex}.expand-button{color:#4c3517;background:#fff0b8;border:4px solid #a77a3a;justify-content:space-between;align-items:center;gap:13px;width:min(420px,100%);min-height:70px;padding:10px 16px;font-size:16px;display:flex;box-shadow:inset 3px 3px #fffbe3,inset -3px -3px #e3bd6c,3px 4px #4c678d55}.expand-button:hover:not(:disabled){background:#fff8d4}.expand-button:active:not(:disabled){transform:translateY(2px);box-shadow:inset 3px 3px #e3bd6c}.expand-button:disabled{filter:grayscale(.65);color:#586579}.tile-trade,.tile-gain{align-items:center;gap:7px;display:flex}.tile-trade img,.purchase-confirm img{object-fit:contain;width:28px;height:28px}.tile-trade strong,.purchase-confirm strong{font:700 21px var(--game-font)}.trade-arrow{font:700 22px var(--game-font);color:#785221}.tile-symbol{width:33px;height:33px;font:700 24px var(--game-font);color:#1c574a;background:#b9efdc;border:3px solid #376f67;place-items:center;font-style:normal;display:grid;box-shadow:inset 2px 2px #edfff7}.tile-gain b{font:700 17px var(--game-font)}.purchase-tile-art{justify-content:center;align-items:center;gap:10px;margin:6px 0 14px;display:flex}.purchase-tile-art .tile-symbol{width:58px;height:58px;font-size:40px}.purchase-tile-art b{font:700 26px var(--game-font);color:#276c58}.purchase-confirm{justify-content:center;gap:9px;width:100%;margin-top:15px}.mode-legend{flex-wrap:wrap;align-items:center;gap:8px 13px;padding:9px 10px 0;font-size:16px;display:flex}.mode-legend>span{align-items:center;gap:5px;display:flex}.legend-swatch{width:19px;height:19px;font:700 15px var(--game-font);text-align:center;border:2px solid #284357;font-style:normal;line-height:15px}.legend-swatch.buyable{background:#ffbf35}.legend-swatch.placeable{background:#37c7ae}.legend-swatch.occupied{background:#394e6a}.legend-swatch.locked{background:#566579}.pixel-button,.tabs button{color:#152a45;-webkit-text-stroke:.1px currentColor;text-shadow:0 1px #eefaff;background:0 0;border:12px solid #0000;border-image:url(./button_normal-B4ZuHpGL.png) 30 31 20 fill/19px 25px;min-height:51px;padding:1px 9px;font-size:16px;font-weight:700}.pixel-button:active:not(:disabled),.pixel-button[aria-pressed=true],.tabs button[aria-selected=true]{color:#fff7de;text-shadow:1px 1px #173955;border-image-source:url(./button_pressed-zQeHx55B.png)}.pixel-button.compact{border-width:7px;border-image-width:13px 17px;min-height:36px;padding:1px 8px;font-size:16px}.zoom-button{min-width:35px;font:700 18px var(--game-font)!important;padding:0 3px!important}#zoom-level{font:700 14px var(--game-font);color:#203959;text-align:center;min-width:36px}.mode-bar{background:#e5f4da;border:2px solid #638d72;justify-content:space-between;align-items:center;gap:8px;min-height:42px;margin:0 8px;padding:7px 9px;font-size:16px;display:flex;box-shadow:2px 2px #31523c40}.mode-bar>strong{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.mode-actions{flex-wrap:wrap;align-items:center;gap:5px;display:flex}.scene{touch-action:none;cursor:crosshair;-webkit-user-select:none;user-select:none;background:linear-gradient(#eaf6ff18,#ecf9ff30),url(./workshop-skyhall-v1-CGo5jphg.webp) 50%/cover no-repeat;border:2px solid #86afd266;width:100%;height:clamp(540px,72svh,780px);position:relative}.scene[data-gesture=rotate],.scene[data-gesture=carry]{cursor:grabbing}.scene canvas{width:100%;height:100%;display:block}.scene-loading{color:#315174;place-items:center;font-size:25px;display:grid;position:absolute;inset:0}.text-button{color:#173a61;text-underline-offset:3px;background:0 0;min-height:32px;padding:5px 2px;font-size:16px;text-decoration:underline}.installed-heading{justify-content:space-between;align-items:center;gap:5px;padding:0 12px 7px;display:flex}.installed-heading h3{font-size:16px}.installed-heading>span{font:700 14px var(--game-font);color:#2b4563}.installed-list{grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:6px;max-height:170px;margin:0 9px 6px;display:grid;overflow-y:auto}.installed-chip{background:#e7f5ff;border:2px solid #83a5c6;align-items:center;gap:8px;padding:7px;display:flex;box-shadow:inset 2px 2px #fff}.installed-chip>strong{flex:1;min-width:0}.trash-button{color:#874153;background:#ffe8eb;border:2px solid #b67786;flex-shrink:0;justify-content:center;align-items:center;gap:5px;min-width:34px;min-height:34px;padding:4px;display:inline-flex;box-shadow:inset 1px 1px #fff5f5}.trash-button svg{width:21px;height:21px;display:block}.trash-button:hover{background:#ffd5de}.danger-button{color:#76394a}.deletion-note{font-size:13px}.stock-store-button{color:#31546f;background:#d9effc;border:1px solid #7097b6;flex-shrink:0;padding:5px;font-size:12px}.machine-stock{border-top:2px solid #aac8df;margin:18px 8px 5px;padding-top:12px}.machine-stock-list{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:7px;display:grid}.stock-machine-card{background:#effaff;border:2px solid #89acc8;align-items:center;gap:8px;padding:6px;display:flex}.stock-machine-art{flex-shrink:0;width:55px;height:64px}.stock-machine-art svg{width:100%;height:100%}.stock-machine-card>span{flex:1;min-width:0}.stock-machine-card strong{font-size:15px;display:block}.stock-machine-card b{font:700 14px var(--game-font);margin-top:4px;display:block}.empty-stock{color:#69859f;text-align:center;padding:7px}.stat.chest-stat{color:#523a1e;cursor:pointer;background:#fff1c3;border:3px solid #a7803d;justify-content:center;align-self:stretch;padding:5px 19px 5px 8px;position:relative;box-shadow:inset 3px 3px #fffbed,inset -3px -3px #dfb869,2px 3px #31517355}.stat.chest-stat:after{content:"›";font:700 25px var(--game-font);color:#946420;position:absolute;top:50%;right:5px;transform:translateY(-50%)}.stat.chest-stat:hover{background:#ffe5a0}.stat.chest-stat:active{transform:translateY(2px);box-shadow:inset 2px 2px #dfb869,inset -2px -2px #fffbed}.stat.chest-stat:focus-visible{outline-offset:3px;outline:3px solid #cd8c28}.has-chests #chest-target{animation:3.6s ease-in-out infinite chest-stock-nudge}.reduced-motion .has-chests,.reduced-motion .has-chests #chest-target{animation:none}@keyframes chest-stock-glow{0%,to{box-shadow:inset 3px 3px #fffbed,inset -3px -3px #dfb869,2px 3px #31517355}50%{box-shadow:inset 3px 3px #fffbed,inset -3px -3px #dfb869,inset 0 0 17px #edb94c99,2px 3px #31517355,0 0 7px #edb94c77}}@keyframes chest-stock-nudge{0%,72%,to{transform:translateY(0)rotate(0)}80%{transform:translateY(-2px)rotate(-4deg)}88%{transform:translateY(-2px)rotate(4deg)}}.machine-dot{background:var(--machine-color);border:2px solid #2c4763;flex-shrink:0;width:13px;height:13px}.installed-chip>div{flex:1;min-width:0}.installed-chip strong{font-size:16px;display:block}.installed-chip span:not(.machine-dot){font:14px/1.5 var(--game-font);color:#314d6a;display:block}progress{accent-color:#477d9f;border:1px solid #477397;width:100%;height:6px;display:block}progress::-webkit-progress-bar{background:#c7ddee}progress::-webkit-progress-value{background:var(--machine-color)}.workbench{min-width:0}.tabs{gap:7px;margin-bottom:18px;display:flex}.tabs button{border-width:10px;flex:1;min-height:48px;padding:1px 4px;font-size:16px}.shop-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 9px;display:grid}.shop-card{border-width:11px;border-image-width:13px 15px;padding:8px 3px 0}.machine-intro{text-align:center;flex-direction:column;align-items:center;gap:9px;display:flex}.machine-icon{flex-shrink:0;width:130px;max-width:100%;height:143px}.machine-icon svg{width:100%;height:100%}.machine-intro h3{font-size:16px;line-height:1.4}.machine-specs{grid-template-columns:repeat(3,1fr);gap:3px;margin:8px 0;display:grid}.machine-specs div{text-align:center;background:#d4e9f8;border:1px solid #829fbf;padding:5px 2px;box-shadow:inset 1px 1px #fff}.machine-specs dt{color:#274867;white-space:nowrap;font-size:16px}.machine-specs dd{font:700 17px/1.5 var(--game-font);color:#162d47;margin:0}.machine-specs small{font:12px var(--game-font);margin-left:1px}.drop-icons{background:#edf8ff;border:1px solid #a9bfd2;justify-content:center;align-items:center;gap:7px;min-height:38px;margin:6px 0 9px;padding:4px;display:flex}.drop-icons img{object-fit:contain;width:26px;height:28px}.buy-button{border-width:9px;border-image-width:17px 20px;justify-content:center;align-items:center;gap:4px;width:100%;min-height:46px;padding:1px 0;font-size:16px;display:flex}.buy-button img{object-fit:contain;width:20px;height:20px}.odds-button{margin:1px auto;font-size:16px;display:block}.equipment-panel{margin-top:22px;padding:10px 4px}.equipment-panel h2{text-align:center;margin:4px 0;font-size:22px}.equipment-stage{background:radial-gradient(at 38% 75%,#fff4d5,#0000 65%);height:345px;position:relative}.equipment-avatar{width:162px;height:322px;image-rendering:pixelated;background-position:0 0;background-repeat:no-repeat;background-size:298.252% 100%;position:absolute;top:0;left:21px}.equipment-slots{gap:7px;width:155px;display:grid;position:absolute;top:10px;right:5px}.equipment-slot{text-align:left;background:#edf8ff;border:2px solid #7696b1;grid-template-columns:42px minmax(0,1fr);align-items:center;column-gap:5px;min-height:59px;padding:4px;display:grid}.equipment-slot>span{color:#294867;grid-column:2;font-size:16px}.equipment-slot>div{color:#54718b;background:url(./equipment_slot-BoEFhhkJ.png) 50%/100% 100%;grid-area:1/1/span 2;place-items:center;width:42px;height:42px;font-size:28px;display:grid}.equipment-slot>div img{object-fit:contain;width:34px;height:34px}.equipment-slot small{color:#263e58;white-space:nowrap;text-overflow:ellipsis;font-size:14px;display:block;overflow:hidden}.equipment-bonus{background:#e4f4ff;border:1px solid #7c9dbb;flex-wrap:wrap;gap:5px 14px;margin:5px 7px 18px;padding:7px;font-size:14px;display:flex}.chest-stock{background:#fff4d5;border:2px solid #ab8749;margin:12px 4px;padding:5px}.chest-stock h3{justify-content:space-between;display:flex}.chest-stock-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.chest-stock-button{color:#263e58;text-align:left;background:#fffbe9;border:2px solid #ae9059;flex-wrap:wrap;align-items:center;gap:5px;padding:5px;display:flex}.chest-stock-button:disabled{opacity:.55}.chest-stock-button svg{flex-shrink:0;width:32px;height:32px}.chest-stock-button span{flex:1;min-width:0;font-size:13px}.chest-stock-button b{display:block}.chest-stock-button small{text-align:right;width:100%;font-size:14px}.loot-section{margin:7px 4px}.loot-section summary{cursor:pointer;padding:7px 3px;font-size:16px}.gear-list{gap:7px;display:grid}.loot-card{color:#243b57;text-align:left;background:#edf8ff;border:2px solid #87a7bf;align-items:center;gap:9px;width:100%;min-width:0;padding:8px;display:flex}.loot-card>img{object-fit:contain;flex-shrink:0;width:46px;height:46px}.loot-card>span{flex:1;min-width:0}.loot-card strong{font-size:16px;display:block}.loot-card small{font-size:14px;display:block}.rarity-tag{border-left:5px solid var(--rarity);color:#263e58;font:700 12px var(--game-font);background:#fff;margin:3px 5px 3px 0;padding:1px 5px;display:inline-block}.worn-label{color:#275f56;flex-shrink:0;font-size:12px}.mod-grid{gap:7px;margin:10px 0;display:grid}.mod-slot{min-height:65px}.mod-slot>b{color:#698796;font-size:28px}.wear-actions{flex-wrap:wrap;gap:7px;margin-top:17px;display:flex}.gear-effect{color:#234660;margin:8px 0 17px;font-size:16px}.chest-result-icon svg{width:65px;height:65px}.chest-reward{margin:10px 0}.empty-bag{color:#476680;padding:12px}.avatar-accessories{pointer-events:none;width:162px;height:322px;position:absolute;top:0;left:21px}.equipped-charm{object-fit:contain;width:19px;height:19px;position:absolute;top:180px;left:73px}.equipped-wand{object-fit:contain;width:63px;height:93px;position:absolute;top:164px;left:133px;transform:rotate(-15deg)}.equipment-panel h3{margin:9px 6px;font-size:16px}.inventory-list{gap:7px;display:grid}.inventory-item{background:#edf8ff;border:2px solid #8da9c2;align-items:center;gap:8px;padding:8px;display:flex}.item-icon{place-items:center;width:32px;height:32px;display:grid}.item-icon img{object-fit:contain;width:32px;height:32px}.inventory-item>div{flex:1}.inventory-item strong{font-size:16px;display:block}.inventory-item small{color:#315675;font-size:16px}.item-count{font:700 14px var(--game-font);color:#203b58}footer{justify-content:center;margin:16px 0 6px;font-size:16px;display:flex}footer a{color:#173653;text-shadow:0 1px #fff}dialog{color:#17314e;text-align:center;background:#edf8ff;border:18px solid #0000;border-image:url(./header_panel-DUsdc_Mn.png) 25 35 24 fill/18px 22px;width:calc(100% - 28px);max-width:440px;max-height:calc(100dvh - 36px);padding:20px 12px 10px;overflow-y:auto;box-shadow:5px 8px #12385488}dialog::backdrop{background:#16477970}dialog h2{margin:8px 0 13px;font-size:23px}dialog p{color:#24415f;font-size:16px;line-height:1.9}.modal-machine{width:85px;height:85px;margin:auto}.modal-machine svg{width:100%;height:100%}.modal-close{width:100%;margin-top:15px}.odds-list{text-align:left;margin-top:14px}.odds-list>div{border-bottom:1px solid #87a9c7;justify-content:space-between;gap:8px;padding:11px 2px;font-size:16px;display:flex}.odds-list strong{font:700 14px var(--game-font)}.setting-row{border-bottom:1px solid #86a6c0;justify-content:space-between;align-items:center;padding:11px 0;font-size:16px;display:flex}.setting-row select{color:#173b5f;background:#fff;border:2px solid #6f97b6;padding:5px}.setting-row input[type=checkbox]{width:21px;height:21px}.setting-row input[type=range]{accent-color:#375e89;width:46%}.pickup-sound-settings{background:linear-gradient(#fffdf2,#e3f2fc);border:2px solid #9bb5c7;margin:16px 0 8px;padding:12px 8px}.pickup-sound-settings legend{color:#294a6a;padding:0 8px;font-size:16px}.pickup-sound-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.pickup-sound-choice{color:#254663;background:#f8fcff;border:2px solid #82a1b8;min-height:48px;padding:7px 3px;font-family:inherit;font-size:14px;font-weight:700;line-height:1.4;box-shadow:inset 2px 2px #fff,0 2px #7190a8}.pickup-sound-choice[aria-pressed=true]{color:#6c4618;background:linear-gradient(#fff8d6,#ffe699);border-color:#b38b42;box-shadow:inset 0 0 0 2px #fff9db,0 2px #997239}.controls-help{text-align:left;margin-top:15px;font-size:16px}.controls-help p{padding-top:8px}.loot-fly{z-index:10000;pointer-events:none;will-change:transform;width:34px;height:34px;position:fixed;top:0;left:0}.loot-fly img{object-fit:contain;width:34px;height:34px}.loot-fly b{font:700 13px var(--game-font);color:#382508;white-space:nowrap;background:#fff0b9;border:1px solid #9c7927;padding:1px 3px;position:absolute;top:31px;left:50%;transform:translate(-50%)}.item-flight b{color:#1b3357;background:#e7f7ff;border-color:#7798b9}.reduced-motion *{scroll-behavior:auto!important;animation:none!important}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fallback-grid{grid-template-columns:repeat(5,1fr);gap:5px;max-width:340px;margin:20px auto 10px;padding:9px;display:grid}.fallback-grid button{color:#fff;background:#566579;border:2px solid #5c809e;height:40px}.fallback-grid .unlocked{color:#213c55;background:#edf9ff}.fallback-grid .available{color:#173e38;background:#37c7ae}.fallback-grid .buyable{color:#493711;background:#ffbf35}.fallback-grid .selected{outline-offset:-3px;outline:3px solid #ecae28}.fallback-grid .selected.invalid{background:#ee657a;outline-color:#c93449}.fallback-capsules{flex-wrap:wrap;gap:5px;max-height:150px;padding:10px;display:flex;overflow-y:auto}.fallback-capsules button{color:#234a75;background:#d0e7f9;border:1px solid #658bb0;min-width:28px;min-height:28px}.fatal{background:#edfaff;border:2px solid #517a9b;max-width:500px;margin:12vh auto;padding:25px}.fatal h1{font-size:23px}.fatal p{margin:15px 0;line-height:1.9}.fatal button{padding:12px 25px}@media (width<=1100px) and (width>=781px){.workspace{grid-template-columns:minmax(0,1fr) 285px;gap:12px}.shell{padding:12px}.header h1{font-size:24px}.brand-logo{width:190px}.machine-icon{width:122px}.machine-intro h3{font-size:16px}}@media (width<=780px){.shell{max-width:none;padding:10px}.header{grid-template-columns:1fr auto;gap:0 10px;padding-bottom:9px;display:grid}.brand-logo{grid-column:1;width:185px}.header h1{background:0 0;grid-column:1;margin-top:3px;padding:2px 0;font-size:23px}.icon-button{grid-area:1/2/span 2;width:42px;height:42px}.stats{margin-top:13px;padding:5px 2px}.stats:before{width:62px;left:calc(50% - 31px)}.stat.primary{flex:1.55;justify-content:center;gap:3px}.coin-icon{width:24px;height:24px}.save-status{display:none}.stat strong{font-size:21px}.stat.primary strong{font-size:19px}.stat>span,.stat div>span{font-size:16px}.workspace{flex-direction:column;gap:22px;display:flex}.world-card,.workbench{width:100%}.world-heading{padding:5px 2px}.world-heading h2{font-size:20px}.view-controls{gap:5px;padding:0 2px 8px}.view-controls .compact{padding:0 5px}.zoom-button{min-width:31px}.mode-bar{flex-wrap:wrap;margin:0 2px;font-size:16px}.scene{height:clamp(420px,65svh,620px)}.expand-button{width:100%}.expansion-strip{margin:0 2px 12px}.mode-legend{gap:7px 9px;padding:9px 3px 0}.installed-heading{padding:0 3px 7px}.installed-list{margin:0 2px}.equipment-stage{max-width:360px;margin:auto}.equipment-avatar,.avatar-accessories{left:24px}.equipment-slots{right:15px}}@media (width<=350px){.shell{padding:9px 7px}.brand-logo{width:170px}.header h1{font-size:20px}.stat strong{font-size:18px}.stat.primary strong,.stat>span,.stat div>span{font-size:16px}.world-card{border-width:13px}.scene{height:420px}.expand-button{gap:7px;padding:9px 10px}.tile-trade,.tile-gain{gap:4px}.tile-trade img{width:23px;height:23px}.tile-trade strong,.trade-arrow{font-size:18px}.tile-gain .tile-symbol{width:26px;height:29px;font-size:20px}.tile-gain b{font-size:15px}.shop-list{gap:14px 6px}.shop-card{border-width:9px;padding:7px 0 0}.machine-intro{gap:5px}.machine-intro h3{min-height:45px;font-size:16px}.machine-icon{width:98px;height:121px}.machine-specs dt{font-size:16px}.machine-specs dd{font-size:15px}.buy-button{font-size:16px}.drop-icons{gap:5px}.drop-icons img{width:21px}.equipment-avatar,.avatar-accessories{width:142px;height:282px;left:0}.equipment-slots{width:128px;right:0}.equipment-stage{height:345px}.inventory-item{gap:5px;padding:7px 4px}.inventory-item strong{font-size:16px}.inventory-item .compact{padding:0 4px}dialog{border-width:13px;padding:15px 6px 8px}}.equipment-panel .equipment-stage{background:radial-gradient(at 78% 58%,#fff5db,#0000 52%);max-width:660px;height:auto;margin:0 auto}.equipment-profile{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:center;gap:12px;margin:12px 0 20px;display:grid}.dressup-avatar{aspect-ratio:1;width:100%;max-width:350px;height:auto;image-rendering:pixelated;margin:0 0 0 auto;display:block}.equipment-status{background:linear-gradient(135deg,#fff9e5,#e9f5ff);border:3px double #b79756;padding:15px 12px;box-shadow:inset 0 0 0 2px #fffdf4,0 3px #42658926}.equipment-status h3{text-align:center;color:#80571e;margin:0 0 10px;font-size:18px}.equipment-status .equipment-bonus{background:0 0;border:0;gap:8px;margin:0;padding:0;display:grid}.equipment-bonus>span{grid-template-columns:24px 1fr auto;align-items:center;gap:6px;font-size:15px;display:grid}.equipment-bonus strong{font-variant-numeric:tabular-nums;color:#284977;white-space:nowrap;font-size:16px}.equipment-unique{border-top:2px dotted #cead6b;gap:6px;margin-top:12px;padding-top:10px;display:grid}.equipment-unique h4{color:#926025;margin:0 0 2px;font-size:14px}.unique-effect{color:var(--effect-color);border-left:3px solid var(--effect-color);background:#fffdf1;grid-template-columns:24px 1fr auto;align-items:center;gap:5px;padding:5px;font-size:13px;font-weight:700;display:grid}.unique-effect img{object-fit:contain;width:24px;height:24px}.unique-effect strong{white-space:nowrap;font:700 15px var(--game-font)}.gear-unique{margin:10px 0 16px}.equipment-slots{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;width:100%;display:grid;position:static}.equipment-slot{text-align:center;background:0 0;border:0;flex-direction:column;justify-content:start;gap:4px;min-width:0;min-height:0;padding:3px 0;display:flex}.equipment-slot>span{white-space:nowrap;font-size:14px}html[lang=en] .equipment-slot>span{font-size:12px}.equipment-slot>div{aspect-ratio:1;background:url(./equipment_slot-BoEFhhkJ.png) 50%/contain no-repeat;grid-area:auto;place-items:center;width:100%;max-width:62px;height:auto;display:grid}.equipment-slot small{max-width:100%;margin:0;font-size:12px}.equipment-actions{gap:12px;margin:12px 4px 4px;display:grid}.owned-button{width:100%;min-height:47px;font-size:18px}.equipment-bonus img{object-fit:contain;width:24px;height:24px}@media (width<=479px){.equipment-profile{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px;margin:10px 0 15px}.equipment-status{padding:10px 5px}.equipment-status h3{margin-bottom:10px;font-size:15px}.equipment-bonus>span{grid-template-columns:18px minmax(0,1fr) auto;gap:2px 3px;font-size:12px}.equipment-bonus img{width:18px;height:18px}.equipment-bonus strong{font-size:13px}.unique-effect{grid-template-columns:18px minmax(0,1fr) auto;gap:2px 3px;padding:4px 2px;font-size:11px;line-height:1.45}.unique-effect img{width:18px;height:18px}.unique-effect strong,.equipment-unique h4{font-size:12px}.equipment-unique{gap:5px}}.owned-panel{max-width:690px;margin:24px auto;padding:16px 8px}.inventory-heading{align-items:center;gap:14px;margin:0 3px 16px;display:flex}.inventory-heading h2{font-size:23px}.inventory-tabs{gap:8px;margin:8px 3px 20px;display:flex}.inventory-tabs button{flex:1}.inventory-tabs button[aria-pressed=true]{outline-offset:2px;outline:3px solid #d6ab51}.owned-list{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;display:grid}.owned-list .loot-card{min-height:85px}.loot-card{position:relative}.loot-info{flex:1;min-width:0}.loot-quantity{color:#243c57;font:700 15px var(--game-font);background:#ffedb2;border:1px solid #b89754;flex-shrink:0;padding:2px 5px}.loot-card .worn-label{color:#25664e;background:#d6f4e8;border:1px solid #78b69f;padding:1px 4px;font-size:11px;position:absolute;top:3px;right:4px}.material-sockets{align-items:center;gap:4px;margin-top:5px;display:flex}.material-socket{background:0 0;border:0;flex:0 0 25px;width:25px;height:25px;padding:0;display:block}.material-socket .rarity-icon{width:100%;height:100%}.socket-placeholder{background:radial-gradient(#b2d2e380 0,#0000 66%);width:100%;height:100%;display:block;position:relative}.socket-placeholder img{width:100%;height:100%;image-rendering:pixelated;display:block}.socket-placeholder b{color:#648aa6;place-items:center;font-size:19px;display:grid;position:absolute;inset:0}.mod-none{color:#7891a6;font-size:12px}.material-sockets.interactive{justify-content:center;gap:10px;margin:12px 0 20px}.interactive .material-socket{cursor:pointer;flex-basis:64px;width:64px;height:64px;min-height:0}.interactive .material-socket:hover{filter:drop-shadow(0 0 3px #539acf)}.interactive .material-socket:focus-visible{outline-offset:3px;outline:2px solid #518dc0}.interactive .socket-placeholder b{font-size:27px}.unequip-first{width:100%;margin:0 0 15px;display:block}.picker-equipped{background:linear-gradient(#f5fff8,#e2f2eb);border:2px solid #8cb7a5;margin-bottom:12px;padding:10px 8px;box-shadow:inset 1px 1px #fff}.picker-equipped h3{color:#28644d;text-align:left;margin:0 3px 6px;font-size:14px}.picker-equipped>.loot-card{background:0 0;border:0;margin:0;padding:6px}.picker-equipped .material-sockets.interactive{gap:7px;margin:10px 0 4px}.picker-equipped .interactive .material-socket{aspect-ratio:1;flex:0 56px;width:56px;min-width:44px;height:auto}.equipment-comparison{gap:6px;margin:12px 0 20px;display:grid}#keep-equipment{margin:12px auto 0;display:block}dialog.dialog-top-close>form{position:absolute;top:3px;right:5px}dialog.dialog-top-close{padding-top:32px}dialog.dialog-top-close .modal-close{width:32px;min-width:32px;height:32px;min-height:32px;font:700 23px var(--game-font);background:#e5f4ff;border:2px solid #7392ae;border-image:;padding:0;box-shadow:inset 1px 1px #fff}.rarity-icon{isolation:isolate;width:54px;height:54px;color:var(--rarity);flex-shrink:0;display:block;position:relative}.rarity-icon>img,.equipment-slot .rarity-icon>img{object-fit:contain;width:100%;height:100%;image-rendering:pixelated;position:absolute;inset:0}.rarity-icon>.rarity-art,.equipment-slot .rarity-icon>.rarity-art{width:82%;height:82%;inset:9%}.rarity-icon.material-icon>.rarity-art{width:64%;height:64%;inset:18%}.material-icon .prestige-corners{inset:16%;transform:rotate(45deg)}.equipment-slot .rarity-icon{width:100%;height:100%}.loot-card>.rarity-icon{flex:0 0 54px;min-width:54px}.rarity-glow{-webkit-mask-image:var(--frame);mask-image:var(--frame);opacity:.3;pointer-events:none;position:absolute;inset:0;overflow:hidden;-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.rarity-glow>i{background:conic-gradient(transparent 35%,var(--rarity) 42%,#fff 50%,transparent 60%);animation:6s linear infinite rarity-sweep;position:absolute;inset:-22%}.rarity-glow.rainbow{opacity:.62}.rarity-glow.rainbow>i{background:conic-gradient(#ff7171,#ffd46b,#70dbad,#71d8ff,#bf92ff,#ff8ed2,#ff7171)}.rarity-spark{width:7px;height:7px;color:var(--spark);animation:2.8s ease-in-out infinite rarity-twinkle;animation-delay:var(--delay);pointer-events:none;position:absolute;transform:translate(-50%,-50%)}.rarity-spark:before,.rarity-spark:after{content:"";background:currentColor;position:absolute;box-shadow:0 0 1px #527399}.rarity-spark:before{width:7px;height:1px;top:3px;left:0}.rarity-spark:after{width:1px;height:7px;top:0;left:3px}.prestige-orbit{fill:currentColor;pointer-events:none;width:100%;height:100%;animation:9s linear infinite rarity-sweep;position:absolute;inset:0}.rarity-icon[data-rarity="8"]{color:#ffe49a}.rarity-icon[data-rarity="9"]{color:#ffbdf1}.prestige-corners{pointer-events:none;box-shadow:0 0 3px var(--rarity);border:1px solid;position:absolute;inset:5%}.material-icon .prestige-corners{inset:16%}.reduced-motion .rarity-glow>i,.reduced-motion .rarity-spark,.reduced-motion .prestige-orbit{animation:none!important}.collection-dialog{width:calc(100% - 28px);max-width:760px;padding:14px 12px}.collection-close-bar{z-index:6;pointer-events:none;justify-content:flex-end;height:0;display:flex;position:sticky;top:0}.corner-close{pointer-events:auto;width:32px;height:32px;font:700 23px var(--game-font);background:#e5f4ff;border:2px solid #7392ae;padding:0;box-shadow:inset 1px 1px #fff}.collection-dialog .inventory-heading{padding-right:38px}.collection-dialog .owned-panel,.collection-dialog .chests-panel{max-width:none;margin:0;padding:0}.collection-dialog::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#16477988}#equip-now{color:#fffaf1;text-shadow:0 1px #88394e;background:#e9677b;border:3px solid #8f3f53;border-image:;width:100%;min-height:51px;padding:9px;font-size:18px;box-shadow:inset 3px 3px #ffa1b2,inset -3px -3px #c6435e}#equip-now:disabled{opacity:.65}.equipment-panel{scroll-margin-top:100px}@keyframes rarity-sweep{to{transform:rotate(360deg)}}@keyframes rarity-twinkle{0%,to{opacity:.25;scale:.75}50%{opacity:.95;scale:1.25}}.machine-progress-layer{pointer-events:none;z-index:3;position:absolute;inset:0;overflow:hidden}.machine-progress{filter:drop-shadow(0 1px 1px #233e6680);height:6px;position:absolute;top:0;left:0}.progress-track{background:#3287e036;width:100%;height:6px;display:block}.progress-track>i{background:#2588f5;height:100%;display:block}.machine-progress.ready .progress-track>i{background:#ee475a}@media (width<=350px){.equipment-stage{height:auto}.equipment-slots{width:100%}.equipment-slot>span{font-size:13px}.owned-panel{padding:12px 3px}.inventory-heading{gap:8px}.inventory-heading h2{font-size:19px}.owned-list{grid-template-columns:minmax(0,1fr)}.inventory-tabs{gap:6px}.inventory-tabs button{padding:0 4px;font-size:15px}.interactive .material-socket{flex-basis:52px;width:52px;height:52px}.material-sockets.interactive{gap:7px}.loot-quantity{font-size:13px}.collection-dialog{padding:12px 5px}.machine-stock-list{grid-template-columns:minmax(0,1fr)}.machine-stock{margin:15px 0 3px}}.chests-panel{max-width:760px;margin:24px auto;padding:16px 12px}.chests-panel .inventory-heading{flex-wrap:wrap}.chest-stock-count{align-items:center;gap:7px;margin-left:auto;display:flex}.chest-stock-count svg{width:30px;height:30px}.chest-stock-count b{font:700 20px var(--game-font)}.chest-stage{isolation:isolate;background:radial-gradient(at 50% 85%,#e5f6fe 12%,#effaff 54%,#cde5f7 100%);border:2px solid #789dbb;height:300px;position:relative;overflow:hidden;box-shadow:inset 0 0 0 3px #fff8}.chest-stage-arch{border:8px solid #b4d5ee6b;border-radius:48% 48% 0 0;width:250px;height:240px;position:absolute;top:12px;left:calc(50% - 125px);box-shadow:0 0 0 3px #fff7,inset 0 0 0 3px #fff7}.chest-platform{background:linear-gradient(#d5f3fc 60%,#a8d4e5 65%);border:3px solid #7dacc4;border-radius:50%;width:210px;height:40px;position:absolute;top:239px;left:calc(50% - 105px);box-shadow:0 5px #7aa5bd44,inset 0 2px #fff}.chest-sprite{z-index:2;touch-action:manipulation;background:0 0;width:170px;padding:0;position:absolute;bottom:25px;left:calc(50% - 85px)}.chest-sprite:disabled{filter:none}.opening-chest{width:100%;display:block;overflow:visible}.chest-lid,.chest-lid-shell{transform-box:view-box;transform-origin:48px 43px}.chest-lid{opacity:0;transform:rotateX(90deg)}.chest-inside-light{opacity:0}.charging .chest-sprite{animation:chest-charge var(--charge) ease-in-out both;filter:drop-shadow(0 0 6px var(--glow))}.reveal .chest-lid,.results .chest-lid{opacity:1;transform:rotateX(180deg)}.reveal .chest-lid-shell,.results .chest-lid-shell{opacity:0;transform:rotateX(-90deg)}.reveal .chest-lid{animation:.35s cubic-bezier(.16,.8,.3,1) both chest-lid-open}.reveal .chest-lid-shell{animation:.25s ease-out both chest-lid-shell-open}.reveal .chest-inside-light,.results .chest-inside-light{opacity:1}.chest-aura{background:radial-gradient(circle,#fff 0%,color-mix(in srgb,var(--glow) 35%,transparent) 28%,transparent 70%);border-radius:50%;width:230px;height:230px;position:absolute;top:49px;left:calc(50% - 115px)}.rainbow .chest-aura{background:radial-gradient(circle,#fff7 10%,#8bd6ff66 28%,#d3a3ff44 48%,#0000 70%);animation:1.3s ease-out both chest-halo}.celestial .chest-aura{width:290px;height:290px;top:21px;left:calc(50% - 145px)}.prestige .chest-stage-arch{border-color:color-mix(in srgb,var(--glow) 35%,transparent);box-shadow:0 0 15px var(--glow),inset 0 0 10px #fff}.chest-rays{z-index:-1;background:repeating-conic-gradient(from 8deg,#fff5 0deg 2deg,transparent 3deg var(--ray-step));opacity:.6;position:absolute;inset:12px}.chest-stage[data-rarity="0"] .chest-rays{display:none}.chest-rings{position:absolute;top:145px;left:50%}.chest-rings i{width:calc(135px + var(--ring)*31px);height:calc(135px + var(--ring)*31px);left:calc(-67.5px - var(--ring)*15.5px);top:calc(-67.5px - var(--ring)*15.5px);border:1px solid var(--glow);opacity:.5;transform:scaleY(.55) rotate(calc(var(--ring)*30deg));border-radius:50%;position:absolute}.chest-particles{z-index:3;pointer-events:none;contain:paint;position:absolute;inset:0;overflow:clip}.chest-particles i{width:var(--size);height:var(--size);color:var(--glow);transform:translate(var(--dx),var(--dy));background:#fff7e5;position:absolute;top:145px;left:50%}.chest-particles i:before,.chest-particles i:after{content:"";background:currentColor;position:absolute}.chest-particles i:before{width:calc(var(--size)*3);height:var(--size);left:calc(-1*var(--size))}.chest-particles i:after{height:calc(var(--size)*3);width:var(--size);top:calc(-1*var(--size))}.reveal .chest-particles i{animation:chest-particle-burst var(--burst) ease-out both;animation-delay:var(--delay)}.results .chest-particles{animation:1.8s ease-in-out infinite alternate chest-glint}.chest-feature{z-index:4;pointer-events:none;flex-direction:column;align-items:center;gap:8px;display:flex;position:absolute;top:12px;left:0;right:0}.chest-feature .rarity-icon{filter:drop-shadow(0 4px 4px #42628433);width:84px;height:84px}.chest-reward-button{pointer-events:auto;cursor:pointer;background:0 0;border:2px solid #0000;flex-direction:column;align-items:center;gap:8px;padding:3px;display:flex}.chest-reward-button:hover{background:#fff8;border-color:#c4a457}.chest-reward-button:focus-visible{outline-offset:2px;outline:3px solid #c58b2b}.chest-feature.converting{top:0}.chest-reward-button.converted{gap:2px}.chest-conversion{width:84px;height:84px;display:block;position:relative}.converted .chest-conversion,.converted .rarity-icon{width:72px;height:72px}.conversion-origin{opacity:.2;position:absolute;inset:0;transform:scale(.55)}.conversion-coin{filter:drop-shadow(0 3px #9f69274d);place-items:center;display:grid;position:absolute;inset:6px}.conversion-coin img{object-fit:contain;width:68px;height:68px}.converted .conversion-coin{inset:5px}.converted .conversion-coin img{width:62px;height:62px}.conversion-label{color:#694210;line-height:1;font:700 19px var(--game-font);background:#fff0bf;border:2px solid #b98a37;align-items:center;gap:4px;padding:3px 10px;display:flex;box-shadow:inset 1px 1px #fffbe2}.conversion-label img{width:19px;height:19px}.conversion-note{color:#594223;background:#fff3d9e8;padding:2px 6px;font-size:13px}.converted-coins{color:#906013;font:700 17px var(--game-font);align-items:center;gap:4px;display:flex}.converted-coins img{width:20px;height:20px}.reveal .conversion-origin{animation:.75s ease-in-out both duplicate-transform}.reveal .conversion-coin{animation:.75s ease-out both duplicate-coin-pop}.results .conversion-coin{animation:.45s ease-out both duplicate-coin-settle}.chest-feature-label{text-shadow:0 1px #142a41;background:#173453;border:1px solid #456588;padding:2px 12px;font-size:17px}.reveal .chest-feature{animation:.5s ease-out both chest-reward-rise}.chest-opening-actions{gap:12px;margin:18px 0 22px;display:flex}.chest-opening-actions button{flex:1;min-width:0}.chest-open-all{color:#534022;text-shadow:0 1px #fffbed;background:#fff1c3;border:4px solid #aa8544;border-image:;padding:6px;box-shadow:inset 2px 2px #fffbed,inset -2px -2px #e2bd6b,2px 3px #36546c44}.chest-results-heading{justify-content:space-between;align-items:center;gap:10px;margin:0 2px 12px;display:flex}.chest-results-heading h3{font-size:20px}.chest-results-heading b{font-family:var(--game-font)}.chest-reward-list{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;display:grid}.chest-reward-list .loot-card{min-height:87px}.stat.chest-stat{gap:3px}.chest-stat-info{align-items:center;gap:6px;display:flex}.chest-stat-info img{width:27px;height:27px}.reduced-motion .chest-stage *,.reduced-motion .chest-stage :before,.reduced-motion .chest-stage :after,.reduced-motion .chest-stage:after{animation:none!important}@keyframes chest-charge{0%{transform:translateY(0)}50%{transform:translateY(-5px)scale(1.02)}to{transform:translateY(-2px)}}@keyframes chest-lid-open{0%{opacity:.2;transform:rotateX(90deg)}to{opacity:1;transform:rotateX(180deg)}}@keyframes chest-lid-shell-open{0%{opacity:1;transform:rotateX(0)}to{opacity:0;transform:rotateX(-90deg)}}@keyframes chest-particle-burst{0%{opacity:0;transform:translateY(20px)scale(.2)}25%{opacity:1}to{opacity:.8;transform:translate(var(--dx),var(--dy))}}@keyframes chest-reward-rise{0%{opacity:0;transform:translateY(80px)scale(.3)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes chest-glint{0%{opacity:.35}to{opacity:.9}}@keyframes chest-halo{0%{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}@keyframes duplicate-transform{0%,28%{opacity:1;transform:scale(1)rotateY(0)}65%{opacity:.45;transform:scale(.65)rotateY(180deg)}to{opacity:.2;transform:scale(.55)rotateY(360deg)}}@keyframes duplicate-coin-pop{0%,35%{opacity:0;transform:scale(.1)translateY(20px)}75%{opacity:1;transform:scale(1.16)translateY(-5px)}to{opacity:1;transform:scale(1)translateY(0)}}@keyframes duplicate-coin-settle{0%{transform:translateY(-8px)scale(1.1)}65%{transform:translateY(2px)scale(.95)}to{transform:translateY(0)scale(1)}}@media (width<=780px){.chest-stat-info img{width:21px;height:21px}.chest-stat-info{gap:3px}.stat.chest-stat{flex:1.1}.chest-stat>span{font-size:14px}.chest-stat strong{font-size:20px}.chest-top-open{min-height:25px;font-size:13px}.chests-panel{padding:12px 5px}.chest-opening-actions{gap:7px}}@media (width<=350px){.chests-panel .inventory-heading{gap:8px}.chests-panel h2{font-size:18px}.chest-stock-count{gap:3px}.chest-stock-count svg{width:23px;height:23px}.chest-stock-count b{font-size:16px}.chest-opening-actions{flex-direction:column}.chest-stage{height:280px}.chest-platform{top:220px}.chest-feature{gap:4px;top:4px}.chest-feature .rarity-icon{width:74px;height:74px}.chest-results-heading{flex-wrap:wrap}.chest-reward-list{grid-template-columns:minmax(0,1fr)}}.chest-odds-button{color:#624719;background:#fff3d3;border:2px solid #b89552;min-height:44px;padding:5px 12px;font-size:14px;font-weight:700;box-shadow:inset 0 0 0 2px #fffdf2}.chest-odds-table{border-collapse:collapse;text-align:left;width:100%;margin-top:12px;font-size:15px}.chest-odds-table th{color:#fff3d3;background:#244565;padding:8px}.chest-odds-table td{border-bottom:1px solid #c0d1df;padding:9px 7px}.chest-odds-table tr:nth-child(2n){background:#deedf780}.chest-odds-table td i{background:var(--rarity);width:12px;height:12px;box-shadow:0 0 4px var(--rarity);border:1px solid #fff;margin-right:9px;display:inline-block;transform:rotate(45deg)}.chest-odds-table td:last-child{text-align:right;font:700 15px var(--game-font);color:#243d59}.chest-odds-note{font-size:13px}.chest-stage.celebration{background:radial-gradient(ellipse at 50% 48%,#fff6d9 8%,color-mix(in srgb,var(--glow) 35%,#24345d) 57%,#182b51 100%);border-color:var(--glow);box-shadow:inset 0 0 0 2px #fff5,0 0 15px color-mix(in srgb,var(--glow) 40%,transparent)}.celebration:before{content:"";z-index:-1;pointer-events:none;background:radial-gradient(#fff6,#0000 70%);position:absolute;inset:0}.celebration:after{content:"";z-index:1;pointer-events:none;background:radial-gradient(circle at 15% 30%,#fff 0 2px,#0000 4px),radial-gradient(circle at 82% 22%,#fff0c0 0 3px,#0000 5px),radial-gradient(circle at 12% 74%,#fff 0 2px,#0000 4px),radial-gradient(circle at 86% 65%,#fff 0 2px,#0000 4px);animation:2.4s ease-in-out infinite celebration-glitter;position:absolute;inset:0}.celebration[data-rarity="7"],.celebration[data-rarity="8"],.celebration[data-rarity="9"]{background:radial-gradient(ellipse at 50% 43%,#fff4db 4%,color-mix(in srgb,var(--glow) 45%,#474674) 45%,#171e50 100%)}.celebration .chest-stage-arch{box-shadow:0 0 12px var(--glow);border-color:#ffe5a350}.celebration .chest-feature .rarity-icon{filter:none}.chest-chance-banner{z-index:5;min-width:126px;max-width:calc(100% - 38px);box-shadow:0 0 12px var(--glow),inset 0 0 8px #fff2;color:#fff0b3;pointer-events:none;background:linear-gradient(120deg,#253459,#142541,#354366);border:3px double #ffe39b;justify-content:center;align-items:center;gap:8px;padding:6px 14px;animation:.75s cubic-bezier(.2,1.4,.4,1) both chance-arrival;display:flex;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}.chest-chance-banner strong{font:400 32px/1 var(--game-font);font-kerning:none;font-variant-numeric:tabular-nums;color:#fff5c9;text-shadow:0 2px #694d26,0 0 8px var(--glow)}.chest-chance-banner i{color:#fff0b4;text-shadow:0 0 8px var(--glow);font-size:30px;font-style:normal;animation:2.2s ease-in-out infinite chance-star;position:absolute}.chest-chance-banner i:first-of-type{top:-14px;left:-18px}.chest-chance-banner i:last-of-type{animation-delay:.8s;bottom:-13px;right:-17px}@keyframes chance-arrival{0%{opacity:0;transform:translate(-50%)translateY(30px)scale(.4)}60%{opacity:1;transform:translate(-50%)translateY(-6px)scale(1.1)}to{opacity:1;transform:translate(-50%)translateY(0)scale(1)}}@keyframes chance-star{50%{opacity:.6;transform:rotate(35deg)scale(.65)}}@keyframes celebration-glitter{50%{opacity:.35}}@media (width<=420px){.chest-chance-banner{gap:5px;width:max-content;min-width:0;padding:5px 9px}.chest-odds-button{padding:4px 9px}.chest-stock-count{margin-left:0}}#chest-dialog::backdrop{-webkit-backdrop-filter:none;backdrop-filter:none}.chest-stage.prestige.celebration{overflow:visible}.chest-impact{z-index:0;pointer-events:none;background:repeating-conic-gradient(from 5deg at 50% 48%,#fff9 0deg 2deg,#0000 3deg 16deg,#ffdf7655 17deg 19deg,#0000 20deg 30deg);animation:.7s cubic-bezier(.15,.8,.3,1) both chest-impact-burst;position:absolute;inset:-18px -8px}.prestige .chest-rays{display:none}.chest-stage[data-rarity="9"] .chest-impact{background:repeating-conic-gradient(from 5deg at 50% 48%,#fff9 0deg 2deg,#0000 3deg 16deg,#a2f0ff88 17deg 19deg,#0000 20deg 30deg)}.chest-stage[data-rarity="9"] .chest-impact:after{content:"";background:repeating-conic-gradient(from 20deg at 50% 48%,#ff8ed277 0deg 3deg,#0000 4deg 30deg);animation:2.6s ease-in-out infinite chest-royal-pulse;position:absolute;inset:0}.prestige .chest-chance-banner{width:max-content;min-width:0;max-width:calc(100% - 20px);box-shadow:none;background:0 0;border:0;padding:0;bottom:4px}.prestige .chest-chance-banner strong{text-shadow:0 3px #17243d,2px 0 #17243d,-2px 0 #17243d,0 -2px #17243d;white-space:nowrap;font-size:48px}.chest-stage[data-rarity="9"] .chest-chance-banner strong{font-size:64px}.chance-digit{color:#ff8fa8;animation:1.6s ease-in-out infinite chance-rainbow-wave;animation-delay:calc(var(--digit)*65ms);display:inline-block}.chance-digit:nth-child(6n+2){color:#ffda75}.chance-digit:nth-child(6n+3){color:#8df1af}.chance-digit:nth-child(6n+4){color:#8eeaff}.chance-digit:nth-child(6n+5){color:#c2a6ff}.chance-digit:nth-child(6n){color:#ff9fe1}.chest-stage .rarity-glow,.chest-stage .rarity-spark,.chest-stage .prestige-orbit{display:none}.chest-stage .rarity-frame{filter:none}@keyframes chest-impact-burst{0%{opacity:0;transform:scale(.88)}45%{opacity:1;transform:scale(1.02)}to{opacity:.75;transform:scale(1)}}.results .chest-aura{animation:3.2s ease-in-out infinite alternate chest-result-breathe}.results .chest-impact{animation:3.6s ease-in-out infinite alternate chest-fan-breathe}@keyframes chest-royal-pulse{0%,to{opacity:.35;transform:scale(.96)}50%{opacity:.8;transform:scale(1)}}@keyframes chest-result-breathe{0%{opacity:.6;transform:scale(.96)}to{opacity:1;transform:scale(1.04)}}@keyframes chest-fan-breathe{0%{opacity:.6;transform:scale(.99)}to{opacity:.9;transform:scale(1.01)}}@keyframes chance-rainbow-wave{45%{opacity:.8;transform:translateY(-5px)scale(1.08)}}.effects-paused .chest-stage *,.effects-paused .chest-stage :before,.effects-paused .chest-stage :after,.effects-paused .chest-stage:after{animation-play-state:paused}@media (width>=600px){.prestige .chest-chance-banner strong{font-size:64px}.chest-stage[data-rarity="9"] .chest-chance-banner strong{font-size:80px}}@media (prefers-reduced-motion:reduce){.chest-stage *,.chest-stage :before,.chest-stage :after,.chest-stage:before,.chest-stage:after{animation:none!important}}.header{display:none}.stats{z-index:30;width:calc(100% - 28px);max-width:1664px;margin:0;position:fixed;top:8px;left:50%;transform:translate(-50%)}.workspace{display:block}.workbench{max-width:1120px;margin:auto}.tabs{display:none}#shop-panel .shop-list{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px;display:grid}.equipment-panel{max-width:760px;margin:auto}.world-card{max-width:1400px;margin:auto}.scene{height:clamp(300px,100dvh - 370px,780px)}.world-card.editing .scene{height:var(--edit-height,clamp(250px,calc(100dvh - 430px),690px))}.world-card.editing>.machine-stock:has(.empty-stock){display:none}.game-nav{z-index:35;padding:8px 12px max(9px,env(safe-area-inset-bottom));background:#dcedfbf5;border-top:4px solid #b39350;justify-content:center;align-items:flex-end;gap:14px;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -4px #fffbe1,0 -8px #244b6e44}.game-nav button{color:#244362;background:#e8f5ff;border:3px solid #567899;justify-content:center;align-items:center;gap:8px;width:190px;height:72px;display:flex;box-shadow:inset 3px 3px #fff,inset -3px -3px #adc9e2,2px 3px #2c4b6b55}.game-nav img{object-fit:contain;width:52px;height:52px}.game-nav b{font-size:18px}.game-nav .nav-home{background:#fff1c5;border-color:#a07b36;width:230px;height:91px;box-shadow:inset 3px 3px #fffcdf,inset -3px -3px #e3bd72,2px 3px #2c4b6b55}.game-nav [aria-current=page]{background:#fff1bc;border-color:#cc952f}.page-heading{text-align:center;color:#173452;margin:4px 0 20px;font-size:24px}.settings-floating{z-index:40;width:36px;height:36px;position:fixed;top:25px;right:20px}.stats{padding-right:58px}.save-status{display:none}.shop-card.locked{background:#d3e1f0}.locked .machine-icon{filter:brightness(0);opacity:.38}.locked .machine-intro h3{letter-spacing:3px}.locked-info{text-align:center;color:#496383;place-content:center;min-height:72px;font-size:15px;display:grid}.footprint-mini{gap:2px;margin:8px auto;display:grid}.footprint-mini i{background:#81bfda;border:1px solid #305773;width:11px;height:11px}.footprint-mini i.empty{background:0 0;border-color:#0000}.sweet-stock{background:#fff2f6;border-color:#cba5ba}.buff-label{color:#825328;margin-top:4px;font-size:13px;display:block}.buff-label img{vertical-align:middle;width:16px;height:16px}.loot-card>svg{width:64px;height:64px}.tutorial-note{z-index:47;color:#3b4354;pointer-events:none;background:#fff6d5;border:3px solid #b79547;align-items:center;gap:9px;width:max-content;max-width:calc(100% - 28px);padding:9px 14px;line-height:1.5;display:flex;position:fixed;bottom:119px;left:50%;transform:translate(-50%);box-shadow:2px 3px #304c6555}.tutorial-note b{flex:none}.tutorial-note span{min-width:0}.tutorial-ack{color:#614b28;min-height:44px;font:inherit;pointer-events:auto;background:#fffbed;border:2px solid #9b7638;flex:none;padding:4px 9px}.tutorial-note b{color:#962}.tutorial-hand{z-index:46;pointer-events:none;width:100px;animation:1.2s ease-in-out infinite tutorial-point;position:fixed}.tutorial-target{outline-offset:3px;outline:3px solid #edb83e!important}.tutorial-in-dialog .tutorial-note{font-size:14px}@keyframes tutorial-point{50%{transform:translate(6px,6px)}}.reduced-motion .tutorial-hand{animation:none}.debug-badge{z-index:42;font:12px var(--game-font);color:#673d0b;background:#fff2c4;border:1px solid #b48830;padding:3px 6px;position:fixed;top:105px;right:18px}.debug-actions{gap:12px;display:grid}.debug-actions label{flex-direction:column;gap:7px;display:flex}.debug-actions select{max-width:100%}.chest-kind-tabs{gap:8px;margin:0 0 14px;display:flex}.chest-kind-tabs button{background:#def0ff;border:2px solid #6386a2;flex:1;min-height:39px}.chest-kind-tabs [aria-pressed=true]{background:#fff1bb;border-color:#b48c43}.sweet-result{width:84px;height:84px;display:block}.sweet-result svg{width:100%;height:100%}.settings-licenses{text-align:center;margin:16px 0 4px}.settings-licenses a{color:#233e61}@media (width<=780px){.shell{padding:112px 9px 126px}.stats{width:calc(100% - 16px);min-height:85px;padding-right:39px}.settings-floating{width:29px;height:29px;top:30px;right:14px}.game-nav{gap:7px;padding:6px 7px 8px}.game-nav button{flex-direction:column;gap:0;width:29%;height:67px}.game-nav img{width:40px;height:40px}.game-nav b{font-size:15px}.game-nav .nav-home{width:35%;height:87px}.game-nav .nav-home img{width:59px;height:59px}.tutorial-note{font-size:14px;bottom:111px}.debug-badge{top:100px}.stat.primary{gap:4px}.stats .stat strong{font-size:20px}.stats .coin-icon{width:28px}.stats .stat>span,.stats .stat div>span{font-size:13px}.stats .stat.chest-stat{padding-right:13px}.stat.chest-stat:after{font-size:20px;right:2px}}.stats{min-height:108px}.chest-stat-info{justify-content:center;align-items:center;gap:5px;min-height:25px;display:flex}.chest-stat-info img{object-fit:contain;width:25px;height:25px}.stats .chest-stat-info strong{font-size:21px;line-height:1}.sweet-chest-info{border-top:1px solid #d5b574;padding-top:3px}.chest-stat-info>.chest-kind{flex-direction:column;align-items:center;min-width:48px;display:flex}.chest-kind small{white-space:nowrap;color:#244366;font-size:12px;font-weight:700;line-height:14px}.sweet-chest-info .chest-kind small,.sweet-chest-info strong{color:#793657}.chest-stat-info .chest-kind img{width:18px;height:18px}.chest-stat-info{justify-content:space-between;width:100%}.stat.chest-stat{background:0 0;border:6px solid #0000;border-image:url(./button_normal-B4ZuHpGL.png) 30 31 20 fill/9px 12px;min-width:101px;padding:6px 11px 6px 5px}.world-card.editing>.world-heading,.editing [data-delete-machine]{display:none}.scene-edit-controls{z-index:17;pointer-events:none;position:absolute;inset:0}.scene-edit-controls button{pointer-events:auto;touch-action:manipulation;color:#243c5c;filter:drop-shadow(2px 3px #21426166);min-width:48px;min-height:48px;font-weight:700}.scene-edit-close{background:#fff6de;border:4px double #bb8d42;position:absolute;top:10px;right:10px;box-shadow:inset 2px 2px #fff,inset -2px -2px #d7b278;font:30px/1 var(--game-font)!important}.scene-edit-confirm{position:absolute;bottom:10px;right:10px}.scene-edit-button{background:0 0;border:9px solid #0000;border-image:url(./button_normal-B4ZuHpGL.png) 30 31 20 fill/13px 18px;padding:8px 12px;font-size:17px}.scene-edit-button:active{border-image-source:url(./button_pressed-zQeHx55B.png)}.game-nav{padding-bottom:max(12px,env(safe-area-inset-bottom));background:linear-gradient(#e6f7ff,#badcf3);border-top:7px double #b59252;box-shadow:0 -3px #fff8df,0 -5px #20446d80}.game-nav button,.game-nav .nav-home{background:0 0;border:13px solid #0000;border-image:url(./button_normal-B4ZuHpGL.png) 30 31 20 fill/19px 25px;gap:6px;position:relative;box-shadow:2px 4px #264c713d}.game-nav img{filter:drop-shadow(0 2px #32507360);background:radial-gradient(circle,#fff9e8 10%,#effaff99 54%,#0000 68%)}.game-nav button[aria-current=page]{color:#fff4cf;text-shadow:1px 1px #254460;border-image-source:url(./button_pressed-zQeHx55B.png)}.game-nav .nav-home:before{content:"";pointer-events:none;background:url(./status_crest-CCtVnv90.png) 50%/contain no-repeat;width:62px;height:34px;position:absolute;top:-32px;left:50%;transform:translate(-50%)}.game-nav button:active{transform:translateY(2px)}.shop-card{background:linear-gradient(145deg,#fffdf0,#edf8ff);box-shadow:3px 5px #28507833}.machine-intro h3{color:#2e4365;text-shadow:1px 1px #fff;border-bottom:2px solid #cfb478;padding:5px 6px}.machine-specs{background:#e5f2fc;border-top:2px solid #fffaf0;border-bottom:2px solid #b6cddb;padding:8px 0}.footprint-mini{background:#fff8e0;border:2px solid #d4bc85;padding:6px;box-shadow:inset 1px 1px #fff}.stock-machine-card{background:linear-gradient(#f8fcff,#d9ecfc);border:3px double #7199b4;box-shadow:inset 2px 2px #fff9e5}.stock-machine-card.sweet-stock{background:linear-gradient(#fff9eb,#f8dce6);border-color:#bc8da8}.chest-kind-tabs button{background:0 0;border:7px solid #0000;border-image:url(./button_normal-B4ZuHpGL.png) 30 31 20 fill/12px 18px;min-height:48px}.chest-kind-tabs [aria-pressed=true]{color:#fff7d7;text-shadow:1px 1px #274368;border-image-source:url(./button_pressed-zQeHx55B.png)}@media (width<=780px){.shell{padding-top:140px;padding-bottom:140px}.stats{min-height:119px;padding-right:35px}.stat.primary{flex:1.25}.stat.chest-stat{flex:1.1;padding:1px 6px 1px 0}.stats .chest-stat-info strong{font-size:18px}.chest-stat-info img{width:23px;height:23px}.stat.chest-stat:after{font-size:21px;right:-4px}.settings-floating{width:44px;height:44px;top:18px;right:8px}.game-nav{gap:4px;padding-top:8px}.game-nav button{border-width:10px;gap:0;height:76px;padding:0}.game-nav .nav-home{height:94px;padding:0}.game-nav img{width:39px;height:39px}.game-nav .nav-home img{width:55px;height:55px}.game-nav .nav-home:before{width:51px;top:-28px}.game-nav b{font-size:15px;line-height:18px}.pixel-button.compact,.stock-store-button,.trash-button{min-height:44px}.view-controls{min-height:50px}#zoom-range{height:44px}#zoom-range::-webkit-slider-thumb{width:28px;height:28px;margin-top:-11px}.stock-machine-card{min-width:min(285px,100%)!important}.tutorial-note{bottom:124px}.scene-edit-close{top:8px;right:8px}.corner-close,dialog.dialog-top-close .modal-close{background:#fff6de;border:4px double #bb8d42;width:44px;min-width:44px;height:44px;min-height:44px;box-shadow:inset 2px 2px #fff}.collection-dialog .inventory-heading{padding-right:54px}dialog.dialog-top-close{padding-top:44px}.odds-button{min-width:80px;min-height:44px}}@media (prefers-reduced-motion:reduce){.game-nav button{transition:none}}@media (width<=359px){.stats .chest-stat-info strong{font-size:14px}.stat.chest-stat{min-width:94px}.stats .coin-icon{width:20px}.stats .stat.primary strong{font-size:16px}.stats .stat:not(.primary):not(.chest-stat) strong{font-size:17px}}.fallback-content{width:100%;max-height:100%;overflow:auto}.floor-stat{cursor:pointer;background:linear-gradient(#f5fcff,#d8edfa);border:3px double #bea05f;min-height:64px;position:relative;box-shadow:inset 1px 1px #fff9e5}.floor-stat:hover,.floor-stat:focus-visible{background:#fff4cb}.floor-upgrade-badge{color:#ad731d;text-shadow:1px 1px #fff9df;font-size:17px;line-height:18px;position:absolute;top:0;right:1px}.floor-capacity-trade{color:#48678b;justify-content:center;align-items:baseline;gap:18px;margin:22px 0;font-size:30px;display:flex}.floor-capacity-trade strong{color:#279879}.floor-capacity-trade small{font-size:16px}.performance-page{color:#203d60;background:#eef8ff;max-width:1000px;margin:auto;padding:16px}.performance-page h1{font-size:24px}.bench-controls{flex-wrap:wrap;align-items:end;gap:12px;display:flex}.bench-controls label{gap:5px;display:grid}.performance-page select{min-height:44px}.performance-page .scene{height:430px;min-height:0}.performance-page table{border-collapse:collapse;width:100%;font-size:13px}.performance-page th,.performance-page td{border:1px solid #88a9c4;padding:5px}@media (width>=480px){.chest-stat-info>.chest-kind{flex-direction:row;gap:6px}.chest-kind small{font-size:14px;line-height:20px}.chest-stat-info .chest-kind img{width:22px;height:22px}}.shell{padding-top:169px;padding-bottom:132px}.stats,.frame,.world-card,.shop-card{background:linear-gradient(135deg,#fffdf0f7,#e9f5fff5);border:3px solid #526a8a;box-shadow:inset 0 0 0 2px #e2c68b,inset 0 0 0 5px #fff8e8,2px 4px #25476e35}.stats{grid-template-rows:1fr;grid-template-columns:minmax(0,1.25fr) minmax(150px,1.1fr) minmax(80px,1fr);gap:2px 10px;min-height:143px;margin:0;padding:5px 54px 5px 18px;display:grid}.stats:before{display:none}.stats>.stat{border:0;min-width:0}.stat.primary{grid-template-columns:28px 1fr;gap:0 6px;display:grid}.stat.primary>div{display:contents}.stats .coin-icon{width:28px;height:28px}.stats .stat.primary strong{color:#704609;white-space:nowrap;grid-column:1/-1;font-size:24px}.stats .stat div>span{font-size:14px}.stats .stat:not(.primary):not(.chest-stat) strong{white-space:nowrap;font-size:27px}.stats .stat.chest-stat{width:148px;min-width:0;height:92px;box-shadow:none;filter:drop-shadow(0 2px #3a547040);background:url(./header-chest-panel-v1-DxpNOtRQ.png) 50%/contain no-repeat;border:0;border-image:;grid-template-columns:1fr 1fr;gap:6px;padding:30px 15px 18px;display:grid;position:relative}.stats .stat.chest-stat:hover{filter:drop-shadow(0 0 5px #f3c45a)brightness(1.08);background:url(./header-chest-panel-v1-DxpNOtRQ.png) 50%/contain no-repeat}.stat.chest-stat:after{display:none}.chest-stat-info,.sweet-chest-info{border:0;grid-template-rows:22px 15px;grid-template-columns:22px auto;justify-content:center;align-items:center;gap:2px 3px;width:100%;min-width:0;padding:0;display:grid}.chest-stat-info>.chest-kind{display:contents}.chest-stat-info .chest-kind img{image-rendering:auto;grid-area:1/1;width:22px;height:22px}.chest-stat-info .chest-kind small{text-align:center;white-space:nowrap;grid-area:2/1/auto/-1}.chest-kind small{font-size:12px;line-height:15px}.stats .chest-stat-info strong{grid-area:1/2;font-size:18px;line-height:19px}.stat.chest-stat.has-chests{animation:2.5s ease-in-out infinite treasury-glow}@keyframes treasury-glow{50%{filter:drop-shadow(0 0 7px #f3c45a)brightness(1.08)}}.rainbow-stock{background:0 0;border:0;align-items:center;gap:10px;width:max-content;min-height:35px;padding:0;display:flex;position:absolute;bottom:7px;left:18px}.rainbow-counter{justify-content:center;align-items:center;gap:6px;min-width:0;display:flex}.rainbow-counter img{object-fit:contain;image-rendering:auto;width:32px;height:32px}.rainbow-counter strong{font:700 18px/1.1 var(--game-font)}.rainbow-counter.red strong{color:#9f3056}.rainbow-counter.blue strong{color:#2d59a1}.rainbow-counter.green strong{color:#22795d}.save-status{font-size:11px;position:absolute;bottom:9px;right:12px}.stats .stat.chest-stat{grid-template-rows:1fr 1fr;grid-template-columns:1fr;justify-self:center;gap:2px;width:100%;max-width:200px;height:128px;padding:40px 42px 29px 32px}.stats .chest-stat-info{justify-content:space-between;align-items:center;gap:5px;min-height:23px;display:flex}.stats .chest-stat-info>.chest-kind{flex-direction:row;gap:5px;min-width:0;display:flex}.stats .chest-stat-info .chest-kind img{width:24px;height:24px}.stats .chest-kind small{font-size:14px;line-height:20px}.stats .chest-stat-info strong{color:#704609;text-align:center;font-variant-numeric:tabular-nums;background:#fff9e8;border:1px solid #d5b36b;border-radius:3px;flex:none;min-width:32px;padding:1px 4px;font-size:19px;line-height:23px}.stats .sweet-chest-info{border-top:0}.stats .stat.primary{align-self:start;margin-top:16px}.game-nav{padding:1px 10px max(7px,env(safe-area-inset-bottom));background:linear-gradient(#f2faffec,#c8e5f8fa);border-top:4px double #ab8a4c;align-items:end;gap:8px}.game-nav button,.game-nav .nav-home{appearance:none;width:106px;height:106px;box-shadow:none;color:#254168;text-shadow:0 1px #fffaf0;filter:drop-shadow(0 3px #34567850);background:0 0;border:0;border-image:;flex-direction:column;flex:none;justify-content:center;gap:1px;padding:34px 10px 14px;transition:filter .18s,transform .18s;display:flex;position:relative}.game-nav .nav-home{color:#fff4cf;text-shadow:1px 1px #20345e;width:121px;height:121px;padding:43px 10px 15px}.game-nav .nav-home:before{display:none}.game-nav img{object-fit:contain;image-rendering:auto;filter:drop-shadow(0 1px #ffffff80);background:0 0;width:36px;height:36px}.game-nav .nav-home img{width:46px;height:46px}.game-nav b{font-size:16px;line-height:20px}.game-nav button[aria-current=page]{color:#24406a;text-shadow:0 1px #fff;filter:drop-shadow(0 0 5px #fff3ab)drop-shadow(0 3px #44638b);background:0 0;border-image:;transform:translateY(-4px)}.game-nav .nav-home[aria-current=page]{color:#fff3c0;text-shadow:1px 1px #223961}.game-nav button[aria-current=page]:after{content:"";background:#e8b844;width:24px;height:3px;position:absolute;bottom:9px;left:calc(50% - 12px);box-shadow:0 1px #6b5228}.game-nav button:active:not(:disabled){transform:translateY(1px)}.pixel-button,.pixel-button.compact,.tabs button,.scene-edit-button,.chest-kind-tabs button{color:#203d63;text-shadow:0 1px #fff;background:linear-gradient(#fbfdff,#d8ebfa);border:3px solid #587393;min-height:48px;padding:8px 12px;box-shadow:inset 0 0 0 2px #fff7d8,inset 0 -4px #b5d1e5,0 3px #324d7155}.pixel-button:active:not(:disabled),.pixel-button[aria-pressed=true],.tabs button[aria-selected=true],.chest-kind-tabs [aria-pressed=true]{color:#fff4cf;text-shadow:1px 1px #254467;background:linear-gradient(#689ccb,#355f96);border-image:;box-shadow:inset 0 0 0 2px #dbbc78,inset 0 -3px #2d527f}.scene-edit-button:active{border-image:}.pixel-button:disabled{opacity:.82;background:linear-gradient(#e6ecf3,#d3deeb);box-shadow:inset 0 0 0 2px #eff5fc}.danger-button{color:#fff8ed;text-shadow:0 1px #732f43;background:linear-gradient(#df7c88,#b7445d);border-color:#80364f}.unlock-costs{grid-template-columns:repeat(var(--shard-count,3),minmax(0,1fr));gap:7px;margin:10px 0;display:grid}.unlock-resource{background:#f5fbff;border:2px solid #b8cbdc;grid-template-columns:24px 1fr;align-items:center;gap:2px 4px;min-width:0;padding:6px 4px;display:grid}.unlock-resource:first-child{background:#fff7de;border-color:#d8bd81;grid-column:1/-1;justify-content:center;gap:8px;display:flex}.unlock-resource img,.odds-shard{object-fit:contain;image-rendering:auto;width:24px;height:24px}.unlock-resource b{font:700 17px var(--game-font);color:#203d61}.unlock-resource small{white-space:nowrap;text-align:center;color:#416073;grid-column:1/-1;font-size:12px;line-height:18px}.unlock-resource.shortage{background:#fff1f0;border-color:#bb7080}.unlock-resource.shortage small{color:#a12b43}.odds-list span{align-items:center;gap:6px;display:flex}.scene{--workshop-height:clamp(300px,calc(100dvh - 365px),780px);height:var(--workshop-height)}.world-heading{padding:12px 12px 9px}.world-heading h2{color:#24436b}.shop-card{padding:12px}.machine-intro h3{border-color:#d0b877}.machine-icon svg,.stock-machine-art svg,.modal-machine svg,.sweet-result svg,.drop-icons img,.loot-fly img{image-rendering:auto}dialog{box-shadow:inset 0 0 0 3px #fff8dd,0 9px #19385b44;background:linear-gradient(145deg,#fffdf2,#ecf6ff)!important;border:4px double #a88950!important}.tutorial-note{bottom:141px}.reduced-motion .stat.chest-stat.has-chests{animation:none}@media (width<=780px){.shell{padding:169px 8px 137px}.stats{grid-template-columns:minmax(64px,1.25fr) minmax(105px,1.1fr) minmax(72px,1fr);gap:1px 4px;width:calc(100% - 14px);min-height:143px;padding:4px 39px 6px 8px}.stats .stat.chest-stat{gap:2px;width:100%;height:128px;padding:40px 42px 29px 32px}.chest-stat-info{grid-template-rows:18px 13px;grid-template-columns:18px auto;gap:2px 3px}.chest-stat-info .chest-kind img{width:18px;height:18px}.chest-kind small{font-size:11px;line-height:13px}.stats .chest-stat-info strong{font-size:19px;line-height:23px}.stat.primary{grid-template-columns:24px 1fr;gap:0 3px}.stats .coin-icon{width:24px;height:24px}.stats .stat.primary strong{font-size:18px}.stats .stat div>span,.stats .stat>span{font-size:16px}.stats .stat:not(.primary):not(.chest-stat) strong{font-size:21px}.rainbow-stock{gap:8px;min-height:34px;margin:0;left:8px}.rainbow-counter{gap:3px}.rainbow-counter img{width:28px;height:28px}.rainbow-counter strong{font-size:16px}.save-status{font-size:10px;top:83px;bottom:auto;right:6px}.settings-floating{width:44px;height:44px;top:22px;right:7px}.game-nav{gap:2px;padding-left:4px;padding-right:4px}.game-nav button{width:min(29vw,106px);height:min(29vw,106px);padding:34px 7px 14px}.game-nav .nav-home{width:min(34vw,121px);height:min(34vw,121px);padding:43px 8px 15px}.game-nav img{width:36px;height:36px}.game-nav .nav-home img{width:46px;height:46px}.game-nav b{font-size:15px;line-height:19px}.scene{--workshop-height:clamp(300px,calc(100dvh - 357px),650px)}.world-card{padding:3px}.shop-card{padding:10px}.unlock-costs{gap:5px}.unlock-resource{grid-template-columns:24px 1fr}.unlock-resource small{font-size:11px}.tutorial-note{bottom:135px}.debug-badge{top:137px}}@media (width<=479px){.stats .stat.chest-stat,.stats .stat.chest-stat:hover{background:linear-gradient(#fff9e9,#dcedfa);border:3px double #b8954d;border-radius:5px;grid-template-rows:1fr 1fr;grid-template-columns:1fr;align-self:start;gap:0;height:82px;margin-top:8px;padding:4px 7px;box-shadow:inset 0 0 0 2px #fffaf0,0 3px #36557940}.stat.chest-stat:before{content:"";background:url(./status_crest-CCtVnv90.png) 50%/contain no-repeat;width:36px;height:22px;position:absolute;top:-17px;left:calc(50% - 18px)}.stats .chest-stat-info{justify-content:space-between;align-items:center;gap:2px;display:flex}.stats .chest-stat-info>.chest-kind{flex-direction:column;gap:0;min-width:43px;display:flex}.stats .chest-stat-info .chest-kind img{width:18px;height:18px}.stats .chest-kind small{font-size:11px;line-height:13px}.stats .chest-stat-info strong{font-size:18px;line-height:22px}}@media (width>=480px) and (width<=780px){.stats{grid-template-columns:minmax(0,1.25fr) 200px minmax(80px,1fr)}}@media (width<=359px){.stats{grid-template-columns:minmax(60px,1.15fr) minmax(100px,1.1fr) minmax(68px,1fr);gap:1px 2px;padding-left:6px;padding-right:28px}.stats .stat.chest-stat{width:100%;padding-left:5px;padding-right:5px}.stats .stat.primary strong{font-size:16px}.stats .stat:not(.primary):not(.chest-stat) strong{font-size:18px}.stats .chest-stat-info strong{font-size:17px}.stats .chest-stat-info .chest-kind img{width:18px;height:18px}.stats .chest-kind small{font-size:10px}.stats .chest-stat-info,.stats .chest-stat-info>.chest-kind{gap:2px}.game-nav img{width:29px;height:29px}.game-nav .nav-home img{width:37px;height:37px}.game-nav b{font-size:14px;line-height:18px}.game-nav button{padding-top:32px;padding-bottom:12px}.game-nav .nav-home{padding-top:39px;padding-bottom:14px}.rainbow-counter strong{font-size:15px}.rainbow-counter img{width:26px;height:26px}.rainbow-stock{gap:6px;left:6px}}@media (prefers-reduced-motion:reduce){.stat.chest-stat.has-chests{animation:none}.game-nav button{transition:none}}.odds-item-icon{object-fit:contain;width:30px;height:30px;image-rendering:pixelated;flex:none}.odds-list>div>span{align-items:center;gap:9px;min-width:0;display:flex}.chest-odds-fortune{color:#24634d;background:#e4f8df;border:3px double #579176;justify-content:center;align-items:center;gap:9px;width:max-content;min-width:90px;margin:10px auto;padding:6px 16px;display:flex;box-shadow:inset 1px 1px #fff}.chest-odds-fortune img{width:32px;height:32px;image-rendering:pixelated}.chest-odds-fortune strong{font-size:23px}.sweet-odds-item svg{flex:none;width:38px;height:38px}.sweet-type-odds{font-size:14px}.sweet-detail-art{place-items:center;margin:18px auto;display:grid}.sweet-detail-art .rarity-icon{width:150px;height:150px}.stock-machine-art .rarity-icon{width:64px;height:64px}.sweet-stock .rarity-tag,.installed-chip .rarity-tag{width:max-content;max-width:100%;margin-top:3px;font-size:12px;display:block}.machine-stock{display:none}.stock-drawer-host{z-index:14;pointer-events:none;width:112px;position:absolute;top:8px;bottom:8px;left:8px}.stock-drawer-host[hidden]{display:none}.stock-drawer-toggle,.factory-edit-toggle,.factory-camera-reset{pointer-events:auto;width:54px;height:54px;box-shadow:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:0 0;border:0;place-items:center;margin:0;padding:0;display:grid}.stock-drawer-toggle img,.factory-edit-toggle img,.factory-camera-reset img{object-fit:contain;image-rendering:auto;pointer-events:none;width:38px;height:38px;filter:var(--toolbar-icon-outline);display:block}.factory-edit-toggle,.factory-camera-reset{z-index:15;position:absolute;top:8px;right:8px}.factory-camera-reset{top:70px}.factory-edit-toggle[aria-pressed=true] img,.stock-drawer-toggle[aria-expanded=true] img{filter:var(--toolbar-icon-outline) brightness(1.12);transform:translateY(-1px)}.factory-edit-toggle:active img,.factory-camera-reset:active img,.stock-drawer-toggle:active img{transform:translateY(2px)}.factory-edit-toggle:focus-visible,.factory-camera-reset:focus-visible,.stock-drawer-toggle:focus-visible{outline-offset:1px;outline:3px solid #338acd}.world-card.editing.seamless-editing>.world-heading{display:flex}.world-card.editing.seamless-editing>.scene{height:var(--workshop-height)}.stock-drawer{pointer-events:auto;background:linear-gradient(#fff9eaf5,#d9edfcf5);border:3px double #ab8545;flex-direction:column;width:112px;display:flex;position:absolute;top:62px;bottom:0;left:0;box-shadow:2px 3px #2b50704d}.stock-drawer[hidden]{display:none}.stock-drawer header{background:#fff8e4;border-bottom:2px solid #d3b774;justify-content:space-between;align-items:center;padding-left:5px;display:flex}.stock-drawer header b{color:#34516c;white-space:nowrap;font-size:12px}.stock-drawer header button{font:24px/1 var(--game-font);color:#405774;min-width:36px;min-height:44px}.stock-drawer-list{overscroll-behavior:contain;scrollbar-width:thin;flex:1;min-height:0;padding:4px;overflow-y:auto}.drawer-machine{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;background:linear-gradient(#f6fcff,#d4e8f8);border:2px solid #83a5bc;flex-direction:column;align-items:center;gap:1px;width:100%;min-height:89px;margin-bottom:5px;padding:3px;display:flex;box-shadow:inset 1px 1px #fffaf0}.drawer-art{pointer-events:none;width:62px;height:58px;display:block}.drawer-art svg{width:100%;height:100%}.drawer-machine>strong{color:#254764;white-space:normal;overflow-wrap:anywhere;pointer-events:none;font-size:14px;line-height:18px}.drawer-machine>small{color:#6f457b;font-size:10px;line-height:13px}.drawer-machine.sweet-stock{background:linear-gradient(#fff8ec,#ffe3ef)}.dragging .stock-drawer{opacity:.18;pointer-events:none}.dragging .stock-drawer-toggle{opacity:.3}.stock-drawer-list .empty-stock{text-align:center;padding:20px 0}.tile-trade{gap:5px}.tile-trade img{width:25px;height:25px}@media (width<=359px){.stock-drawer-host,.stock-drawer{width:104px}.drawer-machine>strong{font-size:13px}.stock-drawer header b{font-size:11px}}.upgrade-accordion{gap:15px;display:grid}.upgrade-accordion details{background:linear-gradient(135deg,#fffdf2,#eaf6ff);border:3px solid #587393;box-shadow:inset 0 0 0 2px #dfc38c,2px 4px #284a6c35}.upgrade-accordion summary{cursor:pointer;color:#25446a;background:linear-gradient(#fffbe9,#daedfc);align-items:center;gap:12px;min-height:74px;padding:10px 16px;list-style:none;display:flex}.upgrade-accordion summary::-webkit-details-marker{display:none}.upgrade-accordion summary:focus-visible{outline-offset:3px;outline:3px solid #d3a849}.upgrade-accordion summary>b{font-size:21px}.upgrade-category-icon{flex-shrink:0;place-items:center;width:46px;height:46px;display:grid}.upgrade-category-icon svg{width:100%;height:100%}.factory-category-icon{font:38px/1 var(--game-font);color:#3c7992;text-shadow:2px 2px #fff8dc}.upgrade-summary-value{font:700 18px var(--game-font);color:#496c88;white-space:nowrap;margin-left:auto}.accordion-arrow{font:700 26px/1 var(--game-font);color:#a07a37;margin-left:auto}.upgrade-summary-value+.accordion-arrow{margin-left:4px}.upgrade-accordion details[open]>summary{background:linear-gradient(#fff3c8,#d7eafa);border-bottom:3px double #c8ab68}.upgrade-accordion details[open] .accordion-arrow{transform:rotate(180deg)}.upgrade-content{padding:16px}.floor-upgrade-card{background:linear-gradient(#fffdf1,#e0f1fe);border:3px double #bc9b58;max-width:470px;margin:auto;padding:18px 20px}.floor-upgrade-card h3{text-align:center;color:#2c4c73;margin:0;font-size:20px}.floor-upgrade-card .floor-capacity-trade{gap:15px;margin:20px 0 15px}.floor-upgrade-card progress{appearance:none;background:#c9dbec;border:2px solid #748ca8;width:100%;height:15px;display:block}.floor-upgrade-card progress::-webkit-progress-bar{background:#c9dbec}.floor-upgrade-card progress::-webkit-progress-value{background:linear-gradient(#82d6ec,#469bc7)}.floor-upgrade-card progress::-moz-progress-bar{background:#469bc7}.floor-upgrade-buy{justify-content:space-between;align-items:center;gap:16px;width:100%;margin-top:22px;display:flex;min-height:58px!important}.floor-upgrade-buy>span{align-items:center;gap:6px;display:flex}.floor-upgrade-buy img{object-fit:contain;width:27px;height:27px}.floor-upgrade-card [hidden]{display:none}.machine-confirm-cost{color:#68451e;background:#fff8e1;border:2px double #bc9b58;gap:7px;margin:15px 0 18px;padding:12px;display:grid}.machine-confirm-cost>span{justify-content:center;align-items:center;gap:8px;display:flex}.machine-confirm-cost img{object-fit:contain;width:30px;height:30px;image-rendering:pixelated}.machine-confirm-cost strong{font:700 24px/1.3 var(--game-font)}.machine-confirm-cost small{color:#496783;font-size:14px}.machine-confirm-buy{width:100%;min-height:48px}#floor-upgrade-max{text-align:center;color:#387364;margin:20px 0 0}.floor-stat{cursor:default;box-shadow:none;background:linear-gradient(#f5fcff,#d8edfa)}.floor-stat:hover{background:linear-gradient(#f5fcff,#d8edfa)}#nav-shop-label{white-space:nowrap;font-size:12px}@media (width<=479px){.upgrade-accordion{gap:12px}.upgrade-accordion summary{gap:8px;min-height:70px;padding:8px 10px}.upgrade-accordion summary>b{font-size:19px}.upgrade-category-icon{width:40px;height:40px}.upgrade-summary-value{font-size:16px}.upgrade-content{padding:10px}.floor-upgrade-card{padding:16px 12px}}@media (width<=359px){#nav-shop-label{font-size:10px}.upgrade-summary-value{font-size:14px}}.reward-ad-offer{text-align:center;width:min(100%,440px);margin:12px auto 0}.reward-ad-button{cursor:pointer;filter:drop-shadow(0 3px #79502055);-webkit-tap-highlight-color:transparent;background:0 0;border:1px solid #0000;border-radius:0;justify-content:center;align-items:center;gap:10px;width:100%;min-height:112px;padding:14px 32px;display:flex;position:relative}.reward-ad-button>img{object-fit:contain;image-rendering:auto;flex:none;width:76px;height:76px;display:block}.reward-ad-copy{color:#623557;text-shadow:0 1px #fff;flex-direction:column;justify-content:center;gap:5px;min-width:0;font-size:18px;font-weight:900;line-height:1.4;display:flex}.reward-ad-copy small{color:#765083;font-size:.78em}.reward-ad-button:not(:disabled):active{filter:drop-shadow(0 1px #563a7666);transform:translateY(3px)}.reward-ad-button:focus-visible{outline-offset:3px;outline:3px solid #367ecc}.reward-ad-button:disabled{cursor:default;filter:grayscale(.35)drop-shadow(0 3px #563a7655)}.reward-ad-status{color:#4e5077;min-height:1.5em;margin:3px 0 0;font-size:12px}.reward-ad-status.earned{color:#af376b;font-weight:900;animation:.65s ease-out ad-reward-pop}.debug-ad-actions{flex-direction:column;gap:10px;margin-top:18px;display:flex}@keyframes ad-reward-pop{0%{transform:scale(.8)}45%{transform:scale(1.09)}to{transform:scale(1)}}.reduced-motion .reward-ad-status.earned{animation:none}@media (width<=359px){.reward-ad-button{gap:6px;padding:3px}.reward-ad-button>img{width:54px;height:54px}.reward-ad-copy{font-size:16px}}body.workshop-page{overscroll-behavior:none;height:100dvh;overflow:hidden}.workshop-page .shell{height:100dvh;min-height:0;padding:var(--workshop-top,156px) 6px var(--workshop-bottom,137px)}.workshop-page .workspace{height:100%;min-height:0}.workshop-page .world-card{max-width:1600px;height:100%;min-height:0;padding:3px}.workshop-page .world-card:before{display:none}.workshop-page .world-heading{flex:none;min-height:0;padding:2px 8px}.workshop-page .world-heading h2{font-size:17px;line-height:24px}.workshop-page .world-card>.scene{flex:1;height:auto;min-height:0;max-height:none;margin:0}.workshop-page .world-card>.machine-stock{display:none}.workshop-page .expansion-strip{flex:none;justify-content:center;margin:4px 4px 2px}.workshop-page #expand{border-width:3px;width:min(460px,100%);height:44px;min-height:44px;padding:3px 14px;font-size:15px}.stats .floor-stat,.stats .floor-stat:hover{box-shadow:none;cursor:pointer;background:0 0;border:0;border-image:;border-radius:0}.gacha-level summary{position:relative}.gacha-level .level-seal{display:none}.gacha-level.level-locked>.upgrade-content{display:none!important}.gacha-level.level-locked>summary{text-align:center;background:linear-gradient(#e1edf8,#f9f8ed);grid-template-columns:1fr;gap:7px;padding:12px 10px;display:grid}.sealed-machines{pointer-events:none;justify-content:center;align-items:center;gap:46px;height:110px;display:flex}.sealed-machines>span{filter:brightness(0);opacity:.22;width:80px;height:92px}.sealed-machines svg{width:100%;height:100%}.gacha-level.level-locked .level-seal{pointer-events:none;height:100px;display:block;position:absolute;top:47px;left:-3px;right:-3px;overflow:hidden}.level-seal-art{object-fit:cover;object-position:center;image-rendering:auto;width:100%;height:100%;display:block}.level-summary-costs{background:#fff9e8;border:2px double #bea15f;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 9px;min-height:40px;padding:5px;display:flex}.level-cost{color:#3d5674;align-items:center;gap:4px;display:flex}.level-cost:first-child{color:#77511d}.level-cost.shortage{color:#ad354d}.level-cost img{object-fit:contain;width:25px;height:25px}.level-cost strong{font:700 16px/1.2 var(--game-font)}.level-unlock-status{color:#596d83;font-size:13px;line-height:22px}.unlock-ready .level-unlock-status{color:#774f19;background:#fff0a9;border:1px solid #c3a050}.gacha-level.level-locked:has(.unlock-ready){border-color:#ad8439;box-shadow:inset 0 0 0 2px #fff6bf,0 0 8px #d5ad664a}.land-purchase-map{grid-template-columns:repeat(5,44px);gap:3px;width:max-content;margin:12px auto 18px;display:grid}.land-map-cell{width:44px;height:44px}.land-map-owned{background:#d9eef9;border:2px solid #819cb4;box-shadow:inset 2px 2px #f8fdff}.land-map-choice{font:24px/1 var(--game-font);place-items:center;padding:0;display:grid}.land-map-choice[aria-pressed=true] .land-map-add,.land-map-choice[aria-pressed=false] .land-map-check{display:none}.land-map-check{font-weight:700}@media (width<=479px){.workshop-page .shell{padding-left:3px;padding-right:3px}.workshop-page .world-card{padding:2px}.gacha-level summary>b{white-space:nowrap;font-size:18px}.gacha-level.level-locked summary{gap:6px}}@media (height<=620px){.workshop-page .world-heading{display:none}}#stats-label{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr) minmax(124px,170px) minmax(0,1fr);align-items:stretch;gap:10px;height:143px;min-height:143px;padding:6px 14px}#stats-label .stat.primary{flex-direction:column;justify-content:center;align-self:stretch;align-items:center;gap:13px;min-width:0;margin:0;padding:0;display:flex}#stats-label .coin-row{justify-content:center;align-items:center;gap:6px;width:100%;min-width:0;display:flex}#stats-label .coin-icon{flex-shrink:0;width:28px;height:28px}#stats-label .rainbow-stock{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:min(100%,180px);min-width:0;min-height:0;margin:0;padding:0;display:grid;position:static}#stats-label .rainbow-counter img{object-fit:contain;width:29px;height:29px}#stats-label .rainbow-counter strong{white-space:nowrap;font-size:14px;line-height:18px}#stats-label #open-chests,#stats-label #open-chests:hover{width:100%;max-width:none;height:100%;min-height:0;box-shadow:none;isolation:isolate;background:url(./header-chest-panel-v1-DxpNOtRQ.png) 50%/contain no-repeat;border:0;border-radius:0;grid-template-rows:1fr 1fr;grid-template-columns:1fr;place-self:stretch stretch;gap:2px;margin:0;padding:40px 32px 32px 25px;display:grid}#stats-label .chest-kind{flex-direction:row;justify-content:center;align-items:center;gap:4px;min-width:0;display:flex}#stats-label .chest-kind img{object-fit:contain;width:18px;height:18px}#stats-label .chest-kind small{white-space:nowrap;min-width:0;font-size:12px;line-height:15px}#stats-label #floor-storage{flex-direction:column;flex:none;justify-content:center;align-items:center;gap:1px;width:100%;min-width:0;min-height:0;margin:0;padding:0;display:flex}.header-tools{flex-direction:column;justify-content:center;align-items:center;gap:7px;min-width:0;height:100%;display:flex}#stats-label #settings{width:44px;height:44px;box-shadow:none;z-index:auto;background:0 0;border:0;flex:0 0 44px;place-items:center;margin:0;padding:3px;display:grid;position:static}#stats-label #settings img{object-fit:contain;width:38px;height:38px;image-rendering:pixelated;display:block}#capsule-icon{object-fit:contain;image-rendering:auto;width:38px;height:38px;filter:var(--toolbar-icon-outline)}.capsule-icon-wrap{flex:0 0 38px;width:38px;height:38px;line-height:0;display:block;position:relative}.capsule-icon-wrap #capsule-icon{display:block}#floor-upgrade-hint{pointer-events:none;filter:drop-shadow(0 1px #fff9);width:16px;height:20px;animation:1.6s ease-in-out infinite capacity-upgrade-bounce;position:absolute;top:-5px;left:-5px}#floor-upgrade-hint svg{width:100%;height:100%;display:block}@keyframes capacity-upgrade-bounce{0%,70%,to{opacity:.85;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}#stats-label #capsule-count{white-space:nowrap;font-size:23px;line-height:28px}.debug-badge{font-size:10px;inset:auto auto 4px 4px;transform:none}.workshop-page .debug-badge{top:calc(var(--workshop-top,157px) + 8px);font-size:12px;bottom:auto;left:50%;transform:translate(-50%)}@media (width>=781px){#stats-label{grid-template-columns:minmax(0,1fr) 190px minmax(0,1fr)}}@media (width<=780px){#stats-label{grid-template-columns:minmax(0,1fr) clamp(160px,48vw,190px) minmax(0,.86fr);gap:7px;padding:6px}#stats-label .stat.primary{gap:13px}#stats-label .coin-icon{width:24px;height:24px}#stats-label #coins{font-size:19px}#stats-label .rainbow-counter img{width:25px;height:25px}#stats-label .rainbow-counter strong{font-size:12px;line-height:16px}#stats-label .chest-stat-info{gap:3px}#stats-label .chest-kind small{font-size:11px}#stats-label #open-chests,#stats-label #open-chests:hover{padding:40px 32px 32px 25px}#stats-label .chest-stat-info strong.wide-count{min-width:0;padding:1px 2px;font-size:15.5px}#stats-label #capsule-count{font-size:19px;line-height:24px}}@media (width<=479px){#stats-label .coin-row{gap:4px}#stats-label .coin-icon{width:22px;height:22px}#stats-label #coins{font-size:17px}}@media (width<=399px){#stats-label #capsule-count{font-size:16px}}@media (width<=389px){#stats-label #coins{font-size:16px}#stats-label #capsule-count{font-size:15px}#stats-label .rainbow-stock{gap:1px}#stats-label .rainbow-counter img{width:22px;height:22px}#stats-label .rainbow-counter strong{font-size:10px}}@media (width<=359px){#stats-label{gap:4px;padding:6px 5px}#stats-label .coin-row{gap:3px}#stats-label #coins{font-size:15px}#stats-label .coin-icon{width:22px;height:22px}#stats-label .rainbow-stock{gap:0}#stats-label .rainbow-counter img{width:20px;height:20px}#stats-label .rainbow-counter strong{font-size:9px}#stats-label #open-chests,#stats-label #open-chests:hover{padding:47px 32px 32px 25px}#stats-label .chest-kind img{width:16px;height:16px}#stats-label .chest-kind small{font-size:10px;line-height:13px}#stats-label .chest-stat-info strong{min-width:25px;padding:1px 2px;font-size:17px}#stats-label .chest-stat-info strong.wide-count{font-size:14px}#stats-label #capsule-count{font-size:13px}}body{isolation:isolate;background:#d5edff}.ambient-backdrop{z-index:-1;pointer-events:none;position:fixed;inset:0;overflow:hidden}.ambient-backdrop:before{content:"";background:linear-gradient(#d3eeff33,#c4e5ff88),url(./background_castle-CcT7VgOc.png) 50%/cover;animation:36s ease-in-out infinite alternate ambient-sky-drift;position:absolute;inset:-18px}#scene{isolation:isolate;background:#dff2ff;overflow:hidden}#scene:before{content:"";z-index:0;pointer-events:none;background:url(./workshop-skyhall-v1-CGo5jphg.webp) 50%/cover no-repeat;animation:32s ease-in-out infinite alternate ambient-sky-drift;position:absolute;inset:-14px}#scene>canvas{z-index:2;position:relative}.ambient-sparkles{z-index:1;pointer-events:none;position:absolute;inset:0;overflow:hidden}.ambient-star{left:var(--star-x);top:var(--star-y);width:var(--star-size);height:var(--star-size);clip-path:polygon(42% 0,58% 0,58% 30%,70% 42%,100% 42%,100% 58%,70% 58%,58% 70%,58% 100%,42% 100%,42% 70%,30% 58%,0 58%,0 42%,30% 42%,42% 30%);opacity:0;animation:ambient-twinkle var(--star-time) ease-in-out var(--star-delay) infinite;background:#fff7c9;position:absolute}.ambient-star:nth-child(3n){background:#b7f4ff}@keyframes ambient-sky-drift{0%{transform:translate(-5px,-3px)}to{transform:translate(6px,4px)}}@keyframes ambient-twinkle{0%,to{opacity:0;transform:translateY(7px)scale(.6)}40%{opacity:.85;transform:translate(3px,-3px)scale(1)}65%{opacity:.5;transform:translate(5px,-9px)scale(.85)}}.reward-ad-button:not(:disabled){animation:4.8s ease-in-out infinite ad-invitation}.reward-ad-button:before,.reward-ad-button:after{content:"✦";z-index:1;pointer-events:none;color:#ffd963;font:24px/1 var(--game-font);text-shadow:0 1px #fff8cf;opacity:0;position:absolute}.reward-ad-button:before{top:19%;left:12%}.reward-ad-button:after{bottom:19%;right:9%}.reward-ad-button:not(:disabled):before{animation:4.8s ease-in-out infinite ad-glitter}.reward-ad-button:not(:disabled):after{animation:4.8s ease-in-out 1.2s infinite ad-glitter}.reward-ad-button:not(:disabled):active{animation:none;transform:translateY(3px)}@keyframes ad-invitation{0%,60%,to{transform:translateY(0)}25%,40%{transform:translateY(-3px)}}@keyframes ad-glitter{0%,55%,to{opacity:0;transform:scale(.6)}25%{opacity:1;transform:scale(1.15)}40%{opacity:.6;transform:scale(.9)}}.effects-paused .ambient-backdrop:before,.effects-paused #scene:before,.effects-paused .ambient-star,.effects-paused .reward-ad-button,.effects-paused .reward-ad-button:before,.effects-paused .reward-ad-button:after,.effects-paused #floor-upgrade-hint,.background-paused .ambient-backdrop:before,.background-paused #scene:before,.background-paused .ambient-star,.background-paused #floor-upgrade-hint,.background-paused .stat.chest-stat.has-chests,.background-paused .stat.chest-stat.has-chests:before,.background-paused .stat.chest-stat.has-chests:after{animation-play-state:paused}.reduced-motion .ambient-backdrop:before,.reduced-motion #scene:before,.reduced-motion .ambient-star,.reduced-motion .reward-ad-button,.reduced-motion .reward-ad-button:before,.reduced-motion .reward-ad-button:after,.reduced-motion #floor-upgrade-hint{animation:none}.reduced-motion .ambient-star{opacity:.4}.reduced-motion .reward-ad-button:not(:disabled){filter:drop-shadow(0 4px #563a7666)drop-shadow(0 0 5px #f5c67e88)}#stats-label #floor-storage{flex-basis:54px;height:54px;position:relative}#stats-label #capsule-count{z-index:1;color:#243d59;white-space:nowrap;pointer-events:none;text-shadow:-1px -1px #fffbed,0 -1px #fffbed,1px -1px #fffbed,-1px 0 #fffbed,1px 0 #fffbed,-1px 1px #fffbed,0 1px #fffbed,1px 1px #fffbed;box-shadow:none;background:0 0;border-radius:0;padding:0 2px;font-size:17px;line-height:21px;position:absolute;top:29px;left:50%;transform:translate(-50%)}@media (width<=780px){#stats-label #capsule-count{font-size:15px;line-height:20px}}@media (width<=359px){#stats-label #capsule-count{font-size:13px}}.level-status-slot{min-height:22px}.gacha-level.level-ready{border-color:#d5a13e;position:relative}.gacha-level.level-ready:after{content:"";pointer-events:none;z-index:3;border:3px solid #ffdf75;animation:2.2s ease-in-out infinite unlock-frame-glow;position:absolute;inset:-3px;box-shadow:0 0 10px #efb54a,0 0 22px #fbd07188,inset 0 0 8px #fff2b3}.unlock-ready .level-unlock-status{z-index:2;white-space:nowrap;pointer-events:none;color:#754411;text-shadow:0 2px #fff8dd;background:linear-gradient(#fff9d5,#ffdc7d);border:3px double #b5832e;padding:7px 18px;font-size:clamp(22px,6vw,29px);font-weight:900;line-height:1.25;animation:2.2s ease-in-out infinite unlock-callout;display:block;position:absolute;top:100px;left:50%;transform:translate(-50%,-50%);box-shadow:inset 0 0 0 2px #fff3b8,0 3px #73512666}@keyframes unlock-frame-glow{0%,to{opacity:.4}50%{opacity:1}}@keyframes unlock-callout{0%,to{transform:translate(-50%,-50%)scale(1)}45%{transform:translate(-50%,-50%)translateY(-3px)scale(1.04)}}#dialog .unlock-costs{background:linear-gradient(#fffbea,#e9f5ff);border:3px double #b89a57;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px 16px;margin:16px 0;padding:14px 10px;display:flex;box-shadow:inset 0 0 0 2px #fff9e6}#dialog .unlock-resource,#dialog .unlock-resource:first-child{min-width:0;box-shadow:none;background:0 0;border:0;grid-column:auto;grid-template-columns:26px auto;justify-content:center;align-items:center;gap:3px 5px;padding:0;display:grid}#dialog .unlock-resource img{width:26px;height:26px}#dialog .unlock-resource b{white-space:nowrap;color:#68491c;font-size:17px}#dialog .unlock-resource small{color:#47617d;font-size:11px;line-height:17px}#dialog .unlock-resource.shortage b,#dialog .unlock-resource.shortage small{color:#ad354d}#dialog.unlock-dialog #unlock-machine-confirm,#dialog.unlock-dialog #dialog-close{width:100%;min-height:52px;margin:14px 0 0;font-size:19px;display:block}#dialog.unlock-dialog #unlock-machine-confirm{color:#643a14;background:linear-gradient(#fff3b4,#f4c462);border-color:#b18b36}.effects-paused .gacha-level.level-ready:after,.effects-paused .unlock-ready .level-unlock-status{animation-play-state:paused}.reduced-motion .gacha-level.level-ready:after,.reduced-motion .unlock-ready .level-unlock-status{animation:none}.reduced-motion .gacha-level.level-ready:after{opacity:.8}#stats-label #floor-storage{cursor:pointer;touch-action:manipulation}.floor-confirm-trade{color:#2c547a;justify-content:center;align-items:baseline;gap:14px;margin:20px 0 12px;display:flex}.floor-confirm-trade strong{font:700 28px/1.2 var(--game-font)}.floor-confirm-trade span{color:#a07732;font-size:24px}.floor-confirm-trade small{font-size:14px}.floor-confirm-cost{color:#79551b;justify-content:center;align-items:center;gap:8px;margin:14px 0;display:flex}.floor-confirm-cost img{object-fit:contain;width:28px;height:28px}.floor-confirm-cost strong{font:700 21px/1.3 var(--game-font)}.floor-confirm-buy{width:100%;min-height:52px;margin-top:18px;font-size:19px;display:block}.ad-received-item{justify-content:center;align-items:center;gap:16px;margin:20px 0;display:flex}.ad-received-item img{object-fit:contain;width:86px;height:86px}.ad-received-item strong{font:700 26px/1.3 var(--game-font);color:#a64977}body.equipment-page{overscroll-behavior:none;height:100dvh;overflow:hidden}.equipment-page .shell{height:100dvh;min-height:0;padding:var(--workshop-top,156px) 6px var(--workshop-bottom,137px)}.equipment-page .workspace,.equipment-page .workbench{height:100%;min-height:0}.equipment-page .equipment-panel{grid-template-rows:auto minmax(0,1fr) auto;gap:6px;height:100%;min-height:0;margin:0 auto;padding:8px 10px;display:grid}.equipment-page .equipment-panel:before{display:none}.equipment-page #equipment-title{margin:0;font-size:20px;line-height:26px}.equipment-page .equipment-stage{grid-template-rows:minmax(0,1fr) auto;gap:8px;width:100%;height:100%;min-height:0;display:grid}.equipment-page .equipment-profile{grid-template-rows:minmax(0,1fr);gap:8px;height:100%;min-height:0;margin:0;container:equipment-profile/size}.equipment-page .dressup-avatar{aspect-ratio:auto;object-fit:contain;justify-self:end;width:100%;min-width:0;max-width:100%;height:100%;min-height:0;max-height:100%}.equipment-page .equipment-status{min-width:0;max-height:100%;padding:10px 6px;overflow:auto}.equipment-page .equipment-slots{align-items:start;gap:5px}.equipment-page .equipment-slot{gap:3px;min-height:44px;padding:0}.equipment-page .equipment-slot>div{width:clamp(40px,12vw,62px);max-width:100%}.equipment-page .equipment-slot small{font-size:11px;line-height:15px}.equipment-page .equipment-actions{margin:0}.equipment-page .owned-button{height:44px;min-height:44px;padding:4px;font-size:16px}.controls-help ul{margin:12px 0 4px;padding-left:1.4em}.controls-help li{margin:0 0 10px;line-height:1.6}@media (width<=479px){.equipment-page .shell{padding-left:3px;padding-right:3px}.equipment-page .equipment-panel{padding:6px}.equipment-page .equipment-profile{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px}.equipment-page .equipment-bonus>span{gap:2px;font-size:12px}.equipment-page .equipment-status h3{margin:0 0 7px}}@media (height<=740px){.equipment-page .equipment-panel{gap:4px;padding:5px 6px}.equipment-page #equipment-title{font-size:17px;line-height:22px}.equipment-page .equipment-stage{gap:5px}.equipment-page .equipment-status{padding:6px 4px}.equipment-page .equipment-status h3,.equipment-page .equipment-unique h4{display:none}.equipment-page .equipment-status .equipment-bonus{gap:4px}.equipment-page .equipment-unique{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-top:7px;padding-top:6px}.equipment-page .equipment-unique .unique-effect{border-left-width:2px;grid-template-columns:18px 1fr;gap:2px;padding:2px}.equipment-page .equipment-unique .unique-effect>span{display:none}.equipment-page .equipment-unique .unique-effect img{width:18px;height:18px}.equipment-page .equipment-unique .unique-effect strong{font-size:11px}.equipment-page .equipment-slot>div{width:44px}.equipment-page .equipment-slot small{display:none}.equipment-page .equipment-slot>span{font-size:13px;line-height:18px}}@media (height<=620px){.equipment-page .equipment-panel{grid-template-rows:minmax(0,1fr) auto}.equipment-page #equipment-title,.equipment-page .equipment-slot small{display:none}.equipment-page .equipment-unique{grid-template-columns:repeat(3,minmax(0,1fr))}.equipment-page .equipment-unique .unique-effect{grid-template-columns:15px 1fr;gap:0}.equipment-page .equipment-unique .unique-effect img{width:15px;height:15px}}.machine-info-bubble{z-index:23;pointer-events:none;color:#233e5c;text-align:left;background:#fffbed;border:2px solid #547c9b;width:max-content;max-width:min(280px,100% - 12px);padding:9px 12px;position:absolute;top:0;left:0;box-shadow:0 0 0 2px #f4d384,0 5px #233f5b55}.machine-info-bubble:after{content:"";width:10px;height:10px;left:var(--tail-x);background:#fffbed;border-bottom:2px solid #547c9b;border-right:2px solid #547c9b;position:absolute;bottom:-8px;transform:translate(-50%)rotate(45deg)}.machine-info-bubble.below:after{top:-8px;bottom:auto;transform:translate(-50%)rotate(225deg)}.machine-info-title{margin-bottom:5px;font-size:13px;line-height:1.35;display:block}.machine-info-stats{white-space:nowrap;justify-content:center;align-items:center;gap:18px;font-size:14px;display:flex}.machine-info-stats>span{align-items:center;gap:4px;display:flex}.machine-info-stats b{font:700 20px/1.4 var(--game-font)}.machine-info-icon{object-fit:contain;width:23px;height:23px;image-rendering:pixelated;flex:none}.machine-info-effects{border-top:1px solid #c8d4cf;margin-top:7px;padding-top:6px}.machine-info-effects:first-child{margin-top:0}.machine-info-effect{align-items:center;gap:5px;margin:2px 0;font-size:13px;font-weight:700;line-height:1.5;display:flex}.machine-info-effect .machine-info-icon{width:19px;height:19px}.machine-info-effect.speed{color:#087777}.machine-info-effect.double{color:#854099}.machine-info-effect.coins{color:#935a14}.machine-info-effect.chest{color:#ad3c67}#shop-panel .shop-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:14px}#shop-panel .shop-card{flex-direction:column;align-self:start;gap:8px;min-width:0;padding:12px;display:flex}.shop-machine-name{color:#294a6c;text-align:center;border-bottom:2px solid #d7bd7c;margin:0;padding:0 0 6px;font-size:18px;line-height:24px}.shop-machine-body{grid-template-columns:minmax(80px,.82fr) minmax(0,1.4fr);align-items:center;gap:10px;min-width:0;display:grid}.shop-machine-body .machine-icon{place-items:center;width:100%;max-width:none;height:134px;display:grid}.shop-machine-body .machine-icon svg{image-rendering:auto;width:100%;height:100%;display:block}.shop-drops{background:#e9f4fb;border-left:2px solid #c5a664;min-width:0;padding:6px 7px}.shop-drops h4{color:#496783;margin:0 0 4px;font-size:13px;line-height:18px}.shop-drop-list{gap:3px;margin:0;display:grid}.shop-drop-row{grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:5px;min-height:23px;display:grid}.shop-drop-row dt{color:#284c6a;align-items:center;gap:4px;min-width:0;font-size:12px;line-height:16px;display:flex}.shop-drop-row dt span{overflow-wrap:anywhere;min-width:0}.shop-drop-row img{object-fit:contain;image-rendering:auto;flex:0 0 22px;width:22px;height:22px;display:block}.shop-drop-row dd{color:#6d4c1f;font:700 12px/18px var(--game-font);white-space:nowrap;font-variant-numeric:tabular-nums;margin:0}#shop-panel .machine-specs{background:0 0;border:0;gap:4px;margin:0;padding:0}#shop-panel .machine-specs div{padding:3px 2px}#shop-panel .machine-specs dt{font-size:13px;line-height:16px}#shop-panel .machine-specs dd{font-size:16px;line-height:20px}#shop-panel .buy-button{min-height:48px;margin:0}@media (width<=479px){#shop-panel .shop-card{gap:6px;padding:9px}.shop-machine-name{padding-bottom:4px;font-size:17px;line-height:23px}.shop-machine-body{gap:7px}.shop-machine-body .machine-icon{height:108px}.shop-drops{padding:4px 5px}.shop-drop-row{gap:4px;min-height:22px}.shop-drop-row img{flex-basis:20px;width:20px;height:20px}}@media (height<=620px) and (width<=479px){#shop-panel .shop-card{gap:3px;padding:5px}.shop-machine-name{padding-bottom:0;font-size:16px;line-height:20px}.shop-machine-body .machine-icon{height:80px}.shop-drops{padding:0 4px}.shop-drops h4{margin-bottom:2px;line-height:16px}.shop-drop-list{gap:1px}.shop-drop-row{min-height:20px}.shop-drop-row dt{font-size:11px;line-height:14px}.shop-drop-row img{flex-basis:18px;width:18px;height:18px}#shop-panel .machine-specs div{padding:2px}#shop-panel .machine-specs dt{font-size:12px;line-height:12px}#shop-panel .machine-specs dd{font-size:15px;line-height:16px}#shop-panel .buy-button{min-height:44px;padding:5px 10px}}.tutorial-note,.tutorial-in-dialog .tutorial-note{color:#43263c;width:430px;max-width:calc(100vw - 32px);box-shadow:none;text-align:left;background:#fff6d8 padding-box padding-box;border:12px solid #0000;border-image:url(./tutorial-guide-frame-small-ipB7kAm7.webp) 25%/22px;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:8px 10px;padding:8px 10px;font-size:18px;font-weight:700;line-height:1.55;display:grid}.tutorial-note b{color:#fffbee;text-align:center;clip-path:polygon(4px 0,calc(100% - 4px) 0,100% 4px,100% calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,0 calc(100% - 4px),0 4px);background:#9b3458;min-width:38px;padding:4px 6px;font-size:14px;line-height:1.4}.tutorial-note span{overflow-wrap:anywhere;text-wrap:balance;grid-column:2}.tutorial-note:has(b[hidden]){grid-template-columns:minmax(0,1fr)}.tutorial-note:has(b[hidden]) span{grid-column:1}.tutorial-note .tutorial-ack{border:7px solid #0000;border-image:var(--kit-gold) 35% 17% 35% 20% fill / 14px 22px 14px 26px;color:#643b27;background:0 0;grid-column:1/-1;width:100%;min-height:44px;padding:6px 14px;font-size:16px;font-weight:700}@media (width<=359px){.tutorial-note,.tutorial-in-dialog .tutorial-note{column-gap:8px;padding:8px;font-size:16px}}.tutorial-locked{opacity:.42!important;cursor:default!important}.tutorial-bonus{text-align:center;color:#50344c}.tutorial-bonus h2{color:#a44265}.tutorial-bonus>div{background:#fff2b9;border:3px solid #e5bb58;justify-content:center;align-items:center;gap:10px;padding:22px 0;display:flex}.tutorial-bonus img{width:44px;height:44px;image-rendering:pixelated}.tutorial-bonus strong{color:#a05a17;font-size:36px}.tutorial-bonus b{font-size:20px}#shop-panel{--shop-pixel-frame:url(./shop-pixel-frame-v1-B8UaaU1-.png)}#shop-panel .upgrade-accordion{gap:18px}#shop-panel .upgrade-accordion>details,#shop-panel .shop-card,#shop-panel .floor-upgrade-card{border:14px solid #0000;border-image:var(--shop-pixel-frame) 96 / 14px stretch;isolation:isolate;background:#e9f6fbc9 padding-box padding-box;border-radius:0;position:relative;box-shadow:0 3px #35557538}#shop-panel .upgrade-accordion>details:before,#shop-panel .shop-card:before,#shop-panel .floor-upgrade-card:before{content:"";z-index:-1;pointer-events:none;opacity:.85;background:#d9f0fa4d url(./shop-pixel-glass-v1-2LlIaJEi.png) 50%/100% 100% no-repeat;position:absolute;inset:-6px}#shop-panel .upgrade-accordion summary{color:#29476c;background:#deedfb;border:0;gap:10px;min-height:66px;padding:5px 7px;box-shadow:inset 0 2px #fffdf0,inset 0 -3px #b5cde5}#shop-panel .upgrade-accordion details[open]>summary{background:#fff0bb;border:0;box-shadow:inset 0 2px #fffdf0,inset 0 -3px #d7b96c}#shop-panel .upgrade-category-icon{flex:none;place-items:center;width:52px;height:52px;display:grid}#shop-panel .upgrade-category-icon img{object-fit:contain;image-rendering:auto;width:100%;height:100%;display:block}#shop-panel .upgrade-accordion summary>b{text-shadow:0 1px #fff;font-size:20px;line-height:1.35}#shop-panel .accordion-arrow{width:24px;height:24px;color:inherit;flex:none;place-items:center;margin-left:auto;display:grid;transform:rotate(-90deg)}#shop-panel .upgrade-accordion details[open]>summary .accordion-arrow{transform:rotate(0)}#shop-panel .accordion-arrow svg{width:24px;height:18px;display:block}#shop-panel .upgrade-content{padding:12px 3px 3px}#shop-panel .shop-list{gap:14px}#shop-panel .shop-card{border-width:12px;background-color:#fffdf0;border-image-width:12px;gap:7px;padding:7px}#shop-panel .shop-machine-name{color:#29476c;background:#e2effa;border:0;padding:4px 3px;font-size:18px;line-height:24px;box-shadow:0 2px #b9d0e2}#shop-panel .shop-machine-body{grid-template-columns:minmax(72px,.82fr) minmax(0,1.4fr);gap:8px}.shop-machine-sprite{object-fit:contain;image-rendering:auto;width:100%;height:100%;display:block}#shop-panel .shop-machine-body .shop-machine-sprite{max-width:148px;max-height:134px;margin:auto}#shop-panel .gacha-level:not(.level-locked)>summary{min-height:62px;padding-left:12px}#shop-panel #factory-upgrade-summary{padding-left:12px}#shop-panel .shop-drops{background:#edf5fb;border:0;padding:6px 7px;box-shadow:inset 3px 0 #dfbf75}#shop-panel .shop-drops h4{color:#756039}#shop-panel .machine-specs{gap:5px}#shop-panel .machine-specs div{background:#e1eff8;border:0;border-bottom:2px solid #aac7de;padding:5px 2px;box-shadow:inset 0 2px #f7fcff}#shop-panel .machine-specs dt{color:#4c6883}#shop-panel .buy-button,#shop-panel .floor-upgrade-buy{border:10px solid #0000;border-image:var(--shop-pixel-frame) 96 / 10px stretch;color:#69471e;background:#ffe7a2 padding-box padding-box;min-height:56px;padding:3px 7px;box-shadow:0 3px #a87b3b5c}#shop-panel .buy-button:active,#shop-panel .floor-upgrade-buy:active{box-shadow:none;transform:translateY(2px)}#shop-panel .buy-button:disabled{filter:grayscale(.35);opacity:.6}#shop-panel .gacha-level.level-locked>summary{box-shadow:none;background:#e6eef8;grid-template-columns:1fr;gap:7px;padding:8px 3px;display:grid}#shop-panel .level-summary-costs{background:#fff0c2;border:0;border-top:3px solid #d7b877;padding:8px 4px;box-shadow:inset 0 2px #fffdf0}#shop-panel .level-label{color:#344c70}#shop-panel .level-unlock-status{color:#4f6482}#shop-panel .gacha-level.level-ready:after{border:14px solid #0000;border-image:var(--shop-pixel-frame) 96 / 14px stretch;filter:brightness(1.12);inset:-14px;box-shadow:0 0 12px #f6ca6e88}#shop-panel .floor-upgrade-card{border-width:12px;border-image-width:12px;padding:12px 10px}#shop-panel .floor-upgrade-card h3{color:#29476c;background:#e2effa;padding:5px}#shop-panel .floor-upgrade-card progress{background:#d0e0ec;border:3px solid #526d8b;height:18px}#shop-panel .floor-upgrade-card progress::-webkit-progress-bar{background:#d0e0ec}#shop-panel .floor-upgrade-card progress::-webkit-progress-value{background:#68c8b1;box-shadow:inset 0 3px #a6ebd0}#shop-panel .floor-upgrade-card progress::-moz-progress-bar{background:#68c8b1}@media (width<=479px){#shop-panel .upgrade-accordion{gap:14px}#shop-panel .upgrade-accordion>details{border-width:12px;border-image-width:12px}#shop-panel .upgrade-accordion summary{gap:7px;min-height:62px;padding:4px}#shop-panel .upgrade-accordion summary>b{font-size:18px}#shop-panel .upgrade-category-icon{width:46px;height:46px}#shop-panel .upgrade-content{padding:10px 0 0}#shop-panel .shop-card{border-width:10px;border-image-width:10px;gap:6px;padding:5px}#shop-panel .shop-machine-name{font-size:17px;line-height:23px}#shop-panel .shop-drops{padding:4px 5px}#shop-panel .shop-drop-row{gap:4px}#shop-panel .floor-upgrade-card{padding:10px 6px}}@media (width<=359px){#shop-panel .shop-card{gap:4px;padding:4px}#shop-panel .shop-machine-name{font-size:16px;line-height:21px}#shop-panel .shop-machine-body{grid-template-columns:minmax(64px,.72fr) minmax(0,1.4fr);gap:5px}#shop-panel .shop-drop-row dt,#shop-panel .shop-drop-row dd{font-size:11px}#shop-panel .shop-drop-row img{flex-basis:18px;width:18px;height:18px}#shop-panel .upgrade-summary-value{font-size:14px}}@media (height<=620px) and (width<=479px){#shop-panel .shop-card{gap:3px;padding:3px}#shop-panel .shop-machine-name{padding:1px;font-size:16px;line-height:20px}#shop-panel .machine-specs div{padding:2px}#shop-panel .buy-button{border-width:8px;border-image-width:8px;min-height:48px;padding:1px 5px}#shop-panel .shop-machine-body .machine-icon{height:78px}#shop-panel .shop-drops{padding:1px 4px}}:is(#chest-dialog,#dialog:has(.chest-odds-table)){--chest-pixel-frame:url(./shop-pixel-frame-v1-B8UaaU1-.png);border-radius:0;padding:12px;box-shadow:0 5px #35557560;border:14px solid #0000!important;border-image:var(--chest-pixel-frame) 96 / 14px stretch!important;background:#edf6fc padding-box padding-box!important}#chest-dialog .inventory-heading{text-align:left;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:0 0 12px;padding:0;display:grid}#chest-dialog .inventory-heading h2{color:#29476c;background:#deedfb;grid-column:1/-1;min-height:40px;margin:0;padding:6px 48px 6px 8px;font-size:21px;line-height:28px;box-shadow:inset 0 2px #fffdf0,inset 0 -3px #b5cde5}#chest-dialog .chest-stock-count{color:#29476c;gap:5px;margin:0;padding:0 6px}#chest-dialog .chest-stock-count svg{flex:none;width:28px;height:28px}#chest-dialog .chest-stock-count b{white-space:nowrap;font-size:18px}#chest-dialog .corner-close{border:7px solid #0000;border-image:var(--chest-pixel-frame) 96 / 7px stretch;color:#69471e;background:#fff0bb padding-box padding-box;border-radius:0;place-items:center;width:40px;height:40px;padding:0;font-size:23px;line-height:1;display:grid;box-shadow:0 2px #a87b3b5c}#dialog.dialog-top-close:has(.chest-odds-table) #dialog-close{border:7px solid #0000;border-image:var(--chest-pixel-frame) 96 / 7px stretch;color:#69471e;background:#fff0bb padding-box padding-box;border-radius:0;place-items:center;width:40px;height:40px;padding:0;font-size:23px;line-height:1;display:grid;box-shadow:0 2px #a87b3b5c}#chest-dialog .chest-kind-tabs{gap:8px;margin:0 0 12px}#chest-dialog .chest-kind-tabs button,#chest-dialog .chest-odds-button,#chest-dialog .chest-opening-actions button{border:8px solid #0000;border-image:var(--chest-pixel-frame) 96 / 8px stretch;color:#29476c;text-shadow:0 1px #fff;background:#e1eff8 padding-box padding-box;border-radius:0;min-height:48px;padding:3px 5px;font-size:16px;line-height:1.4;box-shadow:0 3px #35557538}#chest-dialog .chest-kind-tabs button{font-size:15px}#chest-dialog .chest-kind-tabs [aria-pressed=true],#chest-dialog .chest-opening-actions button{color:#69471e;background-color:#ffe7a2}#chest-dialog .chest-odds-button{justify-self:start;min-height:44px;font-size:14px}#chest-dialog .chest-kind-tabs button:active:not(:disabled),#chest-dialog .chest-odds-button:active,#chest-dialog .chest-opening-actions button:active:not(:disabled){box-shadow:none;transform:translateY(2px)}#chest-dialog .chest-opening-actions button:disabled{opacity:.6}#chest-dialog .chest-stage{border:10px solid #0000;border-image:var(--chest-pixel-frame) 96 / 10px stretch;box-shadow:none;background-clip:padding-box;border-radius:0}#chest-dialog .chest-stage:not(.celebration){background:#e1f0fa url(./shop-pixel-glass-v1-2LlIaJEi.png) 50%/100% 100% no-repeat padding-box padding-box}#chest-dialog .chest-stage-arch{width:240px;height:236px;box-shadow:none;clip-path:polygon(24% 0,76% 0,76% 4%,88% 4%,88% 10%,96% 10%,96% 20%,100% 20%,100% 100%,0 100%,0 20%,4% 20%,4% 10%,12% 10%,12% 4%,24% 4%);background:#b7d6ed55;border:0;border-radius:0;top:10px;left:calc(50% - 120px)}#chest-dialog .chest-platform{clip-path:polygon(8% 0,92% 0,92% 15%,100% 15%,100% 85%,92% 85%,92% 100%,8% 100%,8% 85%,0 85%,0 15%,8% 15%);background:#b8dbeb;border:0;border-radius:0;box-shadow:inset 0 4px #effbff,inset 0 -8px #8fb8d0}#chest-dialog .chest-opening-actions{gap:8px;margin:14px 0 16px}#chest-dialog .chest-results{border-top:3px solid #d7b877;margin-top:16px;padding-top:12px}#chest-dialog .chest-results-heading{color:#29476c;background:#deedfb;padding:5px 8px}#chest-dialog .chest-reward-list .loot-card{border:8px solid #0000;border-image:var(--chest-pixel-frame) 96 / 8px stretch;background:#fff9e8 padding-box padding-box;border-radius:0;box-shadow:0 2px #35557538}#dialog:has(.chest-odds-table) .chest-odds-table th{color:#29476c;background:#deedfb;box-shadow:inset 0 -3px #b5cde5}#dialog:has(.chest-odds-table) #dialog-title{text-align:left;min-height:40px;margin:0 56px 12px 0;font-size:21px}@media (width<=479px){:is(#chest-dialog,#dialog:has(.chest-odds-table)){padding:8px;border-width:12px!important;border-image-width:12px!important}#chest-dialog .inventory-heading h2{font-size:20px}#chest-dialog .chest-kind-tabs button{padding:2px;font-size:14px}#chest-dialog .chest-opening-actions button{padding:3px 1px;font-size:15px}}@media (width<=350px){#chest-dialog{width:calc(100% - 16px)}#chest-dialog .chest-opening-actions{flex-direction:row}#chest-dialog .chest-opening-actions button,#chest-dialog .chest-kind-tabs button{font-size:13px}}#stats-label{width:100%;max-width:none;box-shadow:none;pointer-events:none;background:0 0;border:0;border-image:;border-radius:0;top:0;left:0;transform:none}body:not(.workshop-page) #stats-label{background:#e6f4fbf5}#stats-label #open-chests,#stats-label #settings,#stats-label #floor-storage{pointer-events:auto}#stats-label .coin-row strong,#stats-label .rainbow-counter strong{text-shadow:-1px -1px #fffbed,0 -1px #fffbed,1px -1px #fffbed,-1px 0 #fffbed,1px 0 #fffbed,-1px 1px #fffbed,0 1px #fffbed,1px 1px #fffbed}#stats-label #floor-storage,#stats-label .capsule-icon-wrap{flex-basis:72px;height:72px}#stats-label #capsule-icon{filter:none}#stats-label #capsule-count{color:#24354e;text-shadow:none;padding:0;line-height:20px;top:49px}#stats-label #capsule-count.full{color:#b63f51}.capacity-digits{image-rendering:auto;pointer-events:none;width:auto;max-width:72px;height:20px;display:block;overflow:visible}.workshop-page .shell{max-width:none;padding:0 0 var(--workshop-footer-height,132px);margin:0}.workshop-page .world-card{width:100%;max-width:none;box-shadow:none;background:0 0;border:0;border-image:;padding:0;position:relative}.workshop-page .world-card>.scene{height:100%;box-shadow:none;border:0;border-image:;border-radius:0}.workshop-page .expansion-strip{z-index:16;pointer-events:none;margin:0;position:absolute;bottom:8px;left:8px;right:8px}.workshop-page .expansion-strip #expand{pointer-events:auto}.workshop-page .stock-drawer-host{top:calc(var(--workshop-top,149px) + 4px);bottom:60px}.workshop-page .factory-edit-toggle{top:calc(var(--workshop-top,149px) + 4px)}@media (width<=780px){#stats-label{grid-template-columns:minmax(0,1fr) clamp(160px,48vw,190px) 68px}}:root{--panel-frame:url(./shop-pixel-frame-v1-B8UaaU1-.png)}#shop-panel .upgrade-accordion>details,#shop-panel .shop-card,#shop-panel .floor-upgrade-card,#shop-panel .gacha-level.level-ready:after,#shop-panel .buy-button,#shop-panel .floor-upgrade-buy{border-image-width:24px}#shop-panel .upgrade-accordion summary{padding:8px 10px}#shop-panel .gacha-level.level-ready:after{inset:-14px}#shop-panel .shop-card{gap:8px;padding:8px}#shop-panel .buy-button,#shop-panel .floor-upgrade-buy{border-width:12px;min-height:64px;padding:8px 10px}:is(#chest-dialog,#dialog:has(.chest-odds-table)){border-image-width:24px!important}#chest-dialog .chest-stage{border-image-width:24px}#chest-dialog .chest-kind-tabs button,#chest-dialog .chest-odds-button{border-image-width:20px;padding:6px 8px}#chest-dialog .chest-opening-actions button{border-width:12px;border-image-width:24px;min-height:64px;padding:8px 10px}#chest-dialog .chest-opening-actions{gap:12px}#chest-dialog .corner-close{border-image-width:12px}#dialog.dialog-top-close:has(.chest-odds-table) #dialog-close{border-image-width:12px}#chest-dialog .chest-reward-list .loot-card{border-image-width:20px;padding:10px}#stats-label .coin-row,#stats-label .rainbow-stock{clip-path:polygon(4px 0,calc(100% - 4px) 0,calc(100% - 4px) 2px,100% 2px,100% calc(100% - 2px),calc(100% - 4px) calc(100% - 2px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 2px),0 calc(100% - 2px),0 2px,4px 2px);background:#fff6e7f5;padding:5px 0;box-shadow:inset 0 2px #fffefd,inset 0 -2px #c8a76799}#stats-label .rainbow-stock{background:#edf7fff5}#stats-label .coin-row{max-width:180px}#equipment-panel{border:14px solid #0000;border-image:var(--panel-frame) 96 / 24px stretch;isolation:isolate;background:#edf6fc padding-box padding-box;border-radius:0;position:relative;box-shadow:0 3px #35557538}#equipment-panel:before{content:"";z-index:-1;pointer-events:none;opacity:.7;background:url(./shop-pixel-glass-v1-2LlIaJEi.png) 50%/100% 100% no-repeat;width:auto;height:auto;display:block;position:absolute;inset:0}#equipment-panel #equipment-title{color:#29476c;background:#deedfb;padding:2px 8px;box-shadow:inset 0 2px #fffdf0,inset 0 -3px #b5cde5}#equipment-panel .equipment-stage{background:0 0}#equipment-panel .equipment-status{border:10px solid #0000;border-image:var(--panel-frame) 96 / 20px stretch;background:#fff9e7 padding-box padding-box;border-radius:0;padding:8px 6px;box-shadow:0 2px #35557538}#equipment-panel .equipment-status h3{color:#29476c;background:#deedfb;margin-bottom:8px;padding:3px}#equipment-panel .equipment-slot{background:#e1eff8;padding:3px 0;box-shadow:inset 0 2px #f8fcff,inset 0 -2px #d4b875}#equipment-panel .equipment-slot:has(.rarity-icon){background:#fff0be}#equipment-panel .equipment-slot>div{background:0 0}#equipment-panel .equipment-slot>div:not(:has(.rarity-icon)){outline-offset:-2px;background:#edf7ff;outline:2px solid #9ebcd2;box-shadow:inset 0 0 0 4px #faffff}#equipment-panel .equipment-unique{border-top-style:solid;border-top-color:#d7b877;gap:4px;margin-top:8px;padding-top:6px}#equipment-panel .equipment-unique .unique-effect{padding:3px 2px}#equipment-panel .owned-button{border:10px solid #0000;border-image:var(--panel-frame) 96 / 24px stretch;color:#69471e;background:#ffe7a2 padding-box padding-box;border-radius:0;height:auto;min-height:56px;padding:6px;box-shadow:0 3px #a87b3b5c}:is(#inventory-dialog,#dialog:has(.gear-list,.gear-detail,.picker-equipped,.material-sockets,.equipment-comparison,.machine-confirm-cost,.unlock-costs)){border-radius:0;padding:12px;box-shadow:0 4px #35557550;border:14px solid #0000!important;border-image:var(--panel-frame) 96 / 24px stretch!important;background:#edf6fc padding-box padding-box!important}#inventory-dialog .inventory-heading{color:#29476c;background:#deedfb;min-height:44px;margin-bottom:12px;padding-right:44px;box-shadow:inset 0 2px #fffdf0,inset 0 -3px #b5cde5}#inventory-dialog .inventory-heading h2{margin:0;padding:4px 8px;font-size:21px}#inventory-dialog .corner-close{border:7px solid #0000;border-image:var(--panel-frame) 96 / 12px stretch;color:#69471e;background:#fff0bb padding-box padding-box;border-radius:0;width:44px;min-width:44px;height:44px;padding:0;box-shadow:0 2px #a87b3b5c}#inventory-dialog .inventory-tabs{gap:10px;margin:10px 0 16px}#inventory-dialog .inventory-tabs button{border:10px solid #0000;border-image:var(--panel-frame) 96 / 20px stretch;color:#29476c;text-shadow:0 1px #fff;background:#e1eff8 padding-box padding-box;border-radius:0;min-height:52px;padding:6px;box-shadow:0 3px #35557538}#dialog:has(.gear-list,.gear-detail,.picker-equipped,.material-sockets,.equipment-comparison,.machine-confirm-cost,.unlock-costs) .pixel-button{border:10px solid #0000;border-image:var(--panel-frame) 96 / 20px stretch;color:#29476c;text-shadow:0 1px #fff;background:#e1eff8 padding-box padding-box;border-radius:0;min-height:52px;padding:6px;box-shadow:0 3px #35557538}#inventory-dialog .inventory-tabs button[aria-pressed=true]{color:#69471e;background-color:#ffe7a2;outline:0}:is(#inventory-dialog .loot-card,#dialog:has(.gear-list,.gear-detail,.picker-equipped,.material-sockets,.equipment-comparison) .loot-card){border:8px solid #0000;border-image:var(--panel-frame) 96 / 20px stretch;background:#fff9e8 padding-box padding-box;border-radius:0;gap:7px;padding:9px;box-shadow:0 2px #35557538}#dialog:has(.picker-equipped) .picker-equipped{border:10px solid #0000;border-image:var(--panel-frame) 96 / 20px stretch;background:#e5f3e8 padding-box padding-box;padding:6px}#dialog:has(.picker-equipped) .picker-equipped>.loot-card{box-shadow:none;background:0 0;border:0;padding:3px}#dialog:has(.gear-detail) #equip-now{color:#fffaf1;text-shadow:0 1px #88394e;background-color:#e9677b;min-height:56px}#dialog:has(.gear-list,.gear-detail,.picker-equipped,.material-sockets,.equipment-comparison).dialog-top-close{padding-top:44px}#dialog:has(.gear-list,.gear-detail,.picker-equipped,.material-sockets,.equipment-comparison).dialog-top-close #dialog-title{text-align:left;margin-right:44px}#dialog:has(.gear-list,.gear-detail,.picker-equipped,.material-sockets,.equipment-comparison).dialog-top-close #dialog-close{border-width:7px;color:#69471e;background-color:#fff0bb;border-image-width:12px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0}@media (width<=479px){#shop-panel .gacha-level.level-ready:after{inset:-12px}#shop-panel .shop-card{padding:6px}#equipment-panel .equipment-status{border-width:8px;border-image-width:18px;padding:6px 4px}#equipment-panel .equipment-status h3{margin-bottom:6px}#equipment-panel .equipment-unique h4{font-size:12px;line-height:16px}:is(#inventory-dialog .loot-card,#dialog:has(.gear-list,.gear-detail,.picker-equipped,.material-sockets,.equipment-comparison) .loot-card){gap:6px;padding:7px}}@container equipment-profile (height<=360px){#equipment-panel .equipment-status h3,#equipment-panel .equipment-unique h4{display:none}#equipment-panel .equipment-status .equipment-bonus{gap:4px}#equipment-panel .equipment-unique{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin-top:5px;padding-top:4px}#equipment-panel .equipment-unique .unique-effect{border-left-width:2px;grid-template-columns:12px minmax(0,1fr);gap:1px;padding:1px}#equipment-panel .equipment-unique .unique-effect img{width:12px;height:12px}#equipment-panel .equipment-unique .unique-effect strong{font-size:10px;line-height:15px}#equipment-panel .equipment-unique .unique-effect>span{display:none}}@media (height<=800px){#equipment-panel .owned-button{border-width:8px;border-image-width:20px;height:44px;min-height:44px;padding:4px}}@media (height>=801px) and (height<=860px) and (width<=479px){#equipment-panel .equipment-status h3{margin-bottom:4px;padding:2px;font-size:14px;line-height:18px}#equipment-panel .equipment-status .equipment-bonus{gap:4px}#equipment-panel .equipment-unique{gap:3px;margin-top:6px;padding-top:4px}#equipment-panel .equipment-unique .unique-effect{padding:1px 2px}}@media (height<=620px){#equipment-panel{border-width:12px;padding:8px}#equipment-panel .equipment-status{padding:2px}#equipment-panel .equipment-status .equipment-bonus{gap:2px}#equipment-panel .equipment-bonus>span{grid-template-columns:15px minmax(0,1fr) auto;gap:2px;font-size:11px}#equipment-panel .equipment-bonus img{width:15px;height:15px}#equipment-panel .equipment-bonus strong{font-size:11px;line-height:15px}}@media (width<=359px){#shop-panel .shop-card{gap:4px;padding:4px}#shop-panel .shop-machine-body{gap:4px}#shop-panel .shop-drops{padding:2px 3px}#chest-dialog .chest-kind-tabs button{padding:6px 4px}#chest-dialog .chest-opening-actions button{padding:8px 6px;font-size:13px}}:root{--game-max-width:clamp(320px,56.25svh,1040px);--game-width:min(100vw,var(--game-max-width))}html{scrollbar-gutter:stable both-edges}body{background:#142b50}#app{width:100%;max-width:var(--game-max-width);min-height:100dvh;margin-inline:auto}.shell,.workshop-page .shell{width:100%;max-width:var(--game-max-width);margin-inline:auto}.shell{padding-block:var(--workshop-top,167px) var(--workshop-bottom,141px)}#stats-label,.game-nav,.ambient-backdrop{width:min(100%,var(--game-max-width));max-width:var(--game-max-width);left:50%;right:auto;transform:translate(-50%)}dialog:not(.story-dialog){width:min(calc(100% - 28px),calc(var(--game-max-width) - 28px))}.tutorial-note,.tutorial-in-dialog .tutorial-note{max-width:calc(var(--game-width) - 32px)}.debug-badge{left:max(4px,calc((100% - var(--game-max-width))/2 + 4px))}.workshop-page .debug-badge{left:50%}#stats-label{height:clamp(124px,calc(var(--game-width) * .3667),161px);justify-content:center;align-items:stretch;gap:0;min-height:0;padding:0;display:flex}.hud-layout{gap:clamp(4px,calc(var(--game-width) * .015),7px);grid-template-columns:minmax(0,1fr) minmax(0,1.75fr) minmax(0,.65fr);align-items:stretch;width:min(100%,440px);min-width:0;height:100%;padding:6px;display:grid;container-type:inline-size}#stats-label .stat.primary{flex-direction:column;justify-content:center;align-items:center;gap:8px;min-width:0;margin:0;padding:0;display:flex}#stats-label .coin-row{justify-content:center;align-items:center;gap:4px;width:100%;min-width:0;max-width:none;padding:5px 0;display:flex}#stats-label #coins{white-space:nowrap;font-size:clamp(15px,4.4cqw,20px);line-height:1.2}#stats-label .rainbow-stock{grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;width:100%;max-width:none;margin:0;padding:5px 0;display:grid}#stats-label .rainbow-counter{flex-direction:column;align-items:center;gap:1px;min-width:0;display:flex}#stats-label .rainbow-counter img{width:clamp(20px,6.4cqw,28px);height:clamp(20px,6.4cqw,28px)}#stats-label .rainbow-counter strong{font-size:clamp(9px,2.8cqw,13px);line-height:1.25}#stats-label #open-chests,#stats-label #open-chests:hover{width:100%;max-width:none;height:100%;min-height:0;box-shadow:none;background:url(./header-chest-panel-v1-DxpNOtRQ.png) 50%/contain no-repeat;border:0;border-radius:0;grid-template-rows:1fr 1fr;grid-template-columns:1fr;align-self:stretch;gap:2px;margin:0;padding:10.25cqw 8.2cqw 8.2cqw 6.4cqw;display:grid}#stats-label #open-chests:before{display:none}#stats-label .chest-stat-info{justify-content:space-between;align-items:center;gap:3px;min-width:0;min-height:0;display:flex}#stats-label .chest-stat-info>.chest-kind{flex-direction:row;justify-content:start;align-items:center;gap:3px;min-width:0;display:flex}#stats-label .chest-kind img{flex:none;width:clamp(14px,4.6cqw,20px);height:clamp(14px,4.6cqw,20px)}#stats-label .chest-kind small{white-space:nowrap;font-size:clamp(9px,2.8cqw,12px);line-height:1.25}#stats-label .chest-stat-info strong{white-space:nowrap;min-width:0;padding:1px 3px;font-size:clamp(16px,4.6cqw,20px);line-height:1.2}#stats-label .chest-stat-info strong.wide-count{padding:1px;font-size:clamp(12px,3.9cqw,17px)}#stats-label .header-tools{flex-direction:column;justify-content:center;align-items:center;gap:4px;min-width:0;height:100%;display:flex}#stats-label #settings{flex:0 0 44px;width:44px;height:44px;margin:0;padding:3px;position:static}#stats-label #settings img{width:clamp(32px,9.75cqw,43px);height:clamp(32px,9.75cqw,43px)}#stats-label #floor-storage{flex-basis:clamp(60px,18.46cqw,81px);gap:0;width:100%;height:clamp(60px,18.46cqw,81px);padding:0}#stats-label .capsule-icon-wrap{flex-basis:clamp(60px,18.46cqw,81px);width:clamp(42px,12.3cqw,54px);height:clamp(60px,18.46cqw,81px)}#stats-label #capsule-icon{width:clamp(42px,12.3cqw,54px);height:clamp(42px,12.3cqw,54px)}#stats-label #capsule-count{padding:0;line-height:1;top:clamp(31px,10.1cqw,44px)}#stats-label .capacity-digits{max-width:min(21.4cqw,95px);height:clamp(23px,6.6cqw,28px)}:root{--workshop-tool-size:clamp(54px,calc(54px + (var(--game-width) - 400px) * .075),88px);--workshop-tool-icon:calc(var(--workshop-tool-size) * .7);--workshop-stock-icon:calc(var(--workshop-tool-size) * .815);--workshop-tool-gap:8px}.stock-drawer-toggle,.factory-edit-toggle,.factory-camera-reset{width:var(--workshop-tool-size);height:var(--workshop-tool-size)}.stock-drawer-toggle img,.factory-edit-toggle img,.factory-camera-reset img{width:var(--workshop-tool-icon);height:var(--workshop-tool-icon);image-rendering:auto;object-fit:contain}.stock-drawer-toggle img{width:var(--workshop-stock-icon);height:var(--workshop-stock-icon)}.workshop-page .factory-camera-reset{top:calc(var(--workshop-top,149px) + 4px + var(--workshop-tool-size) + var(--workshop-tool-gap))}.stock-drawer{top:calc(var(--workshop-tool-size) + var(--workshop-tool-gap))}.game-nav{gap:clamp(2px,calc((var(--game-width) - 320px) / 10),8px);padding-inline:4px}.game-nav button{width:min(29%,106px);height:min(calc(var(--game-width) * .29),106px)}.game-nav .nav-home{width:min(34%,121px);height:min(calc(var(--game-width) * .34),121px)}@media (height<=500px){:root{--workshop-tool-size:44px;--workshop-tool-gap:4px}#stats-label{height:110px}.hud-layout{padding-block:2px}#stats-label .header-tools{gap:0}.game-nav button{width:64px;height:64px;padding-bottom:6px}.game-nav .nav-home{width:72px;height:72px;padding-bottom:7px}.game-nav button[aria-current=page]:after{bottom:3px}.workshop-page #expand{width:min(210px,100%);padding-inline:6px;font-size:13px}#edit-mode-notice{min-height:62px;padding:17px 54px 23px 15px;font-size:13px;line-height:17px}#equipment-panel{border-width:8px;padding:4px 5px}#equipment-panel .equipment-status{border-width:5px}#equipment-panel .equipment-slot>div{width:28px}#equipment-panel .equipment-slot>span{font-size:12px;line-height:15px}}:root{--kit-blue:url(./button_standard_blue-DRehrt6-.png);--kit-blue-pressed:url(./button_standard_blue_pressed-BgxpKcaq.png);--kit-blue-disabled:url(./button_standard_blue_disabled-CLd0XigF.png);--kit-gold:url(./button_primary_gold_capsules-BrsnPyc5.png);--kit-cancel:url(./button_secondary_cancel_blue-BNtr-1aw.png);--kit-section:url(./panel_section_blue-8-eAT1wM.png);--kit-heading:url(./panel_heading_blue-CMie_72X.png);--kit-wallet:url(./panel_wallet_blue-BxzcbX5h.png);--kit-window:url(./window_reward_gold-DBI7Bkgv.png)}#dialog:not(.kit-gold-window){color:#234b80;border-radius:0;padding:24px 12px 12px;box-shadow:0 5px #1b3c6055;border:12px solid #0000!important;border-image:var(--kit-section) 54 66 50 270 fill / 27px 33px 25px 135px stretch!important;background:0 0!important}#dialog.kit-gold-window{color:#75421f;border-radius:0;padding:28px 12px 12px;box-shadow:0 5px #1b3c6055;border:12px solid #0000!important;border-image:var(--kit-window) 160 fill / 40px stretch!important;background:0 0!important}#dialog.kit-gold-window:before{content:"";width:76px;height:38px;image-rendering:pixelated;pointer-events:none;background:url(./crest_winged_star-iBtLOG__.png) 50%/contain no-repeat;position:absolute;top:0;left:calc(50% - 38px)}#dialog:not(.kit-gold-window) #dialog-title{border:1px solid #0000;border-image:var(--kit-heading) 25 37 24 35 fill / 13px 19px 12px 18px stretch;color:#234b80;background:0 0;margin:0 0 16px;padding:10px 16px;font-size:22px;line-height:1.3}#dialog.kit-gold-window #dialog-title{color:#75421f;margin:12px 0 16px;font-size:22px;line-height:1.5}#dialog:not(.story-dialog) :is(.pixel-button,.purchase-confirm,.text-button),.scene-edit-controls .scene-edit-button,.stock-drawer .drawer-machine,#dialog .pickup-sound-choice,.workshop-page #expand{border:1px solid #0000;border-image:var(--kit-button,var(--kit-blue)) var(--kit-slice,45 33 21 31) fill / var(--kit-border,22px 16px 10px 15px) stretch;box-shadow:none;color:var(--kit-color,#234b80);text-shadow:0 1px #fff8;background:0 0;border-radius:0;min-height:48px;padding:10px 20px;font-size:16px;line-height:1.4}#dialog:not(.story-dialog) :is(.pixel-button,.purchase-confirm):active:not(:disabled),#dialog .pickup-sound-choice:active{transform:translateY(1px)}#dialog:not(.story-dialog) .pixel-button:not(#equip-now):disabled{opacity:.55;filter:grayscale(.6)}#dialog :is(#machine-purchase-confirm,#floor-upgrade-confirm,#unlock-machine-confirm,#tile-purchase-confirm,#confirm-equip),.workshop-page #expand{--kit-button:var(--kit-gold);--kit-slice:35% 17% 35% 20%;--kit-border:20px 32px 20px 38px;--kit-color:#75421f;min-height:56px;padding:10px 38px;font-size:18px}#dialog:not(.story-dialog):not(.dialog-top-close) #dialog-close{--kit-button:var(--kit-cancel);--kit-slice:35% 14% 35% 14%;--kit-border:17px 23px;min-height:48px;padding:10px 24px}#dialog .text-button{--kit-button:var(--kit-cancel);--kit-slice:35% 14% 35% 14%;--kit-border:17px 23px;width:100%;min-height:48px;padding:10px 24px}#dialog.dialog-top-close{padding-top:44px}#dialog.dialog-top-close #dialog-close{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;font-size:24px}#dialog.dialog-top-close #dialog-title{margin-right:40px}#dialog:not(.story-dialog) #equip-now{border:10px solid #0000;border-image:var(--panel-frame) 96 / 20px stretch;color:#fffaf1;text-shadow:0 1px #88394e;background:#e9677b;min-height:56px}#dialog .pickup-sound-choice:disabled{--kit-button:var(--kit-blue-disabled)}#shop-panel .buy-button,#chest-dialog .reward-ad-button{border:1px solid #0000;border-image:var(--kit-gold) 35% 17% 35% 20% fill / 20px 32px 20px 38px stretch;box-shadow:none;color:#75421f;background:0 0;border-radius:0}#shop-panel .buy-button{min-height:64px;padding:10px 38px}#chest-dialog .reward-ad-button{gap:8px;min-height:64px;padding:6px 32px}#chest-dialog .reward-ad-button>img{width:48px;height:48px}#chest-dialog .reward-ad-copy{color:#75421f;gap:0;font-size:16px;line-height:1.25}#stats-label .coin-row,#stats-label .rainbow-stock{border:1px solid #0000;border-image:var(--kit-wallet) 40 121 40 100 fill / 5px 10px stretch;clip-path:none;box-shadow:none;background:#edf7fff5 padding-box padding-box}#dialog .setting-row{color:#234b80;border:0;border-bottom:2px solid #b7cde3;gap:8px;padding:12px 8px;font-size:16px;line-height:1.4;box-shadow:0 1px #fff}#dialog .setting-row select{appearance:none;color:#234b80;background:#f4faff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' shape-rendering='crispEdges'%3E%3Cpath fill='%23234b80' d='M0 0h10v2H8v2H6v2H4V4H2V2H0z'/%3E%3C/svg%3E") right 8px center/10px 6px no-repeat;border:2px solid #6483ab;border-radius:0;max-width:58%;min-height:44px;padding:8px 26px 8px 8px;box-shadow:inset 2px 2px #fff,inset -2px -2px #c3d9ee}#dialog .setting-row input[type=checkbox]{appearance:none;background:#f7fcff;border:3px solid #53769c;border-radius:0;flex:none;width:28px;height:28px;position:relative;box-shadow:inset 2px 2px #bfd6ed}#dialog .setting-row input[type=checkbox]:checked{background:#ffedaa;border-color:#9b7337;box-shadow:inset 2px 2px #fffbd9}#dialog .setting-row input[type=checkbox]:checked:after{content:"";clip-path:polygon(0 38%,25% 38%,25% 62%,38% 62%,38% 38%,50% 38%,50% 25%,62% 25%,62% 12%,75% 12%,75% 0,100% 0,100% 25%,88% 25%,88% 38%,75% 38%,75% 50%,62% 50%,62% 62%,50% 62%,50% 75%,25% 75%,25% 62%,12% 62%,12% 50%,0 50%);background:#234b80;position:absolute;inset:3px}#dialog .setting-row input[type=range]{appearance:none;accent-color:#5279ac;background:0 0;height:32px}#dialog input[type=range]::-webkit-slider-runnable-track{background:#c6dcf2;border:2px solid #7193b6;height:10px;box-shadow:inset 0 2px #fff}#dialog input[type=range]::-webkit-slider-thumb{appearance:none;background:#ffe090;border:3px solid #956d34;border-radius:0;width:20px;height:24px;margin-top:-9px;box-shadow:inset 2px 2px #fff6c8,0 2px #445e7a55}#dialog .pickup-sound-settings{border:1px solid #0000;border-image:var(--kit-heading) 25 37 24 35 fill / 13px 19px 12px 18px stretch;background:0 0;margin:18px 0 12px;padding:12px 10px}#dialog .pickup-sound-settings legend{color:#234b80;background:#e9f5ff;padding:2px 8px;font-size:16px}#dialog .pickup-sound-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#dialog .pickup-sound-choice{min-height:48px;padding:8px 6px}#dialog .pickup-sound-choice[aria-pressed=true]{--kit-button:var(--kit-blue-pressed);color:#fff5d0;text-shadow:0 1px #234b80}#dialog .controls-help{border:1px solid #0000;border-image:var(--kit-heading) 25 37 24 35 fill / 13px 19px 12px 18px stretch;color:#234b80;background:0 0;padding:10px 12px}#dialog .controls-help summary{min-height:32px;font-size:16px}#dialog .story-replay-actions{gap:8px}#dialog .story-replay-actions button{padding-inline:8px;font-size:14px}#dialog .machine-confirm-cost,#dialog .floor-confirm-cost,#dialog .unlock-costs{border:1px solid #0000;border-image:var(--kit-wallet) 40 121 40 100 fill / 10px 20px stretch;box-shadow:none;color:#75421f;background:0 0;padding:12px 8px}.workshop-page #expand{--kit-border:16px 26px 16px 30px;height:44px;min-height:44px;padding:4px 32px;font-size:15px}.workshop-page .expansion-strip{bottom:8px}.stock-drawer{border:1px solid #0000;border-image:var(--kit-section) 54 66 50 270 fill / 22px 22px 18px 90px stretch;background:0 0;padding:16px 5px 8px;box-shadow:0 4px #234b8044}.stock-drawer header{background:0 0;border-bottom:2px solid #9abbd9;gap:2px;padding:0 2px}.stock-drawer header b{color:#234b80;font-size:12px}.stock-drawer header button{color:#234b80;background:0 0;width:30px;min-width:30px;min-height:44px;font-size:26px}.stock-drawer-list{padding:6px 0 0}.stock-drawer .drawer-machine{min-height:96px;margin-bottom:8px;padding:10px 6px 8px}.stock-drawer .drawer-machine.sweet-stock{--kit-button:var(--kit-blue-pressed)}.stock-drawer .drawer-machine.sweet-stock>strong{color:#fff5d0;text-shadow:0 1px #234b80}.scene-edit-controls .scene-edit-button{padding:10px 12px;font-size:15px}#dialog .land-map-choice{color:#75421f;background:#fff2be;border:3px solid #b18a49;box-shadow:inset 2px 2px #fffbed}#dialog .land-map-choice[aria-pressed=true]{color:#fffbed;background:#166c60;border-color:#12453d;box-shadow:inset 0 0 0 2px #a8f3d6,0 0 0 1px #12453d}#dialog .land-map-choice:focus-visible{outline-offset:1px;outline:2px solid #234b80}#dialog .tutorial-bonus>div{background:0 0;border:0}#dialog .tutorial-bonus :is(h2,strong,b){color:#75421f}@media (width<=359px){#dialog:not(.kit-gold-window),#dialog.kit-gold-window{padding-left:8px;padding-right:8px}#dialog .setting-row{padding-inline:4px;font-size:15px}#dialog .pickup-sound-settings{padding:10px 6px}}#dialog #floor-upgrade-confirm{flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 16px;display:flex}.floor-upgrade-price{white-space:nowrap;justify-content:center;align-items:center;gap:5px;display:inline-flex}.floor-upgrade-price img{object-fit:contain;width:26px;height:26px}.floor-upgrade-price strong{font-size:20px;line-height:1.3}.stock-drawer .drawer-machine,.stock-drawer .drawer-machine.sweet-stock{width:100%;min-height:98px;box-shadow:none;color:#234b80;text-shadow:none;background:0 0;border:0;border-bottom:1px solid #9abbd980;border-image:;border-radius:0;flex-direction:column;align-items:center;gap:4px;margin:0;padding:8px 2px;display:flex}.stock-drawer .drawer-machine:last-child{border-bottom:0}.stock-drawer .drawer-machine:hover:not(:disabled){filter:none;background:#ffffff40}.stock-drawer .drawer-machine>strong{color:#234b80;text-shadow:none;font-size:14px;font-weight:400;line-height:18px}.drawer-art{place-items:center;width:64px;height:64px;display:grid;position:relative}.drawer-art>.shop-machine-sprite{object-fit:contain;image-rendering:auto;width:100%;height:100%}.drawer-art>.rarity-icon{width:64px;height:64px}.drawer-count{color:#fff9e7;font-synthesis:weight;white-space:nowrap;pointer-events:none;background:#24466e;border:1px solid #173354;border-radius:4px;justify-content:center;align-items:center;gap:1px;min-width:25px;min-height:18px;padding:1px 3px;font-size:15px;font-weight:700;line-height:1;display:inline-flex;position:absolute;bottom:-2px;right:-5px;box-shadow:inset 0 0 0 1px #84b2dc}.drawer-count>span{font-size:11px}.drawer-sweet-effect{pointer-events:none;flex-direction:column;align-items:center;gap:2px;font-size:12px;line-height:16px;display:flex}.drawer-sweet-effect>span:last-child{white-space:nowrap;justify-content:center;align-items:center;gap:3px;display:flex}.drawer-sweet-effect img{object-fit:contain;image-rendering:auto;width:19px;height:19px}.drawer-sweet-effect b{color:#79501b;font-size:14px}@media (height<=620px){.stock-drawer{top:0}.stock-drawer-toggle[aria-expanded=true]{visibility:hidden}}#dialog.dialog-top-close #dialog-close,#inventory-dialog #owned-close,#chest-dialog #chests-close{width:44px;min-width:44px;height:44px;min-height:44px;box-shadow:none;filter:none;text-shadow:none;border-radius:0;place-items:center;margin:0;padding:0;display:grid;background:0 0!important;border:0!important;border-image:!important}#dialog.dialog-top-close #dialog-close img,#inventory-dialog #owned-close img,#chest-dialog #chests-close img{object-fit:contain;width:36px;height:36px;image-rendering:pixelated;pointer-events:none;display:block}#dialog #dialog-title.gear-picker-title{display:none}#dialog.dialog-top-close:has(.gear-picker-title){padding-top:56px}#stats-label .stat.primary{gap:4px}#stats-label .coin-row,#stats-label .rainbow-stock{box-shadow:none;clip-path:none;background:0 0;border:0;border-image:;padding:0}#stats-label .coin-row,#stats-label .rainbow-counter{isolation:isolate;flex-direction:row;justify-content:space-between;align-items:center;gap:4px;width:100%;min-width:0;padding:0 8px 0 0;display:flex;position:relative}#stats-label .coin-row{height:clamp(26px,7.2cqw,32px)}#stats-label .coin-row:before,#stats-label .rainbow-counter:before{content:"";z-index:-1;pointer-events:none;border:1px solid #0000;border-image:url(./header-resource-pill-v1-D51XCzW1.png) 35% 15% fill/7px 12px;position:absolute;inset:0 0 0 8px}#stats-label .coin-icon{flex:none;width:clamp(24px,7.2cqw,32px);height:clamp(24px,7.2cqw,32px)}#stats-label .rainbow-stock{grid-template-columns:minmax(0,1fr);gap:3px;width:100%;max-width:none;margin:0;display:grid}#stats-label .rainbow-counter{height:clamp(20px,5.8cqw,25px)}#stats-label .rainbow-counter img{object-fit:contain;flex:none;width:clamp(21px,6.4cqw,28px);height:clamp(22px,6.6cqw,29px)}#stats-label #coins,#stats-label .rainbow-counter strong{color:#fffdf3;white-space:nowrap;text-shadow:-1px 0 #38646d,1px 0 #38646d,0 -1px #38646d,0 1px #38646d;font-weight:700;line-height:1.2}#stats-label #coins{font-size:clamp(15px,4.4cqw,20px)}#stats-label .rainbow-counter strong{font-size:clamp(12px,3.6cqw,16px)}:is(#equipment-panel .equipment-slot,#equipment-panel .equipment-slot:has(.rarity-icon)){border:1px solid #0000;border-image:var(--kit-heading) 25 37 24 35 fill / 10px 8px stretch;box-shadow:none;background:0 0;border-radius:0;gap:3px;padding:3px 2px}#equipment-panel .equipment-slot>span{color:#294b75}#equipment-panel .equipment-slot>div:not(:has(.rarity-icon)){box-shadow:none;background:url(./equipment_slot-BoEFhhkJ.png) 50%/contain no-repeat;border:0;outline:0}.game-nav button,.game-nav .nav-home{justify-content:flex-end;padding-top:0}.game-nav .nav-plaque,.game-nav .nav-home .nav-plaque{object-fit:contain;filter:none;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.game-nav button b,.game-nav .nav-home b,.game-nav button[aria-current=page],.game-nav .nav-home[aria-current=page]{color:#3b365b;text-shadow:0 1px #fffbed}.game-nav b,#nav-shop-label{font-size:15px;line-height:19px;position:relative}html[lang=en] .game-nav b{font-size:12px}@media (width<=359px){.game-nav b,#nav-shop-label{font-size:14px;line-height:18px}}#stats-label .coin-row{--resource-height:clamp(26px,7.2cqw,32px);height:var(--resource-height)}#stats-label .rainbow-counter{--resource-height:clamp(20px,5.8cqw,25px);height:var(--resource-height)}#stats-label .coin-row:before,#stats-label .rainbow-counter:before{border-image-source:url(./header-resource-pill-v2-6aW1osry.png);border-image-slice:0 8% fill;border-image-width:0 calc(var(--resource-height) / 2)}#stats-label #coins,#stats-label .rainbow-counter strong{color:#354364;text-shadow:0 1px #fffdf4}:is(#equipment-panel .equipment-slot,#equipment-panel .equipment-slot:has(.rarity-icon)){border-image:var(--panel-frame) 96 / 10px stretch;background:#eaf5fe padding-box padding-box}#shop-panel .capacity-upgrade-section{padding:0}#shop-panel .capacity-upgrade-section .floor-upgrade-card{width:100%}.floor-total-summary{text-align:center;color:#496783;margin:6px 0 0;font-size:14px;line-height:20px}.edit-mode-notice{top:var(--workshop-top,149px);z-index:22;pointer-events:none;color:#403049;text-align:center;background:0 0;border:0;width:410px;max-width:calc(100% - 16px);min-height:94px;padding:32px 64px 40px 24px;font-size:14px;line-height:20px;position:absolute;left:50%;transform:translate(-50%)}.edit-bubble-art{image-rendering:auto;pointer-events:none;width:100%;height:calc(100% - 15.6px);position:absolute;inset:0;overflow:visible}.edit-bubble-art svg{image-rendering:auto;overflow:hidden}.edit-bubble-art image,.edit-bubble-art use{image-rendering:auto}#edit-mode-notice-text{display:block;position:relative}.edit-mode-close{pointer-events:auto;touch-action:manipulation;background:0 0;border:0;place-items:center;width:44px;height:44px;padding:8px;display:grid;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.edit-mode-close img{object-fit:contain;image-rendering:auto;width:28px;height:28px}.workshop-page .editing .stock-drawer-host,.workshop-page .editing .factory-edit-toggle{top:calc(var(--workshop-top,149px) + var(--edit-notice-height,0px) + 4px)}.workshop-page .editing .factory-camera-reset{top:calc(var(--workshop-top,149px) + var(--edit-notice-height,0px) + 4px + var(--workshop-tool-size) + var(--workshop-tool-gap))}.workshop-page:has(.editing) .debug-badge{top:calc(var(--workshop-top,149px) + var(--edit-notice-height,0px) + 8px)}.workshop-page:has(#scene-selection-actions:not([hidden])) .debug-badge{visibility:hidden}.scene-selection-actions{--action-side:50px;--action-bottom:calc(100% - 56px);--action-top:calc(var(--workshop-top,0px) + var(--edit-notice-height,0px) + 40px);left:clamp(var(--action-side),var(--selection-x),calc(100% - var(--action-side)));top:clamp(min(var(--action-top),var(--action-bottom)),var(--selection-y),var(--action-bottom));align-items:center;gap:4px;display:flex;position:absolute;transform:translate(-50%,calc(-100% - 4px))}.scene-selection-actions:has(#store-selected[hidden]){--action-side:26px}.scene-selection-actions button{filter:none;background:0 0;border:0;flex:none;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;display:grid}.scene-selection-actions button:active{translate:0 2px}.scene-selection-actions img{object-fit:contain;image-rendering:auto;pointer-events:none;width:36px;height:36px;filter:var(--toolbar-icon-outline)}.scene-selection-actions #rotate img{transform:scaleX(-1)}#stats-label #settings img{image-rendering:auto}#stats-label #open-chests,#stats-label #open-chests:hover{background-image:url(./header-chest-panel-v2-T5KJoRm3.png);padding-top:12.5cqw;padding-bottom:7cqw}#stats-label .chest-stat-info strong,#stats-label .chest-stat-info strong.wide-count{box-shadow:none;background:0 0;border:0;border-image:;border-radius:0;padding:0}#chest-dialog .chest-kind-tabs{border-bottom:3px solid #706284;align-items:stretch;gap:4px;margin:0;padding:0 4px}#chest-dialog .chest-kind-tabs button{color:#3f5274;min-height:48px;text-shadow:none;background:#bed2e8;border:3px solid #706284;border-image:;border-radius:8px 8px 0 0;flex:1;justify-content:center;align-items:center;gap:5px;margin:0 0 -3px;padding:8px 5px 7px;font-size:14px;line-height:20px;transition:none;display:flex;position:relative;transform:none;box-shadow:inset 0 3px #eef7ff}#chest-dialog .chest-kind-tabs [aria-selected=true]{z-index:1;color:#6a4436;background:#fff5dc;border-bottom-color:#fff5dc;box-shadow:inset 0 4px #f7ce77}#chest-dialog .chest-kind-tabs button:active:not(:disabled){transform:none}#chest-dialog .chest-kind-tabs button b{white-space:nowrap;font-size:13px;font-weight:400}#chest-dialog .chest-kind-tabs+.chest-stage{margin-top:0}#chest-dialog .chest-odds-button{width:48px;height:48px;min-height:48px;box-shadow:none;background:0 0;border:0;border-image:;border-radius:0;place-items:center;padding:5px;display:grid}#chest-dialog .chest-odds-button img{object-fit:contain;image-rendering:auto;width:38px;height:38px}@media (width<=359px){#chest-dialog .chest-kind-tabs button{gap:3px;padding-inline:3px;font-size:12px}#chest-dialog .chest-kind-tabs button b{font-size:12px}}body.story-playing{overflow:hidden}dialog.story-dialog{color:#49334e;width:100%;max-width:none;height:100dvh;max-height:none;box-shadow:none;text-align:left;margin:0;padding:0;position:fixed;inset:0;overflow:hidden;background:#fff3e9!important;border:0!important;border-image:!important}.story-dialog::backdrop{background:#fff3e9}.story-layout{height:100%;max-width:var(--game-max-width,1040px);background:linear-gradient(#eaf7ff,#fff0f8);flex-direction:column;margin:auto;display:flex;position:relative;container:story/inline-size}.story-header{z-index:4;padding:calc(14px + env(safe-area-inset-top)) 18px 12px;pointer-events:none;justify-content:flex-end;align-items:center;display:flex;position:absolute;inset:0 0 auto}.story-skip{border:1px solid #0000;border-image:var(--kit-cancel) 35% 14% 35% 14% fill / 17px 20px stretch;color:#425584;pointer-events:auto;text-shadow:0 1px #fff;background:0 0;border-radius:0;justify-content:center;align-items:center;gap:6px;min-width:108px;min-height:48px;padding:10px 18px;font-size:14px;display:flex}.story-skip i{color:#8a6c9a;font-size:20px;font-style:normal;line-height:18px}.story-stage{isolation:isolate;cursor:pointer;touch-action:manipulation;background:#eaf7ff;flex:1;width:100%;min-height:190px;padding:0;display:block;position:relative;overflow:hidden}.story-stage:hover:not(:disabled){filter:none}.story-scenery{background:var(--story-background) center 46%/cover no-repeat;image-rendering:pixelated;position:absolute;inset:0}.story-dialog[data-kind=ending] .story-stage:before{content:"";background:var(--story-background) center/cover;opacity:.24;position:absolute;inset:0}.story-dialog[data-kind=ending] .story-scenery{background-position:50%;background-size:auto 100%}.story-scenery:after{content:"";background:linear-gradient(#fffbe530,#0000 40%,#fff0f820);position:absolute;inset:0}.story-princess{aspect-ratio:1;width:min(48%,350px);height:auto;image-rendering:pixelated;filter:drop-shadow(0 7px 5px #243c5260);z-index:2;animation:.65s ease-out both story-appear;position:absolute;bottom:-2%;left:10%}.story-dialog[data-kind=ending] .story-princess{width:min(41%,305px);bottom:0;left:1%}@container story (width>=700px){.story-dialog[data-kind=ending] .story-princess{left:calc(50% - 315px)}}.story-dream{aspect-ratio:1;background:#fffdf1;border:4px solid #fff2c1;border-radius:44%;width:38%;animation:.8s ease-out both story-appear;position:absolute;top:20%;right:9%;overflow:hidden;box-shadow:0 0 0 3px #7b557a,0 0 0 7px #fffdf18f}.story-dream img{object-fit:contain;image-rendering:auto;width:100%;height:100%;padding:8%}.story-thoughts{letter-spacing:10px;font:bold 28px var(--game-font);color:#fff9dc;text-shadow:2px 0 #795779,-2px 0 #795779,0 2px #795779,0 -2px #795779;position:absolute;top:57%;left:44%;transform:rotate(-28deg)}.story-gacha{filter:drop-shadow(0 8px 3px #26395b60);width:min(35%,270px);animation:.8s ease-out both story-gacha-appear;position:absolute;bottom:3%;right:11%}.story-gacha img{image-rendering:auto;width:100%;height:auto;display:block}.story-gacha>span{font:48px var(--game-font);color:#ffeca0;text-shadow:0 0 24px #ffda66;animation:2.2s ease-in-out infinite story-star;position:absolute;top:-20%;left:35%}.story-radiance{opacity:0;pointer-events:none;background:radial-gradient(at 54% 40%,#fff7bb95,#0000 65%);position:absolute;inset:0}.story-dialog[data-kind=ending] .story-radiance{opacity:.45}.story-stage[data-scene=build] .story-scenery{animation:1.9s ease-out both story-castle-build}.story-stage[data-scene=build] .story-radiance{animation:1.9s ease-out both story-magic-flash}.story-castle-source{z-index:1;object-fit:contain;width:28%;animation:1.9s ease-in-out both story-castle-source;position:absolute;bottom:8%;right:22%}.story-sparks{pointer-events:none;z-index:3;position:absolute;inset:0}.story-spark{left:var(--x);top:var(--y);width:var(--size);height:var(--size);background:var(--spark-color);clip-path:polygon(50% 0,62% 37%,100% 50%,62% 63%,50% 100%,38% 63%,0 50%,38% 37%);animation:story-star 2.6s var(--delay) ease-in-out infinite;filter:drop-shadow(0 0 5px #fff);position:absolute}.story-thanks{z-index:3;text-align:center;color:#674369;text-shadow:2px 2px #fff9dc,-2px -2px #fff9dc,2px -2px #fff9dc,-2px 2px #fff9dc;animation:.9s ease-out both story-thanks-appear;position:absolute;inset:20% 10% auto}.story-thanks strong{letter-spacing:1px;font-size:clamp(30px,6vw,58px);line-height:1.2;display:block}.story-dialogue{margin:-10px 20px calc(18px + env(safe-area-inset-bottom));box-shadow:none;z-index:4;background:0 0;border:0;flex-shrink:0;padding:46px 30px 34px;position:relative}.story-dialogue .edit-bubble-art{top:15.6px}.story-dialogue-content{position:relative}.story-speaker{color:#b1517c;margin-bottom:6px;font-size:15px;font-weight:700;display:block}.story-dialogue #story-text{color:#49334e;white-space:pre-line;text-align:left;min-height:5.1em;text-shadow:none;font-size:18px;line-height:1.7}.story-actions{justify-content:space-between;align-items:center;gap:14px;margin-top:14px;display:flex}#story-pages{flex-shrink:0;align-items:center;gap:8px;display:flex}#story-pages i{background:#d5bbcd;width:7px;height:7px;display:block;transform:rotate(45deg)}#story-pages i.current{background:#d77eab;box-shadow:0 0 0 1px #fff7dc}.story-next{border:1px solid #0000;border-image:var(--kit-gold) 35% 17% 35% 20% fill / 20px 28px 20px 32px stretch;min-width:195px;min-height:56px;box-shadow:none;color:#75421f;background:0 0;padding:12px 32px;font-size:16px}.story-next:active{transform:translateY(2px)}.story-dialog button:focus-visible{filter:drop-shadow(0 0 2px #bc6594)drop-shadow(0 0 4px #fff3b6);outline:0}.story-replay-actions{gap:10px;margin:14px 0;display:flex}.story-replay-actions>button{flex:1}@keyframes story-appear{0%{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}@keyframes story-gacha-appear{0%{opacity:0;transform:translateY(30px)scale(.88)}to{opacity:1;transform:none}}@keyframes story-star{0%,to{opacity:.3;transform:scale(.55)}50%{opacity:1;transform:scale(1)}}@keyframes story-castle-build{0%{opacity:0;filter:brightness(1.8);transform:scale(1.08)}to{opacity:1;filter:brightness();transform:none}}@keyframes story-magic-flash{0%{opacity:0}45%{opacity:1}to{opacity:0}}@keyframes story-castle-source{0%,30%{opacity:1;transform:scale(.75)}75%,to{opacity:0;transform:translateY(-55px)scale(.25)}}@keyframes story-thanks-appear{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@container story (width<=540px){.story-header{padding:calc(12px + env(safe-area-inset-top)) 12px 12px}.story-dialogue{margin:-8px 12px calc(14px + env(safe-area-inset-bottom));padding:42px 24px 30px}.story-dialogue #story-text{min-height:5.1em;font-size:16px;line-height:1.7}.story-next{min-width:170px;padding:11px 28px;font-size:14px}.story-actions{gap:10px}.story-princess{width:74%;max-width:300px;bottom:1%;left:-9%}.story-dialog[data-kind=ending] .story-princess{width:59%;bottom:0;left:0}.story-dream{width:49%;top:21%;right:8%}.story-thoughts{letter-spacing:7px;font-size:22px;top:57%;left:31%}.story-gacha{width:45%;bottom:8%;right:4%}.story-thanks{inset:20% 6% auto}}@media (height<=650px){.story-header{padding:calc(9px + env(safe-area-inset-top)) 12px 12px}.story-dialogue{margin-bottom:calc(10px + env(safe-area-inset-bottom));padding:40px 22px 26px}.story-dialogue #story-text{min-height:6.6em;font-size:14px;line-height:1.65}.story-next{min-width:160px;min-height:48px;padding:10px 22px}.story-actions{margin-top:8px}.story-princess{max-width:220px}.story-thanks{top:25%}.story-thanks strong{font-size:28px}}@media (height<=500px){.story-layout{overflow-y:auto}.story-stage{min-height:165px}}@media (prefers-reduced-motion:reduce){.story-dialog *{animation:none!important}.story-castle-source{display:none}.story-stage[data-scene=build] .story-scenery{opacity:1;filter:none;transform:none}}.reduced-motion .story-castle-source{display:none}
