/* ASTERVEIL Adaptive Arena Foundation v1
   The battle scene and answer deck are two parts of ONE shell.
   Visual-only: preserves role sprites, projectiles, DOM ids and backend logic.
   This file loads LAST; do not add device-specific fixes to battle-redesign-v2.css. */
:root{
 --av-night:#09162a;--av-slate:#0e263f;--av-gold:#ddbb7b;--av-gold-dim:rgba(221,187,123,.44);
 --av-parchment:#f4e5c8;--av-mist:#adc4d0;--av-mint:#7addbd;
 --av-corner:14px;
}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.battle-redesign-v2{overflow-x:clip}
.battle-redesign-v2 #play{min-width:0}
.battle-redesign-v2 #play>div,
.battle-redesign-v2 #play aside,
.battle-redesign-v2 #play>div>.panel{min-width:0}
.battle-redesign-v2 #play>div>.panel{overflow:visible}
@media(max-width:1120px){
 .battle-redesign-v2 #play.grid{grid-template-columns:minmax(0,1fr);gap:16px}
 .battle-redesign-v2 #play aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
 .battle-redesign-v2 #play aside>.panel{margin:0!important}
}
@media(max-width:690px){
 .battle-redesign-v2 main.wrap{padding:12px 9px max(22px,env(safe-area-inset-bottom))}
 .battle-redesign-v2 #play>div>.panel{padding:12px;border-radius:14px}
 .battle-redesign-v2 #play aside{display:block}
 .battle-redesign-v2 #play aside>.panel{margin-bottom:14px!important}
}
/* Responsive decisions are based on AVAILABLE ARENA WIDTH, not "iPhone" or "iPad". */
.battle-redesign-v2 #arena{min-width:0}
.battle-redesign-v2 #arena #battleStage.battle-stage.hd2d-stage{
 display:flex!important;flex-direction:column!important;container:av-arena/inline-size;
 width:100%;height:auto!important;min-height:0!important;max-height:none!important;
 margin:0;overflow:hidden;isolation:isolate;
 border:1.5px solid var(--av-gold);border-radius:var(--av-corner);
 background:var(--av-night)!important;
 box-shadow:0 18px 40px rgba(0,5,17,.49),inset 0 1px 0 rgba(255,241,203,.28);
}
.battle-redesign-v2 #battleStage::before{display:none!important}
/* Real, clean background art from Arena Theme Picker replaces the V2 SVG preview.
   Scene is isolated from the command deck: UI never becomes baked into the art. */
