/* Stable modal surface: never resize the arena or replay a slide on a mutation. */
.phone:has(.play-screen){overflow:hidden;overflow-anchor:none}
.play-screen.modal-open{min-height:0}
.drawer-backdrop{inset:0;z-index:60;background:#090e28a6;touch-action:none}
.bottom-drawer.growth-popup{inset:14px 9px calc(14px + var(--safe-bottom));max-height:none!important;z-index:62;border-radius:18px;animation:none!important;transform:none!important;box-shadow:0 12px 55px #03071599;overflow:hidden}
.growth-popup .drawer-handle{display:none}
.growth-popup>header{margin-top:0;min-height:60px;padding:8px 13px;flex:none}
.growth-popup>header:after{display:none}
.growth-popup .drawer-scroll{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;scroll-behavior:auto;scrollbar-gutter:stable;padding:14px 11px 22px}
.growth-popup .drawer-guide{flex:none}
.growth-heroes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:12px}
.growth-heroes button{min-width:0;border:1px solid #c9bed3;border-radius:11px;background:#f7f3fa;padding:4px 1px 6px;color:#5b486a}
.growth-heroes button[aria-pressed=true]{border:2px solid #9972bc;background:#eee1fc;box-shadow:0 2px 0 #bea5ce}
.growth-heroes .character-art{width:100%;height:64px;display:block}
.growth-heroes b,.growth-heroes small{display:block;font-size:11px}.growth-heroes small{font-size:9px;color:#84718c}.growth-heroes .not-owned .character-art{filter:grayscale(.8);opacity:.55}
.growth-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;background:#ddd4e5;padding:4px;border-radius:10px;margin-bottom:16px}
.growth-tabs button{padding:9px 1px;border:0;border-radius:7px;background:none;font-size:11px;white-space:nowrap;color:#735e80;font-weight:750}
.growth-tabs button[aria-pressed=true]{background:#fff9f0;color:#463255;box-shadow:0 2px 6px #57416c22}
.growth-note,.growth-summary p,.level-panel p,.fusion-consume,.growth-sources p{font-size:11px;line-height:1.7;color:#786985;margin:7px 0}
.growth-summary{background:#e9e1ef;border:1px solid #d4c6df;border-radius:12px;padding:12px;margin:13px 0;color:#4b375c}.growth-summary>b{font-size:13px}
.character-profile{display:grid;grid-template-columns:110px 1fr;gap:12px;align-items:center;margin:4px 0 18px}
.character-profile h3{font-size:22px;margin:3px 0}.character-profile h3 span{font-size:12px;color:#9b729e}.character-profile p,.character-profile small{font-size:11px;color:#776783;margin:4px 0}
.character-stats{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:12px}.character-stats span{font-size:10px;background:#fff8;padding:5px 7px;border-radius:6px;color:#81718d}.character-stats b{display:block;color:#4a365c;font-size:16px}
.growth-card-art{position:relative;background:radial-gradient(ellipse at 50% 35%,#fffaf0,#e7dce9 67%);border:1px solid #c5b3d4;border-radius:11px;aspect-ratio:3/4;min-width:0;overflow:hidden}
.growth-card-art .character-art{position:absolute;width:94%;height:83%;left:3%;top:3%}.growth-card-art>b{position:absolute;bottom:6px;left:0;width:100%;text-align:center;color:#b27a20;text-shadow:0 1px #fff3a3;font-size:15px;letter-spacing:1px}.growth-card-art>small{position:absolute;left:5px;top:5px;background:#4a3c65c9;color:#fff4e2;padding:1px 5px;border-radius:5px;font-size:9px}
.variant-light{background:radial-gradient(#fff,#f4e7a3);border-color:#cca94b}.variant-dark{background:radial-gradient(#d9b3fa,#69568c);border-color:#9c6ac4}.variant-dark>b{color:#fff0bd}
.level-panel{padding:14px;border:1px solid #c7b9d7;border-radius:12px;background:#fff8}.level-panel>div{display:flex;justify-content:space-between;font-size:11px;color:#6e537a}.level-panel progress{width:100%;height:12px;accent-color:#8d69ae;margin-top:8px}.level-panel .button{margin-top:6px}
.legacy-training{margin-top:20px;border-top:1px solid #cbbbce;padding-top:12px;font-size:11px;color:#766280}.legacy-training summary{cursor:pointer}.legacy-training>div{display:flex;align-items:center;justify-content:space-between;padding:6px 0;gap:8px}.legacy-training .button{font-size:10px;min-height:34px;padding:5px 9px}
.growth-tree{display:grid;gap:14px}.growth-skill{display:grid;grid-template-columns:58px 1fr;gap:10px;border:1px solid #cfc0dc;border-radius:12px;background:#fff7;padding:12px;position:relative}.growth-skill+.growth-skill:before{content:'↓';position:absolute;top:-18px;left:34px;color:#9974ae}.growth-skill.learned{border-color:#a4bcbd}.growth-skill.is-ultimate{background:linear-gradient(120deg,#ede0fc,#fff3d6);border-color:#b98bca}
.growth-skill-icon svg,.growth-skill-icon .painted-icon{width:54px;height:54px}.growth-skill-icon>span{display:block;font-size:9px;text-align:center;margin-top:5px;color:#876695}.growth-skill h3{margin:3px 0;font-size:14px}.growth-skill em{display:block;font-size:9px;font-style:normal;color:#a384a8;margin-top:2px}.growth-skill p{font-size:10px;color:#776682;line-height:1.6;margin:5px 0}.growth-skill small{font-size:9px;color:#877392}.growth-skill .button{min-height:34px;font-size:11px;padding:6px 12px;width:100%;margin-top:5px}.growth-price{font-size:10px;color:#8e672c;font-weight:700}
.chance-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:10px}.chance-steps span{font-size:10px;text-align:center;background:#fff8;border-radius:7px;padding:5px}.chance-steps b{display:block;color:#92703c;font-size:15px}
.growth-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.growth-card-grid>article{background:#fff7;border:1px solid #cdbbd7;padding:9px;border-radius:12px}.growth-card-grid .growth-card-art{max-height:160px}.growth-card-grid h3{font-size:12px;margin:8px 0 4px}.growth-card-grid p,.growth-card-grid small{font-size:10px;color:#8a7596;margin:4px 0}.growth-card-grid small{display:block;margin-top:10px}.growth-card-grid .button{display:block;width:100%;font-size:10px;min-height:32px;padding:5px;margin-top:5px}
.growth-sources{border-top:1px solid #cdbbd7;margin-top:18px;padding-top:12px;font-size:11px;color:#70587f}.growth-recent{display:grid;gap:4px;padding:11px;border-radius:9px;margin-bottom:12px;font-size:11px;background:#f5dedf;color:#8b5963}.growth-recent.success{background:#d7eee5;color:#377264}.growth-recent span{font-size:12px}
.fusion-banner{text-align:center;padding:16px 10px;border-radius:12px;background:linear-gradient(125deg,#473961,#76608f);color:#fff1d5}.fusion-banner>span{font-size:29px;color:#f6d788}.fusion-banner h3{color:#fff2cf;margin:5px 0;font-size:20px}.fusion-banner p{font-size:11px;color:#e4d1ef}.fusion-odds{display:flex;justify-content:center;gap:12px;font-size:10px}.fusion-odds strong{color:#ffceda}
.fusion-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-top:16px}.fusion-slots>span{border:1px dashed #b39cc6;border-radius:10px;display:grid;place-items:center;min-height:92px;color:#a18eb0;font-size:22px}.fusion-slots>button{padding:0;background:transparent;border:0;min-width:0}.fusion-slots b{font-size:9px;color:#705685}.fusion-slots .growth-card-art>b{font-size:8px;letter-spacing:0;bottom:4px}.fusion-slots .growth-card-art>small{display:none}.fusion-consume{padding:6px;background:#fff3d899;border-radius:7px;color:#956943}
.growth-section-title{font-size:13px;margin:22px 0 10px}.fusion-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.fusion-options button{padding:6px;border:1px solid #c9b9d8;background:#fff7;border-radius:10px;min-width:0}.fusion-options button[aria-pressed=true]{border:2px solid #9d65b6;background:#e5d1f7}.fusion-options button:disabled{opacity:.35}.fusion-options b,.fusion-options small{display:block;font-size:10px;color:#766185}.fusion-options small{font-size:9px}.fusion-options .growth-card-art>b{font-size:10px}
.growth-unowned{text-align:center;padding:15px 5px}.growth-unowned>.character-art{height:180px;width:70%;opacity:.7}.growth-unowned p{font-size:12px;color:#897491}
.auto-sell-panel{background:#fff8;border:1px solid #cbb8d3;border-radius:12px;padding:12px;margin-bottom:17px}.auto-sell-panel label{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:#594365;margin:6px 0}.auto-sell-panel small{display:block;font-size:9px;font-weight:400;color:#887596;margin-top:4px}.auto-sell-panel input{width:38px;height:22px;accent-color:#8c68ac;flex:none}.auto-sell-panel select{max-width:50%;border:1px solid #c1aaca;border-radius:6px;padding:7px;background:#fff7;color:#685074;font-size:11px}.auto-sell-panel p{font-size:10px;color:#967e9c}.gear-comparison{display:block;font-size:10px;margin-bottom:8px;color:#937b9c}.gear-comparison.better{color:#2c946b}.growth-equipment .inventory-card h3{font-size:12px}.growth-equipment .inventory-card p{min-height:0}.growth-equipment .inventory-card{border-top:3px solid #aebacb}.growth-equipment .rarity-advanced{border-top-color:#65cda0}.growth-equipment .rarity-rare{border-top-color:#69acff}.growth-equipment .rarity-heroic{border-top-color:#b386da}.growth-equipment .rarity-legendary{border-top-color:#e5b65c}
.growth-shortcuts{display:flex;gap:8px}.growth-shortcuts .button{font-size:11px;flex:1}
.loot-card{max-height:85dvh;display:flex;flex-direction:column;overflow:hidden}.loot-results{overflow-y:auto;overscroll-behavior:contain;min-height:0;margin:12px 0;max-height:55dvh}.loot-result-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #baa7c74d;padding:7px 0;text-align:left}.loot-result-row>span{width:45px;height:50px;flex:none}.loot-result-row .painted-icon,.loot-result-row .item-art,.loot-result-row .chest-art,.loot-result-row .ico{width:43px;height:43px}.loot-result-row .growth-card-art{height:50px;width:40px}.loot-result-row .growth-card-art>small{display:none}.loot-result-row .growth-card-art>b{font-size:6px;bottom:1px}.loot-result-row>b{font-size:11px;flex:1}.loot-result-row>strong{font-size:13px}.loot-card>p{font-size:11px}.loot-card>.button{flex:none}
.skill-rack{gap:2px}.core-skill{min-width:0;flex:1}.skill-label>b{font-size:8px}.skill-label>small{font-size:7px}.core-skill .skill-frame{flex-shrink:0}
@media(max-width:380px){.core-skill{display:flex;flex-direction:column;gap:1px}.skill-rack{height:72px;align-items:stretch}.core-skill .skill-frame{width:28px;height:28px}.core-skill .skill-label{text-align:center}.growth-popup .drawer-scroll{padding-left:8px;padding-right:8px}.character-profile{grid-template-columns:90px 1fr;gap:9px}}
@media(prefers-reduced-motion:reduce){.growth-popup *{scroll-behavior:auto}}
.ultimate-art{display:block;position:relative;width:100%;height:100%}.ultimate-art>svg{width:100%;height:100%}.ultimate-art>b{position:absolute;right:1px;bottom:0;color:#ffeb95;text-shadow:0 1px 3px #5f335b;font-size:16px}

.growth-skill-icon>.ultimate-art{width:54px;height:54px}.skill-detail-icon>.ultimate-art{width:60px;height:60px}

.innate-skills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.innate-skills article{padding:14px;border:1px solid #7a9e9638;border-radius:12px;background:#142c3026}.innate-skills small{font-size:11px;color:#88bfb7}.innate-skills h3{margin:6px 0;font-size:15px}.innate-skills p{font-size:12px;line-height:1.65;margin:0;opacity:.85}.kit-skill-icon{display:block;width:100%;height:100%;object-fit:contain;background:radial-gradient(circle at 50% 65%,#344955,#172a34);border-radius:inherit}@media(max-width:430px){.innate-skills{grid-template-columns:1fr}}
