.art-icon,.choice-icon,.weapon-icon{display:inline-grid;place-items:center;flex:none;background:color-mix(in srgb,var(--art-color) 11%,var(--surface));color:var(--art-color);border-radius:13px}.art-icon svg,.choice-icon svg,.weapon-icon svg{display:block;width:100%;height:100%;padding:6px}.art-icon{width:44px;height:44px}.choice-icon{width:48px;height:48px}.weapon .weapon-icon{width:28px;height:28px;border-radius:8px}.weapon-icon svg{padding:3px}.weapon{border-color:color-mix(in srgb,var(--art-color) 25%,var(--line))}.choice{border-left:4px solid var(--art-color)}.choice.evolution{background:color-mix(in srgb,#fbbf24 8%,var(--surface))}.panel .description{white-space:pre-line}.target{display:none}.timer-urgent{color:#f43f5e}.run-bounty{display:inline-flex;align-items:center;gap:5px;color:#d97706;font-weight:700}.loot-legend{position:absolute;left:17px;bottom:82px;display:flex;gap:5px;pointer-events:none;opacity:.9}.loot-legend span{font-size:10px;padding:5px 8px;border-radius:8px;background:var(--panel);border-left:3px solid var(--loot-color)}
.menu-tabs{display:flex;gap:5px;padding:4px;border-radius:13px;background:var(--bg);margin:12px 0}.menu-tabs button{flex:1;border-radius:10px;padding:9px 12px;background:transparent;color:var(--muted);font-size:12px;font-weight:700}.menu-tabs button[aria-selected=true]{background:var(--surface);color:var(--brand);box-shadow:0 2px 8px #0f172a08}.meta-wallet{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;border:1px solid #fbbf2440;background:#fbbf2410;border-radius:12px;font-size:12px}.meta-wallet .art-icon{width:27px;height:27px;background:none}.meta-wallet svg{padding:1px}.meta-wallet b{color:#d97706;font-size:18px;font-variant-numeric:tabular-nums}.meta-wallet small{color:var(--muted);margin-left:auto;font-size:10px}.realm-picker{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:13px;padding:8px;margin:10px 0 16px}.realm-picker button{width:34px;height:34px;border-radius:10px;background:var(--bg);font-size:22px}.realm-picker button:disabled{opacity:.25}.realm-picker b{display:block;font-size:12px}.realm-picker small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.panel[data-screen=menu]{max-width:500px}.panel[data-screen=menu] .intro-art{display:none}.panel[data-screen=menu] .description{font-size:12px;margin:7px auto 9px}.panel[data-screen=menu] .hero-picker{margin:10px 0}.panel[data-screen=menu] .hero-choice canvas{height:44px;width:42px}.panel[data-screen=menu] .mode-picker{margin-bottom:9px}.panel[data-screen=menu] .panel-note{margin-top:12px}.panel[data-tab=talents]{max-width:560px}.talent-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:13px 0 17px;text-align:left}.talent-card{padding:12px;border:1px solid var(--line);border-radius:15px;background:var(--bg)}.talent-top{display:flex;align-items:center;gap:9px}.talent-top b{font-size:13px}.talent-top small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.talent-card p{font-size:11px;line-height:1.6;color:var(--muted);margin:7px 0;min-height:35px}.talent-pips{display:flex;gap:3px;margin-bottom:9px}.talent-pips i{height:5px;background:var(--line);flex:1;border-radius:4px}.talent-pips i.filled{background:#fbbf24}.talent-buy{width:100%;padding:8px 4px;border-radius:9px;font-size:11px;font-weight:700;background:var(--brand);color:#fff}.talent-buy:disabled{background:var(--surface);color:var(--muted);opacity:.65}.settlement{padding:14px;border-radius:14px;background:#fbbf2412;border:1px solid #fbbf2444;margin:0 0 20px;line-height:1.7}.settlement b{display:block;font-size:22px;color:#d97706}.settlement small{font-size:12px;color:var(--muted)}.save-note{color:#ea580c!important}.panel[data-screen=menu] .eyebrow{margin-bottom:4px}
.panel[data-screen=chest]{max-width:620px;overflow:hidden}.panel[data-screen=chest] h1{font-size:27px}.chest-stage{position:relative;padding-top:0}.treasure-art{width:190px;height:150px;margin:-8px auto -2px;position:relative}.treasure-art>svg{width:100%;height:100%;position:relative;z-index:1;overflow:visible}.chest-stage[data-phase=shaking] .treasure-art{animation:chest-rattle .19s ease-in-out infinite}.chest-lid{transform-origin:120px 47px;transition:transform .55s cubic-bezier(.2,.9,.2,1)}.chest-rays{opacity:0;transform:scaleY(.3);transform-origin:120px 110px;transition:opacity .4s,transform .6s}.chest-stage[data-phase=opened] .chest-lid{transform:translateY(-28px) rotate(-8deg)}.chest-stage[data-phase=opened] .chest-rays{opacity:.9;transform:scaleY(1)}.treasure-art::before{content:'';position:absolute;width:210px;height:210px;left:-10px;top:-40px;border-radius:50%;background:repeating-conic-gradient(from 10deg,#fbbf242a 0deg 14deg,transparent 14deg 33deg);mask-image:radial-gradient(#000 20%,transparent 68%);opacity:0}.chest-stage[data-phase=opened] .treasure-art::before{opacity:1;animation:treasure-rays 12s linear infinite}.tier-5 .treasure-art::before{background:repeating-conic-gradient(#fbbf2450 0deg 15deg,#c084fc24 15deg 26deg,transparent 26deg 40deg)}.secret-cat{position:absolute;width:72px;left:calc(50% + 65px);top:5px;opacity:0;transform:translateY(25px) rotate(12deg);transition:transform .5s,opacity .5s}.secret-cat svg{display:block;width:100%}.chest-stage[data-phase=opened] .secret-cat{opacity:1;transform:translateY(0) rotate(12deg)}.treasure-deck{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:15px 0 20px;min-height:125px;justify-content:center}.tier-1 .treasure-deck{grid-template-columns:minmax(0,140px)}.tier-3 .treasure-deck{grid-template-columns:repeat(3,minmax(0,140px))}.treasure-card{padding:12px 5px 10px;border-radius:15px;background:var(--bg);border:1.5px solid var(--line);opacity:0;transform:translateY(18px) scale(.85);transition:transform .35s cubic-bezier(.2,1.5,.5,1),opacity .3s}.treasure-card.revealed{opacity:1;transform:none}.treasure-card.evolved{border-color:#fbbf24;background:#fbbf240d}.treasure-card .art-icon{width:48px;height:48px;margin:0 auto 8px}.treasure-card b{display:block;font-size:11px;line-height:1.5}.treasure-card small{display:block;font-size:10px;color:#16a34a;margin-top:4px}.chest-summary{font-size:11px;color:var(--muted);margin-bottom:15px}.primary:disabled{opacity:.45;box-shadow:none}.loot-legend .legend-jade{--loot-color:#10b981}.loot-legend .legend-chest{--loot-color:#f59e0b}.loot-legend .legend-heart{--loot-color:#fb7185}
@keyframes chest-rattle{0%,100%{transform:rotate(-2deg) translateX(-2px)}50%{transform:rotate(2deg) translateX(2px)}}@keyframes treasure-rays{to{transform:rotate(360deg)}}
@media(max-width:580px){.panel[data-screen=menu]{padding:17px 15px}.panel[data-screen=menu] h1{font-size:26px}.menu-tabs{margin:9px 0}.meta-wallet small{font-size:9px}.talent-card{padding:9px}.talent-top{gap:6px}.talent-top .art-icon{width:35px;height:35px}.talent-top b{font-size:12px}.talent-card p{font-size:10px;min-height:32px}.talent-buy{font-size:10px}.treasure-deck{gap:4px;min-height:113px}.treasure-card{padding:9px 3px}.treasure-card .art-icon{width:38px;height:38px}.treasure-card b{font-size:10px}.treasure-art{width:165px;height:132px}.panel[data-screen=chest]{padding:22px 13px}.panel[data-screen=chest] h1{font-size:24px}.secret-cat{width:56px;left:calc(50% + 56px)}.loot-legend{left:12px;bottom:78px}.loot-legend span{font-size:9px;padding:4px 6px}}
@media(max-height:650px){.panel[data-screen=menu]{max-width:650px}.panel[data-screen=menu] .hero-choice canvas{height:36px;width:35px}.panel[data-screen=chest] .treasure-art{height:96px;width:130px}.panel[data-screen=chest] .description{margin:6px auto}.treasure-deck{min-height:105px;margin:8px 0 10px}.treasure-card .art-icon{width:36px;height:36px;margin-bottom:4px}.panel[data-screen=chest] .panel-note{margin-top:8px}.secret-cat{width:48px;left:calc(50% + 40px)}.panel[data-screen=menu] .hero-picker{margin-top:8px}.panel[data-screen=menu] .realm-picker{margin-bottom:10px}}
@media(max-height:460px) and (min-width:600px){.panel[data-screen=menu]:has(.hero-picker:not([hidden])){display:block;max-width:760px}.panel[data-screen=menu] .description,.panel[data-screen=menu] .eyebrow,.panel[data-screen=menu] .panel-note{display:none}.panel[data-screen=menu][data-tab=play]{display:grid!important;grid-template-columns:1fr 1fr;gap:8px 22px;padding:14px 20px}.panel[data-screen=menu] h1{font-size:22px;grid-column:1}.panel[data-screen=menu] .menu-tabs{grid-column:1;margin:0}.panel[data-screen=menu] .meta-wallet{grid-column:2;grid-row:1;padding:5px 9px}.panel[data-screen=menu] .hero-picker{grid-column:2;grid-row:2/4;margin:0}.panel[data-screen=menu] .mode-picker{grid-column:1;grid-row:3;margin:0}.panel[data-screen=menu] .realm-picker{grid-column:1;grid-row:4;margin:0;padding:3px}.panel[data-screen=menu] .panel-actions{grid-column:2;grid-row:4}.talent-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.panel[data-tab=talents]{max-width:740px}.talent-card{padding:7px}.talent-card p{margin:3px 0;min-height:30px;font-size:10px}.talent-top .art-icon{width:30px;height:30px}.talent-pips{margin-bottom:5px}.panel[data-tab=talents] .meta-wallet{display:none}.panel[data-screen=chest]{max-width:700px;padding:12px 22px}.panel[data-screen=chest] .eyebrow,.panel[data-screen=chest] .description,.panel[data-screen=chest] .panel-note{display:none}.chest-stage{min-height:120px;padding-left:140px}.treasure-art{position:absolute;left:0;top:18px}.treasure-deck{min-height:102px}.secret-cat{left:82px;top:12px}.chest-summary{margin-bottom:9px}.panel[data-screen=chest] h1{font-size:23px}}
@media(prefers-reduced-motion:reduce){.chest-stage *,.chest-stage *::before{animation:none!important;transition:none!important}}:root.reduced-effects .chest-stage *,:root.reduced-effects .chest-stage *::before{animation:none!important;transition:none!important}

/* Readable type and forgiving touch targets, including the small phone layout. */
:root{--muted:#526176}:root.dark{--muted:#b0bfd1}
.icon-btn{min-width:44px;min-height:44px}.primary,.secondary{min-height:48px;font-size:16px}.primary{padding:13px 27px}.secondary{padding:12px 18px}
.panel[data-screen=menu] .description,.description{font-size:15px;max-width:440px;line-height:1.7}.panel-note{font-size:12px}.menu-tabs button{font-size:15px;min-height:44px}.meta-wallet{font-size:14px}.meta-wallet small{font-size:12px}
.hero-choice b,.mode-picker b{font-size:15px}.hero-choice small,.mode-picker small{font-size:12px}.panel[data-screen=menu] .hero-choice canvas{height:54px;width:51px}
.realm-picker b{font-size:15px}.realm-picker small{font-size:12px;line-height:1.6}.realm-picker>button{flex:none;width:44px;height:44px}.realm-picker #realm-latest{width:auto;height:auto;min-height:36px;font-size:12px;padding:5px 12px;margin-top:5px;color:var(--brand)}
.talent-top b{font-size:15px}.talent-top small,.talent-card p{font-size:12px}.talent-card p{min-height:40px}.talent-buy{min-height:44px;font-size:13px}.endless-talent{grid-column:1/-1;border-color:#fbbf2460;background:linear-gradient(110deg,#fbbf2415,var(--bg))}.endless-talent .talent-pips{display:none}.endless-talent p{min-height:0}.endless-talent .talent-buy{background:#b45309}.endless-talent .talent-buy:disabled{background:var(--surface)}
.choice-text b{font-size:17px}.choice-text small{font-size:14px}.choice-level{font-size:12px}.choice{min-height:84px}.choice-icon{width:50px;height:50px}
.treasure-card b{font-size:14px}.treasure-card small,.chest-summary,.settlement small{font-size:13px}.chest-summary{line-height:1.7}.treasure-deck{min-height:138px}
.health,.experience{font-size:13px}.track{height:9px}.loot-legend span{font-size:12px}.stage-chip{font-size:12px}.burst-btn{min-height:60px}.burst-btn b{font-size:16px}.burst-btn small{font-size:12px}footer{font-size:12px}
@media(max-width:580px){
 .toolbar{gap:8px}.tools{gap:3px}.identity b{font-size:14px}.identity small{font-size:10px}.stat small{font-size:10px}.stat b{font-size:20px}.app{padding:8px}.icon-btn{border-radius:10px;min-width:40px;min-height:44px;width:40px}.identity{gap:0}
 .panel[data-screen=menu]{padding:20px 15px}.panel[data-screen=menu] .description{font-size:14px}.hero-choice small,.mode-picker small{font-size:11px}.hero-choice b,.mode-picker b{font-size:14px}.meta-wallet{padding:8px}.meta-wallet small{font-size:11px}.talent-top b{font-size:14px}.talent-card p{font-size:12px;min-height:58px}.endless-talent p{min-height:0}.talent-buy{font-size:13px}
 .choice{gap:9px;padding:10px}.choice-text b{font-size:16px}.choice-text small{font-size:13px}.choice-level{font-size:11px}.choice-icon{width:42px;height:42px}
 .tier-5 .treasure-deck{grid-template-columns:repeat(6,minmax(0,1fr))}.tier-5 .treasure-card{grid-column:span 2}.tier-5 .treasure-card:nth-child(4){grid-column:2/4}.tier-5 .treasure-card:nth-child(5){grid-column:4/6}.treasure-card b{font-size:13px}.treasure-card small{font-size:12px}.treasure-deck{min-height:123px;gap:6px}.chest-summary{font-size:12px}
 .loot-legend{bottom:88px;gap:3px}.loot-legend span{font-size:11px;padding:5px}.health b{font-size:12px}.burst-btn{padding:9px 11px}.burst-btn b{font-size:14px}.burst-btn small{font-size:11px}.field-bottom{gap:5px}.weapon{padding:5px;gap:3px}.loadout{gap:3px}.weapon .weapon-icon{width:24px;height:24px}footer{font-size:10px}.primary,.secondary{font-size:15px}
}
@media(max-height:460px) and (min-width:600px){.panel[data-screen=menu] .hero-choice canvas{height:36px;width:34px}.panel[data-tab=talents] .meta-wallet{display:flex}.talent-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.endless-talent{grid-column:1/-1}.loot-legend{display:none}.panel[data-screen=chest] .treasure-deck{min-height:110px}.panel[data-screen=menu] .mode-picker small{font-size:11px}}
.panel[data-screen=menu] .eyebrow{display:none}.panel[data-screen=menu]{padding-top:18px;padding-bottom:18px}.panel[data-tab=play] .hero-choice{padding:6px 3px}.panel[data-tab=play] .mode-picker button{padding:8px}.panel[data-tab=play] .hero-choice canvas{height:48px;width:46px}.panel[data-tab=play] .realm-picker{margin:8px 0 12px;padding:6px}.panel[data-tab=play] .panel-note{margin-top:10px}
.panel[data-tab=talents]{display:flex;flex-direction:column;max-height:100%;max-width:700px}.panel[data-tab=talents]>*{flex-shrink:0}.panel[data-tab=talents] h1{font-size:27px}.panel[data-tab=talents] .description{display:none}.panel[data-tab=talents] .talent-grid{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:5px;margin:12px 0}.panel[data-tab=talents] .panel-note{margin-top:10px}.panel[data-tab=talents] .panel-actions{padding-top:3px}
@media(min-width:760px){.panel[data-tab=talents] .talent-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.panel[data-tab=talents] .endless-talent{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:16px}.endless-talent .talent-top{grid-column:1}.endless-talent p{grid-column:1;margin-bottom:0}.endless-talent .talent-buy{grid-column:2;grid-row:1/3;width:auto;min-width:150px;padding:10px}}
.talent-actions{display:flex;flex-direction:column;gap:6px}.endless-talent .talent-actions{grid-column:2;grid-row:1/3}.talent-actions .bulk-buy{background:#92400e}.talent-actions .bulk-buy:disabled{background:var(--surface)}
@media(max-height:800px) and (min-width:600px){.panel[data-tab=play] .panel-note{margin-top:8px;font-size:11px}.panel[data-tab=play] .menu-tabs{margin:9px 0}.panel[data-screen=menu]{padding-top:14px;padding-bottom:14px}.panel[data-screen=chest]{padding:18px 26px}.panel[data-screen=chest] .treasure-art{height:120px;width:160px}.panel[data-screen=chest] .description{margin:7px auto 12px}.panel[data-screen=chest] .treasure-deck{min-height:116px;margin:10px 0 12px}.panel[data-screen=chest] .panel-note{margin-top:10px}.panel[data-screen=chest] .treasure-card .art-icon{height:42px;width:42px}}
@media(max-height:460px) and (min-width:600px){
 .panel[data-tab=talents]{display:grid;grid-template-columns:210px minmax(0,1fr);grid-template-rows:auto auto auto 1fr;column-gap:18px;row-gap:8px;max-width:800px;height:100%;padding:14px}
 .panel[data-tab=talents] h1{grid-column:1;grid-row:1;font-size:21px}.panel[data-tab=talents] .menu-tabs{grid-column:1;grid-row:2;margin:0}.panel[data-tab=talents] .menu-tabs button{font-size:13px;padding:7px 4px}
 .panel[data-tab=talents] .meta-wallet{grid-column:1;grid-row:3;padding:6px;flex-wrap:wrap;gap:5px}.panel[data-tab=talents] .meta-wallet small{font-size:10px}
 .panel[data-tab=talents] .panel-actions{grid-column:1;grid-row:4;align-self:end}.panel[data-tab=talents] .talent-grid{grid-column:2;grid-row:1/5;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;height:100%;align-content:start}
 .panel[data-tab=talents] .endless-talent{display:block}.panel[data-tab=talents] .endless-talent p{margin-bottom:7px}.panel[data-tab=talents] .endless-talent .talent-buy{width:100%}.panel[data-tab=talents] .talent-card p{font-size:12px}.panel[data-tab=talents] .panel-note{display:none}
}
.panel[data-screen=paused]{max-width:720px;max-height:100%;display:flex;flex-direction:column;padding:20px 25px}.panel[data-screen=paused]>*{flex-shrink:0}.panel[data-screen=paused] h1{font-size:27px}.panel[data-screen=paused] .description,.panel[data-screen=paused] .eyebrow{display:none}.panel[data-screen=paused] .panel-note{margin-top:10px}.pause-stats{flex:1!important;min-height:0;overflow:auto;text-align:left;margin:12px 0 16px;padding-right:5px;scrollbar-gutter:stable;overscroll-behavior:contain}.pause-status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;background:var(--bg);border-radius:12px;margin-bottom:14px;font-size:13px}.pause-status span{font-size:12px;color:var(--muted)}.pause-stats h2{font-size:14px;margin:13px 0 8px}.pause-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.pause-stat-grid>div{background:var(--bg);border:1px solid var(--line);border-radius:11px;padding:9px 11px;min-width:0}.pause-stat-grid dt{font-size:11px;color:var(--muted);line-height:1.5}.pause-stat-grid dd{font-size:19px;font-weight:750;margin:4px 0 0;font-variant-numeric:tabular-nums}.pause-arts{display:flex;flex-wrap:wrap;gap:6px}.pause-art{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:11px;padding:4px 8px 4px 4px;font-size:12px}.pause-art .art-icon{width:31px;height:31px;border-radius:8px}#boss-hud[data-kind=elite] #boss-fill{background:#2dd4bf}
@media(max-width:580px){.panel[data-screen=paused]{padding:18px 14px}.pause-status{align-items:flex-start;flex-direction:column;gap:5px}.pause-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pause-stat-grid dt{font-size:12px}.pause-stat-grid dd{font-size:18px}.panel[data-screen=paused] .panel-actions{gap:7px}.panel[data-screen=paused] .primary,.panel[data-screen=paused] .secondary{font-size:14px;padding:12px 14px;min-width:0}.pause-stats{margin-bottom:12px}}
@media(max-height:460px) and (min-width:600px){.panel[data-screen=paused]{padding:12px 20px;max-width:760px}.panel[data-screen=paused] h1{font-size:22px}.panel[data-screen=paused] .panel-note{display:none}.pause-stats{margin:8px 0 12px}.pause-status{margin-bottom:7px}}
#boss-hud>div:first-child{font-size:12px}#boss-hud{width:min(310px,80%)}
#boss-hud[data-enraged=true] #boss-fill{background:#f43f5e}#boss-hud[data-enraged=true] #boss-name{color:#be123c}:root.dark #boss-hud[data-enraged=true] #boss-name{color:#fda4af}
