/* Shared final layer: only backing colours are translucent; text stays opaque.
   Nested controls use clear backing to avoid stacking two 75%-opaque panels. */
:root{--battle-glass:rgba(24,48,61,.72);--light-glass:rgba(253,250,255,.78);--glass:rgba(255,255,255,.76)}
.battle-screen .round-battle:is(.phase-answer,.phase-action,.phase-reward,.phase-ultimate) .arena-bottom{
 background:var(--battle-glass)!important;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
 border:1px solid #e9f6ff70;border-radius:24px;box-shadow:0 8px 28px #071c4226;opacity:1;
}
.battle-screen .round-battle.phase-feedback .arena-bottom,
.battle-screen .round-battle.economics-battle.phase-answer .arena-bottom{background:var(--light-glass)!important;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.victory-board,.stats-dialog,.spell-upgrade-banner,.spell-upgrade-banner.tier-4,
.ultimate-caption,.ultimate-lock p,.round-battle .past-report[open],
#voice-panel .voice-options,.battle-screen #toast,.spectator-decisive{
 background:var(--battle-glass);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);box-shadow:0 8px 28px #071c4226;
}
.info-dialog,.account-dialog,.spectator-result,.restriction-overlay>div{background:var(--light-glass);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
/* Avoid an opaque/dark full-screen scrim beneath a translucent card. */
.info-dialog::backdrop,.account-dialog::backdrop{background:transparent}
.restriction-overlay{background:transparent;backdrop-filter:none}
.account-dialog-head,.shop-card,.economics-explanation{background:transparent}
.battle-screen .round-battle .arena-bottom :is(.question-box,.action-panel,.review-panel){background:transparent}
.battle-screen .round-battle .arena-bottom :is(button,.question-title,.question-type,.question-tools,.compose-line,.listening-note){opacity:1}
.battle-screen .round-battle .arena-bottom :is(.answer-button,.chip,.spell-option,.upgrade-option,.ultimate-choices button){
 background:transparent!important;border:1px solid #e3f1ff60!important;border-radius:14px;
 opacity:1!important;filter:none;text-shadow:0 1px 3px #132e3d;box-shadow:none!important;
}
.battle-screen .round-battle .arena-bottom :is(.spell-option,.upgrade-option){border-radius:18px}
.battle-screen .round-battle .arena-bottom :is(.answer-button,.chip){position:relative;transition:border-color .12s,box-shadow .12s;touch-action:manipulation}
.battle-screen .round-battle .arena-bottom :is(.answer-button,.chip):hover:not(:disabled){transform:none;border-color:#ffe3a1!important}
.battle-screen .round-battle .arena-bottom :is(.answer-button,.chip).selected,
.battle-screen .round-battle .arena-bottom :is(.answer-button,.chip)[aria-pressed=true]{
 border:3px solid #ffdb76!important;background:rgba(255,210,102,.18)!important;color:#fff4c5!important;
 box-shadow:0 0 0 2px #142b3a,0 0 12px #ffce5a55!important;font-weight:950;transform:none;filter:none!important;
}
.battle-screen .round-battle .arena-bottom :is(.answer-button,.chip).selected::after{
 content:'✓';position:absolute;right:-7px;top:-9px;display:grid;place-items:center;
 width:22px;height:22px;border-radius:50%;background:#ffdc7b;color:#253546;border:2px solid #fff1bc;
 font:900 15px/1 system-ui,sans-serif;text-shadow:none;pointer-events:none;
}
.selection-summary{color:#ffdf88;font-size:17px;font-weight:850;line-height:1.4;margin:6px 0;text-align:center}
.battle-screen .round-battle .syllable-row{padding:5px 6px;gap:12px}
.battle-screen .round-battle .chip{border-radius:12px!important;min-width:48px;padding:6px 10px}
.battle-screen .round-battle .arena-bottom button:focus-visible{outline:3px solid #ffdc7b;outline-offset:3px}
.battle-screen .round-battle .arena-bottom .economics-question .answer-button{color:#30233f;text-shadow:none;border-color:#72578c90!important}
.battle-screen .round-battle .arena-bottom .economics-question .answer-button.selected{background:rgba(103,63,153,.08)!important;color:#392153!important;border-color:#684298!important;box-shadow:0 0 0 2px #fff6!important}
.battle-screen .round-battle .arena-bottom :is(.spell-option,.upgrade-option):disabled{opacity:1!important;color:#bbc3c9;filter:grayscale(1)}
@media(orientation:landscape) and (max-height:540px){
 .battle-screen .round-battle:is(.phase-answer,.phase-action,.phase-reward,.phase-ultimate) .arena-bottom{border-radius:18px}
 .selection-summary{font-size:15px;margin:3px 0}
 .battle-screen .round-battle .syllable-row{gap:10px;padding:4px 5px}
}
/* A short landscape screen must scroll from the title, never centre overflow above it. */
.battle-screen .round-battle.phase-answer .arena-bottom{align-items:stretch;justify-content:flex-start}
.battle-screen .round-battle.phase-answer .question-box{min-height:0;justify-content:flex-start;flex-shrink:0;margin:0 auto}
@media(orientation:landscape) and (max-height:540px){
 .battle-screen .round-battle.phase-answer .question-box{gap:2px}
 .battle-screen .round-battle.phase-answer .assemble-rows{margin:0;gap:0}
 .battle-screen .round-battle.phase-answer .question-title{margin:2px 0}
 .battle-screen .round-battle.phase-answer .assemble-rows>.info-button{min-height:28px;height:28px;font-size:23px}
 .battle-screen .round-battle.phase-answer .skip-question{margin-top:6px}
}
.battle-screen .round-battle.economics-battle.phase-answer .arena-bottom :is(.info-button,.skip-question){color:#51386f!important;text-shadow:none;filter:none}
.battle-screen .round-battle.economics-battle.phase-answer .arena-bottom .skip-question{border:1px solid #72578c80!important;border-radius:12px}
.battle-screen .round-battle.economics-battle.phase-answer .charge-meter{color:#674994}
.battle-screen .round-battle.phase-action .economics-explanation{color:#fff4d5;border-color:#ffffff55}