.battle-redesign-v2 #battleStage .battle-arena-scene{
 position:relative;flex:none;isolation:isolate;
 width:100%;height:clamp(455px,43cqw,600px);min-height:0;
 overflow:hidden;
 background:linear-gradient(180deg,rgba(3,14,31,.15),rgba(3,14,31,.09) 72%,rgba(5,18,34,.40)),
  url('/game/asterveil/assets/arenas/wildwood.webp') center 52% / cover no-repeat!important;
}
.battle-redesign-v2 #battleStage.arena-art-ready .battle-arena-scene{
 background-image:linear-gradient(180deg,rgba(3,14,31,.12),rgba(3,14,31,.04) 62%,rgba(5,18,34,.27)),
  var(--arena-art)!important;
 background-position:center 52%!important;background-size:cover!important;background-repeat:no-repeat!important;
}
.battle-redesign-v2 #battleStage .battle-arena-scene::after{
 content:"";position:absolute;left:0;right:0;bottom:0;height:46px;
 background:linear-gradient(180deg,transparent,rgba(5,18,35,.36));pointer-events:none;z-index:3;
}
.battle-redesign-v2 #battleStage .hd2d-backdrop,
.battle-redesign-v2 #battleStage .hd2d-platform,
.battle-redesign-v2 #battleStage .hd2d-tactical-tiles,
.battle-redesign-v2 #battleStage .stage-ground{display:none!important}
.battle-redesign-v2 #battleStage .hd2d-motes{opacity:.32;pointer-events:none}
.battle-redesign-v2 #battleStage .hd2d-topline{
 position:absolute;top:11px;left:13px;right:13px;z-index:8;
 display:flex;justify-content:space-between;gap:10px;
 font:700 11px/1.1 Georgia,serif;color:#ffe0a5;pointer-events:none;
}
.battle-redesign-v2 #battleStage .hd2d-topline span{
 padding:5px 10px;max-width:48%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 background:rgba(9,27,47,.70);border:1px solid rgba(225,183,107,.48);
 border-radius:7px;backdrop-filter:blur(5px);
}
.battle-redesign-v2 #battleStage .hd2d-battle-hud{
 position:absolute;left:13px;right:13px;top:51px;z-index:15;
 display:flex;justify-content:space-between;gap:clamp(20px,12cqw,180px);
 align-items:start;pointer-events:none;
}
.battle-redesign-v2 #battleStage .hd2d-hud-unit,
.battle-redesign-v2 #battleStage .hd2d-hud-hero{
 flex:0 1 32%;width:32%;max-width:315px;min-width:0;row-gap:0;
 padding:9px 10px;border:1px solid rgba(231,190,121,.52);border-radius:10px;
 background:linear-gradient(150deg,rgba(6,19,39,.89),rgba(12,28,52,.76));
 color:var(--av-parchment);box-shadow:0 6px 20px rgba(1,7,19,.3);
 backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);
 box-sizing:border-box;
}
.battle-redesign-v2 #battleStage .hd2d-hud-hero{display:flex;flex-wrap:nowrap;align-items:center;gap:9px}
.battle-redesign-v2 #battleStage .hd2d-hero-portrait{
 flex:0 0 clamp(42px,5cqw,65px);width:clamp(42px,5cqw,65px);
 border-radius:8px;aspect-ratio:1;
}
.battle-redesign-v2 #battleStage .hd2d-hero-hud-details{flex:1;min-width:0}
.battle-redesign-v2 #battleStage .hd2d-hud-unit strong{
 font:700 clamp(12px,1.5cqw,19px)/1.15 Georgia,serif;
 overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0;max-width:100%;
}
.battle-redesign-v2 #battleStage .hd2d-hud-unit small{
 font:700 9px/1.4 system-ui,sans-serif;letter-spacing:.08em;color:#d4b983;
}
.battle-redesign-v2 #battleStage .hd2d-hud-track{
 height:8px;margin-top:5px;overflow:hidden;border-radius:99px;background:rgba(210,226,234,.22);
}
.battle-redesign-v2 #battleStage .hd2d-hero-hud-details>span,
.battle-redesign-v2 #battleStage .hd2d-hud-unit>span{
 display:block;margin-top:4px;font:700 10px/1.2 system-ui,sans-serif;
 text-align:right;color:#e5e8e8;
}
.battle-redesign-v2 #battleStage .stage-combatants{
 position:absolute;inset:138px 20px 14px!important;z-index:5;
 display:flex;align-items:flex-end;justify-content:space-around;
 pointer-events:none;filter:drop-shadow(0 12px 8px rgba(1,7,16,.42));
}
.battle-redesign-v2 #battleStage .stage-combatants .combatant{
 width:42%;height:100%;max-height:100%;display:flex;
 justify-content:flex-end;align-items:center;
}
.battle-redesign-v2 #battleStage .stage-combatants .combatant.ally .hero-sprite{
 width:clamp(165px,22cqw,275px)!important;
 height:clamp(228px,30cqw,355px)!important;max-height:calc(100% - 23px);
 background-position:center bottom!important;
}
.battle-redesign-v2 #battleStage .stage-combatants .enemy-unit .monster-sprite{
 width:clamp(190px,26cqw,335px)!important;
 height:clamp(225px,30cqw,355px)!important;max-height:calc(100% - 23px);
 background-position:center bottom!important;
}
.battle-redesign-v2 #battleStage .stage-combatants .combatant small{
 padding:3px 11px;max-width:100%;
 font:600 11px/1.1 system-ui,sans-serif;
 background:rgba(8,20,42,.89);border:1px solid rgba(232,193,125,.8);border-radius:999px;
}
.battle-redesign-v2 #battleStage .hd2d-versus{
 top:49%;font:italic 750 clamp(22px,3cqw,42px)/1 Georgia,serif;
 color:#f8e6c7;text-shadow:0 2px 13px #e8b2659e;opacity:.83;
}
/* The deck is in document flow and never covers the fighters. */
.battle-redesign-v2 #battleStage .battle-question-overlay{
 position:relative!important;inset:auto!important;left:auto!important;bottom:auto!important;
 transform:none!important;flex:none;z-index:10;
 width:100%!important;max-height:none!important;overflow:visible!important;
 box-sizing:border-box;padding:15px clamp(12px,2cqw,24px) 20px;
 border:0!important;border-top:1px solid rgba(237,200,127,.8)!important;
 border-radius:0!important;backdrop-filter:none!important;
 background:
  radial-gradient(ellipse at 50% -20%,rgba(69,107,147,.18),transparent 63%),
  linear-gradient(175deg,#112943,#0b2039 64%,#0b1e35)!important;
 box-shadow:inset 0 2px 0 rgba(255,225,159,.09)!important;color:var(--av-parchment);
}
.battle-redesign-v2 #battleStage .battle-question-overlay::before{
 content:"✧";position:absolute;left:50%;top:-10px;transform:translateX(-50%);
 height:18px;width:60px;display:grid;place-items:center;
 color:#f5d59d;font:700 20px/1 Georgia,serif;
 text-shadow:0 0 10px #edc183;background:#10233b;
}
.battle-redesign-v2 #battleStage .battle-quiz-heading{
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;
 max-width:920px;margin:0 auto 12px;min-height:40px;
}
.battle-redesign-v2 #battleStage .battle-quiz-labels{
 display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;min-width:0;
}
.battle-redesign-v2 #battleStage .battle-quiz-heading .eyebrow{
 letter-spacing:.14em;font:800 10px/1.4 system-ui,sans-serif;color:#ecca8d;
}
.battle-redesign-v2 #battleStage .battle-quiz-progress{
 font:600 11px/1.3 system-ui,sans-serif;color:#b4cadb;
}
.battle-redesign-v2 #battleStage .battle-quiz-toolbar{
 display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end;min-width:0;
}
.battle-redesign-v2 #battleStage .battle-potion-tools{
 display:flex;align-items:center;gap:5px;flex:0 0 auto;
 padding:3px 4px 3px 8px;box-sizing:border-box;
 border:1px solid rgba(213,172,105,.42);border-radius:9px;
 background:rgba(28,55,77,.84);pointer-events:auto;
}
.battle-redesign-v2 #battleStage .battle-potion-stock{
 display:flex;align-items:center;gap:5px;font:750 11px/1 system-ui,sans-serif;
 color:#f0ddb5;white-space:nowrap;
}
.battle-redesign-v2 #battleStage .battle-potion-caption{display:none}
.battle-redesign-v2 #battleStage .battle-potion-icon{font-size:14px}
.battle-redesign-v2 #battleStage #potionCount{font:800 11px/1 system-ui,sans-serif;color:#fae5b7}
.battle-redesign-v2 #battleStage #usePotion.choice.battle-potion-use{
 display:inline-flex;align-items:center;justify-content:center;
 width:auto;min-width:84px;max-width:none;min-height:38px;padding:6px 9px;
 border:1px solid #e9d19a;border-radius:7px;
 background:linear-gradient(160deg,#f8e6bc,#d5b473);color:#1b2c3f;
 box-shadow:none;white-space:nowrap;font:800 11px/1.1 system-ui,sans-serif;
 touch-action:manipulation;pointer-events:auto;cursor:pointer;
}
.battle-redesign-v2 #battleStage #usePotion.choice.battle-potion-use:disabled{
 opacity:.52;cursor:not-allowed;filter:saturate(.6);
}
.battle-redesign-v2 #battleStage .battle-sound-slot{display:flex;align-items:center}
.battle-redesign-v2 #battleStage .battle-sound-slot .sound-toggle{
 display:inline-flex;align-items:center;justify-content:center;
 width:auto;min-width:78px;max-width:none;min-height:44px;
 padding:7px 11px;border:1px solid rgba(216,183,126,.5);
 border-radius:9px;background:linear-gradient(160deg,#233c58,#172d48);
 color:#f4e7d3;white-space:nowrap;box-shadow:none;
 font:700 11px/1.2 system-ui,sans-serif;cursor:pointer;touch-action:manipulation;
}
.battle-redesign-v2 #arena #battleStage .battle-question-overlay .battleword{
 display:block;grid-row:auto;grid-column:auto;min-width:0;
 max-width:930px;margin:0 auto 13px;padding:14px 16px 10px;
 background:linear-gradient(180deg,rgba(20,48,76,.69),rgba(14,36,59,.42))!important;
 border:1px solid rgba(233,195,126,.22);border-radius:13px;
 box-shadow:inset 0 1px rgba(255,237,203,.08);text-align:center;
}
.battle-redesign-v2 #arena #battleStage .battle-question-overlay #pattern{
 margin:0;color:#ffe8bb;
 font:700 clamp(20px,2.45cqw,32px)/1.32 Georgia,"Times New Roman",serif;
 letter-spacing:0;overflow-wrap:anywhere;word-break:normal;
 text-shadow:0 2px 14px #050d21;
}
.battle-redesign-v2 #arena #battleStage .battle-question-overlay #wordHint{
 margin:7px 0 0;color:#b9cfdb;
 font:500 11px/1.4 system-ui,sans-serif;
}
.battle-redesign-v2 #arena #battleStage #answerChoices{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
 min-width:0;max-width:920px;margin:0 auto;
 grid-row:auto;grid-column:auto;
}
.battle-redesign-v2 #arena #battleStage #answerChoices .choice{
 display:flex;align-items:center;justify-content:center;
 width:100%;min-width:0;min-height:62px;padding:10px 12px;
 border:1px solid rgba(222,185,119,.48);border-radius:11px;
 background:linear-gradient(150deg,#233f60,#193451);
 color:#f9e9ce;box-shadow:inset 0 1px rgba(255,240,212,.12),0 6px 16px rgba(0,6,15,.24);
 font:650 clamp(15px,1.55cqw,20px)/1.25 Georgia,serif;
 overflow-wrap:anywhere;white-space:normal;text-align:center;
 cursor:pointer;touch-action:manipulation;transition:background .16s,transform .16s,border-color .16s;
}
.battle-redesign-v2 #arena #battleStage #answerChoices .choice:hover:not(:disabled){
 background:linear-gradient(150deg,#315779,#244363);
 border-color:#f5d59a;transform:translateY(-1px);
}
.battle-redesign-v2 #arena #battleStage #answerChoices .choice:focus-visible,
.battle-redesign-v2 #arena #battleStage #next:focus-visible,
.battle-redesign-v2 #arena #battleStage #usePotion:focus-visible,
.battle-redesign-v2 #arena #battleStage .sound-toggle:focus-visible{
 outline:3px solid #f9d99c;outline-offset:2px;
}
.battle-redesign-v2 #arena #battleStage #answerChoices .choice:disabled{opacity:.7;transform:none}
.battle-redesign-v2 #arena #battleStage #feedback{
 max-width:920px;max-height:180px;overflow:auto;
 margin:12px auto 0;padding:11px 13px;border:1px solid #75b69b;
 border-radius:10px;background:#1a4c46;color:#e4f8ef;
 font:500 12px/1.5 system-ui,sans-serif;
}
.battle-redesign-v2 #arena #battleStage #feedback.bad{border-color:#d0859e;background:#55293d;color:#ffe7ef}
.battle-redesign-v2 #arena #battleStage #feedback.hide{display:none!important}
.battle-redesign-v2 #arena #battleStage .battle-quiz-actions{
 display:flex;justify-content:flex-end;max-width:920px;margin:10px auto 0;
}
.battle-redesign-v2 #arena #battleStage .battle-quiz-actions:has(#next.hide){display:none}
.battle-redesign-v2 #arena #battleStage #next{
 min-height:44px;padding:9px 16px;border:1px solid #f8e4b6;
 border-radius:9px;background:linear-gradient(160deg,#ffebbc,#d5b575);
 color:#16293d;font:800 12px/1.3 system-ui,sans-serif;touch-action:manipulation;
}
.battle-redesign-v2 #arena #battleStage #next.hide{display:none!important}
.battle-redesign-v2 #battleStage.battle-victory .battle-question-overlay,
.battle-redesign-v2 #battleStage.battle-defeat .battle-question-overlay{
 opacity:.5;pointer-events:none;
}
.battle-redesign-v2 #arena .battle-legacy-stats[hidden]{display:none!important}
@container av-arena (max-width:760px){
 .battle-redesign-v2 #battleStage .battle-arena-scene{height:clamp(340px,56cqw,460px)}
 .battle-redesign-v2 #battleStage .stage-combatants{inset:119px 9px 11px!important}
 .battle-redesign-v2 #battleStage .hd2d-hud-unit,
 .battle-redesign-v2 #battleStage .hd2d-hud-hero{flex-basis:39%;width:39%}
 .battle-redesign-v2 #battleStage .battle-quiz-heading{grid-template-columns:1fr;gap:10px}
 .battle-redesign-v2 #battleStage .battle-quiz-toolbar{justify-content:flex-start}
 .battle-redesign-v2 #battleStage .stage-combatants .combatant.ally .hero-sprite{
  width:clamp(140px,25cqw,210px)!important;height:clamp(185px,37cqw,278px)!important;
 }
 .battle-redesign-v2 #battleStage .stage-combatants .enemy-unit .monster-sprite{
  width:clamp(163px,31cqw,235px)!important;height:clamp(190px,35cqw,268px)!important;
 }
 .battle-redesign-v2 #arena #battleStage #answerChoices .choice{min-height:56px;font-size:clamp(14px,2.3cqw,17px)}
}
@container av-arena (max-width:490px){
 .battle-redesign-v2 #battleStage .battle-arena-scene{height:clamp(318px,93cqw,390px)}
 .battle-redesign-v2 #battleStage .hd2d-topline{left:7px;right:7px;top:8px;font-size:9px}
 .battle-redesign-v2 #battleStage .hd2d-topline span{padding:4px 5px}
 .battle-redesign-v2 #battleStage .hd2d-battle-hud{top:39px;left:7px;right:7px;gap:8px}
 .battle-redesign-v2 #battleStage .hd2d-hud-unit,
 .battle-redesign-v2 #battleStage .hd2d-hud-hero{
  width:48%;flex:0 0 48%;padding:7px 6px;border-radius:8px;
 }
 .battle-redesign-v2 #battleStage .hd2d-hero-portrait{
  flex:0 0 38px;width:38px;border-radius:7px;
 }
 .battle-redesign-v2 #battleStage .hd2d-hud-hero{gap:5px}
 .battle-redesign-v2 #battleStage .hd2d-hud-unit strong{font-size:12px}
 .battle-redesign-v2 #battleStage .hd2d-hud-unit small{font-size:8px}
 .battle-redesign-v2 #battleStage .hd2d-hud-track{height:6px}
 .battle-redesign-v2 #battleStage .hd2d-hero-hud-details>span,
 .battle-redesign-v2 #battleStage .hd2d-hud-unit>span{font-size:9px}
 .battle-redesign-v2 #battleStage .stage-combatants{inset:112px 4px 9px!important}
 .battle-redesign-v2 #battleStage .stage-combatants .combatant.ally .hero-sprite{
  width:clamp(113px,36cqw,161px)!important;height:clamp(161px,55cqw,206px)!important;
 }
 .battle-redesign-v2 #battleStage .stage-combatants .enemy-unit .monster-sprite{
  width:clamp(134px,42cqw,185px)!important;height:clamp(158px,54cqw,210px)!important;
 }
 .battle-redesign-v2 #battleStage .hd2d-versus{top:53%;font-size:24px}
 .battle-redesign-v2 #battleStage .battle-question-overlay{padding:13px 10px 16px}
 .battle-redesign-v2 #battleStage .battle-quiz-heading{gap:8px;margin-bottom:10px}
 .battle-redesign-v2 #battleStage .battle-quiz-labels{justify-content:space-between}
 .battle-redesign-v2 #battleStage .battle-quiz-toolbar{flex-wrap:nowrap;justify-content:space-between;gap:6px}
 .battle-redesign-v2 #battleStage .battle-potion-tools{padding:3px 3px 3px 5px;gap:3px}
 .battle-redesign-v2 #battleStage .battle-potion-stock{gap:3px;font-size:10px}
 .battle-redesign-v2 #battleStage #usePotion.choice.battle-potion-use{min-width:67px;min-height:43px;padding:6px 5px;font-size:10px}
 .battle-redesign-v2 #battleStage .battle-sound-slot .sound-toggle{min-width:72px;min-height:45px;padding:6px 8px;font-size:10px}
 .battle-redesign-v2 #arena #battleStage .battle-question-overlay .battleword{padding:12px 9px 10px;margin-bottom:10px}
 .battle-redesign-v2 #arena #battleStage .battle-question-overlay #pattern{
  font-size:clamp(20px,5.6cqw,25px);line-height:1.3;
 }
 .battle-redesign-v2 #arena #battleStage #answerChoices{gap:8px}
 .battle-redesign-v2 #arena #battleStage #answerChoices .choice{
  min-height:59px;padding:9px 7px;font-size:clamp(13px,3.65cqw,16px);
 }
}
@container av-arena (max-width:340px){
 .battle-redesign-v2 #battleStage .battle-arena-scene{height:315px}
 .battle-redesign-v2 #battleStage .hd2d-hero-portrait{display:none}
 .battle-redesign-v2 #battleStage .battle-quiz-toolbar{flex-wrap:wrap}
 .battle-redesign-v2 #arena #battleStage #answerChoices .choice{font-size:13px}
}
@media (orientation:landscape) and (max-height:520px) and (min-width:700px){
 .battle-redesign-v2 #arena #battleStage.battle-stage.hd2d-stage{
  display:grid!important;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);
 }
 .battle-redesign-v2 #battleStage .battle-arena-scene{height:clamp(330px,75svh,430px)}
 .battle-redesign-v2 #battleStage .battle-question-overlay{border-top:0!important;border-left:1px solid var(--av-gold)!important}
 .battle-redesign-v2 #battleStage .stage-combatants{inset:114px 4px 9px!important}
 .battle-redesign-v2 #battleStage .hd2d-topline span{font-size:9px}
 .battle-redesign-v2 #battleStage .battle-quiz-heading{grid-template-columns:1fr}
 .battle-redesign-v2 #battleStage .battle-quiz-toolbar{justify-content:flex-start}
}
@media(prefers-reduced-motion:reduce){
 .battle-redesign-v2 #arena #battleStage #answerChoices .choice{transition:none}
}
/* MASTER BATTLE GLASS v1 — 2026-11-21
   Visual-only: shared scene behind glass command. Use original arena art and game DOM IDs.
   Overrides the earlier rigid scene/deck split without replacing game logic. */
