/* V8 battle uses the same cropped material, type, dimensions and actions as the hub. */
.arena{position:relative;width:100%;height:100%;overflow:hidden;container-type:size;background:#497d53;color:var(--v7-ink,#0c3a3d)}
.world-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.arena-shade{position:absolute;inset:0;background:linear-gradient(#064e4012,transparent 25%,transparent 76%,#144c331a);pointer-events:none}
.play-hud{position:absolute;inset:0;z-index:10;pointer-events:none}.play-hud button{pointer-events:auto}
.battle-toolbar{position:absolute;top:calc(16 * var(--v8-u));left:calc(16 * var(--v8-u));right:calc(16 * var(--v8-u));display:grid;grid-template-columns:calc(44 * var(--v8-u)) minmax(0,1fr) calc(64 * var(--v8-u)) calc(44 * var(--v8-u));gap:calc(8 * var(--v8-u));align-items:center}
.battle-level{display:grid;place-items:center;min-width:0;height:calc(44 * var(--v8-u));background:var(--v7-panel,#f5fcfc);border:calc(1 * var(--v8-u)) solid var(--v7-line,#81bfca);border-radius:calc(16 * var(--v8-u));box-shadow:0 calc(2 * var(--v8-u)) 0 #397a831e;font-size:calc(16 * var(--v8-u));line-height:1;white-space:nowrap}
.v7-speed-btn{display:flex;align-items:center;justify-content:center;gap:calc(3 * var(--v8-u));font-weight:800;font-size:calc(16 * var(--v8-u))}.v7-speed-btn .v7-icon{width:calc(21 * var(--v8-u));height:calc(21 * var(--v8-u))}
.coin-hud{position:absolute;right:calc(18 * var(--v8-u));top:calc(72 * var(--v8-u));height:calc(34 * var(--v8-u));min-width:calc(87 * var(--v8-u));display:flex;align-items:center;justify-content:center;gap:calc(4 * var(--v8-u));padding:calc(3 * var(--v8-u)) calc(10 * var(--v8-u));border:calc(1 * var(--v8-u)) solid var(--v7-line,#81bfca);border-radius:calc(16 * var(--v8-u));background:var(--v7-panel,#f5fcfc);box-shadow:0 calc(2 * var(--v8-u)) 0 #397a831e}.coin-hud img{width:calc(27 * var(--v8-u));height:calc(27 * var(--v8-u));object-fit:contain}.coin-hud b{font-size:calc(17 * var(--v8-u));line-height:1;white-space:nowrap}
.wave-progress{position:absolute;top:calc(116 * var(--v8-u));left:calc(18 * var(--v8-u));right:calc(18 * var(--v8-u));display:flex;gap:calc(4 * var(--v8-u));height:calc(13 * var(--v8-u));padding:calc(2 * var(--v8-u));background:#f5fcfc;border:calc(1 * var(--v8-u)) solid #81bfca;border-radius:calc(10 * var(--v8-u));box-shadow:0 calc(1 * var(--v8-u)) calc(1 * var(--v8-u)) #1a6a6622}.wave-progress i{flex:1;background:#95b0b4;border-radius:calc(8 * var(--v8-u))}.wave-progress i.complete{background:linear-gradient(#88e848,#31b70b)}.wave-progress i.current{background:#b9e89b}
.reward-pulse{animation:wallet-pulse .55s ease-out}
.actors,.fx-layer{position:absolute;inset:0;pointer-events:none}.actors{z-index:3}.fx-layer{z-index:8;overflow:hidden}.actor{position:absolute;height:0;pointer-events:none}
.actor-sprite{position:absolute;max-width:none;max-height:none;pointer-events:none}.actor-sprite-window{position:absolute;overflow:hidden;pointer-events:none;filter:drop-shadow(0 calc(2 * var(--v8-u)) calc(1 * var(--v8-u)) #20452a22)}
.actor-shadow{position:absolute;left:0;bottom:calc(-2 * var(--v8-u));width:var(--shadow-width,58%);height:var(--shadow-height,calc(10 * var(--v8-u)));border-radius:50%;background:#18392132;filter:blur(calc(2 * var(--v8-u)));transform:translateX(-50%)}
.health{position:absolute;left:var(--health-offset,calc(0 * var(--v8-u)));bottom:var(--health-lift);width:var(--health-width,calc(72 * var(--v8-u)));height:calc(14 * var(--v8-u));transform:translateX(-50%);padding:calc(2 * var(--v8-u));background:#789699;border:calc(1.5 * var(--v8-u)) solid #fff;border-radius:calc(10 * var(--v8-u));box-shadow:0 0 0 calc(1 * var(--v8-u)) #397984;z-index:4;overflow:visible}
.health i{position:absolute;inset:calc(1 * var(--v8-u));background:linear-gradient(#fc775a,#d93425);border-radius:calc(8 * var(--v8-u));transform-origin:left center;transition:transform .22s}.hero .health i{background:linear-gradient(#95e62f,#3bad08)}.hp-label{position:absolute;inset:0;display:grid;place-items:center;font:800 calc(10 * var(--v8-u))/1 Nunito,sans-serif;color:white;text-shadow:0 calc(1 * var(--v8-u)) calc(1 * var(--v8-u)) #285d37}
.armor-badge{position:absolute;right:0;bottom:calc(100% + 4 * var(--v8-u));left:auto;top:auto;margin-left:0;padding:calc(2 * var(--v8-u)) calc(4 * var(--v8-u));background:#f0fbff;border:calc(1 * var(--v8-u)) solid #81bfca;border-radius:calc(10 * var(--v8-u));line-height:1;color:#24749d;font:800 calc(10 * var(--v8-u)) Nunito,sans-serif}
.actor-shield{position:absolute;left:0;bottom:calc(-4 * var(--v8-u));width:var(--body-width);height:calc(var(--body-height) * 1.05);transform:translateX(-50%);border:calc(2 * var(--v8-u)) solid #99ddff;border-radius:50%;box-shadow:inset 0 0 calc(16 * var(--v8-u)) #a3e9ff66,0 0 calc(8 * var(--v8-u)) #50bfff55;opacity:0}.actor-shield.visible{opacity:.8}
.ice-shell{position:absolute;left:0;bottom:0;width:calc(var(--body-width) * 1.16);height:calc(var(--body-height) * 1.1);object-fit:fill;transform:translateX(-50%);opacity:0;z-index:3;filter:drop-shadow(0 0 calc(4 * var(--v8-u)) #4fdaff)}.actor.frozen .ice-shell{opacity:.95}.actor.frozen .actor-sprite-window{filter:brightness(1.15) saturate(.8) drop-shadow(0 0 calc(7 * var(--v8-u)) #41d6ff)}.actor.burning:after{content:'';position:absolute;left:0;bottom:calc(2 * var(--v8-u));width:calc(var(--body-width) * .7);height:calc(16 * var(--v8-u));background:#ffb53d88;filter:blur(calc(5 * var(--v8-u)));border-radius:50%;transform:translateX(-50%)}

.floating-number{position:absolute;transform:translate(-50%,-50%);font-weight:800;font-size:9cqw;line-height:1;color:#fff7da;-webkit-text-stroke:calc(1.3 * var(--v8-u)) #663f12;paint-order:stroke fill;text-shadow:0 calc(2 * var(--v8-u)) 0 #663f12;animation:damage-pop .8s ease-out both;white-space:nowrap}.floating-number.combo-number{font-size:7cqw;color:#ffd126;-webkit-text-stroke:calc(1 * var(--v8-u)) #7d4c13;margin-top:-6cqw;animation-delay:.05s}.floating-number.hero-damage{color:#ff9188;font-size:7cqw}.floating-number.heal-number{color:#77f999;-webkit-text-stroke:calc(1 * var(--v8-u)) #237640}.floating-number.level-number{color:#fff49a;font-size:7cqw}.floating-number.multi-hit-number{font-size:7cqw;animation-name:multi-damage-pop;animation-duration:.24s}.floating-number.multi-combo{margin-top:0;font-size:6.5cqw}
.hit-effect{position:absolute;width:30%;aspect-ratio:1;object-fit:contain;transform:translate(-50%,-50%);animation:impact-burst .55s ease-out both;z-index:-1}.hit-effect.shatter{width:38%;animation:shatter-burst .7s ease-out both}.hit-effect.rapid-impact{width:23%;animation-duration:.18s}.flying-coin{position:absolute;width:8cqw;height:8cqw;object-fit:contain;transform:translate(-50%,-50%);animation:coin-fly .7s cubic-bezier(.45,.05,.85,.85) both}
.skill-indicators{position:absolute;left:50%;bottom:calc(80 * var(--v8-u));height:calc(58 * var(--v8-u));width:80%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:calc(12 * var(--v8-u));z-index:9;pointer-events:none}.skill-indicators:after{content:'AUTO COMBO';position:absolute;bottom:calc(-25 * var(--v8-u));left:0;right:0;text-align:center;color:#edfaff;font:800 calc(10 * var(--v8-u)) Nunito,sans-serif;letter-spacing:calc(2 * var(--v8-u));text-shadow:0 calc(1 * var(--v8-u)) calc(1 * var(--v8-u)) #174c48}
.skill-puck{position:relative;width:calc(58 * var(--v8-u));height:calc(58 * var(--v8-u));flex:none;display:grid;place-items:center;border-radius:50%;background:linear-gradient(#fff,#f0fafb);border:calc(1 * var(--v8-u)) solid #81bfca;box-shadow:0 calc(2 * var(--v8-u)) calc(3 * var(--v8-u)) #174b4633;filter:none;transition:transform .16s}.skill-puck>img{width:68%;height:68%;object-fit:contain;transform:none}.skill-puck.active{filter:none;transform:scale(1.04);box-shadow:0 calc(2 * var(--v8-u)) calc(1 * var(--v8-u)) #397a8333,0 0 0 calc(3 * var(--v8-u)) #b6f17a80}.cooldown-ring{position:absolute;inset:calc(-4 * var(--v8-u));border:calc(2 * var(--v8-u)) solid transparent;border-top-color:#9ada55;border-right-color:#9ada55;border-radius:50%;transform:rotate(-35deg)}.skill-puck.active .cooldown-ring{animation:cooldown .82s linear infinite}.rank-dot{position:absolute;right:calc(-4 * var(--v8-u));bottom:calc(-3 * var(--v8-u));min-width:calc(19 * var(--v8-u));height:calc(19 * var(--v8-u));display:grid;place-items:center;background:#fff;border:calc(1 * var(--v8-u)) solid #81bfca;border-radius:50%;font-size:calc(11 * var(--v8-u));line-height:1}.skill-arrow{font-size:calc(27 * var(--v8-u));color:#fff;text-shadow:0 calc(1 * var(--v8-u)) calc(1 * var(--v8-u)) #376c67}
.choice-tray{position:absolute;left:calc(16 * var(--v8-u));right:calc(16 * var(--v8-u));bottom:calc(40 * var(--v8-u));height:calc(212 * var(--v8-u));z-index:12;padding:0;animation:tray-enter .2s ease-out both}.choice-tray:before{content:'';position:absolute;inset:calc(-16 * var(--v8-u)) calc(-16 * var(--v8-u)) calc(-40 * var(--v8-u));z-index:-1;background:#effafb;border-radius:calc(22 * var(--v8-u)) calc(22 * var(--v8-u)) 0 0;border-top:calc(1 * var(--v8-u)) solid #81bfca}.choice-heading{display:flex;align-items:center;justify-content:space-between;height:calc(34 * var(--v8-u));margin-bottom:calc(8 * var(--v8-u));gap:calc(8 * var(--v8-u))}.choice-heading h1{font-size:calc(20 * var(--v8-u));line-height:1.1}.choice-heading>small{padding:calc(4 * var(--v8-u)) calc(7 * var(--v8-u));border:calc(1 * var(--v8-u)) solid #b9d9df;border-radius:calc(9 * var(--v8-u));color:#63828e;font:800 calc(10 * var(--v8-u)) Nunito,sans-serif;white-space:nowrap}.upgrade-cards{height:calc(170 * var(--v8-u));display:flex;gap:calc(8 * var(--v8-u));align-items:stretch}
.upgrade-card{position:relative;flex:1;min-width:0;padding:calc(12 * var(--v8-u)) calc(3 * var(--v8-u)) calc(10 * var(--v8-u));display:flex;flex-direction:column;justify-content:center;align-items:center;background:#f5fcfc;border:calc(1 * var(--v8-u)) solid #81bfca;border-radius:calc(18 * var(--v8-u));box-shadow:0 calc(3 * var(--v8-u)) 0 #397a8322;transition:transform .1s}.upgrade-card:active{transform:translateY(calc(2 * var(--v8-u)))}.upgrade-card>img{width:100%;height:calc(111 * var(--v8-u));object-fit:contain}.upgrade-card>b{font-size:calc(20 * var(--v8-u));line-height:1.05;text-align:center;white-space:normal;max-width:100%;margin-top:calc(3 * var(--v8-u));color:#0c3a3d;font-weight:800}.upgrade-card>small{position:absolute;top:calc(7 * var(--v8-u));right:calc(8 * var(--v8-u));font-size:calc(10 * var(--v8-u));color:#63828e;line-height:1;background:#ffffffd0;padding:calc(3 * var(--v8-u)) calc(4 * var(--v8-u));border-radius:calc(7 * var(--v8-u))}
.upgrade-card>.tutorial-hand{position:absolute;right:-10%;bottom:-12%;width:56%;height:auto;object-fit:contain;transform:none;filter:drop-shadow(0 calc(2 * var(--v8-u)) calc(1 * var(--v8-u)) #254568);animation:hand-tap 1.15s ease-in-out infinite;pointer-events:none;z-index:3}.upgrade-card>.swap-preview{position:absolute;left:10%;right:10%;top:68%;height:calc(18 * var(--v8-u));display:flex;align-items:center;justify-content:center;gap:calc(2 * var(--v8-u));border-radius:calc(10 * var(--v8-u));background:#e0f1f3;pointer-events:none}.swap-preview>img{width:calc(28 * var(--v8-u));height:calc(20 * var(--v8-u));object-fit:contain}.swap-preview>span{font-size:calc(14 * var(--v8-u));line-height:1;color:#2d657b}.upgrade-card>small.swap-badge{left:calc(7 * var(--v8-u));right:auto;top:calc(7 * var(--v8-u));font-size:calc(9 * var(--v8-u));letter-spacing:.02em;background:#e0f1f3;color:#37648d}.upgrade-card.swap-card>img:first-child{position:absolute;top:calc(18 * var(--v8-u));left:8%;width:84%;height:calc(92 * var(--v8-u));margin:0;object-fit:contain}.upgrade-card.swap-card>b{position:absolute;bottom:calc(10 * var(--v8-u));left:2%;right:2%;margin:0}
.chapter-tray{position:absolute;left:calc(16 * var(--v8-u));right:calc(16 * var(--v8-u));bottom:calc(24 * var(--v8-u));z-index:13;animation:tray-enter .2s ease-out}.chapter-content{background:#f5fcfcf5;border:calc(1 * var(--v8-u)) solid #81bfca;box-shadow:0 calc(3 * var(--v8-u)) 0 #397a8322;border-radius:calc(22 * var(--v8-u));padding:calc(16 * var(--v8-u));text-align:center}.chapter-content h1{font-size:calc(25 * var(--v8-u));line-height:1.1;color:#0c3a3d}.chapter-note{font:700 calc(13 * var(--v8-u)) Nunito,sans-serif;padding:calc(8 * var(--v8-u))}.chapter-loot{padding:calc(10 * var(--v8-u)) 0 calc(3 * var(--v8-u));font-size:calc(18 * var(--v8-u))}.chapter-loot img{width:calc(27 * var(--v8-u));height:calc(27 * var(--v8-u))}.growth-strip{display:flex;justify-content:center;gap:calc(13 * var(--v8-u));margin:calc(8 * var(--v8-u)) 0 0;font-weight:800;font-size:calc(17 * var(--v8-u))}.growth-strip img{width:calc(23 * var(--v8-u));height:calc(23 * var(--v8-u));object-fit:contain}.growth-strip>span{display:inline-flex;align-items:center;gap:calc(3 * var(--v8-u))}.growth-caption{display:block;font:800 calc(9 * var(--v8-u)) Nunito,sans-serif;color:#63828e;margin-top:calc(3 * var(--v8-u));letter-spacing:.7px}.reward-saved{display:flex;align-items:center;justify-content:center;gap:calc(6 * var(--v8-u));margin:calc(10 * var(--v8-u)) 0;font-size:calc(12 * var(--v8-u))}.reward-saved .v7-icon{width:calc(18 * var(--v8-u));height:calc(18 * var(--v8-u));color:#36bd08}.chapter-actions{display:flex;flex-direction:column;gap:calc(8 * var(--v8-u))}.chapter-actions>.v7-btn{width:100%}.chapter-links{display:grid;grid-template-columns:1fr 1fr;gap:calc(8 * var(--v8-u))}
.sheet-backdrop{width:min(100%,560px,48.913dvh);height:100%;display:flex;justify-content:center;align-items:center;padding:calc(16 * var(--v8-u));background:#123c3666;container-type:inline-size}.meta-sheet{position:relative;display:flex;flex-direction:column;max-height:90%;width:100%;border-radius:calc(22 * var(--v8-u));background:var(--v7-panel,#f5fcfc);border:calc(1 * var(--v8-u)) solid var(--v7-line,#81bfca);box-shadow:0 calc(5 * var(--v8-u)) calc(25 * var(--v8-u)) #123c3633;overflow:hidden;animation:sheet-enter .18s ease-out}.meta-sheet>header{display:flex;align-items:center;justify-content:space-between;min-height:calc(72 * var(--v8-u));padding:calc(14 * var(--v8-u)) calc(16 * var(--v8-u)) calc(10 * var(--v8-u));gap:calc(8 * var(--v8-u))}.meta-sheet h1{font-size:calc(22 * var(--v8-u));line-height:1.1}.meta-sheet .close-button{flex:none;width:calc(44 * var(--v8-u));height:calc(44 * var(--v8-u));border-radius:calc(16 * var(--v8-u));padding:calc(8 * var(--v8-u))}.meta-sheet .close-button .v7-icon{width:calc(24 * var(--v8-u));height:calc(24 * var(--v8-u))}.sheet-body{overflow:auto;padding:0 calc(16 * var(--v8-u)) calc(16 * var(--v8-u));overscroll-behavior:contain;min-height:0}.sheet-body>p{padding:calc(8 * var(--v8-u)) 0 calc(16 * var(--v8-u));font-size:calc(14 * var(--v8-u))}.resource-sheet{height:min(calc(620 * var(--v8-u)),90%)}.resource-sheet>.sheet-body{flex:1}.pause-sheet .sheet-body{display:flex;flex-direction:column;gap:calc(10 * var(--v8-u))}.pause-sheet>header{justify-content:center}.pause-sheet>header .close-button{position:absolute;right:calc(16 * var(--v8-u))}.pause-sheet h1{font-size:calc(28 * var(--v8-u))}.pause-toggles{display:flex;flex-direction:column;gap:calc(8 * var(--v8-u));margin-top:calc(14 * var(--v8-u));padding-top:calc(16 * var(--v8-u));border-top:calc(1 * var(--v8-u)) solid #b6d8dc}.pause-toggle{display:flex;align-items:center;gap:calc(10 * var(--v8-u));height:calc(48 * var(--v8-u));width:100%;background:#f7ffff;border:calc(1 * var(--v8-u)) solid #81bfca;border-radius:calc(14 * var(--v8-u));padding:0 calc(12 * var(--v8-u));font-size:calc(16 * var(--v8-u))}.pause-toggle b{flex:1;text-align:left}.toggle{position:relative;display:block;width:calc(44 * var(--v8-u));height:calc(25 * var(--v8-u));border:calc(1 * var(--v8-u)) solid #a0bbc2;background:#b2c7cb;border-radius:calc(20 * var(--v8-u))}.toggle:before{content:'';position:absolute;left:calc(2 * var(--v8-u));top:calc(2 * var(--v8-u));width:calc(19 * var(--v8-u));height:calc(19 * var(--v8-u));background:white;border-radius:50%;box-shadow:0 calc(1 * var(--v8-u)) calc(1 * var(--v8-u)) #17475d33}.toggle.on{background:#36bd08;border-color:#2a9d05}.toggle.on:before{left:calc(21 * var(--v8-u))}
.action .v7-icon{width:calc(24 * var(--v8-u));height:calc(24 * var(--v8-u))}.price{color:inherit}.gear-gained{animation:gear-gain .65s ease-out both}
.arena.paused .cooldown-ring,.arena.paused .tutorial-hand{animation-play-state:paused}.reduced-motion .cooldown-ring,.reduced-motion .tutorial-hand{animation:none}.reduced-motion .floating-number,.reduced-motion .hit-effect,.reduced-motion .flying-coin{animation-duration:.3s!important;animation-delay:0s!important}
@keyframes cooldown{to{transform:rotate(325deg)}}@keyframes damage-pop{0%{opacity:0;translate:0 calc(10 * var(--v8-u));scale:.6}18%{opacity:1;scale:1.2}40%{scale:1}75%{opacity:1}100%{opacity:0;translate:0 calc(-40 * var(--v8-u))}}@keyframes impact-burst{0%{opacity:0;scale:.6;rotate:-15deg}20%{opacity:1;scale:1.15}100%{opacity:0;scale:1.3;rotate:10deg}}@keyframes shatter-burst{0%{opacity:0;scale:.75}15%{opacity:0.95}100%{opacity:0;scale:1.5}}@keyframes coin-fly{0%{opacity:0;translate:0 calc(20 * var(--v8-u));scale:.8}15%{opacity:1;scale:1}80%{opacity:1}100%{opacity:0;translate:var(--coin-dx) var(--coin-dy);scale:.65}}@keyframes wallet-pulse{35%{scale:1.12}100%{scale:1}}@keyframes tray-enter{from{translate:0 calc(12 * var(--v8-u));opacity:0}to{translate:0 0;opacity:1}}@keyframes hand-tap{0%,100%{translate:0 calc(5 * var(--v8-u));scale:1}55%{translate:calc(-4 * var(--v8-u)) calc(-5 * var(--v8-u));scale:.95}}@keyframes sheet-enter{from{translate:0 calc(10 * var(--v8-u));scale:.98}to{translate:0 0;scale:1}}@keyframes multi-damage-pop{0%{opacity:0;translate:0 calc(8 * var(--v8-u));scale:.7}20%{opacity:1;scale:1.08}65%{opacity:1;scale:1}100%{opacity:0;translate:0 calc(-18 * var(--v8-u));scale:.95}}@keyframes gear-gain{0%{background:#cbffe7;box-shadow:0 0 0 calc(3 * var(--v8-u)) #53d5a5}100%{background:#fff;box-shadow:0 0 0 0 transparent}}
@media(max-height:calc(680 * var(--v8-u))){.battle-toolbar{top:calc(12 * var(--v8-u))}.coin-hud{top:calc(64 * var(--v8-u))}.wave-progress{top:calc(105 * var(--v8-u))}.choice-tray{bottom:calc(24 * var(--v8-u));height:calc(188 * var(--v8-u))}.choice-tray:before{bottom:calc(-24 * var(--v8-u))}.upgrade-cards{height:calc(146 * var(--v8-u))}.upgrade-card>img{height:calc(90 * var(--v8-u))}.upgrade-card>b{font-size:calc(18 * var(--v8-u))}.upgrade-card.swap-card>img:first-child{height:calc(75 * var(--v8-u));top:calc(16 * var(--v8-u))}.upgrade-card>.swap-preview{top:65%}.skill-indicators{bottom:calc(65 * var(--v8-u))}.chapter-tray{bottom:calc(16 * var(--v8-u))}.chapter-content{padding:calc(12 * var(--v8-u))}.chapter-content h1{font-size:calc(22 * var(--v8-u))}.chapter-loot{padding-top:calc(6 * var(--v8-u))}.growth-strip{margin-top:calc(5 * var(--v8-u))}.reward-saved{margin:calc(6 * var(--v8-u)) 0}.meta-sheet>header{min-height:calc(64 * var(--v8-u));padding-top:calc(10 * var(--v8-u))}}
.arena[data-speed="2"] .floating-number:not(.multi-hit-number){animation-duration:.4s}.arena[data-speed="2"] .hit-effect{animation-duration:.275s}.arena[data-speed="2"] .hit-effect.shatter{animation-duration:.35s}.arena[data-speed="2"] .hit-effect.rapid-impact{animation-duration:.14s}.arena[data-speed="2"] .skill-puck.active .cooldown-ring{animation-duration:.41s}
.hub-root{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}
.v7-equipped .v7-art,.v7-relic-tile .v7-art,.v7-relic-detail-top>.v7-art{clip-path:inset(8% 0 0)}
.rank-dot.hit-count{min-width:calc(29 * var(--v8-u));padding:0 calc(4 * var(--v8-u))}
/* The approved alpha panel is stretched only at its center; live text and hit areas stay independent. */
#game,.sheet-backdrop{--v8-u:calc(min(100vw,560px,48.913dvh) / 360)}
.meta-sheet{--v8-u:inherit}
.battle-level,.coin-hud,.chapter-content,.meta-sheet,.pause-toggle,.upgrade-card,.wave-progress{isolation:isolate;background:none;border-color:transparent;box-shadow:none}
.battle-level,.chapter-content,.pause-toggle{position:relative}
.battle-level:before,.coin-hud:before,.chapter-content:before,.meta-sheet:before,.pause-toggle:before,.upgrade-card:before,.wave-progress:before{content:'';position:absolute;inset:0;z-index:-1;border:calc(12 * var(--v8-u)) solid transparent;border-image:url('assets/v8/ui/panel.png') 48 fill stretch;pointer-events:none}
.choice-tray:before{background:none;border:calc(12 * var(--v8-u)) solid transparent;border-image:url('assets/v8/ui/panel.png') 48 fill stretch;border-radius:0}
.wave-progress:before{border-width:calc(4 * var(--v8-u))}
.skill-puck.active{border-color:#80b85a;box-shadow:0 calc(2 * var(--v8-u)) calc(3 * var(--v8-u)) #174b4633,0 0 0 calc(2 * var(--v8-u)) #88c65e88}
.skill-puck:not(.active) .cooldown-ring{visibility:hidden}
.upgrade-card.ice>img:first-child{filter:drop-shadow(0 calc(2 * var(--v8-u)) calc(4 * var(--v8-u)) #8ddbec66)}
.upgrade-card.fire>img:first-child{filter:drop-shadow(0 calc(2 * var(--v8-u)) calc(4 * var(--v8-u)) #edac7266)}
.actor.fallen .actor-shadow{opacity:.55}.actor.fallen .ice-shell,.actor.fallen .actor-shield{display:none}
.floating-number.shield-number{color:#99e6ff;-webkit-text-stroke:calc(1 * var(--v8-u)) #276c91}
.arena.paused .fx-layer *{animation-play-state:paused}.arena[data-speed="2"] .multi-hit-number{animation-duration:.12s}
.actor-loading{position:absolute;inset:0;z-index:30;display:grid;place-items:center;background:#123c3655}
.v8-loading-panel{position:relative;isolation:isolate;width:calc(248 * var(--v8-u));min-height:calc(144 * var(--v8-u));padding:calc(24 * var(--v8-u));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(16 * var(--v8-u));color:var(--v7-ink);font:800 calc(17 * var(--v8-u))/1.2 Baloo,Arial,sans-serif;text-align:center}
.v8-loading-panel:before{content:'';position:absolute;inset:0;z-index:-1;border:calc(15 * var(--v8-u)) solid transparent;border-image:url('assets/v8/ui/panel.png') 48 fill stretch}
.v8-loading-panel>i{width:calc(28 * var(--v8-u));height:calc(28 * var(--v8-u));border:calc(3 * var(--v8-u)) solid #bfd6d8;border-top-color:#3b98b3;border-radius:50%;animation:cooldown 1s linear infinite}
.actor-loading.failed .v8-loading-panel>i{display:none}

.choice-tray .choice-heading{height:auto;min-height:calc(27 * var(--v8-u));margin-bottom:calc(2 * var(--v8-u))}
.choice-next{margin:0 0 calc(8 * var(--v8-u));color:#315e66;font-size:calc(12 * var(--v8-u));font-weight:800}
.upgrade-card:not(.swap-card)>img:first-child{height:calc(72 * var(--v8-u))}
.choice-effect{display:block;margin-top:calc(4 * var(--v8-u));padding:0 calc(4 * var(--v8-u));font:800 calc(11 * var(--v8-u))/1.2 Nunito,sans-serif;color:#315e66;text-align:center}
