/* Production acceptance follow-up. Keep the proven mobile HUD geometry. */
.battle-identity{display:contents}
.hud-identity-copy{display:none}
.battle-background{position:absolute;inset:28px 0 0;pointer-events:none;overflow:hidden;isolation:isolate}
.battle-background-half{position:absolute;inset:0;background:var(--cos-board,none) center/cover no-repeat;opacity:.6}
.opponent-background{bottom:50%;mask-image:linear-gradient(#000 65%,transparent)}
.self-background{top:30%;mask-image:linear-gradient(transparent,#000 28%)}
.battle-background::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#07141a15,#07141a88 22% 78%,#07141a15)}
body .game-app .face-row>.board-skin-layer{background:none!important;box-shadow:none!important;border:0!important;opacity:0}
.cosmetic-battle-backdrop{position:absolute;inset:0;background:var(--cos-board,none) center/cover no-repeat;opacity:.8;pointer-events:none}
body .cosmetic-preview-stage.preview-board .board-skin-layer{background:none!important;box-shadow:none!important;border:0!important}
body .cosmetic-preview-stage.preview-board:not(.compact) .preview-six-faces{left:10%;right:10%;width:80%;top:40%;height:42%}

/* A04: a card preview fills its remaining height; controls get bounded rows. */
body .cosmetic-card-showcase>.cosmetic-preview-stage{flex:1;width:100%;height:auto;min-height:0}
body .cosmetic-card-showcase>.cosmetic-equip-action{flex-shrink:0}
@media(orientation:landscape) and (max-height:600px){
 body .cosmetic-cards{grid-template-columns:minmax(180px,.8fr) minmax(0,1.2fr);grid-template-rows:32px minmax(0,1fr);padding:4px 12px;gap:4px 12px}
 body .cosmetic-card-select select{min-height:30px;height:30px}
 body .cosmetic-card-showcase{gap:3px}
 body .cosmetic-card-showcase>.cosmetic-preview-stage .preview-large-card{top:1%;bottom:1%;aspect-ratio:2/3;background-size:cover}
 body .cosmetic-card-showcase>.cosmetic-preview-stage .preview-card-name{font-size:11px;padding:3px}
 body .cosmetic-card-settings{grid-template-rows:minmax(102px,1fr) auto;gap:4px;overflow:auto}
 body .cosmetic-card-settings .cosmetic-art-choice{grid-template-rows:minmax(32px,1fr) 14px 28px;gap:2px}
 body .cosmetic-card-settings .cosmetic-choice-row{display:grid;grid-template-columns:1fr 1fr;gap:3px}
 body.cosmetic-screen-open .cosmetic-card-settings button{height:32px;min-height:32px;padding:2px 5px;font-size:11px;line-height:1.2}
 body.cosmetic-screen-open .cosmetic-card-settings .cosmetic-art-choice button{height:28px;min-height:28px}
 body .cosmetic-card-settings .cosmetic-card-section{padding:3px}
 body .cosmetic-card-settings h2{font-size:12px!important;margin:0 0 2px}
 body .cosmetic-card-settings p{font-size:11px}
}

/* Desktop: two equal sides, a single-column center, and a compact plate on
   the identity row. Numeric groups never shrink to make room for decoration. */
@media(min-width:1181px),(min-height:601px){
 body .game-app .score-strip{grid-template-columns:minmax(0,1fr) clamp(224px,17vw,272px) minmax(0,1fr);gap:10px;overflow:visible}
 body .game-app .score-strip>.combatant{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:28px minmax(0,1fr);gap:2px 12px;padding:4px 10px;min-width:0;overflow:visible;background:#10232de8!important;border:1px solid #8b7b534d!important}
 body .game-app .score-strip>.combatant.cpu{grid-template-columns:auto auto minmax(0,1fr)}
 body .game-app .score-strip>.combatant::before,body .game-app .score-strip>.combatant::after{content:none!important}
 body .game-app .battle-identity{grid-column:1/-1;grid-row:1;display:flex;align-items:center;gap:8px;min-width:0;height:28px;position:relative;background:var(--cos-plate,none) center/100% var(--cos-plate-height,100%) no-repeat;padding:0 8px}
 body .game-app .battle-identity>.avatar{width:30px!important;height:24px!important;min-width:30px;padding:0!important;font-size:9px;border:0;background:#10232daa!important}
 body .game-app .battle-identity>.avatar>.battle-cosmetic-title{display:none!important}
 body .game-app .battle-identity .rank-gem-small{width:20px;height:20px;flex-shrink:0}
 body .game-app .battle-identity .ranked-avatar{display:flex;gap:3px;width:54px!important}
 body .game-app .hud-identity-copy{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
 body .game-app .hud-identity-copy>strong{font-size:13px;flex-shrink:0}
 body .game-app .battle-identity .battle-cosmetic-title{position:static;display:block!important;max-width:none;min-width:0;font-size:12px!important;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
 body .game-app .opponent-identity{display:flex;align-items:center;max-width:none;min-width:0;flex:1;gap:6px}
 body .game-app .opponent-identity>div{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;flex:1}
 body .game-app .opponent-identity small:not(.battle-cosmetic-title){flex-shrink:0;font-size:9px;letter-spacing:0}
 body .game-app .opponent-identity strong{display:block;min-width:0;max-width:60%;font-size:13px;overflow:hidden;text-overflow:ellipsis}
 body .game-app .opponent-identity .battle-cosmetic-title{flex:0 1 42%}
 body .game-app .combatant.cpu>.battle-identity{justify-content:flex-end}
 body .game-app .combatant>.life-block{grid-column:1;grid-row:2;min-width:0;display:flex;align-items:baseline;gap:8px;justify-self:start}
 body .game-app .combatant.cpu>.life-block{grid-column:3;justify-self:end}
 body .game-app .combatant .life{font-size:36px;line-height:1;font-variant-numeric:tabular-nums}
 body .game-app .combatant .life-line{gap:4px}
 body .game-app .combatant>.resource-now{grid-column:2;grid-row:2;margin:0;gap:0;min-width:0;justify-self:center}
 body .game-app .combatant .mana-orb{width:94px;min-width:94px;height:43px;box-sizing:border-box;padding:2px 6px;grid-template-rows:26px 11px}
 body .game-app .combatant .mana-orb strong{font-size:27px}
 body .game-app .combatant .mana-pips{display:none}
 body .game-app .combatant>.public-counts{grid-column:3;grid-row:2;display:grid!important;grid-template-columns:auto;gap:0;margin:0;justify-self:end}
 body .game-app .combatant.cpu>.public-counts{grid-column:1;justify-self:start}
 body .game-app .combatant .public-counts span{padding:1px 0;font-size:12px;line-height:1.3}
 body .game-app .combatant .public-counts b{font-size:15px;font-variant-numeric:tabular-nums}
 body .game-app .combatant.cpu>.cpu-deck-mini{position:absolute;width:24px!important;height:28px!important;right:8px;top:4px;margin:0!important;z-index:2}
 body .game-app .combatant.cpu:has(>.cpu-deck-mini)>.battle-identity{padding-right:34px}
 body .game-app .cpu-deck-mini .deck-card{width:20px!important;height:25px!important;left:0!important;top:0!important;border-radius:2px!important}
 body .game-app .cpu-deck-mini .back-2,body .game-app .cpu-deck-mini .back-3{transform:none!important}
 body .game-app .cpu-deck-mini .deck-count{display:none}
 body .game-app .turn-center{grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:22px minmax(0,1fr)!important;gap:0;padding:3px 6px!important;min-width:0;position:relative}
 body .game-app .turn-center>.match-score{grid-column:1;grid-row:1;margin:0;height:22px;gap:6px}
 body .game-app .turn-center .score-side{min-width:0;gap:5px}
 body .game-app .turn-center .score-side em{font-size:10px;letter-spacing:0}
 body .game-app .turn-center .score-side b{font-size:21px}
 body .game-app .turn-center>.phase-copy{grid-column:1;grid-row:2;align-self:center}
 body .game-app .turn-center .phase-copy>span{font-size:12px;line-height:1.3}
 body .game-app .turn-center .phase-copy>b{font-size:16px;line-height:1.2;letter-spacing:0}
 body .game-app .turn-center .phase-copy>small{font-size:10px;line-height:1.15;margin:0}
 body .game-app .turn-center:has(.ranked-timer-panel){grid-template-rows:22px minmax(0,1fr) 17px!important}
 body .game-app .turn-center>.ranked-timer-panel.embedded{position:static;grid-column:1;grid-row:3;align-self:center;min-height:0;height:17px;padding:0 3px;gap:4px;box-sizing:border-box;overflow:visible}
 body .game-app .ranked-timer-panel.embedded>small{font-size:8px;max-width:none;padding:0}
 body .game-app .ranked-timer-panel.embedded .ranked-timer-values>span{font-size:9px}
 body .game-app .ranked-timer-panel.embedded b{font-size:12px}
}

/* Desktop title visibility: artwork is clipped independently of readable text.
   Safe areas use the actual inner frame, excluding the left crest and end cap.
   ★1 SVG: x=6..94%; ★2 crops/insets are specific to each approved asset. */
.desktop-nameplate{display:none}
@media(min-width:1181px),(min-height:601px){
 body .game-app .game-shell{grid-template-rows:122px minmax(0,1fr) 171px}
 body .game-app .score-strip>.combatant{grid-template-rows:64px minmax(0,1fr);gap:2px 12px;--plate-safe-left:12px;--plate-safe-right:12px;--plate-art-height:100%;--plate-art-y:50%}
 body .game-app .score-strip>.combatant[data-cosmetic-rarity="1"]{--plate-safe-left:6%;--plate-safe-right:6%}
 body .game-app .score-strip>.combatant[data-cosmetic-theme="sun"]{--plate-safe-left:25%;--plate-safe-right:5%;--plate-art-height:198%;--plate-art-y:44%}
 body .game-app .score-strip>.combatant[data-cosmetic-theme="earth"]{--plate-safe-left:23%;--plate-safe-right:6%;--plate-art-height:278%;--plate-art-y:55%}
 body .game-app .score-strip>.combatant[data-cosmetic-theme="moon"]{--plate-safe-left:19%;--plate-safe-right:6%;--plate-art-height:274%;--plate-art-y:44%}
 body .game-app .score-strip>.combatant[data-cosmetic-theme="destiny"]{--plate-safe-left:19%;--plate-safe-right:6%;--plate-art-height:292%;--plate-art-y:49%}
 body .game-app .battle-identity{height:64px;box-sizing:border-box;padding:0;background:none;overflow:visible;isolation:isolate}
 body .game-app .battle-identity>.avatar,body .game-app .battle-identity>.hud-identity-copy,body .game-app .battle-identity>.opponent-identity{display:none!important}
 body .game-app .desktop-nameplate{display:block;position:relative;width:100%;height:64px;min-width:0;text-align:left}
 /* The 1000×120 SVG preserves its aspect ratio inside a background viewport.
    Cap both layers together so text cannot extend into its horizontal gutters. */
 body .game-app .combatant[data-cosmetic-rarity="1"] .desktop-nameplate{max-width:533.333px;margin-inline:auto}
 body .game-app .nameplate-art{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;background:var(--cos-plate,none) center var(--plate-art-y)/100% var(--plate-art-height) no-repeat}
 body .game-app .nameplate-content{position:absolute;inset:8px var(--plate-safe-right) 8px var(--plate-safe-left);z-index:1;display:grid;grid-template-rows:22px 22px;gap:2px;align-content:center;min-width:0;container-type:inline-size;overflow:visible;color:#fff4df;text-shadow:0 1px 2px #000}
 body .game-app .nameplate-content.untitled{grid-template-rows:22px}
 body .game-app .nameplate-name-row{display:flex;align-items:center;gap:7px;min-width:0;height:22px}
 body .game-app .nameplate-role{flex-shrink:0;font:700 10px/22px system-ui,sans-serif;letter-spacing:.02em;color:#d6e4ed}
 body .game-app .nameplate-player{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700;line-height:22px;letter-spacing:0;color:#fff4df}
 body .game-app .nameplate-title{display:block;box-sizing:border-box;min-width:0;height:22px;padding:0 4px;font-size:clamp(12px,calc((100cqw - 8px) / var(--nameplate-title-units)),14px);font-weight:700;line-height:22px;letter-spacing:-.02em;color:#fff0c2;background:#081722b8;border-radius:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body .game-app .nameplate-name-row .rank-gem-small{width:18px;height:18px;flex-shrink:0}
 body .game-app .combatant.cpu>.cpu-deck-mini{top:23px}
}

/* Selection is signalled by the whole card as well as a high-contrast badge. */
body .draft-card.selected{border-color:#ffe4a0;box-shadow:inset 0 0 0 3px #ffda7e,0 0 0 2px #201b10,0 0 14px #ffd97980;transform:none}
body .draft-card.selected .draft-card-shade{background:linear-gradient(180deg,#ffd87922,transparent 42%,#071420db 72%,#081621 88%)}
body .draft-card .draft-check{display:none;right:8px;top:45px;width:auto;height:34px;min-width:74px;padding:0 8px;align-items:center;justify-content:center;gap:5px;border:1px solid #fff0bf;border-radius:4px;background:#ffe19b;color:#162127;box-shadow:0 2px 8px #000a;z-index:8;pointer-events:none}
body .draft-card.selected .draft-check{display:flex;opacity:1;transform:none}
body .draft-card .draft-check b{font:bold 27px/1 sans-serif}
body .draft-card .draft-check small{font:bold 12px/1 sans-serif;white-space:nowrap;flex-shrink:0}
body .draft-footer{display:flex;gap:12px;align-items:center}
body .draft-footer .draft-progress{margin-right:auto}
body .draft-footer .deck-drawer-button{display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;min-height:42px;font-size:14px;background:#142d3a}
body .draft-footer .deck-drawer-button strong{color:#ffe2a0}
@media(max-width:1180px) and (max-height:600px) and (orientation:landscape){
 body.match-flow-screen-active .draft-card .draft-check{top:32px;right:5px;width:auto;min-width:64px;height:26px;padding:0 5px;gap:3px}
 body.match-flow-screen-active .draft-card .draft-check b{font-size:22px}
 body.match-flow-screen-active .draft-card .draft-check small{font-size:10px}
 body.match-flow-screen-active .draft-footer{gap:8px}
 body.match-flow-screen-active .draft-footer .deck-drawer-button{min-height:38px;font-size:12px;padding:5px 9px;gap:5px}
 body.match-flow-screen-active .draft-footer .draft-progress small{display:none}
}

body .draft-deck-modal{width:min(980px,94vw);height:min(650px,86dvh);max-height:86dvh;display:flex;flex-direction:column;gap:12px;overflow:hidden;box-sizing:border-box}
body .draft-deck-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0;flex-shrink:0}
body .draft-deck-title h2{font-size:22px;margin:0}
body .draft-deck-title p{font-size:12px;margin:5px 0 0}
body .draft-deck-title .btn{flex-shrink:0;min-height:42px}
body .draft-deck-stats{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;flex-shrink:0;color:#d3dce2}
body .draft-deck-stats b{color:#ffe2a0}
body .draft-deck-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:5px}
body .draft-deck-scroll h3{font-size:13px;color:#dbbc7d;margin:9px 0 6px}
body .draft-deck-rows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
body .draft-deck-row{position:relative;display:grid;grid-template-columns:40px 22px minmax(0,1fr) 18px;align-items:center;gap:6px;min-width:0;min-height:62px;padding:5px;border:1px solid #8b78564d;background:#122634;color:#f3ecdc;text-align:left;cursor:pointer;border-radius:4px}
body .draft-deck-art{width:40px;height:50px;background-size:cover;background-position:center;border-radius:3px}
body .draft-deck-cost{font-size:21px;color:#ffe2a0;text-align:center}
body .draft-deck-card-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
body .draft-deck-card-copy strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .draft-deck-card-copy small{font-size:12px;color:#b8c5ce}

/* Face previews show the live board summary; full text is a separate action. */
body .face-selection-modal{width:min(960px,94vw);max-height:84dvh;display:flex;flex-direction:column;gap:8px;overflow:hidden;padding:18px;box-sizing:border-box}
body .face-selection-modal header{flex-shrink:0}
body .face-selection-modal h2{font-size:22px;margin:0}
body .face-selection-modal p{font-size:13px;margin:5px 0;line-height:1.4}
body .face-selection-modal .shared-choice-source{font-size:12px;margin:4px 0}
body .face-choice-note{font-size:12px;color:#c9d6de;flex-shrink:0;line-height:1.5}
body .face-choice-note>span{display:block;color:#ffe2a0}
body .face-selection-modal .shared-choice-actions,body .face-selection-modal .choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;gap:8px;min-height:0;overflow:auto;overscroll-behavior:contain;margin:0;width:100%;align-content:start;flex:1}
body .face-selection-modal>.modal-actions:not(.shared-choice-actions){flex-shrink:0;margin-top:0}
body .face-selection-modal .shared-choice-actions>.btn{grid-column:1/-1;min-height:40px;order:2;white-space:normal}
body .face-choice-option{position:relative;min-width:0;border:1px solid #a38b5a80;border-radius:5px;background:#112532;overflow:hidden}
body .face-choice-select{display:flex;flex-direction:column;width:100%;height:auto!important;min-height:98px;gap:4px;padding:8px;border:0;border-radius:4px;color:#f4efdf;background:transparent;text-align:left;cursor:pointer;box-sizing:border-box;touch-action:manipulation}
body .face-choice-select:hover,body .face-choice-select:focus-visible{background:#263f49;outline:2px solid #ffe3a2;outline-offset:-2px}
body .face-choice-select.selected{background:#354944;box-shadow:inset 0 0 0 3px #ffe2a0;color:#fff}
body .face-choice-heading{font-size:12px;font-weight:700;color:#edcf8e;line-height:18px;padding-right:34px}
body .face-choice-preview{display:flex;align-items:center;gap:8px;min-width:0;width:100%}
body .face-choice-art{position:relative;display:block;flex:0 0 50px;width:50px;height:60px;background-size:cover;background-position:center;border:1px solid #a99059;border-radius:3px;box-sizing:border-box}
body .face-choice-art.empty{background:linear-gradient(145deg,#26394a,#101b29)}
body .face-choice-art>b{display:inline-block;max-width:100%;box-sizing:border-box;padding:1px 5px;font:bold 20px/24px Georgia,serif;color:#fff2c8;background:#091726db;border:1px solid #d5b575;border-radius:3px;text-shadow:0 1px 4px #000}
body .face-choice-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
body .face-choice-copy>strong{font-size:13px;line-height:1.3;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f9edce}
body .face-choice-effect{display:block;font-size:12px;font-weight:500;line-height:1.4;color:#e0ebec;white-space:normal}
body .face-choice-copy>small{font-size:11px;font-weight:500;line-height:1.3;color:#cdbb93;white-space:normal;margin:0}
body .face-choice-detail{position:absolute;right:4px;top:3px;display:grid;place-items:center;width:30px;height:28px;min-height:28px;padding:0;border:1px solid #ac9669;border-radius:4px;font:21px/1 sans-serif;background:#1d3541;color:#ffe7b5;cursor:pointer;z-index:2}
body .face-choice-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;flex-shrink:0}
body .face-choice-board .face-choice-option{padding:5px 34px 5px 5px}
body .face-choice-board .face-choice-art{height:45px;flex-basis:35px;width:35px}
@media(max-width:1180px) and (max-height:600px) and (orientation:landscape){
 body .draft-deck-modal{width:min(920px,95vw);height:88dvh;max-height:88dvh;padding:10px;gap:7px}
 body .draft-deck-title h2{font-size:17px}
 body .draft-deck-title p{font-size:11px;margin:3px 0 0}
 body .draft-deck-title .btn{min-height:36px;font-size:12px}
 body .draft-deck-stats{font-size:12px;gap:4px 10px}
 body .draft-deck-rows{grid-template-columns:repeat(2,minmax(0,1fr))}
 body .draft-deck-row{min-height:52px}
 body .draft-deck-art{height:40px}
 body.battle-screen-active .face-selection-modal{width:min(920px,96vw);max-height:90dvh;padding:9px;gap:5px}
 body.battle-screen-active .face-selection-modal h2{font-size:17px}
 body.battle-screen-active .face-selection-modal p{font-size:11px;margin:3px 0}
 body.battle-screen-active .face-selection-modal .shared-choice-source{font-size:11px;margin:2px 0}
 body.battle-screen-active .face-selection-modal .shared-choice-actions,body.battle-screen-active .face-selection-modal .choice-grid{gap:5px}
 body.battle-screen-active .face-choice-select{padding:5px;min-height:94px;gap:2px}
 body.battle-screen-active .face-choice-art{flex-basis:39px;width:39px;height:54px}
 body.battle-screen-active .face-choice-preview{gap:5px}
 body.battle-screen-active .face-choice-copy{gap:3px}
 body.battle-screen-active .face-choice-copy>strong{font-size:12px}
 body.battle-screen-active .face-choice-effect{font-size:11px}
 body.battle-screen-active .face-choice-copy>small{font-size:10px}
 body.battle-screen-active .face-choice-detail{min-height:28px}
 body.battle-screen-active .face-choice-note{font-size:11px}
}
@media(max-width:1180px) and (max-height:380px) and (orientation:landscape){
 body.battle-screen-active .face-choice-select{min-height:84px}
}

/* Live acceptance: one foreground identity in every landscape size. A short
   desktop window / browser zoom must not fall back to the clipped avatar title.
   Text participates in normal layout; only the cosmetic artwork is absolute. */
body .game-app .battle-identity{display:block;min-width:0;overflow:visible;isolation:isolate}
body .game-app .battle-identity>.avatar,body .game-app .battle-identity>.hud-identity-copy,body .game-app .battle-identity>.opponent-identity{display:none!important}
body .game-app .desktop-nameplate{display:block;position:relative;width:100%;min-width:0;isolation:isolate;text-align:left}
body .game-app .nameplate-art{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;background:var(--cos-plate,none) center var(--plate-art-y,50%)/100% var(--plate-art-height,100%) no-repeat}
body .game-app .nameplate-content{position:relative;inset:auto;z-index:1;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 24px;align-content:stretch;gap:0;width:100%;height:100%;padding:4px 8px;box-sizing:border-box;min-width:0;container-type:inline-size;overflow:visible;text-shadow:0 1px 2px #000;color:#fff4df}
body .game-app .nameplate-name-row{display:flex;align-items:center;gap:7px;min-width:0;height:auto;padding-inline:var(--plate-safe-left,4px) var(--plate-safe-right,4px)}
body .game-app .nameplate-role{flex-shrink:0;font:700 10px/20px system-ui,sans-serif;color:#f6e0a2}
body .game-app .nameplate-player{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:24px!important;font-weight:700;color:#fff}
body .game-app .nameplate-title{position:relative;display:block!important;min-width:0;max-width:none;height:auto;min-height:24px;margin:0;padding:0 6px;box-sizing:border-box;font-size:14px;font-size:clamp(12px,calc((100cqw - 12px)/var(--nameplate-title-units)),14px);line-height:24px!important;font-weight:700;letter-spacing:-.02em;color:#fff0c2;background:#0d1c25;box-shadow:inset 0 1px #b49b5d66;border-radius:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .game-app .nameplate-content.untitled{grid-template-rows:minmax(0,1fr)}
body .game-app .nameplate-name-row .rank-gem-small{width:18px;height:18px;flex-shrink:0}
@media(min-width:1181px),(min-height:601px){
 body .game-app .nameplate-content{grid-template-rows:24px 22px;align-content:center;gap:2px;padding:6px var(--plate-safe-right,12px) 6px var(--plate-safe-left,12px)}
 body .game-app .nameplate-name-row{height:24px;padding:0;align-items:center}
 body .game-app .nameplate-title{min-height:22px;height:22px;padding:0;line-height:22px!important;background:transparent;box-shadow:none;border-radius:0;text-shadow:0 1px 3px #000,0 0 7px #000;font-size:clamp(12px,calc(100cqw/var(--nameplate-title-units)),14px)}
 body .game-app .nameplate-content.untitled{grid-template-rows:24px}
 body .game-app .nameplate-content.long-title{grid-template-rows:20px 28px;gap:2px}
 body .game-app .long-title .nameplate-name-row{height:20px}
 body .game-app .long-title .nameplate-title{height:28px;min-height:28px;font-size:12px;line-height:14px!important;white-space:normal;overflow-wrap:anywhere;text-overflow:clip;display:flex!important;align-items:center}
}
@media(max-width:1180px) and (max-height:600px) and (orientation:landscape){
 body.battle-screen-active .game-app .game-shell{grid-template-rows:78px minmax(0,1fr) 100px}
 body.battle-screen-active .game-app .score-strip{height:78px;overflow:visible}
 body.battle-screen-active .game-app .score-strip>.combatant{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:32px 40px;gap:1px 8px;height:78px;padding:2px 5px;overflow:visible;background:#10232de8!important;border:1px solid #8b7b534d!important}
 body.battle-screen-active .game-app .combatant::before,body.battle-screen-active .game-app .combatant::after{content:none!important}
 body.battle-screen-active .game-app .combatant.cpu{grid-template-columns:auto auto minmax(0,1fr)}
 body.battle-screen-active .game-app .battle-identity{grid-column:1/-1;grid-row:1;height:32px;padding:0;background:none}
 body.battle-screen-active .game-app .desktop-nameplate{height:32px;max-width:none}
 body.battle-screen-active .game-app .nameplate-content{grid-template-rows:16px 16px;padding:0 3px}
 body.battle-screen-active .game-app .nameplate-name-row{padding:0 4px;gap:4px}
 body.battle-screen-active .game-app .nameplate-player{font-size:11px;line-height:16px!important}
 body.battle-screen-active .game-app .nameplate-role{font-size:8px;line-height:16px}
 body.battle-screen-active .game-app .nameplate-name-row .rank-gem-small{width:14px;height:14px}
 body.battle-screen-active .game-app .nameplate-title{min-height:16px;padding:0 4px;font-size:11px;line-height:16px!important;letter-spacing:-.02em}
 body.battle-screen-active .game-app .nameplate-content.untitled{grid-template-rows:32px}
 body.battle-screen-active .game-app .combatant>.life-block{grid-column:1;grid-row:2;justify-self:start;align-self:center}
 body.battle-screen-active .game-app .combatant.cpu>.life-block{grid-column:3;justify-self:end}
 body.battle-screen-active .game-app .combatant>.resource-now{grid-column:2;grid-row:2;justify-self:center;align-self:center;margin:0}
 body.battle-screen-active .game-app .combatant>.public-counts{grid-column:3;grid-row:2;justify-self:end;align-self:center}
 body.battle-screen-active .game-app .combatant.cpu>.public-counts{grid-column:1;justify-self:start}
 body.battle-screen-active .game-app .turn-center{height:78px;box-sizing:border-box;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:16px minmax(0,1fr)!important;gap:1px;padding:3px 4px;overflow:visible}
 body.battle-screen-active .game-app .turn-center:has(.ranked-timer-panel){grid-template-rows:16px minmax(0,1fr) 18px!important}
 body.battle-screen-active .game-app .turn-center>.match-score{grid-column:1;grid-row:1;height:16px;align-self:center}
 body.battle-screen-active .game-app .turn-center>.phase-copy{grid-column:1;grid-row:2;align-self:center}
 body.battle-screen-active .game-app .turn-center>.ranked-timer-panel.embedded{position:static;inset:auto;transform:none;grid-column:1;grid-row:3;align-self:center;justify-self:stretch;justify-content:center;min-width:0;width:auto;min-height:18px;height:18px;margin:0;padding:0 2px;box-sizing:border-box}
 body.battle-screen-active .game-app .ranked-timer-panel.embedded .ranked-timer-values{display:flex;gap:5px}
 body.battle-screen-active .game-app .ranked-timer-panel.embedded .ranked-timer-values>span{font-size:8px;white-space:nowrap}
 body.battle-screen-active .game-app .ranked-timer-panel.embedded b{font-size:11px;line-height:16px}
}
