/* Immortal Trials: equipment layers, moving arena and expanded training. */
.paper-doll{position:relative;width:100%;height:100%;aspect-ratio:1;isolation:isolate}.paper-doll>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;max-width:none;animation:none;filter:none}.doll-layer{pointer-events:none}.doll-armor{clip-path:polygon(23% 41%,51% 41%,57% 68%,25% 70%,30% 61%,27% 52%)}.doll-helmet{clip-path:polygon(8% 0,64% 0,64% 43%,28% 45%,10% 40%)}.doll-gloves{clip-path:polygon(17% 49%,28% 47%,38% 55%,35% 65%,19% 64%)}.doll-legs{clip-path:polygon(9% 74%,74% 74%,74% 93%,52% 93%,50% 80%,27% 80%,23% 93%,6% 93%)}.doll-boots{clip-path:inset(89% 18% 0 4%)}.doll-shield{clip-path:polygon(53% 42%,70% 42%,75% 72%,70% 80%,57% 78%,50% 56%)}.paper-doll.color-1{filter:hue-rotate(145deg)}.paper-doll.color-2{filter:hue-rotate(280deg)}.paper-doll.color-3{filter:sepia(.3) saturate(1.4)}.weapon-enchantment{position:absolute;left:61%;top:42%;filter:drop-shadow(0 0 4px currentColor);z-index:5;opacity:.9}.weapon-enchantment .icon{width:22px;height:22px;stroke-width:2}.enchant-fire{color:#ff8d43}.enchant-frost{color:#9de4f9}.enchant-poison{color:#a2e281}.enchant-drain{color:#ce93eb}.mini-portrait>.paper-doll{position:absolute;width:170px;height:170px;left:-20px;top:8px}.mini-portrait .paper-doll>img{position:absolute;left:0;top:0;width:100%;height:100%}.fighter-art>.paper-doll{height:100%;width:auto;max-width:100%;margin:auto}.fighter-art img{object-fit:contain}.fighter-sprite{position:absolute;bottom:13px;width:22%;height:auto;max-height:none;transform:translateX(-50%);aspect-ratio:1}.fighter-sprite .sprite-facing{position:relative;width:100%;height:100%;aspect-ratio:1;transform-origin:center}.facing-flipped .sprite-facing{transform:scaleX(-1)}.sprite-motion{width:100%;height:100%;animation:idle-breathe 3.4s ease-in-out infinite;transform-origin:50% 94%;filter:drop-shadow(0 4px 2px #20130955)}.sprite-motion>.paper-doll,.sprite-motion>img{width:100%;height:100%;object-fit:contain;animation:none}.fighter-sprite.enemy .sprite-motion{animation-delay:-1.4s}.fighter-sprite.enemy-tint-1 .sprite-motion>img{filter:hue-rotate(125deg)}.fighter-sprite.enemy-tint-2 .sprite-motion>img{filter:hue-rotate(250deg)}.fighter-sprite.enemy-tint-3 .sprite-motion>img{filter:sepia(.4) saturate(1.5)}.fighter-sprite .ground-shadow{bottom:3%;height:6%;width:67%;left:12%}.battle-world{position:absolute;height:67%;width:100%;bottom:27px;left:0;overflow:visible;pointer-events:none}.arena-scene.in-battle{height:385px}.preview-world{height:70%;bottom:32px}.preview-fighter{width:35%;bottom:12px}.preview-world .ground-ruler{display:none}.ground-ruler{position:absolute;bottom:0;left:5%;right:5%;height:16px;display:flex;justify-content:space-between;border-bottom:1px solid #ebd8a95c}.ground-ruler>i{position:relative;width:1px;height:7px;background:#ebd8a966;font-style:normal}.ground-ruler>i>span{font-size:12px;position:absolute;top:7px;left:-4px;color:#f8e9c4ad}.ground-ruler>i.player-cell,.ground-ruler>i.enemy-cell{width:7px;height:7px;border-radius:50%;background:#bfe5b2}.ground-ruler>i.enemy-cell{background:#edb1a2}.position-readout{position:absolute;bottom:0;left:0;right:0;height:30px;background:#2f1f14da;display:flex;justify-content:center;align-items:center;gap:20px;color:#e8d3ae;font-size:12px}.position-readout b{color:var(--gold-light);font-weight:500}.arena-location h2{font-size:1.1rem}.in-battle .arena-location h2{font-size:13px}.battle-hud{top:38px;left:17px;right:17px}.health-card{background:#2c1809ed;max-width:280px;padding:8px 10px}.health-card small{display:flex;gap:4px;align-items:center;font-size:12px;line-height:1.2;margin-top:4px}.enemy-health-card small{justify-content:end}.health-card small .icon{width:11px;height:11px}.armor-meter{height:4px!important;margin-top:5px}.armor-meter>span{background:linear-gradient(90deg,#729598,#b5d1cf)}.armor-number{color:#c5dedb}.health-card b{font-size:13px}.health-card>div>span{font-size:12px}.status-effects{position:absolute;bottom:3%;left:50%;transform:translateX(-50%);display:flex;gap:3px}.status-effects>span{display:grid;place-content:center;background:#371d0adb;border:1px solid #d9be8566;width:22px;height:22px;border-radius:50%;color:var(--gold-light)}.status-effects .icon{height:13px;width:13px}.combat-projectile{position:absolute;z-index:8;pointer-events:none;color:#ffd297;filter:drop-shadow(0 0 8px currentColor)}.combat-projectile .icon{height:32px;width:32px}.projectile-frost{color:#9bdaff}.projectile-lightning{color:#d4b0ff}.projectile-venom{color:#9fd385}.projectile-shoot{color:#fff2c6}.battle-controls{padding:14px 17px 8px}.intent-row{margin-bottom:11px;gap:8px}.intent-row small{font-size:12px;letter-spacing:.02em}.intent-row strong{font-size:14px}.battle-resources{margin-left:auto;display:flex;flex-direction:column;align-items:end;gap:3px;font-size:13px;color:var(--gold-light);white-space:nowrap}.battle-resources>span{display:flex;align-items:center;gap:4px}.battle-resources .icon{width:13px;height:13px}.battle-resources .mana,.mana-cost{color:#a3c7e7}.movement-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:10px 0 12px}.movement-button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 6px;background:#ffffff05;border:1px solid #8a653e70;border-radius:4px;font-size:13px;color:#e8d5b4;white-space:nowrap}.movement-button>.icon{width:19px;height:19px;color:#dabf93}.movement-button:hover:not(:disabled){border-color:var(--gold);background:#d6b57c15}.command-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #775432;margin-bottom:12px;gap:8px}.command-tabs>button{display:flex;gap:6px;align-items:center;justify-content:center;background:none;min-height:42px;border-bottom:2px solid transparent;color:var(--muted);font-size:14px}.command-tabs>button.selected{color:var(--gold-light);border-bottom-color:var(--gold)}.command-tabs>button .icon{width:17px;height:17px}.combat-action{min-height:70px}.combat-action small{font-size:12px;line-height:1.4}.combat-action b{font-size:14px;line-height:1.3}.combat-action:disabled{opacity:.47}/* Venue screens flatten their own disabled buttons so a locked shop row still reads on the room art. Battle actions need the opposite: when energy, mana, ammunition, range or a cooldown blocks a move it must look unavailable, in the campaign arena and in online duels alike. */.venue-content .battle-controls button:disabled,.venue-content .online-controls button:disabled,.venue-content .movement-strip button:disabled{opacity:.38;background:#2d1d11!important;border-color:#5c4532!important;color:#9b866d!important;box-shadow:none!important;filter:grayscale(.45)!important}.venue-content .battle-controls button:disabled .icon,.venue-content .online-controls button:disabled .icon{opacity:.5}.venue-content .battle-controls button:disabled .action-cost,.venue-content .online-controls button:disabled .action-cost{color:#8d755b!important}.combat-action>span:not(.action-cost){flex:1;min-width:0}.combat-action>.icon{height:23px;width:23px}.action-cost{font-size:12px;padding-left:2px}.skill-actions{max-height:250px;overflow-y:auto;padding-right:3px;scrollbar-color:#84704c transparent}.quick-defense{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.quick-defense button{display:flex;align-items:center;gap:7px;background:#5e3a1b2e;border:1px solid #7e5934;border-radius:4px;padding:8px 10px;min-height:43px;font-size:14px}.quick-defense button>.icon{width:18px;height:18px;color:#ddc396}.quick-defense small{font-size:12px;color:var(--muted);margin-left:auto}.battle-log{font-size:13px;min-height:34px;line-height:1.4;margin-top:11px}.battle-links{display:flex;align-items:center;justify-content:space-between}.battle-links .text-button{min-height:30px;font-size:12px}.damage-number{font-size:1.5rem;top:0}.damage-number.status,.damage-number.move{font-size:13px}.skill-reminder{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;font-size:13px;padding:9px 12px;min-height:40px;background:#d6b57c0e;color:var(--gold);border:1px solid #8471484a;border-radius:4px;margin-bottom:14px}.skill-reminder .icon{width:16px;height:16px}.skill-reminder .icon:last-child{margin-left:auto}.achievement-rewards{display:grid;gap:8px;border-top:1px solid var(--line);padding:12px 0 18px;font-size:13px;color:var(--gold-light)}.achievement-rewards>span{display:flex;align-items:center;gap:8px}.achievement-rewards .icon{width:17px}.achievement-rewards b{margin-left:auto;font-weight:500}.segmented-control{display:flex;gap:6px;padding:5px;border:1px solid var(--line);border-radius:6px;background:#26150929}.segmented-control>button{flex:1;display:flex;gap:7px;align-items:center;justify-content:center;padding:9px 10px;min-height:44px;background:none;border-radius:4px;color:var(--muted);font-size:14px;border:1px solid transparent;white-space:nowrap}.segmented-control .icon{width:18px;height:18px}.segmented-control>button.selected{background:#b79b5d20;color:var(--gold-light);border-color:#a28a5759}.fighter-tabs{margin-bottom:0}.fighter-detail{align-content:start;gap:18px}.skills-panel{padding:25px}.skills-panel .segmented-control{margin-top:22px}.skill-tree{margin-top:16px;display:grid;gap:10px}.skill-card{display:flex;gap:13px;padding:16px 0;border-bottom:1px solid var(--line);align-items:center}.skill-card:last-child{border:0}.skill-symbol{display:grid;place-content:center;flex-shrink:0;height:44px;width:44px;border:1px solid #8a623955;background:#946c4115;color:#c4ab86;border-radius:6px}.skill-card.learned .skill-symbol{border-color:#b19a5866;color:var(--gold);background:#bda5571b}.skill-card h3{font-size:15px;font-weight:500}.skill-card p{font-size:13px;color:var(--muted);margin-top:4px}.skill-card small{font-size:12px;display:block;color:var(--gold);margin-top:6px}.skill-card>.add-button{margin-left:auto}.expanded-loadout{grid-template-columns:repeat(4,1fr);gap:15px}.expanded-loadout .equipped-item{background:none;border:1px solid #603e21;border-radius:5px;padding:13px 7px;color:var(--text);min-width:0}.expanded-loadout .equipped-item:hover{background:#c2a76a0d}.expanded-loadout .item-icon{display:grid;margin-bottom:9px;width:44px;height:44px}.expanded-loadout .equipped-item b{font-size:13px}.expanded-loadout .equipped-item small,.expanded-loadout .equipped-item>span{font-size:12px}.shop-modes{margin-top:23px;max-width:460px}.shop-tabs{display:grid;grid-template-columns:repeat(8,1fr);gap:7px}.shop-tabs>button{justify-content:center;padding:10px 8px;gap:7px;font-size:14px}.shop-tabs>button>.icon{width:18px;height:18px}.shop-grid{grid-template-columns:repeat(4,1fr)}.item-card p{min-height:52px;font-size:13px;line-height:1.5}.item-power{font-size:13px;line-height:1.55;min-height:40px}.item-rarity{font-size:12px;letter-spacing:.05em}.item-rarity>span{font-size:12px;letter-spacing:0}.item-details-link{margin:8px auto 0;font-size:12px}.item-card>button.primary,.item-card>button.secondary{font-size:14px}.tier-4{color:#b3a0d9}.tier-5{color:#efcf83}.potion-shop .supply-buttons{margin-left:auto;display:flex;gap:8px}.supply-buttons button{min-width:70px}.achievements-panel{padding:25px;margin-bottom:25px}.achievements-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:23px}.achievement-card{display:flex;gap:12px;padding:15px;border:1px solid var(--line);border-radius:5px;opacity:.55}.achievement-card.earned{opacity:1;border-color:#bc9b504d;background:#d8b45809}.achievement-card>.icon{color:var(--gold);width:24px;height:24px;flex-shrink:0}.achievement-card b{font-size:14px;font-weight:500}.achievement-card p{font-size:12px;color:var(--muted);line-height:1.5;margin:4px 0}.achievement-card small{font-size:12px;color:var(--gold)}.release-label{font-size:12px;color:#a59075}.forge-upgrade{border:1px solid #8b764850;background:#ae975414;border-radius:6px;padding:17px;display:grid;gap:16px;margin-top:20px}.forge-upgrade>div{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.forge-upgrade .icon{color:var(--gold)}.forge-upgrade b{font-size:15px}.forge-upgrade span{font-size:13px;color:var(--muted);margin-left:auto}.forge-upgrade button{width:100%}.enchant-heading{margin-top:24px}.enchant-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:16px}.enchant-choice{display:flex;flex-direction:column;align-items:center;border:1px solid #74604260;border-radius:5px;gap:5px;background:#dbc0830a;padding:15px 10px;min-height:140px}.enchant-choice.selected{border-color:var(--gold)}.enchant-choice>.icon{color:var(--gold);width:26px;height:26px;margin-bottom:3px}.enchant-choice b{font-size:15px}.enchant-choice small{font-size:12px;color:var(--muted)}.enchant-choice>span{font-size:13px;color:var(--gold);margin-top:5px}.inspect-bottom{display:flex;justify-content:space-between;align-items:center;margin:18px 0 3px;gap:12px}.inspect-bottom .perk{margin-top:0}.class-picker{grid-template-columns:repeat(2,1fr)}.class-option-content{padding:13px 10px}.class-option-content>small{font-size:12px;min-height:0;display:block}.class-option-content>b{font-size:14px}.class-option-content>.icon{width:25px;height:25px;margin:0}.class-option-content{gap:4px}.creation-note{margin:14px 0 9px}.welcome-crest{margin-bottom:10px}.welcome-crest>.icon{width:42px;height:42px}.training-row small{max-width:none}.equipped-item:focus-visible{outline-offset:3px}
.arena-scene .fighter-sprite{width:min(var(--actor-width,32%),200px);max-height:none}.arena-scene .preview-fighter{width:35%}.battle-hud{z-index:5}.arena-location{z-index:6}.battle-world{z-index:2}.position-readout{z-index:4}.health-card .hud-resources{display:flex;justify-content:space-between;gap:8px;margin-top:6px}.hud-resources>span{display:flex;align-items:center;gap:3px;white-space:nowrap}.hud-resources .armor-number{color:#c5dedb}
@keyframes idle-breathe{50%{transform:translateY(-2px) rotate(.4deg)}}
@media(max-width:1190px){.shop-tabs{grid-template-columns:repeat(4,1fr)}.arena-scene.in-battle{height:350px}.fighter-layout{grid-template-columns:minmax(230px,.8fr) 1.7fr}.expanded-loadout{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.fighter-layout{grid-template-columns:1fr}.fighter-art>.paper-doll{width:100%;height:100%;max-width:none}.fighter-showcase{min-height:250px}.skills-panel{padding:23px}.expanded-loadout{grid-template-columns:repeat(4,1fr)}.achievements-grid{grid-template-columns:1fr 1fr}.shop-grid{grid-template-columns:repeat(2,1fr)}.fighter-sprite{width:23%}.arena-scene.in-battle{height:350px}.shop-tabs>button{padding:10px 7px;font-size:14px}.battle-active footer .release-label{display:none}.quick-defense small{font-size:12px}}
@media(max-width:560px){.battle-active .topbar{height:62px}.battle-active .section-heading{margin:12px 0}.battle-active .section-heading .eyebrow{display:none}.battle-active .section-heading h1{font-size:1.35rem}.battle-active .chapter-tag{font-size:12px}.arena-scene.in-battle{height:240px}.battle-hud{top:31px;left:8px;right:8px;gap:6px}.health-card{padding:6px 7px;width:45%}.health-card b{font-size:12px}.health-card>div>span{font-size:11px}.health-card small{font-size:12px;margin-top:3px;line-height:1}.health-card>.meter{height:5px}.health-card>.armor-meter{height:3px!important;margin-top:4px}.in-battle .arena-location h2{font-size:12px}.battle-world{height:55%;bottom:30px}.fighter-sprite{width:21%;bottom:11px}.position-readout{height:25px;gap:14px;font-size:12px}.ground-ruler>i>span{font-size:10px}.preview-world{height:70%;bottom:36px}.preview-fighter{width:41%}.weapon-enchantment .icon{width:14px;height:14px}.status-effects>span{width:17px;height:17px}.status-effects .icon{width:11px;height:11px}.arena-location>span{font-size:12px;letter-spacing:.13em}.scene-name{bottom:14px;font-size:14px}.scene-name>span{font-size:12px}.battle-controls{padding:10px 10px 5px}.intent-row{margin-bottom:7px;gap:7px}.intent-icon{height:31px;width:31px}.intent-row small{font-size:11px;letter-spacing:0}.intent-row strong{font-size:13px}.battle-resources{font-size:12px;flex-direction:row;gap:9px}.battle-resources .icon{width:11px;height:11px}.movement-strip{gap:5px;margin:9px 0 7px}.movement-button{flex-direction:column;gap:1px;padding:5px 2px;min-height:45px;font-size:12px}.movement-button>.icon{width:18px;height:18px}.command-tabs{gap:4px;margin-bottom:8px}.command-tabs>button{font-size:13px;min-height:37px;gap:5px}.command-tabs>button>.icon{width:15px;height:15px}.action-grid{gap:7px}.action-grid>.combat-action{min-height:66px;padding:9px 7px;gap:6px}.combat-action>.icon{width:18px;height:18px;display:block}.combat-action b{font-size:13px;line-height:1.3}.combat-action small{font-size:12px;line-height:1.3;margin-top:3px}.action-cost{font-size:12px}.quick-defense{gap:7px;margin-top:8px}.quick-defense>button{min-height:42px;padding:6px 8px;font-size:13px;gap:5px;flex-wrap:wrap}.quick-defense>button>small{font-size:11px;margin-left:0}.quick-defense>button>.icon{height:16px;width:16px}.battle-log{font-size:12px;min-height:32px;padding-top:8px;margin-top:8px}.battle-links .text-button{min-height:27px;font-size:12px}.skill-reminder{font-size:12px;text-align:left;gap:6px;padding:8px 9px}.skill-reminder>.icon:first-child{width:15px}.battle-active footer{margin-top:12px}.battle-active footer>span{font-size:11px}.fighter-detail{gap:14px}.skills-panel{padding:19px 16px}.skills-panel .segmented-control{margin-top:18px}.segmented-control{gap:2px;padding:4px}.segmented-control>button{font-size:13px;padding:8px 7px;gap:5px}.segmented-control .icon{width:15px;height:15px}.fighter-tabs>button{font-size:12px;gap:4px}.skill-card{gap:10px;padding:14px 0}.skill-symbol{width:34px;height:38px}.skill-symbol>.icon{width:21px;height:21px}.skill-card h3{font-size:14px}.skill-card p{font-size:12px}.skill-card small{font-size:12px}.skill-card>.add-button{width:32px;height:35px}.expanded-loadout{grid-template-columns:repeat(2,1fr);gap:10px}.expanded-loadout .equipped-item{padding:15px 9px}.training-panel>.muted{font-size:13px;line-height:1.6}.training-row small{font-size:12px}.training-row b{font-size:14px}.shop-banner{padding:18px 14px;gap:12px}.shop-banner h2{font-size:16px}.shop-banner p{font-size:13px;line-height:1.5}.shop-modes{margin-top:16px}.shop-tabs{gap:6px;margin:16px 0;grid-template-columns:repeat(4,1fr)}.shop-tabs>button{font-size:12px;gap:4px;padding:8px 3px;min-height:45px;flex-direction:column}.shop-tabs>button>.icon{height:17px;width:17px}.item-card{padding:16px 12px}.item-card h2{font-size:15px}.item-card p{font-size:12px;min-height:60px}.item-rarity{font-size:11px;letter-spacing:.02em;flex-wrap:wrap}.item-rarity>span{font-size:11px}.item-power{font-size:12px;min-height:39px;margin-bottom:15px}.item-card>button.primary,.item-card>button.secondary{font-size:13px;min-height:42px}.item-details-link{font-size:12px}.potion-shop{flex-wrap:wrap;padding:17px 14px;gap:10px}.potion-shop .supply-buttons{width:100%;margin-left:46px}.potion-shop p{font-size:12px}.potion-shop small{font-size:12px}.supply-buttons>button{flex:1;min-height:44px}.achievements-panel{padding:19px 15px}.achievements-panel h2{font-size:17px}.achievements-grid{grid-template-columns:1fr;gap:9px;margin-top:17px}.achievement-card{padding:13px;gap:12px}.achievement-card b{font-size:14px}.achievement-card p{font-size:13px}.history-row b{font-size:13px}.history-row small{font-size:12px}.history-outcome{font-size:12px}.history-gold{font-size:12px}.release-label{width:100%;text-align:center;font-size:11px}dialog:has(#create-form){padding:23px 22px 18px}.class-picker{margin:16px 0}.class-option-content{padding:11px 6px;min-height:83px}.class-option-content>small{min-height:0;font-size:12px}.class-option-content>b{font-size:14px}.creation-note{font-size:12px}.welcome-import{margin-top:7px}.welcome-crest{margin-bottom:8px}.dialog-intro{font-size:14px}.forge-upgrade{padding:15px}.forge-upgrade>div{gap:7px}.forge-upgrade span{width:100%;margin:0}.enchant-choice{padding:14px 7px}.inspect-bottom{align-items:center;flex-wrap:wrap}.damage-number{font-size:20px}.damage-number.status,.damage-number.move,.damage-number.miss{font-size:12px}}
@media(max-width:370px){.arena-scene.in-battle{height:221px}.fighter-sprite{width:21%}.preview-fighter{width:41%}.battle-resources{flex-direction:column;gap:1px}.combat-action>.icon{display:none}.combat-action b{font-size:13px}.quick-defense button{font-size:12px}.quick-defense small{font-size:11px}.health-card b{font-size:11px}.position-readout{gap:11px}.segmented-control>button{font-size:12px;padding:7px 5px}.fighter-tabs .icon{display:none}.shop-tabs>button{font-size:12px}.item-card{padding:13px 10px}.item-card h2{font-size:14px}.history-outcome{display:none}}
html[data-motion="off"] .sprite-motion{animation:none}html[data-motion="off"] .damage-number{animation:none}html[data-motion="off"] .paper-doll{transition:none}
/* 10.7: the creator's arena difficulty: class-picker cards, one per row (icon, name, what it changes) */
.difficulty-picker{grid-template-columns:1fr!important;gap:8px}
.difficulty-picker .class-option-content{display:grid!important;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;row-gap:1px;align-items:center;justify-items:start;text-align:left;min-height:0!important;padding:10px 12px!important}
.difficulty-picker .class-option-content>.icon{grid-row:1/span 2;align-self:center;margin:0!important}
.difficulty-picker .class-option-content>b,.difficulty-picker .class-option-content>small{grid-column:2}
.difficulty-picker .class-option-content>small{font-size:12.5px;line-height:1.35;min-height:0}
.difficulty-note{grid-column:1/-1;margin:2px 0 0;font-size:12px;opacity:.85}
