/* Compact, native-game layout. All values come from server state. */
.roaming-boss>img{max-width:calc(100% - 6px)!important;max-height:calc(100% - 6px)!important}
.hero-stack.long-number .gift-balance strong{font-size:25px}.hero-stack.long-number .poring{height:105px}.hero-stack.long-number .poring img{height:90px}.hero-stack.very-long-number .gift-balance strong{font-size:20px}.hero-stack.very-long-number .poring{height:80px}.hero-stack.very-long-number .poring img{height:70px}
.hud{gap:10px}.rates{min-width:0;gap:15px}.rates>span{white-space:normal;min-width:0}.rates b{overflow-wrap:anywhere;line-height:1.2}.hud-tools{flex-shrink:0}
.scene-art{inset:0;width:100%;height:100%;aspect-ratio:auto;translate:none;filter:none;transition:opacity .3s}.scene-light{background:linear-gradient(#10241b20,transparent 32%,#10231955)}
.location-label{cursor:default}.hero-stack{position:absolute;inset:64px 14px 93px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;z-index:3;pointer-events:none}.hero-stack .poring{position:relative;top:auto;left:auto;translate:none;flex-shrink:0;pointer-events:auto;width:180px;height:155px}.hero-stack .poring img{height:125px}.hero-stack .poring-shadow{bottom:8px}
.gift-balance{width:100%;text-align:center;pointer-events:none;line-height:1.15;color:#fff1bc;text-shadow:0 2px 4px #142517,0 0 18px #142517;overflow-wrap:anywhere}.gift-balance strong{display:block;font-family:Manrope,sans-serif;font-size:clamp(26px,4vw,39px);font-weight:800;font-variant-numeric:tabular-nums;white-space:normal;word-break:normal;overflow-wrap:anywhere}.gift-balance>span{display:block;font-size:12px;letter-spacing:.6px;color:#f1e2c6;margin-top:4px}.hero-stack.in-combat{inset:auto 14px 87px}.hero-stack.in-combat .gift-balance strong{font-size:25px}
.scene-bottom{gap:8px}.magic-button{flex-wrap:wrap;gap:5px}.magic-button b{white-space:normal;overflow-wrap:anywhere;margin-left:2px}.magic-button small{margin-left:auto}.mvp-progress{width:100%;display:flex;flex-direction:column;gap:5px}.mvp-progress>span{font-size:11px;letter-spacing:.3px;color:#fff0c9;text-shadow:0 1px 3px #162418}.discovery-track{height:5px}
.encounter{position:absolute;inset:0;z-index:4;background:radial-gradient(ellipse at 50% 40%,#2d151110,#23110a44);pointer-events:none}.encounter-head{position:absolute;top:54px;left:14px;right:14px;text-align:center;color:#ffe5b2;display:flex;flex-direction:column;gap:4px;text-shadow:0 2px 3px #1a1d13}.encounter-head>b{font-size:19px}.encounter-head>small{font-size:12px;color:#ffdbc1}.encounter-head>.hp-track{height:8px;margin:3px auto 0;width:min(220px,90%)}.encounter-head>span{font-size:12px}.roaming-boss{position:absolute;translate:-50% -50%;width:106px;height:106px;display:grid;place-items:center;background:radial-gradient(ellipse,#f3d2a030,transparent 67%);pointer-events:auto;border-radius:50%;touch-action:manipulation;user-select:none}.roaming-boss>img{max-width:99px;max-height:100px;image-rendering:pixelated;pointer-events:none;filter:drop-shadow(0 6px 4px #080e08bb)}.roaming-boss:disabled{cursor:wait}.roaming-boss:focus-visible{outline:none}
.machine-row{grid-template-columns:36px minmax(0,1fr);gap:6px 8px;padding:10px;min-height:94px}.machine-portrait{width:36px;height:36px;grid-row:1/3}.machine-name{font-size:14px;line-height:1.25;margin-bottom:5px}.machine-data{align-items:flex-start;gap:5px}.machine-rate{white-space:normal;overflow-wrap:anywhere}.machine-buy{grid-column:2;justify-self:stretch;min-height:28px;padding:5px 7px;font-size:13px;white-space:normal;overflow-wrap:anywhere;line-height:1.25}.machine-buy>.icon{display:block}.machine-level{margin-left:auto;font-size:11px}.machine-row.locked{min-height:64px}.machine-row.locked .machine-portrait{grid-row:auto}.machine-row.locked .machine-name{font-size:16px}
.dock{min-height:53px}.dock>button{gap:5px;font-size:13px;min-width:0;flex-wrap:wrap;align-content:center}.dock>button>.icon{width:19px;height:19px}.dock>button>span{min-width:0}.dock>button.booster-button{flex:.88;gap:4px;border-left:1px solid #b7ae64;flex-wrap:nowrap;position:relative;background:linear-gradient(#555e33,#34422c);padding:3px 8px}.booster-button>img{width:37px;height:42px;object-fit:contain;filter:drop-shadow(0 2px 4px #0005)}.booster-button>span{display:flex;flex-direction:column;gap:1px}.dock .booster-button b{background:none;border:0;padding:0;margin:0;font-size:19px;font-family:Manrope,sans-serif;font-weight:800}.dock .booster-button small{font-size:10px;color:#e3d9b4}.booster-button>i{position:absolute;right:5px;top:5px}.dock>button.booster-button.claimable{background:linear-gradient(#aa8136,#6b632c);color:#fff4ce;border-color:#f6d681;box-shadow:inset 0 0 16px #ffdb7155;animation:claim-glow 1.5s ease-in-out infinite alternate}.booster-button.claimable>img{filter:drop-shadow(0 0 7px #ffe79b)}.dock .booster-button.claimable small{color:#fff5b7;font-size:11px;font-weight:700}
.requirement-label{flex-wrap:wrap}.requirement-label strong{white-space:normal;overflow-wrap:anywhere}.rebirth-reward img{height:42px;width:35px;object-fit:contain}.stat strong{font-size:19px;overflow-wrap:anywhere}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-content{text-align:center;max-width:400px;margin:auto}.daily-content>img{width:90px;height:110px;object-fit:contain}.daily-content h3{font-size:24px;color:#f1dda0;margin:6px 0 12px}.daily-content p{font-size:14px;color:#c6d3ad}.daily-slots{display:flex;gap:10px;margin:22px 0}.daily-slots>span{flex:1;padding:14px 8px;background:#1f3121;border:1px solid #6c7f4f;border-radius:5px;display:flex;align-items:center;justify-content:center;gap:8px;color:#9fb08b}.daily-slots b{font-size:13px}.daily-slots .available{border-color:#e8c67e;color:#ffe3a3;background:#766b3333}.daily-slots .done{border-color:#9db977;color:#cbdfad}.daily-content>.primary-button{min-width:200px}
.nickname-form{display:flex;align-items:center;gap:8px;margin-bottom:8px}.nickname-form label{font-size:14px;color:#d4ddbd}.nickname-form input{min-width:0;flex:1;width:100%;font:inherit;font-size:15px;padding:9px 10px;border:1px solid #8e9c69;border-radius:4px;background:#172b20;color:#fff0c2;outline-color:#e4ca82}.nickname-form button{min-width:52px}.ranking-rule{font-size:12px;color:#bec9a9;margin:10px 0}.ranking-scroll{overflow:auto}.ranking-table{width:100%;border-collapse:collapse;font-size:14px;table-layout:fixed}.ranking-table th{font-size:12px;text-align:left;color:#b6c5a1;font-weight:500;padding:9px 6px;border-bottom:1px solid #80915f}.ranking-table td{padding:11px 6px;border-bottom:1px solid #78905438;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.ranking-table th:first-child{width:36px}.ranking-table th:nth-child(2){width:34%}.ranking-table th:nth-child(3){width:75px}.ranking-table th:last-child{text-align:right}.ranking-table td:last-child{text-align:right;color:#e5d298}.ranking-table tr.self{background:#a4b26022;color:#fff3c6;box-shadow:inset 3px 0 #ecd18c}.ranking-table td small{display:inline-block;margin-left:6px;color:#c6d9a9;font-size:10px}.ranking-pages{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:14px;font-size:13px;color:#c4d2ad}.ranking-pages button{min-width:36px;padding:5px}
@keyframes claim-glow{to{box-shadow:inset 0 0 22px #ffdf8080,0 0 14px #e6c36d55;filter:brightness(1.15)}}
@media(max-width:760px){.play-area{grid-template-columns:minmax(0,1fr) 245px}.hud{padding:0 9px}.rates{gap:12px}.rates>span{font-size:14px}.rates small{font-size:11px}.gift-balance strong{font-size:31px}.hero-stack .poring{width:155px;height:137px}.hero-stack .poring img{height:112px}.buff{top:49px;left:12px;right:auto;font-size:12px}.dock>button{font-size:12px}.dock .shop-balance{display:none}.ranking-table th:nth-child(3){width:65px}}
@media(max-height:510px){.hero-stack{inset:65px 12px 85px;gap:0}.hero-stack .poring{width:150px;height:121px}.hero-stack .poring img{height:104px}.hero-stack .poring-shadow{width:105px;height:20px;bottom:3px}.gift-balance strong{font-size:28px}.hero-stack.in-combat{inset:auto 12px 83px}.hero-stack.in-combat .gift-balance strong{font-size:22px}.encounter-head{top:47px}.encounter-head>b{font-size:17px}.encounter-head>small{font-size:11px}.encounter-head>.hp-track{margin-top:1px}.encounter-head>span{font-size:11px}.dock{min-height:47px}.booster-button>img{height:36px;width:30px}.dock .booster-button b{font-size:17px}.scene-bottom{bottom:8px;left:10px;right:10px;gap:6px}.magic-button{font-size:12px;padding:5px 7px;min-height:31px}.mvp-progress>span{font-size:10px}.daily-content>img{height:74px}.daily-content h3{font-size:22px}.daily-slots{margin:14px 0}.daily-content p{font-size:13px}.rebirth-reward{margin-top:13px}}
@media(max-width:540px){.play-area{grid-template-columns:1fr}.workshops{max-height:37%;border-left:0;border-top:2px solid #7e8154}.scene{min-height:220px}.workshop-header{display:flex;flex-direction:row;align-items:center;padding:7px 10px;gap:10px}.workshop-title{min-width:85px}.workshop-title h1{font-size:15px}.quantities{margin-left:auto;width:180px;flex-shrink:0}.machine-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}.machine-row{min-height:100px;padding:8px;gap:5px;grid-template-columns:30px minmax(0,1fr);border-right:1px solid #74805244}.machine-portrait{width:30px;height:33px}.machine-name{font-size:12px}.machine-data{flex-wrap:wrap}.machine-rate{font-size:11px}.machine-level{font-size:10px}.machine-buy{font-size:12px}.hero-stack{inset:38px 12px 65px}.hero-stack .poring{width:105px;height:82px}.hero-stack .poring img{height:74px}.hero-stack .poring-shadow{width:75px;height:15px;bottom:0}.gift-balance strong{font-size:25px}.gift-balance>span{font-size:10px;margin-top:1px}.scene-bottom{bottom:7px;gap:5px}.magic-button{padding:4px 7px;min-height:25px;font-size:11px;max-width:100%}.magic-button .icon{width:13px;height:13px}.magic-button small{font-size:9px}.mvp-progress>span{font-size:9px}.discovery-track{height:4px}.location-label{top:7px;left:8px;font-size:12px;padding:5px 7px}.buff{top:7px;left:auto;right:8px;padding:5px;font-size:11px}.buff .icon{display:none}.buff span{font-size:10px}.dock>button{flex-direction:row;font-size:11px;gap:4px;min-height:46px}.dock>button>.icon{height:17px;width:17px}.dock>button.booster-button{padding:3px 5px;gap:1px}.booster-button>img{width:25px;height:34px}.dock .booster-button b{font-size:16px}.dock .booster-button small{font-size:9px}.ranking-table{font-size:12px}.ranking-table th:first-child{width:27px}.ranking-table th:nth-child(3){width:58px}.ranking-table th,.ranking-table td{padding:9px 4px}.nickname-form{gap:6px}.nickname-form label{font-size:12px}.nickname-form input{font-size:14px;padding:8px}.hero-stack.in-combat{inset:auto 10px 65px}.hero-stack.in-combat .gift-balance strong{font-size:18px}.encounter-head{top:34px;left:10px;right:10px;gap:2px}.encounter-head>b{font-size:14px}.encounter-head>small{font-size:10px}.roaming-boss{width:76px;height:76px}.roaming-boss>img{max-width:72px;max-height:72px}}
@media(prefers-reduced-motion:reduce){.dock>button.booster-button.claimable{animation:none;box-shadow:inset 0 0 25px #ffdc7590}}
