/* Readable, bounded overlays leave the arena and thumb area clear. */
.guide-hint{position:absolute;z-index:5;left:12px;right:12px;top:calc(68px + env(safe-area-inset-top));display:grid;grid-template-columns:30px 1fr 44px;gap:8px;align-items:center;max-width:440px;margin:0 auto;padding:9px 4px 9px 11px;border:1px solid #edcb87;border-radius:12px;background:#2b2017ed;box-shadow:0 5px 15px #1d100a30;pointer-events:none}
.guide-hint[hidden]{display:none}.guide-hint strong{display:block;font-size:14px;line-height:1.3;color:#ffe3a5}.guide-hint p{font-size:12px;line-height:1.45;color:#fff0d6;margin:4px 0 0}.guide-symbol{display:grid;place-items:center;width:28px;height:35px;color:#f6d384;font-size:27px}.guide-hint[data-step=collect] .guide-symbol{color:#90e5bc}.guide-hint button{pointer-events:auto;touch-action:manipulation}
.game-notice[data-kind=boss]{font-weight:750;border:2px solid #f0bd9a;background:#682f30f5;color:#fff3df;max-width:calc(100% - 32px);text-align:center;top:calc(74px + env(safe-area-inset-top));font-size:14px;padding:12px 18px;white-space:normal}.game-notice[data-kind=power]{border-color:#e6ca85;font-weight:700}
.combat-feedback{z-index:7;max-width:calc(100% - 30px);font-size:15px;line-height:1.5;white-space:normal;text-align:center}.combat-feedback[data-kind=damage]{border:2px solid #ffc0a7;background:#662f32f2;color:#fff6e8;box-shadow:0 4px 0 #3c1722,0 8px 14px #30101530}
.upgrade-card{max-width:720px;padding:17px 12px 13px}.upgrade-brand{margin-bottom:11px}.upgrade-brand img{width:57px;height:38px}.upgrade-brand .xp-level{font-weight:800;font-size:12px;padding:7px 9px}.upgrade-card>.game-eyebrow{display:none}.upgrade-card>h2{font-size:27px;line-height:1.1;margin:8px 0}.recipe-caption{font-size:11px;margin-bottom:8px}.upgrade-loadout{margin:0 auto 13px;gap:5px;max-width:344px}.loadout-slot{max-width:37px;aspect-ratio:1}.upgrade-choices{gap:8px}.skill-name{min-height:2.8em;font-size:14px;line-height:1.2;margin:6px 0}.skill-kind{font-size:9px;letter-spacing:.09em}.skill-art{height:92px;margin:0}.skill-summary{font-size:11px;line-height:1.35;min-height:4.05em;margin:6px 0 9px;text-wrap:pretty;color:#f3e3cc}.skill-stats{padding:3px 5px;margin:0;background:#1c130f88;flex:1}.skill-stat{display:block;padding:4px 0;border-bottom:1px solid #e6c28d1f}.skill-stat:last-child{border-bottom:0}.skill-stat dt{font-size:9px;line-height:1.3;color:#ddc6a7}.skill-stat dd{justify-content:center;gap:4px;margin:3px 0 0;line-height:1.2}.skill-stat dd small{font-size:10px;color:#c9b59a}.skill-stat dd strong{font-size:12px;color:#ffe3a0}.skill-stat-main{padding:5px 0 7px}.skill-stat-main dt{color:#ffe8bd;font-size:10px}.skill-stat-main dd strong{font-size:22px;letter-spacing:-.04em}.skill-stat-main dd small{font-size:12px}.skill-stars{font-size:16px;padding:8px 0 0;gap:1px;justify-content:center;margin-top:8px}.skill-level{font-size:9px;margin-top:4px;letter-spacing:.045em}.upgrade-hint{font-size:11px!important;line-height:1.4!important;margin:14px 0 0!important}
.result-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:18px 0}.result-highlights>div{padding:11px 5px;border:1px solid #c39c6155;border-radius:8px;background:#1c140f66;text-align:center}.result-highlights strong{display:block;font-size:26px;line-height:1.1;color:#ffe3a1}.result-highlights span{display:block;font-size:10px;color:#e5cfb0;line-height:1.4;margin-top:6px}.result-tip{font-size:13px!important;line-height:1.65!important;padding:13px 14px;border-left:3px solid #eaaa86;background:#4e302566;text-align:left;color:#ffead0!important}.result-goal{font-size:12px!important;line-height:1.6!important;padding:12px;border:1px solid #d5b47766;border-radius:8px;color:#f5dca8!important;background:#6d4c261f}.game-overlay.lost .campaign-result{padding:10px 12px;margin:14px 0}.game-overlay.lost .campaign-result>strong{font-size:14px;color:#d9c09f}.game-overlay.lost .campaign-result p{font-size:10px}.game-overlay.lost .campaign-result #result-campaign{font-size:11px}.game-overlay.lost .result-identity{min-height:85px}.game-overlay.lost .result-identity .hero-portrait{height:105px}.game-overlay.lost .result-seal{width:55px;height:55px;left:calc(50% - 90px);top:26px;background:#4c3028;color:#e1b18e;border-color:#c08b64}.result-card>h2{font-size:30px;text-wrap:balance}.result-card>#result-description{font-size:13px;line-height:1.65}.arsenal-target{padding:12px 14px;margin:12px 0;background:#201810;border:1px solid #c3a16a55;border-radius:8px}.arsenal-target p{font-size:12px!important;line-height:1.55!important;color:#ffe2a7!important;margin:0 0 9px!important}.arsenal-target [role=progressbar]{height:8px;border:1px solid #967645;border-radius:6px;background:#100d0b;overflow:hidden}.arsenal-target i{display:block;height:100%;width:0;background:linear-gradient(90deg,#c69043,#ffe2a0)}
@layer guadagni-firma{
 html[data-guadagni-firma] body.gamer-studio .guide-hint button[data-guadagni-control]{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;font-size:23px!important;background:transparent!important;border:0!important;color:#f6ddae!important;box-shadow:none!important}
 html[data-guadagni-firma] body.gamer-studio .upgrade-choices .skill-card[data-guadagni-control]{padding:10px 6px 11px!important;min-height:0!important;border-width:1px!important;border-top-width:4px!important;border-top-color:var(--skill)!important;border-radius:10px!important;background:radial-gradient(ellipse at 50% 15%,#815d3430,transparent 58%),linear-gradient(160deg,#493528,#2b201a 60%,#241914)!important;box-shadow:inset 0 1px #ffefcc2b,0 4px 0 #130d0a,0 6px 15px #0003!important}
 html[data-guadagni-firma] body.gamer-studio #guide-replay{margin:0 0 10px!important;width:100%!important;min-height:44px!important;font-size:12px!important}
}
@media(min-width:850px){.upgrade-card{padding:23px 26px 20px}.upgrade-card>h2{font-size:34px}.upgrade-choices{gap:14px}.skill-name{font-size:19px;min-height:2.4em}.skill-art{height:130px}.skill-summary{font-size:13px;min-height:3em}.skill-stat{display:grid;grid-template-columns:1fr auto;text-align:left;align-items:center;padding:7px 2px}.skill-stat dt{font-size:11px}.skill-stat dd{margin:0}.skill-stat dd strong{font-size:14px}.skill-stat-main dd strong{font-size:26px}.skill-stat-main dt{font-size:12px}.skill-stars{font-size:21px}.skill-level{font-size:11px}.guide-hint{top:76px}.result-highlights strong{font-size:31px}}
@media(max-width:359px){.upgrade-card{padding:13px 8px 12px}.upgrade-choices{gap:5px}.skill-name{font-size:12px;min-height:3.5em}.skill-art{height:72px}.skill-summary{font-size:10px;min-height:5.4em}.skill-stat-main dd strong{font-size:19px}.skill-stat dd{gap:2px}.skill-stat dd small{font-size:9px}.skill-stars{font-size:13px}.skill-level{font-size:8px}.result-card{padding:20px}.result-highlights strong{font-size:23px}.guide-hint{left:8px;right:8px;gap:5px;grid-template-columns:22px 1fr 44px;padding-left:8px}.guide-hint strong{font-size:13px}.guide-hint p{font-size:11px}}
@media(max-height:720px){.upgrade-brand{margin-bottom:6px}.upgrade-card>h2{font-size:25px;margin:6px 0}.upgrade-loadout{margin-bottom:9px}.skill-art{height:70px}.skill-summary{margin:4px 0 6px}.skill-stat{padding:3px 0}.skill-stars{padding-top:6px;margin-top:6px}.upgrade-hint{margin-top:10px!important}.result-identity{margin-bottom:5px}.pause-card h2{font-size:24px;margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){.skill-stars .next{animation:none}.combat-feedback{transition:none}.arsenal-target i{transition:none}}

.result-quick-actions{display:grid;gap:8px;margin:12px 0}.result-quick-actions>button{width:100%;min-height:52px;font-size:15px;font-weight:700}.game-overlay.lost .campaign-result{display:none}
