/* Combat-first visual system: quiet surfaces, clear numbers, consistent controls. */
:root{--ui-font:'Inter','Aptos','Segoe UI',Arial,sans-serif;--ui-bg:#0c1420;--ui-panel:#111e2deb;--ui-line:#ffffff18;--ui-text:#edf4fc;--ui-muted:#91a5ba;--ui-cyan:#82d7ff;--ui-green:#77e8bf;--ui-amber:#ffc58b}
html,body{background:#080e17!important;color:var(--ui-text);font-family:var(--ui-font)!important}
body{background:radial-gradient(ellipse at 50% 15%,#233749 0%,#0b1420 54%,#080e17 100%)!important}
html body #game-shell,html body #game-shell button,html body #game-shell input,html body #game-shell select{font-family:var(--ui-font)!important;font-style:normal;font-variant-numeric:tabular-nums;font-feature-settings:'ss01' on;-webkit-font-smoothing:antialiased}
#game-shell{border:1px solid #95b4d52e!important;border-radius:24px!important;background:#14232c!important;box-shadow:0 28px 100px #0008,0 0 0 7px #ffffff03!important}
#game-shell button{transition:background .16s,border-color .16s,transform .16s}
#game-shell button:focus-visible{outline:2px solid #8ad9ff;outline-offset:3px}
#game-shell button:active{transform:translateY(1px)}
#hud{padding:max(14px,env(safe-area-inset-top)) 14px 24px!important;background:linear-gradient(180deg,#091421ed,#0914219c 76%,transparent)!important}
#hud .top-row{height:auto;min-height:40px;display:grid!important;grid-template-columns:65px minmax(0,1fr) 42px 36px!important;gap:8px!important;align-items:center}
#hud .top-row .brand{display:flex;align-items:flex-start;flex-direction:column;gap:1px;min-width:0}
#hud .brand span{font-size:10px!important;font-weight:600!important;letter-spacing:.13em;color:#99aebf!important}
#hud .brand strong{font-size:21px!important;line-height:1.1;font-weight:700!important;letter-spacing:-.04em;color:#e6f0fa!important;text-shadow:none!important}
#hud .stage-xp-inline{display:none!important}
#hud .stage-wallet{display:flex!important;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:3px 9px;min-width:0;padding:6px 9px!important;border:1px solid #ffffff12!important;border-radius:10px!important;background:#101e2ccc!important;box-shadow:none!important}
#hud .stage-wallet .coin-pill{display:flex;align-items:center;gap:4px;min-width:0;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:#bbccda!important}
#hud .coin-pill strong{font-size:12px!important;font-weight:600!important;color:inherit!important}
#hud .coin-pill span{font-size:10px!important;color:#d9c69e!important}
#hud .coin-pill.silver-stone-pill span{color:#cca8ed!important}
#hud .leave-stage-button,#hud .icon-button{height:36px!important;min-width:0;width:100%;padding:0!important;display:grid;place-items:center;border:1px solid #ffffff24!important;border-radius:9px!important;background:#142131cc!important;box-shadow:none!important;color:#aebed0!important;font-size:10px!important;letter-spacing:.035em}
#hud .leave-stage-button:hover{color:#ffadb1!important;border-color:#ef8a9266!important}
#hud .icon-button{font-size:19px!important}
#hud .stat-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:12px!important}
#hud .stat{position:relative;min-width:0;min-height:64px;padding:10px 13px 12px!important;border:1px solid #a7c6e21c!important;border-radius:12px!important;background:linear-gradient(140deg,#172638e8,#111d2bdc)!important;box-shadow:inset 0 1px #ffffff06,0 6px 14px #00000012!important}
#hud .stat span{display:block;font-size:10px!important;line-height:1.3;color:#99adbf!important;font-weight:600!important;letter-spacing:.1em}
#hud .stat strong{display:block;font-size:23px!important;font-weight:650!important;line-height:1.25;letter-spacing:-.04em;text-shadow:none!important;color:#e9f4ff!important}
#hud .stat.hp strong{color:#a4efce!important}
#hud .combat-stat-meter{height:3px!important;left:13px!important;right:13px!important;bottom:7px!important;border:0!important;border-radius:3px;background:#ffffff0c!important;box-shadow:none!important}
#hud .damage .combat-stat-meter b{background:#8ecfff!important;box-shadow:none!important;opacity:.7}
#hud .hp .combat-stat-meter b{background:#70ddb1!important;box-shadow:none!important}
#hud .stat.hp.danger{border-color:#f7838660!important;background:#341e29de!important}
#hud .weapon-chip{grid-column:1/-1;display:flex!important;align-items:center;justify-content:flex-end;gap:7px;min-height:0!important;padding:0 2px!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
#hud .weapon-chip span{font-size:9px!important;font-weight:600;letter-spacing:.075em;color:#7791a6!important}
#hud .weapon-chip strong{font-size:10px!important;font-weight:650;letter-spacing:.03em;color:#b0c7d9!important;text-shadow:none}
#hud .monster-loot-popup{top:100%;margin-top:-14px;padding:5px 9px!important;border:1px solid #ffffff12!important;border-radius:8px!important;background:#0d1826d9!important;box-shadow:none!important;max-width:90%}
#hud .monster-loot-popup>small{display:none!important}
#hud .monster-loot-popup span{font-size:10px!important;font-weight:500!important;color:#a7baca!important}
#hud .monster-loot-popup b{font-size:11px!important;font-weight:650!important;color:#e9f2fb!important}
#toast{top:190px!important;max-width:calc(100% - 32px)!important;padding:10px 14px!important;border:1px solid #ffffff20!important;border-radius:10px!important;background:#0e1b2be8!important;box-shadow:0 8px 24px #0003!important;color:#dfecf7!important;font-size:12px!important;font-weight:550!important;letter-spacing:0!important;line-height:1.45;backdrop-filter:blur(12px)}
#toast.stat-gain{top:auto!important;bottom:150px!important;font-size:12px!important;color:#a9edcc!important;border-color:#89d8b42e!important}
.claim-banner{max-width:calc(100% - 32px)!important;border:1px solid #ffffff22!important;border-radius:12px!important;background:#0e1b2beb!important;box-shadow:0 12px 30px #0004!important}
.claim-banner strong{font-size:17px!important;letter-spacing:-.02em!important;color:#eef6ff!important}.claim-banner small{font-size:12px!important;line-height:1.4;color:#a8bdd0!important}
.active-skill-hud>.boost-settings-button,.stage-world-actions .stage-info-button{border:1px solid #a9cee430!important;border-radius:13px!important;color:#a0cee9!important;background:#122132eb!important;box-shadow:0 5px 16px #0004!important}
.active-skill-hud>.boost-settings-button .settings-gear-icon{width:26px!important;height:26px!important}
.stage-world-actions .stage-info-button small{font-size:9px!important;font-weight:600!important;letter-spacing:.06em}
.stage-world-actions .stage-info-button span{font-size:22px!important;color:#add8f1!important}
.stage-world-actions{right:14px!important;bottom:max(16px,env(safe-area-inset-bottom))!important}
.world-sector-card{position:absolute;left:14px;bottom:max(20px,calc(env(safe-area-inset-bottom) + 8px));z-index:41;max-width:calc(100% - 90px);pointer-events:none;border-left:2px solid var(--sector-color,#82d7ff);padding:5px 12px;background:linear-gradient(90deg,#0b1723c9,transparent);text-shadow:0 1px 3px #0008}
.world-sector-card[hidden]{display:none!important}.world-sector-card small{display:block;color:#afc1cf;font-size:10px;font-weight:600;letter-spacing:.1em;line-height:1.6}.world-sector-card strong{display:block;color:#edf6ff;font-size:17px;line-height:1.45;font-weight:600;letter-spacing:-.025em}.world-sector-card span{display:block;color:var(--sector-color,#82d7ff);font-size:12px;font-weight:550;line-height:1.5}
/* Home and shared dialogs follow the same typography and surface language. */
.home-panel{background:linear-gradient(180deg,#0b172545,transparent 45%,#0b1725b5 80%,#0b1725f5)!important}
.home-command-header{border:1px solid #a4c8e02b!important;border-radius:17px!important;background:linear-gradient(135deg,#14273ae8,#142432e0)!important;box-shadow:0 8px 30px #0003!important;backdrop-filter:blur(18px)!important}
.home-command-header::before{display:none!important}.home-command-header .home-brand strong{color:#edf5ff!important;font-style:normal!important;text-shadow:none!important;letter-spacing:-.045em!important}.home-command-header .home-brand span{color:#9bb6ca!important;letter-spacing:.12em!important}
.home-command-header .home-wallet{border:0!important;background:#07121c55!important;box-shadow:none!important}
.home-command-header .home-resource-box,.home-command-header .home-key-box,.home-command-header .home-cp,.home-command-header .home-xp{border:1px solid #a4c8e01a!important;background:#0c1b2bd9!important;box-shadow:none!important;color:#e7f2fe!important;border-radius:10px!important}
.home-command-header small,.home-command-header em{color:#93aec0!important;font-style:normal!important}.home-command-header b,.home-command-header strong{color:#e0edf7!important;text-shadow:none!important}
.home-panel .home-feature-button,.home-panel .home-side-feature,.home-panel .account-button{border:1px solid #9fc9e52b!important;border-radius:12px!important;background:#132337eb!important;box-shadow:0 6px 20px #0003!important;color:#c2d7e8!important}
.home-panel .home-feature-button strong,.home-panel .home-feature-button span,.home-panel .home-side-feature span{color:#d7e9f4!important;text-shadow:none!important;font-size:11px!important;letter-spacing:.025em!important}
.home-stage-actions .primary-button,#play-button{border:1px solid #b2f7e76b!important;border-radius:13px!important;background:linear-gradient(120deg,#69d7be,#8ae2cc)!important;box-shadow:0 7px 24px #3acdaa25!important;color:#0f302d!important;text-shadow:none!important;font-style:normal!important}
#play-button strong{font-size:25px!important;letter-spacing:-.035em!important;font-style:normal!important;color:#10342f!important;text-shadow:none!important}#play-button small{font-size:11px!important;color:#22594d!important;letter-spacing:.12em!important}
.modal,.boost-settings-modal,.stage-entry-modal,.stage-stats-modal{backdrop-filter:blur(14px);background:#07101ccc!important}
.boost-settings-card,.stage-entry-card,.stage-stats-card,.stage-select-card,.result-card,.operations-card{border:1px solid #93b7d52e!important;border-radius:20px!important;background:linear-gradient(145deg,#17283a,#0d1c2b)!important;box-shadow:0 24px 70px #0007!important;color:#e4eff9!important}
.boost-settings-card h2,.stage-entry-card h2,.stage-stats-card h2,.stage-select-card h2,.result-card h2{color:#edf5ff!important;font-size:27px!important;font-style:normal!important;font-weight:650!important;letter-spacing:-.04em!important;text-shadow:none!important}
.boost-settings-card p,.stage-entry-card p,.stage-stats-card p{color:#a3b8ca!important;font-size:13px!important;line-height:1.55!important}
.stage-entry-reward,.stage-entry-stat,.skill-order-settings,.skill-order-item,.fps-settings,.fps-options button,.boost-setting-row{border:1px solid #a2c6e024!important;border-radius:11px!important;background:#0c1a28a8!important;box-shadow:none!important;color:#d8e8f6!important}
.stage-entry-reward strong{font-size:14px!important;font-weight:600!important}.stage-entry-reward small,.stage-entry-reward b{font-size:10px!important;line-height:1.5;color:#95acbf!important}.stage-entry-reward i{border:1px solid #ffffff14!important;border-radius:9px!important;background:#ffffff06!important;box-shadow:none!important}
.skill-order-heading strong,.skill-order-item strong,.fps-settings h3,.fps-options button strong{color:#dcecf8!important;font-size:13px!important;letter-spacing:0!important}.skill-order-heading small,.skill-order-item small,.skill-order-settings>p{font-size:11px!important;color:#90aabd!important}.skill-order-handle,.skill-order-arrows button{color:#aacce6!important;border:1px solid #ffffff18!important;background:#1b3045!important;box-shadow:none!important}
#boot-splash{background:radial-gradient(ellipse at 50% 35%,#243c4e,#101d2d 55%,#0b1320)!important;color:#e5f2fd!important}
#boot-splash>div>b{border:1px solid #b4d7e34d!important;border-radius:22px!important;background:linear-gradient(140deg,#234558,#162a3b)!important;box-shadow:0 12px 40px #0004!important;transform:none!important;font-weight:650!important;color:#9ee8d8!important}
#boot-splash strong{color:#f0f7fd!important;font-family:var(--ui-font)!important;font-style:normal!important;font-size:27px!important;font-weight:600!important;letter-spacing:-.04em!important}
#boot-splash span,#boot-splash small{color:#8ba8bc!important;font-family:var(--ui-font)!important;font-size:11px!important;line-height:1.5;letter-spacing:.04em!important}
#boot-splash i{height:3px!important;border:0!important;background:#ffffff12!important;box-shadow:none!important}#boot-progress{background:#8ce1ca!important;box-shadow:none!important}
@media(max-width:430px){#game-shell{border:0!important;border-radius:0!important;box-shadow:none!important}#hud{padding-inline:12px!important}#hud .top-row{grid-template-columns:52px minmax(0,1fr) 38px 32px!important;gap:6px!important}#hud .stage-wallet{gap:3px 6px;padding:5px 7px!important}#hud .coin-pill strong{font-size:11px!important}.world-sector-card strong{font-size:15px}.world-sector-card span{font-size:11px}.home-command-header{border-radius:14px!important}}
@media(prefers-reduced-motion:reduce){#game-shell button{transition:none!important}.claim-banner,#toast{transition:opacity .1s!important}}

/* Focused character mode. Feature data stays saved while its menus are hidden. */
#game-shell .home-stage-actions #storefront-button{grid-column:1!important;grid-row:1!important;min-height:42px!important;display:flex!important;justify-content:center;align-items:center;gap:9px;padding:9px 16px!important;border:1px solid #b6a2e44a!important;border-radius:12px!important;background:#242b42e8!important;box-shadow:none!important;color:#d4c7ef!important}
#game-shell .home-stage-actions #storefront-button>i{font-style:normal;font-size:18px;background:none!important}#game-shell .home-stage-actions #storefront-button>span{font-size:13px!important;font-weight:650;color:#e0d5f5!important}#game-shell .home-stage-actions #storefront-button>small{font-size:11px!important;color:#aaacd0!important}
#game-shell #storefront-button::before,#game-shell #storefront-button::after{display:none!important}
#game-shell .home-panel .home-stage-actions:has(#storefront-button){grid-template-rows:auto auto auto!important}
#game-shell .home-stage-actions:has(#storefront-button) #stage-select-open{grid-row:2!important}
#game-shell .home-stage-actions:has(#storefront-button) #play-button{grid-row:3!important}
#storefront-panel{padding:20px 18px 90px!important;background:#0b1826f5!important}
#storefront-panel .storefront-card{width:100%;max-height:calc(100dvh - 110px);padding:18px!important;overflow-y:auto;border:1px solid #a3bdd52b!important;border-radius:18px!important;background:#132438!important;color:#dcebf7;box-shadow:none!important}
#storefront-panel h2{font:650 27px/1.2 var(--ui-font)!important;color:#eef7ff!important;letter-spacing:-.04em!important;text-shadow:none!important}
#storefront-panel .eyebrow,#storefront-panel .storefront-countdown span,#storefront-panel .storefront-countdown small{font-size:10px!important;line-height:1.4;color:#9db5cb!important}
#storefront-panel .storefront-countdown strong{font-size:16px!important;color:#b9e6dd!important}
#storefront-panel .vip-offer,#storefront-panel .free-daily-offer,#storefront-panel .storefront-offer{display:grid;grid-template-columns:minmax(0,1fr) 106px;gap:13px;margin-top:12px;padding:15px!important;border:1px solid #a4c7dd29!important;border-radius:13px!important;background:#0d1c2e!important;box-shadow:none!important}
#storefront-panel .vip-offer{background:linear-gradient(130deg,#342b49,#192b40)!important;border-color:#bd9beb55!important}
#storefront-panel h3{margin:5px 0 8px;font-size:17px!important;font-weight:650!important;line-height:1.3;color:#e6eefb!important;letter-spacing:-.02em}
#storefront-panel p{font-size:13px!important;line-height:1.55;color:#b4cada!important}
#storefront-panel .vip-offer span,#storefront-panel .free-daily-offer span,#storefront-panel small{font-size:10px!important;line-height:1.5;color:#a3bcd0!important}
#storefront-panel #vip-status{color:#b9ebd3!important;font-size:12px!important}
#storefront-panel .storefront-offer{grid-template-columns:24px minmax(0,1fr) 92px;gap:9px}
#storefront-panel .storefront-offer>i{font-size:23px!important;color:#bce4eb!important;font-style:normal;background:none!important;border:0!important;box-shadow:none!important}
#storefront-panel .storefront-offer button,#storefront-panel #buy-vip,#storefront-panel #claim-free-shop{align-self:center;min-height:48px;border:1px solid #a5d8cf48!important;border-radius:10px!important;background:#214941!important;box-shadow:none!important;color:#c4f1df!important}
#storefront-panel button strong,#storefront-panel #free-daily-stat-reward{font-size:16px!important;line-height:1.4;color:#caf2e1!important}
#storefront-panel button span{font-size:10px!important;color:inherit!important}
#storefront-panel button:disabled{opacity:.45}
#storefront-panel .store-test-banner{padding:12px;border:1px solid #e6be8055;border-radius:11px;background:#342f2799;color:#e6cfad}
#storefront-panel .store-test-banner strong{font-size:12px!important}#storefront-panel .store-test-banner span{font-size:11px!important;line-height:1.5}#storefront-panel .store-test-banner button{min-height:34px;font-size:9px;border:1px solid #e6be8033;background:#262a34;color:#dbc6ad;border-radius:7px}
#storefront-panel .storefront-section-title{margin-top:20px;display:flex;flex-direction:column;align-items:flex-start;gap:3px}#storefront-panel .storefront-section-title span{font-size:13px;color:#d5e3ef}#storefront-panel .storefront-message{font-size:11px!important}
#storefront-panel .page-home-footer{bottom:18px!important}#storefront-panel .home-back{min-height:44px;border:1px solid #a3c6de33!important;border-radius:11px!important;background:#183049!important;box-shadow:none!important;color:#c5dfef!important;font-size:13px!important}
.movement-stick{position:absolute;z-index:39;left:0;top:0;pointer-events:none!important;user-select:none;opacity:.48;will-change:transform}
.movement-stick[hidden]{display:none!important}.movement-stick.active{opacity:.92}
.movement-stick-track{position:absolute;inset:0;border:1px solid #b5dbed66;border-radius:50%;background:radial-gradient(circle,#c1e7f50a 0 32%,#0c1d3026 33% 69%,#b8e2f50d 70%);box-shadow:inset 0 0 0 7px #c8edff08,0 5px 22px #07101b18}
.movement-stick-track::after{content:'';position:absolute;inset:27%;border:1px solid #b5dbed22;border-radius:50%}
.movement-stick-thumb{position:absolute;z-index:1;left:50%;top:50%;width:35%;height:35%;border:1px solid #d1eeff8c;border-radius:50%;background:radial-gradient(circle at 35% 25%,#adcfe970,#5b92b644);box-shadow:0 3px 12px #07152244,inset 0 1px #e6f5ff55;transform:translate(-50%,-50%)}
.movement-stick>span{position:absolute;top:calc(100% + 10px);left:0;width:100%;color:#c0d8e6;text-align:center;font:600 10px/1 var(--ui-font);letter-spacing:.18em;text-shadow:0 1px 4px #0008}
.movement-stick.active>span{opacity:0}.movement-stick.active .movement-stick-track{border-color:#bce9ff99;background-color:#0b1b2d22}
#game-shell .home-side-rail,#game-shell .home-coming-soon-actions,
#game-shell #persistent-nav,#game-shell .home-wallet,#game-shell .home-cp,
#game-shell #home-xp,#game-shell .hero-card,
#game-shell #time-reward-button,#game-shell #time-reward-modal,
#game-shell #rebirth-button,#game-shell .stage-wallet,#game-shell #weapon-chip,
#game-shell #monster-loot-popup,#game-shell .active-skill-hud,
#game-shell #stage-world-actions,#game-shell #stage-buffs,
#game-shell #dungeons-modal,#game-shell #skills-modal,
#game-shell #boost-settings-modal,#game-shell #storefront-modal{display:none!important}
#game-shell .home-command-header{position:absolute;top:max(22px,env(safe-area-inset-top));left:22px;right:22px;display:flex!important;min-height:0!important;margin:0!important;padding:0!important;gap:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;backdrop-filter:none!important}
#game-shell .home-command-header .home-brand{position:static!important;display:flex;gap:11px;align-items:center;margin:0!important;padding:0!important}
#game-shell .home-brand .logo-mark{width:42px;height:42px;display:grid;place-items:center;border:1px solid #9acdde38!important;border-radius:12px!important;background:#173044!important;box-shadow:none!important;transform:none!important;color:#a6e5d6!important;font:700 15px/1 var(--ui-font)!important}
#game-shell .home-brand .logo-mark::before,#game-shell .home-brand .logo-mark::after{display:none!important}
#game-shell .home-brand .eyebrow{margin:0 0 4px!important;color:#8ea7ba!important;font-size:10px!important;line-height:1.3!important;font-weight:600!important;letter-spacing:.15em!important}
#game-shell .home-brand h1{margin:0!important;color:#edf6ff!important;font-family:var(--ui-font)!important;font-size:24px!important;line-height:1.15!important;font-style:normal!important;font-weight:650!important;letter-spacing:-.045em!important;text-shadow:none!important;-webkit-text-stroke:0!important}
#game-shell .home-brand h1 em{color:#9cd9c9!important;font:inherit!important;text-shadow:none!important;-webkit-text-stroke:0!important}
#game-shell .home-command-header #account-button{position:relative!important;inset:auto!important;display:grid!important;place-items:center;flex:0 0 44px;width:44px!important;height:44px!important;min-height:44px;margin:0 0 0 auto!important;padding:0!important;border:1px solid #9acdde38!important;border-radius:12px!important;background:#173044!important;box-shadow:none!important;color:#b9d8e8!important}
#game-shell #account-button.synced{color:#9ce8cd!important}#game-shell #account-button.error{color:#ffa9b6!important}
#game-shell #account-button::after{background:#829aaa;border:2px solid #173044;box-shadow:none}#game-shell #account-button.synced::after{background:#77e8bf}#game-shell #account-button.error::after{background:#ff899e}
.character-stat-summary{position:absolute;z-index:5;top:max(92px,calc(env(safe-area-inset-top) + 70px));left:22px;right:22px;padding:0}
.character-stat-summary>p{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 10px;color:#b0c8d9;font-size:11px;font-weight:650;line-height:1.4;letter-spacing:.11em}
.character-stat-summary>p span{color:#8aa5b9;font-size:12px;font-weight:450;letter-spacing:0}
.character-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.character-stat-grid article{min-width:0;padding:15px 12px;border:1px solid #a6c6df26;border-radius:14px;background:linear-gradient(145deg,#182e42ed,#122537ed);box-shadow:0 8px 22px #0000001f}
.character-stat-grid article>span{display:flex;align-items:center;gap:5px;color:#b4cbdc;font-size:12px;line-height:1.4;font-weight:550;white-space:nowrap}
.character-stat-grid article i{font-style:normal;color:var(--stat-color);font-size:14px}
.character-stat-grid article strong{display:block;margin-top:8px;color:var(--stat-color);font-size:clamp(18px,4.8vw,27px);font-weight:650;letter-spacing:-.04em;line-height:1.3;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.character-stat-grid article small{display:block;margin-top:4px;color:#93aebf;font-size:11px;font-weight:450;line-height:1.4}
.character-stat-damage{--stat-color:#ffce99}.character-stat-hp{--stat-color:#9ce8cd}.character-stat-regen{--stat-color:#9bd9f6}
#game-shell .home-panel{background:linear-gradient(180deg,#0b1823f5 0%,#0b1823df 20%,#0b182333 36%,transparent 50%,#0b182365 72%,#0b1823f5 100%)!important}
#game-shell .home-panel .home-stage-actions{position:absolute;left:22px!important;right:22px!important;bottom:max(38px,calc(env(safe-area-inset-bottom) + 22px))!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:10px!important;padding:0!important;min-height:0!important}
#game-shell .home-stage-actions #stage-select-open{position:static!important;inset:auto!important;grid-column:1!important;grid-row:1!important;justify-self:stretch!important;width:100%!important;min-height:46px!important;margin:0!important;padding:12px 16px!important;border:1px solid #a5cadb3d!important;border-radius:12px!important;background:#172b3ee8!important;box-shadow:none!important;transform:none!important;color:#bbd5e7!important;font:550 13px/1.3 var(--ui-font)!important;letter-spacing:.035em!important}
#game-shell #stage-select-open::before,#game-shell #stage-select-open::after,#game-shell #stage-select-open>span{display:none!important}
#game-shell .home-stage-actions #play-button{grid-column:1!important;grid-row:2!important;width:100%!important;min-height:76px!important;margin:0!important;padding:14px 20px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:14px!important;border-radius:14px!important}
#game-shell #play-button>i{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#174b3b16;font-size:15px;font-style:normal;color:#1a4d3f}
#game-shell #play-button strong{font-size:27px!important;line-height:1.25!important}#game-shell #play-button small{font-size:11px!important;line-height:1.5!important;font-weight:650!important}
#game-shell .home-panel .privacy-link{right:22px!important;bottom:max(10px,env(safe-area-inset-bottom))!important;border:0!important;background:none!important;color:#7f9bad!important;font-size:10px!important;letter-spacing:0!important;padding:0!important}
#hud .top-row{grid-template-columns:1fr 44px 36px!important;gap:8px!important}
#hud .stat-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#hud .stat.regen strong{color:#a2d8f5!important}
#hud .stat span{font-size:10px!important;letter-spacing:.06em!important}
#hud .stat strong{font-size:22px!important;overflow-wrap:anywhere}
@media(max-width:390px){#game-shell .home-command-header,.character-stat-summary{left:16px!important;right:16px!important}.character-stat-grid{gap:6px}.character-stat-grid article{padding:12px 9px}.character-stat-grid article>span{font-size:11px;gap:4px}.character-stat-grid article small{font-size:10px}#game-shell .home-panel .home-stage-actions{left:16px!important;right:16px!important}#hud .stat{padding-inline:9px!important}#hud .stat strong{font-size:19px!important}}
@media(max-height:650px){.character-stat-summary{top:80px}.character-stat-grid article{padding-block:10px}.character-stat-grid article small{display:none}#game-shell .home-panel .home-stage-actions{bottom:26px!important;gap:7px!important}#game-shell .home-stage-actions #play-button{min-height:60px!important}#game-shell .home-stage-actions #stage-select-open{min-height:40px!important}}

#boss-permanent-rewards{display:none}.permanent-boss-reward #boss-permanent-rewards{display:grid;gap:8px;margin-top:14px}.permanent-boss-reward>div{display:none!important}
#game-shell .boss-reward.permanent-boss-reward{z-index:90;border-radius:18px;border:1px solid #789fb4;background:#0d2135f5;box-shadow:0 16px 50px #0008;padding:20px;max-width:340px}
#game-shell .boss-reward.permanent-boss-reward.show{animation:none;opacity:1;visibility:visible;transform:translate(-50%,-50%)}
#game-shell .permanent-boss-reward>strong{font:700 22px/1.2 var(--ui-font);color:#eef8ff}
#game-shell #boss-permanent-rewards span{font:650 16px/1.4 var(--ui-font);border-radius:8px;padding:9px;background:#ffffff08;text-align:left}
#boss-permanent-rewards [data-boss-damage]{color:#ffc183!important}#boss-permanent-rewards [data-boss-hp]{color:#ff93ba!important}#boss-permanent-rewards [data-boss-regen]{color:#8ce7cb!important}
#boss-permanent-rewards small{font-size:11px;color:#b0c5d5}#boss-permanent-rewards time{font-size:15px;font-variant-numeric:tabular-nums;color:#e0effa}

#game-shell .home-panel .home-stage-actions:has(#titles-button){grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}#game-shell .home-stage-actions:has(#titles-button) #stage-select-open,#game-shell .home-stage-actions:has(#titles-button) #play-button{grid-column:1 / -1!important}#game-shell .home-stage-actions #titles-button{grid-column:2;grid-row:1;min-height:42px;border:1px solid #cfb96c66;border-radius:12px;background:#292c37;color:#f1d791;font-size:13px;font-weight:650;pointer-events:auto}#game-shell .home-stage-actions:has(#titles-button) #storefront-button{padding-inline:8px!important;gap:5px}#game-shell .home-stage-actions:has(#titles-button) #storefront-button>small{display:none}
#titles-dialog{width:min(440px,calc(100% - 28px));max-height:85dvh;overflow:auto;box-sizing:border-box;padding:22px;border:1px solid #547084;border-radius:18px;background:#102234;color:#e7f2fa;font-family:var(--ui-font)}#titles-dialog::backdrop{background:#030a13bd}#titles-dialog>header{display:flex;justify-content:space-between;align-items:center}#titles-dialog h2{margin:5px 0;font-size:24px}#titles-dialog small,#titles-dialog p{color:#aec5d5;font-size:12px;line-height:1.6}#titles-dialog label{display:block;font-size:13px;margin-top:16px}#titles-dialog select{width:100%;padding:10px;margin:8px 0 14px;background:#1c3448;color:#e8f1f9;border:1px solid #527084;border-radius:8px}#titles-dialog button{padding:10px 14px;border:1px solid #59778e;border-radius:9px;background:#213f55;color:#eef8ff;cursor:pointer}#titles-dialog button:disabled{opacity:.5;cursor:default}#title-list{display:grid;gap:12px;margin-bottom:16px}#title-list article{padding:15px;border:1px solid #385064;border-left:3px solid var(--title-color);border-radius:10px;background:#132b3d}#title-list header{display:flex;gap:10px;justify-content:space-between;align-items:center}#title-list strong{color:var(--title-color);font-size:15px}#title-list header span{font-size:10px;color:#b7cddd}#title-list .title-bonus{color:#bce6d3}#title-list .title-bonus span{display:block;color:#a9bbc9;font-size:10px}#title-list button{width:100%}
