/* Match-only layout: the table owns the viewport; lobby and results keep navigation. */
.combat-menu-button{display:none}
body.combat-view{overflow:hidden;background:#080f1d}
.combat-view #app{height:100dvh;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.combat-view .topbar{flex:0 0 42px;height:42px;min-height:0;width:100%;max-width:none;margin:0;padding:0 14px;display:flex;gap:12px;border-bottom:1px solid #7b94b326;background:#080f1de8;z-index:30}
.combat-view .combat-menu-button{display:block;width:32px;height:32px;padding:2px;font-size:20px}
.combat-view .topbar .brand{font-size:14px;gap:6px}.combat-view .brand-symbol{font-size:24px}
.combat-view .brand small,.combat-view .account-tools .profile,.combat-view .account-tools>[data-action="ava-account"],.combat-view .account-tools>[data-action="guide"]{display:none}
.combat-view .account-tools{margin-left:auto;gap:8px}.combat-view #language{font-size:11px;height:30px;padding:2px 6px}
.combat-view .account-tools .tool-button{height:30px;width:30px;padding:5px}
.combat-view .topbar nav{display:none}.combat-view.combat-menu-open .topbar nav{display:flex;position:absolute;top:42px;left:8px;max-width:calc(100vw - 16px);width:260px;margin:0;padding:12px;flex-direction:column;gap:0;background:#0c1729;border:1px solid #506580;border-radius:12px;box-shadow:0 15px 45px #000a}
.combat-view.combat-menu-open .topbar nav .nav-link{padding:12px;text-align:left;font-size:14px}
.combat-view .site-footer{display:none}
.combat-view main{flex:1;min-height:0;width:100%;max-width:none;margin:0;padding:0 10px}
.combat-view .arena{height:100%;max-width:none;margin:0;position:relative;display:flex;flex-direction:column;--unit-w:clamp(80px,9vw,145px);--unit-h:clamp(100px,18dvh,180px)}
.combat-view .arena-header{flex:0 0 38px;height:38px;padding:0 8px;gap:8px;margin:0}
.combat-view .arena-header .eyebrow{font-size:8px;letter-spacing:.1em;margin:0}.combat-view .arena-header h2{font-size:12px;margin:0}.combat-view .arena-header h2 span{font-size:11px}
.combat-view .arena-tools .tool-button{width:30px;height:30px;padding:6px}
.combat-view .history-rail{display:none} /* Same journal remains in the header, with its accessible label. */
.combat-view .battlefield{flex:1;min-height:0;position:relative;grid-template-rows:65px minmax(0,1fr) 12px minmax(0,1fr) 65px;padding:0 90px;border-radius:24px;background:radial-gradient(ellipse at 50% 46%,#354b6350,transparent 65%),repeating-conic-gradient(from 45deg at 50% 50%,#93bad006 0deg 1deg,transparent 1deg 45deg),linear-gradient(115deg,#0b1424,#1d2c43 50%,#0b1424);box-shadow:inset 0 0 0 5px #080e1c,inset 0 0 0 6px #93b5d933,inset 0 0 90px #0007}
.combat-view .board-row{display:flex;justify-content:center;align-items:center;gap:clamp(4px,1vw,14px);padding:2px;min-width:0}
.combat-view .board-unit{flex:0 1 var(--unit-w);width:var(--unit-w);min-width:0;max-width:var(--unit-w)}
.combat-view .board-unit .on-board{width:100%;min-width:0;max-width:none;height:var(--unit-h);padding:4px;border-radius:12px}
.combat-view .on-board .city-art,.combat-view .on-board .official-card-art{height:calc(var(--unit-h) - 42px);min-height:0;object-fit:cover}
.combat-view .on-board .card-text{display:none}.combat-view .on-board .card-name{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.combat-view .on-board .card-stats{font-size:15px;min-height:22px}
.combat-view .battlefield .opponent-bar,.combat-view .battlefield .player-bar{grid-template-columns:1fr 130px 1fr;gap:8px}
.combat-view .commander-name{font-size:9px}.combat-view .pile-pair{left:14px;gap:10px}.combat-view .pile-pair.enemy-piles{top:22px}.combat-view .pile-pair.own-piles{bottom:22px}
.combat-view .reserve-toggle{right:12px;bottom:16px;max-width:70px}.combat-view .turn-mechanism{right:14px}.combat-view .turn-owner{display:none}
.combat-view .hand-dock{flex:0 0 auto;position:relative;padding:0;min-height:0;background:radial-gradient(ellipse at 50% 100%,#24395266,transparent 70%)}
.combat-view .hand-label{height:0;min-height:0;margin:0;overflow:hidden}
.combat-view .hand{height:clamp(112px,20dvh,172px);padding:8px 4px 4px;gap:6px;align-items:flex-start;justify-content:safe center;scroll-padding:12px}
.combat-view .hand .card{height:calc(clamp(112px,20dvh,172px) - 12px);flex:0 0 clamp(78px,8vw,116px);width:clamp(78px,8vw,116px);min-width:0;max-width:none;transition:transform .18s,border-color .18s}
.combat-view .hand .card-country,.combat-view .hand .card-text,.combat-view .hand .spell-bottom{display:none!important}
.combat-view .hand .city-art,.combat-view .arena:not(.phase-mulligan) .hand .role-event .city-art{height:48%;min-height:0}
.combat-view .hand .card-name{font-size:11px;line-height:1.1}.combat-view .hand .card-top{min-height:18px}.combat-view .hand .card-stats{font-size:14px}
.combat-view .selection-bar{height:0;min-height:0;padding:0;margin:0;overflow:hidden}
.combat-view .selection-bar.has-selection,.combat-view .phase-mulligan .selection-bar{height:auto;min-height:38px;overflow:visible;padding:3px 8px;gap:7px}
.combat-view .selection-bar .action-hint{font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:50vw}
.combat-view .selection-bar .primary{padding:7px 14px;font-size:12px}
.combat-view .arena .hand-info{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);width:min(460px,calc(100vw - 24px));max-height:30dvh;overflow:auto;margin:0;z-index:12;box-shadow:0 12px 35px #0009;background:#101b2df5}
.combat-view .battle-drawer,.combat-view .arena .history-drawer{top:38px;bottom:8px;max-height:calc(100% - 46px);z-index:25;overflow:auto}
.combat-view .pending-choice{position:absolute;inset:45px 8px auto;max-height:75%;overflow:auto;z-index:20;box-shadow:0 10px 70px #000b}
.combat-view .equipment-rack{position:absolute;left:8px;top:48%;width:170px;max-height:25%;overflow:auto;z-index:6;gap:4px}.combat-view .equipped{padding:5px;font-size:10px;flex-basis:auto}.combat-view .equipped small{display:none}
.combat-view .phase-mulligan .hand{height:auto;min-height:160px;overflow:auto;align-items:start}
.combat-view .phase-mulligan .starting-slot{flex:0 0 120px;width:120px}.combat-view .phase-mulligan .starting-slot .card{width:100%;height:155px}.combat-view .replace-card{padding:5px;font-size:11px}
@media(hover:hover){.combat-view .hand .card:hover{transform:translateY(-5px);z-index:4}}
@media(max-width:650px){
 .combat-view .topbar{height:36px;flex-basis:36px;padding:0 6px;gap:6px}.combat-view .brand{font-size:11px!important}.combat-view .brand-symbol{font-size:20px}.combat-view.combat-menu-open .topbar nav{top:36px}
 .combat-view main{padding:0 3px}.combat-view .arena-header{padding:0 5px;flex-basis:36px;height:36px}.combat-view .arena-header>div:first-child{display:block}.combat-view .arena-header h2 span{font-size:9px}.combat-view .arena-header .eyebrow{font-size:7px}
 .combat-view .arena{--unit-w:calc((100vw - 110px)/4);--unit-h:clamp(62px,12dvh,100px)}
 .combat-view .battlefield{padding:0 40px;grid-template-rows:56px minmax(0,1fr) 8px minmax(0,1fr) 56px;border-radius:17px}
 .combat-view .board-row{flex-wrap:wrap;align-content:center;gap:5px}.combat-view .board-unit{flex:0 0 var(--unit-w)}
 .combat-view .on-board .card-name{font-size:8px}.combat-view .on-board .card-stats{font-size:11px;min-height:17px}.combat-view .on-board .city-art,.combat-view .on-board .official-card-art{height:calc(var(--unit-h) - 32px)}
 .combat-view .battlefield .opponent-bar,.combat-view .battlefield .player-bar{grid-template-columns:1fr 74px 1fr;gap:2px}
 .combat-view .hero-token,.combat-view .player-identity{width:74px;min-height:50px}.combat-view .battlefield .commander-crest{width:32px;height:32px}.combat-view .commander-name{font-size:7px}.combat-view .resource-dial b{font-size:20px}.combat-view .resource-dial b small{font-size:8px}
 .combat-view .pile-pair{left:5px;gap:10px}.combat-view .draw-pile,.combat-view .discard-pile{width:28px;height:33px;font-size:0;padding:3px}.combat-view .pile-count{font-size:9px;transform:translate(11px,-14px);min-width:16px}.combat-view .pile-glyph{font-size:13px}
 .combat-view .turn-mechanism{right:4px}.combat-view .end-turn{width:32px;height:42px;padding:6px}.combat-view .reserve-toggle{right:4px;bottom:11px;width:32px;min-height:42px;padding:3px;font-size:9px}.combat-view .reserve-toggle>span{display:none}.combat-view .reserve-toggle .atlas-icon{width:18px;height:18px}
 .combat-view .turn-actions{gap:4px}.combat-view .turn-actions button{width:29px;height:29px;font-size:12px}.combat-view .turn-actions button small{font-size:7px}
 .combat-view .hand{height:116px;padding-top:6px;gap:4px;justify-content:flex-start;overflow-x:auto}.combat-view .hand .card{flex-basis:76px;width:76px;height:104px}.combat-view .hand .card-name{font-size:10px}.combat-view .hand .card-stats{font-size:12px}
 .combat-view .phase-mulligan .starting-slot{flex-basis:calc((100vw - 30px)/3);width:calc((100vw - 30px)/3)}.combat-view .phase-mulligan .starting-slot .card{height:140px}.combat-view .phase-mulligan .hand{min-height:175px}
 .combat-view .equipment-rack{left:4px;top:46%;width:112px}.combat-view .equipped{font-size:8px}.combat-view .equipped .secondary{font-size:9px;padding:3px}
}
@media(max-height:520px) and (min-width:651px){
 .combat-view .topbar{flex-basis:32px;height:32px}.combat-view .arena-header{flex-basis:30px;height:30px}.combat-view .arena{--unit-h:76px;--unit-w:62px}.combat-view .battlefield{grid-template-rows:38px minmax(0,1fr) 4px minmax(0,1fr) 38px;padding:0 65px}.combat-view .hand{height:88px}.combat-view .hand .card{height:80px;flex-basis:64px}.combat-view .hand .card-top{min-height:12px}.combat-view .hand .card-name{font-size:9px}.combat-view .hand .city-art{height:26px}.combat-view .battlefield .commander-crest{height:27px;width:27px}.combat-view .hero-token,.combat-view .player-identity{min-height:35px}.combat-view .pile-pair{gap:5px;left:8px}.combat-view .draw-pile,.combat-view .discard-pile{width:35px;height:30px;font-size:7px}.combat-view .pile-glyph{display:none}.combat-view .hero-token strong,.combat-view .player-identity strong{top:8px}.combat-view .commander-name{font-size:7px}.combat-view .end-turn{width:40px;height:40px}.combat-view .reserve-toggle{width:40px;bottom:4px;padding:2px}.combat-view .reserve-toggle>span{display:none}.combat-view .resource-dial b{font-size:22px}.combat-view .on-board .card-name{font-size:9px}.combat-view .on-board .card-stats{font-size:11px}.combat-view .selection-bar.has-selection{min-height:30px}.combat-view .selection-bar .primary{padding:4px 10px}
}
@media(prefers-reduced-motion:reduce){.combat-view .hand .card{transition:none}}
/* Compact unit faces keep combat values visible even at 320 px. */
.combat-view .board-unit .on-board{position:relative}
.combat-view .on-board .city-art,.combat-view .on-board .official-card-art{position:absolute;inset:4px 4px 40px;width:calc(100% - 8px);height:calc(100% - 44px);min-height:0}
.combat-view .on-board .card-name{position:absolute;left:3px;right:3px;bottom:24px;margin:0;line-height:14px;display:block}
.combat-view .on-board .card-stats{position:absolute;bottom:3px;left:3px;right:3px;margin:0;padding:0;display:flex;justify-content:space-between;gap:0;width:auto;min-height:18px}
.combat-view .on-board .card-stats>i{display:none}.combat-view .on-board .card-stats>.attack,.combat-view .on-board .card-stats>.hp{margin:0;padding:0;transform:none}
@media(max-width:650px){
 .combat-view .arena{--unit-h:clamp(52px,calc((100dvh - 330px)/4),100px)}
 .combat-view .arena:has(.selection-bar.has-selection){--unit-h:clamp(46px,calc((100dvh - 370px)/4),100px)}
 .combat-view .on-board .city-art,.combat-view .on-board .official-card-art{bottom:29px;height:calc(100% - 33px)}
 .combat-view .on-board .card-name{bottom:17px;line-height:11px;font-size:8px}
 .combat-view .on-board .card-stats{font-size:10px;bottom:1px;min-height:16px;left:2px;right:2px}
 .combat-view .on-board .card-stats>.attack,.combat-view .on-board .card-stats>.hp{font-size:10px;gap:0;min-width:0}
}
.combat-view .board-unit{height:var(--unit-h)}
.combat-view .board-unit .on-board{flex:0 0 var(--unit-h)}
.combat-view .phase-mulligan{min-height:0}
.combat-view .phase-mulligan .hand-dock{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(600px,96%);padding:16px 10px;max-height:calc(100% - 50px);overflow:auto;background:radial-gradient(ellipse at 50% 20%,#332038,#0b1429 75%)}
.combat-view .phase-mulligan .hand-label{height:auto;min-height:20px;margin:0 0 8px;font-size:10px;overflow:visible}
.combat-view .phase-mulligan .hand-label>span:last-child{display:none}
.combat-view .phase-mulligan .hand{justify-content:center}
.combat-view .phase-mulligan .starting-slot .card{min-width:0;max-width:none}
.combat-view .phase-mulligan .selection-bar{margin-top:10px}
.combat-view .phase-mulligan .hand{gap:6px;padding-inline:0}
.combat-view .phase-mulligan .starting-slot{flex:0 1 calc((100% - 12px)/3);min-width:0;max-width:160px}

/* Starting-hand decisions require the full card face, not the compact battle face. */
.combat-view .phase-mulligan .hand{display:grid;grid-template-columns:repeat(3,minmax(0,176px));align-items:stretch}
.combat-view .phase-mulligan .starting-slot{width:100%;max-width:176px;align-items:stretch}
.combat-view .phase-mulligan .replace-card{flex-shrink:0}
.combat-view .phase-mulligan .starting-slot .card{flex:1 0 auto;height:auto;min-height:254px;padding:8px;aspect-ratio:auto}
.combat-view .phase-mulligan .hand .card-country,
.combat-view .phase-mulligan .hand .spell-bottom{display:block!important;font-size:11px;line-height:1.3}
.combat-view .phase-mulligan .hand .card-text{display:flex!important;flex:1 0 auto;font-size:12px;line-height:1.35;min-height:48px;max-height:none;overflow:visible;white-space:normal;-webkit-line-clamp:unset;margin-top:6px;padding:5px 0}
.combat-view .phase-mulligan .hand .card-name{font-size:16px;min-height:2.3em;line-height:1.15;white-space:normal;max-height:none;overflow:visible;margin:7px 0 4px}
.combat-view .phase-mulligan .hand .city-art,
.combat-view .phase-mulligan .hand .official-card-art{height:68px;min-height:68px;flex-shrink:0;object-fit:cover}
.combat-view .phase-mulligan .hand .card-stats{font-size:16px;flex-shrink:0;min-height:24px}
@media(max-width:650px){
 .combat-view .phase-mulligan .starting-slot .card{min-height:235px;padding:5px}
 .combat-view .phase-mulligan .hand .card-name{font-size:12px}
 .combat-view .phase-mulligan .hand .card-text{font-size:10px;line-height:1.25;min-height:50px}
 .combat-view .phase-mulligan .hand .card-country,
 .combat-view .phase-mulligan .hand .spell-bottom{font-size:10px}
 .combat-view .phase-mulligan .hand .city-art,
 .combat-view .phase-mulligan .hand .official-card-art{height:54px;min-height:54px}
 .combat-view .phase-mulligan .hand .card-stats{font-size:14px}
}

.combat-view .phase-mulligan .hand .card-top{flex-shrink:0}
.combat-view .phase-mulligan .hand .spell-bottom{min-height:24px;flex-shrink:0;display:flex!important;align-items:center;justify-content:center;margin-top:auto}
@media(max-width:360px){
 .combat-view .phase-mulligan .hand .card-text{font-size:9px}
 .combat-view .phase-mulligan .hand .card-name{font-size:11px}
}

/* Compact combat faces; the hand stays below the battlefield in every orientation. */
.combat-view .arena:not(.phase-mulligan){--unit-w:clamp(80px,9vw,136px);--unit-h:clamp(104px,17dvh,156px)}
.combat-view .arena:not(.phase-mulligan) .board-row{flex-wrap:nowrap;justify-content:safe center;align-items:safe center;overflow:auto;scroll-padding:6px;padding:4px;gap:6px}
.combat-view .arena:not(.phase-mulligan) .board-unit{flex:0 0 var(--unit-w);height:var(--unit-h)}
.combat-view .arena:not(.phase-mulligan) .on-board .city-art,
.combat-view .arena:not(.phase-mulligan) .on-board .official-card-art{position:static;inset:auto;width:100%;height:calc(var(--unit-h) - 65px);min-height:12px;flex-shrink:0}
.combat-view .arena:not(.phase-mulligan) .on-board .card-name{position:static;inset:auto;white-space:normal;overflow:visible;max-height:none;font-size:10px;line-height:1.1;margin:2px 0;flex-shrink:0}
.combat-view .arena:not(.phase-mulligan) .on-board .card-text{display:flex;font-size:8px;line-height:1.15;flex:1;min-height:0;padding:0;white-space:normal;overflow:auto}
.combat-view .arena:not(.phase-mulligan) .on-board .card-stats{position:static;inset:auto;width:100%;min-height:18px;font-size:12px;flex-shrink:0;margin-top:auto;padding:0}
.combat-view .arena:not(.phase-mulligan) .hand{height:176px;align-items:stretch;overflow-x:auto;overflow-y:hidden;padding:6px 4px;gap:4px}
.combat-view .arena:not(.phase-mulligan) .hand .card{height:164px;flex:0 0 106px;width:106px;padding:4px}
.combat-view .arena:not(.phase-mulligan) .hand .card .card-text{display:flex!important;flex:1;min-height:0;max-height:none;-webkit-line-clamp:unset;overflow:auto;font-size:8px;line-height:1.2;white-space:normal;padding:2px 0;margin:0}
.combat-view .arena:not(.phase-mulligan) .hand .card .city-art,
.combat-view .arena:not(.phase-mulligan) .hand .card .official-card-art{height:36px;min-height:36px;flex-shrink:0;object-fit:cover}
.combat-view .arena:not(.phase-mulligan) .hand .card .card-name{font-size:10px;line-height:1.1;min-height:2.2em;max-height:none;white-space:normal;overflow:visible;flex-shrink:0;margin:2px 0}
.combat-view .arena:not(.phase-mulligan) .hand .card-stats{min-height:17px;flex-shrink:0;font-size:12px;margin-top:auto;padding-top:1px}
.combat-view .arena:not(.phase-mulligan) .hand .card-top{flex-shrink:0}
.combat-view .end-turn{padding:0;display:flex;align-items:center;justify-content:center}
.combat-view .turn-arrow{display:flex;align-items:center;justify-content:center;width:100%;height:100%;line-height:0;transform-origin:center}
.combat-view .turn-arrow .atlas-icon{display:block;width:60%;height:60%;margin:0;flex:none}
@media(max-width:650px){
 .combat-view .arena:not(.phase-mulligan){--unit-w:clamp(76px,22vw,108px);--unit-h:clamp(82px,calc((100dvh - 350px)/2),116px);--held-w:calc((100vw - 30px)/5);--held-h:clamp(126px,36vw,156px)}
 .combat-view .arena:not(.phase-mulligan):has(.selection-bar.has-selection){--unit-h:clamp(70px,calc((100dvh - 392px)/2),116px)}
 .combat-view .arena:not(.phase-mulligan) .on-board .card-name{font-size:9px}
 .combat-view .arena:not(.phase-mulligan) .on-board .card-text{font-size:7px}
 .combat-view .arena:not(.phase-mulligan) .on-board .card-stats{font-size:11px;min-height:16px}
 .combat-view .arena:not(.phase-mulligan) .hand{height:calc(var(--held-h) + 12px);justify-content:safe center}
 .combat-view .arena:not(.phase-mulligan) .hand .card{height:var(--held-h);flex-basis:var(--held-w);width:var(--held-w);padding:3px}
 .combat-view .arena:not(.phase-mulligan) .hand .card .city-art,
 .combat-view .arena:not(.phase-mulligan) .hand .card .official-card-art{height:24px;min-height:24px}
 .combat-view .arena:not(.phase-mulligan) .hand .card .card-name{font-size:clamp(7px,2vw,9px);letter-spacing:-.2px}
 .combat-view .arena:not(.phase-mulligan) .hand .card .card-text{font-size:clamp(6px,1.8vw,8px);line-height:1.15;padding:1px 0}
 .combat-view .arena:not(.phase-mulligan) .hand .card-stats{font-size:9px;min-height:14px;gap:1px}
 .combat-view .arena:not(.phase-mulligan) .hand .card-stats i{font-size:7px}
 .combat-view .arena:not(.phase-mulligan) .hand .card-top{min-height:16px;gap:2px;font-size:4px}
 .combat-view .arena:not(.phase-mulligan) .hand .cost{width:16px;height:16px;font-size:10px;min-width:16px;padding:0}
}
@media(max-height:520px) and (min-width:651px){
 .combat-view .arena:not(.phase-mulligan){--unit-w:86px;--unit-h:clamp(54px,calc((100dvh - 280px)/2),100px)}
 .combat-view .arena:not(.phase-mulligan) .hand{height:120px}
 .combat-view .arena:not(.phase-mulligan) .hand .card{height:108px;flex-basis:96px;width:96px;padding:3px}
 .combat-view .arena:not(.phase-mulligan) .hand .card .city-art,
 .combat-view .arena:not(.phase-mulligan) .hand .card .official-card-art{height:16px;min-height:16px}
 .combat-view .arena:not(.phase-mulligan) .hand .card .card-name{font-size:8px;min-height:1.1em}
 .combat-view .arena:not(.phase-mulligan) .hand .card .card-text{font-size:7px;line-height:1.15}
 .combat-view .arena:not(.phase-mulligan) .hand .card-stats{font-size:10px;min-height:14px}
 .combat-view .arena:not(.phase-mulligan) .on-board .city-art,
 .combat-view .arena:not(.phase-mulligan) .on-board .official-card-art{height:12px}
 .combat-view .arena:not(.phase-mulligan) .on-board .card-name{font-size:8px;margin:0}
 .combat-view .arena:not(.phase-mulligan) .on-board .card-text{font-size:6px;line-height:1}
 .combat-view .arena:not(.phase-mulligan) .on-board .card-stats{font-size:10px;min-height:12px}
}
@media(max-height:520px) and (min-width:651px){
 .combat-view .arena:not(.phase-mulligan){--unit-h:clamp(64px,calc((100dvh - 260px)/2),100px)}
 .combat-view .arena:not(.phase-mulligan) .battlefield{grid-template-rows:28px minmax(0,1fr) 4px minmax(0,1fr) 28px}
 .combat-view .arena:not(.phase-mulligan) .board-row{padding-block:2px}
}

/* Board pieces use a portrait, full-art face; the hand retains its detailed face. */
.combat-view .arena:not(.phase-mulligan){--unit-w:calc(var(--unit-h) * .74)}
.combat-view .arena:not(.phase-mulligan) .on-board{padding:0;overflow:hidden;border-radius:12px 12px 8px 8px}
.combat-view .arena:not(.phase-mulligan) .on-board .city-art,
.combat-view .arena:not(.phase-mulligan) .on-board .official-card-art,
.combat-view .arena:not(.phase-mulligan) .on-board .fantasy-art{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;border-radius:inherit;aspect-ratio:auto;object-fit:cover;object-position:center;z-index:0}
.combat-view .arena:not(.phase-mulligan) .on-board::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,#07101c22 0%,transparent 35%,#07101c66 60%,#07101ce8 100%)}
.combat-view .arena:not(.phase-mulligan) .on-board .card-top{z-index:3}
.combat-view .arena:not(.phase-mulligan) .on-board .card-name{position:absolute;inset:auto 3px 32px;margin:0;z-index:2;font-size:clamp(7px,9cqw,11px);line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 3px #000,0 0 6px #000}
.combat-view .arena:not(.phase-mulligan) .on-board .card-text{position:absolute;inset:auto 3px 19px;display:block;min-height:0;max-height:12px;margin:0;padding:0;z-index:2;font-size:clamp(6px,6.5cqw,8px);line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 3px #000}
.combat-view .arena:not(.phase-mulligan) .on-board .card-text:empty{display:none}
.combat-view .arena:not(.phase-mulligan) .on-board .card-stats{position:absolute;inset:auto 2px 2px;width:auto;z-index:2;border:0;min-height:15px;line-height:1;margin:0;padding:0;font-size:clamp(10px,12cqw,15px)}
.combat-view .arena:not(.phase-mulligan) .on-board .card-stats>.attack,
.combat-view .arena:not(.phase-mulligan) .on-board .card-stats>.hp{padding:2px 3px;border:1px solid #ffffff40;border-radius:5px;background:#0a1425df;font-size:inherit;text-shadow:0 1px 2px #000}
.combat-view .arena:not(.phase-mulligan) .on-board .skin-sigils{position:absolute;inset:25px auto auto 3px;z-index:2;display:flex;flex-direction:column;gap:2px;margin:0}
.combat-view .arena:not(.phase-mulligan) .on-board .skin-sigils>span{width:10px;height:10px;font-size:7px}
.combat-view .arena:not(.phase-mulligan) .on-board .status-sigils{z-index:3}
@media(max-height:520px) and (min-width:651px){
 .combat-view .arena:not(.phase-mulligan) .on-board .card-stats{font-size:8px}
 .combat-view .arena:not(.phase-mulligan) .on-board .card-stats>.attack,
 .combat-view .arena:not(.phase-mulligan) .on-board .card-stats>.hp{padding:1px}
}