.battle-redesign-v2 #arena #battleStage.battle-master-glass{
 display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);
 height:clamp(650px,71cqw,830px)!important;min-height:650px!important;
 max-height:none!important;position:relative;
}
.battle-redesign-v2 #battleStage.battle-master-glass .battle-arena-scene{
 grid-column:1;grid-row:1;width:100%;height:100%!important;
 position:relative;min-height:0;
 background-position:center 52%!important;background-size:cover!important;
}
.battle-redesign-v2 #battleStage.battle-master-glass.arena-art-ready .battle-arena-scene{
 background-image:linear-gradient(180deg,rgba(2,10,26,.18),rgba(3,16,30,.06) 40%,rgba(2,15,31,.46) 100%),var(--arena-art)!important;
 background-position:center 52%!important;background-size:cover!important;
}
.battle-redesign-v2 #battleStage.battle-master-glass .battle-arena-scene::after{
 height:38%;background:linear-gradient(180deg,transparent,rgba(3,14,29,.4));z-index:2;
}
.battle-redesign-v2 #battleStage.battle-master-glass .hd2d-topline{display:none!important}
.battle-redesign-v2 #battleStage.battle-master-glass .av-exit-battle{
 position:absolute;top:10px;left:10px;z-index:25;
 display:inline-flex;align-items:center;justify-content:center;gap:5px;
 min-width:86px;min-height:42px;padding:8px 13px;
 color:#f7e7c8;background:rgba(7,26,49,.64);
 border:1px solid rgba(239,205,144,.6);border-radius:999px;
 box-shadow:inset 0 1px rgba(255,255,255,.12),0 3px 16px rgba(0,5,20,.32);
 backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
 font:700 12px/1.2 system-ui,sans-serif;touch-action:manipulation;cursor:pointer;
}
.battle-redesign-v2 #battleStage.battle-master-glass .hd2d-battle-hud{top:63px;left:12px;right:12px;z-index:15}
.battle-redesign-v2 #battleStage.battle-master-glass .hd2d-hud-unit{
 background:rgba(4,18,35,.57);border-color:rgba(237,198,128,.57);
 backdrop-filter:blur(13px) saturate(130%);-webkit-backdrop-filter:blur(13px) saturate(130%);
}
.battle-redesign-v2 #battleStage.battle-master-glass .stage-combatants{
 inset:143px 12px 300px!important;
}
.battle-redesign-v2 #battleStage.battle-master-glass .hd2d-versus{top:37%}
.battle-redesign-v2 #battleStage.battle-master-glass .battle-question-overlay{
 grid-area:1/1;position:relative!important;inset:auto!important;
 left:auto!important;bottom:auto!important;
 align-self:end;justify-self:center;transform:none!important;
 z-index:28;width:min(800px,calc(100% - 30px))!important;
 margin:0 0 15px;max-height:min(47%,390px)!important;overflow-y:auto!important;
 border:1px solid rgba(231,194,131,.58)!important;border-radius:18px!important;
 padding:14px clamp(12px,2cqw,18px) 16px;
 background:linear-gradient(145deg,rgba(9,29,51,.83),rgba(12,32,55,.70))!important;
 box-shadow:0 14px 45px rgba(2,8,22,.32),inset 0 1px rgba(255,246,214,.19)!important;
 backdrop-filter:blur(17px) saturate(133%)!important;
 -webkit-backdrop-filter:blur(17px) saturate(133%)!important;
 overscroll-behavior:contain;scrollbar-width:thin;
}
.battle-redesign-v2 #battleStage.battle-master-glass .battle-question-overlay::before{
 background:rgba(13,35,58,.75);top:-2px;height:2px;color:transparent;
 border-radius:999px;
}
.battle-redesign-v2 #battleStage.battle-master-glass .battle-quiz-heading{
 margin:0 auto 7px;min-height:35px;gap:6px 12px;
}
.battle-redesign-v2 #battleStage.battle-master-glass .battle-quiz-heading .eyebrow{font-size:9px}
.battle-redesign-v2 #battleStage.battle-master-glass .battle-quiz-progress{font-size:10px}
.battle-redesign-v2 #arena #battleStage.battle-master-glass .battle-question-overlay .battleword{
 margin:0 auto 9px;padding:6px 7px 8px;border:0;border-radius:0;
 background:transparent!important;box-shadow:none;
}
.battle-redesign-v2 #arena #battleStage.battle-master-glass #pattern{
 font:700 clamp(17px,2.05cqw,23px)/1.33 Georgia,serif;letter-spacing:0;
}
.battle-redesign-v2 #arena #battleStage.battle-master-glass #wordHint{margin:4px 0 0;font-size:10px}
.battle-redesign-v2 #arena #battleStage.battle-master-glass #answerChoices{gap:8px}
.battle-redesign-v2 #arena #battleStage.battle-master-glass #answerChoices .choice{
 min-height:49px;border-radius:11px;padding:9px 11px;
 border:1px solid rgba(230,195,137,.42);
 background:linear-gradient(165deg,rgba(43,77,108,.55),rgba(18,47,78,.60));
 color:#fff0d8;box-shadow:inset 0 1px rgba(255,247,215,.13);
 backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);
 font:650 clamp(13px,1.55cqw,17px)/1.25 Georgia,serif;
}
.battle-redesign-v2 #arena #battleStage.battle-master-glass #answerChoices .choice:hover:not(:disabled){
 background:linear-gradient(165deg,rgba(72,116,144,.7),rgba(40,78,117,.76));border-color:#f3d5a0;
}
.battle-redesign-v2 #battleStage.battle-master-glass #usePotion.battle-potion-use{min-height:41px}
.battle-redesign-v2 #battleStage.battle-master-glass .battle-sound-slot .sound-toggle{min-height:41px}
.battle-redesign-v2 #battleStage.battle-master-glass .battle-quiz-toolbar{
 gap:6px;flex-wrap:wrap;
}
.battle-redesign-v2 #battleStage.battle-master-glass .av-exit-battle:focus-visible{
 outline:3px solid #f5d28e;outline-offset:2px;
}
@container av-arena (max-width:760px){
 .battle-redesign-v2 #battleStage.battle-master-glass .stage-combatants{
  inset:132px 7px 282px!important;
 }
 .battle-redesign-v2 #battleStage.battle-master-glass .battle-quiz-heading{
  grid-template-columns:minmax(0,1fr) auto;gap:6px;
 }
}
@container av-arena (max-width:490px){
 .battle-redesign-v2 #battleStage.battle-master-glass .hd2d-battle-hud{top:59px;left:6px;right:6px}
 .battle-redesign-v2 #battleStage.battle-master-glass .stage-combatants{inset:141px 4px 290px!important}
 .battle-redesign-v2 #battleStage.battle-master-glass .battle-question-overlay{
  width:calc(100% - 14px)!important;margin-bottom:7px;
  max-height:min(48%,350px)!important;padding:10px 10px 12px;
  border-radius:15px!important;
 }
 .battle-redesign-v2 #battleStage.battle-master-glass .battle-quiz-heading{
  grid-template-columns:1fr;gap:6px;margin-bottom:5px;
 }
 .battle-redesign-v2 #battleStage.battle-master-glass .battle-quiz-toolbar{
  flex-wrap:nowrap;justify-content:space-between;gap:5px;
 }
 .battle-redesign-v2 #arena #battleStage.battle-master-glass #pattern{
  font:700 clamp(16px,4.5cqw,18px)/1.35 Georgia,serif;
 }
 .battle-redesign-v2 #arena #battleStage.battle-master-glass #answerChoices{gap:7px}
 .battle-redesign-v2 #arena #battleStage.battle-master-glass #answerChoices .choice{
  min-height:49px;padding:9px 7px;font-size:clamp(12px,3.35cqw,14px);border-radius:9px;
 }
 .battle-redesign-v2 #battleStage.battle-master-glass .hd2d-versus{top:35%;font-size:22px}
}
@media(max-width:700px){
 .battle-redesign-v2 #arena #battleStage.battle-master-glass{
  height:clamp(625px,87svh,720px)!important;min-height:625px!important;
 }
}
@media(max-width:400px){
 .battle-redesign-v2 #battleStage.battle-master-glass .av-exit-battle{
  padding:7px 10px;min-width:70px;min-height:42px;font-size:11px;
 }
}
@media(prefers-reduced-transparency:reduce){
 .battle-redesign-v2 #battleStage.battle-master-glass .battle-question-overlay{background:rgba(7,23,42,.94)!important}
 .battle-redesign-v2 #battleStage.battle-master-glass .hd2d-hud-unit{background:rgba(6,23,40,.94)}
}
