/* 15.0: the whole file sits in the "legacy" cascade layer. The duel screen resets it (board.css); the start screen and dialogs still use it. */
@layer legacy{
/* Arena layout: straight cards, left-side leaders, and a quiet stone playmat.
   This final layer replaces the older board layouts at every breakpoint. */
.arena-layout {
  --hud-height:52px;
  --console-width:166px;
  --field-width:clamp(64px,calc((calc(100*var(--xvh,1dvh)) - 320px)*.19),116px);
  --back-width:calc(var(--field-width)*.66);
  --leader-size:clamp(60px,calc(10*var(--xvh,1dvh)),88px);
  --stone-edge:#b4a27b48;
  background:#12191b;
}
.arena-layout .game-shell {
  background:linear-gradient(90deg,#080e13b3,transparent 26%,transparent 74%,#080e1399),url('assets/arena-table.svg') center/cover;
}
.arena-layout .start-screen {
  background:url('assets/bg.jpg') center/cover no-repeat;
}
.arena-layout .game-hud {
  height:var(--hud-height);padding:5px 22px;
  background:linear-gradient(#10191ded,#111b1dc9);
  border-bottom:1px solid var(--stone-edge);box-shadow:0 3px 10px #0004;
}
.arena-layout .opponent-hand {top:-12px;height:53px}
.arena-layout .opponent-card-backs {gap:4px}
.arena-layout .opponent-card-backs>i {
  margin-left:0;transform:none;transform-origin:center;
  border-color:#8e8368;background:linear-gradient(150deg,#273334,#101b22);
}
.arena-layout .opponent-hand-count {top:36px;font-size:12px}
.arena-layout .match-stage {
  display:grid;grid-template-columns:minmax(0,1fr) var(--console-width);
  grid-template-rows:minmax(0,1fr);gap:18px;padding:14px 24px 6px;
  width:min(1560px,100%);min-height:0;
}
.arena-layout .battle-table {
  grid-template-rows:minmax(0,1fr) 18px minmax(0,1fr);padding:0;
}
.arena-layout .battle-table:before {
  inset:0 78px 0 148px;border:0;border-radius:0;background:none;transform:none;
}
.arena-layout .table-half,
.arena-layout .enemy-half {
  display:grid;grid-template-columns:142px minmax(0,1fr) 62px;
  grid-template-rows:minmax(0,1fr) 32px;
  grid-template-areas:'profile rows piles' 'profile resources resources';
  gap:7px 16px;padding:0;border-radius:0;
}
.arena-layout .enemy-half {
  grid-template-rows:32px minmax(0,1fr);
  grid-template-areas:'profile resources resources' 'profile rows piles';
}
.arena-layout .table-half:after {display:none}
.arena-layout .zone-rows {grid-template-rows:minmax(0,1.45fr) minmax(0,.95fr);gap:10px}
.arena-layout .enemy-half .zone-rows {grid-template-rows:minmax(0,.95fr) minmax(0,1.45fr)}
.arena-layout .board-row {grid-template-columns:30px minmax(0,1fr);gap:9px}
.arena-layout .row-label {visibility:visible;writing-mode:horizontal-tb;letter-spacing:0;font-size:12px;color:#b4b7a8;opacity:1}
.arena-layout .field-row {
  grid-template-columns:repeat(4,minmax(0,126px));justify-content:center;
  align-items:center;justify-items:center;gap:18px;
}
/* Height comes from the row and width follows it, so the 2:3 frame is never stretched.
   --field-width only caps the size; each breakpoint keeps it at or below the column width. */
.arena-layout .card-cell,.arena-layout .board-slot {aspect-ratio:2/3;height:100%;width:auto;min-width:0;min-height:0;max-height:calc(var(--field-width)*1.5);max-width:100%;border-radius:5px}
.arena-layout .back-row .card-cell,.arena-layout .back-row .board-slot {max-height:calc(var(--back-width)*1.5)}
.arena-layout .board-slot,.arena-layout .enemy-half .board-slot {
  background:#0a141319;border:1px solid #c5c7ae29;box-shadow:inset 0 0 0 3px #111d1b28;
}
.arena-layout .board-slot:before {inset:4px;border-color:#a6aa9512}
.arena-layout .board-slot:after {display:none}
.arena-layout .board-slot .empty-slot>svg {color:#a5ae9a;opacity:.35;width:22px;height:22px}
.arena-layout .board-slot.slot-available {border:2px solid #dfc38b;background:#a7914630;box-shadow:inset 0 0 0 3px #0a141945}
.arena-layout .board-slot.slot-available .empty-slot>svg {opacity:1;color:#f7dda9}
.arena-layout .card-cell.cell-replaceable {outline:2px dashed #e48a6c;outline-offset:2px}
.arena-layout .replace-marker {
  position:absolute;inset:0;z-index:6;display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;min-width:0;min-height:0;padding:0;margin:0;
  border:0;border-radius:5px;background:#2a0f0a52;box-shadow:none;cursor:pointer;
}
.arena-layout .replace-marker>span {
  padding:2px 9px;border:1px solid #f2a88c;border-radius:999px;
  background:#5c2418f2;color:#ffe3d6;font-size:13px;font-weight:700;line-height:1.5;
  box-shadow:0 2px 6px #000a;
}
.arena-layout .replace-marker:not(:disabled):hover {border:0;background:#4a170e73}
.arena-layout .replace-marker:not(:disabled):hover>span {background:#7a2f1f;border-color:#ffc3ac}
.arena-layout .replace-marker:focus-visible {outline:3px solid #f2a88c;outline-offset:2px}
.arena-layout .replace-confirm-modal {width:min(460px,100%)}
/* An older button rule makes the close button position:relative, which drops it onto the first line of text. */
.arena-layout .confirm-modal .modal-close {position:absolute}
.arena-layout .battle-divider {padding-inline:170px 78px;gap:14px;opacity:.7}
.arena-layout .battle-divider i {height:1px;background:linear-gradient(90deg,transparent,#b6a27570,transparent)}

/* Leaders remain in the left column for both sides; damage is immediately below. */
.arena-layout .duelist-rail {
  grid-area:profile;min-width:0;min-height:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:10px;padding:5px 6px;
  border-right:1px solid #c0ae8130;
}
.arena-layout .player-panel {
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  min-width:0;width:100%;gap:9px;text-align:center;line-height:1.45;
}
.leader-portrait {
  display:block;position:relative;width:var(--leader-size);height:var(--leader-size);flex:none;
  border:3px solid #a99b7a;border-radius:50%;background:#263132;
  box-shadow:0 0 0 2px #10191c,0 0 0 3px #776e544f,inset 0 0 0 2px #f4e3b363,0 5px 14px #0009;
}
.leader-art {
  position:absolute;inset:3px;border-radius:50%;background-repeat:no-repeat;
  background-size:185% auto;background-position:50% 0%;
}
.leader-art.leader-dark {background-size:150% auto;background-position:50% 4%}
.leader-art.leader-light {background-size:165% auto;background-position:50% 0%}
.leader-element {
  position:absolute;right:-7px;bottom:-3px;width:27px;height:27px;
  display:grid;place-items:center;color:var(--element);background:#162224;
  border:1px solid #b9a477;border-radius:50%;box-shadow:0 2px 4px #0008;
}
.leader-element svg {width:16px!important;height:16px!important}
.leader-copy {min-width:0;width:100%;display:flex;align-items:center;flex-direction:column;gap:1px}
.leader-role {color:#9faeac;font-size:11px;line-height:1.4;letter-spacing:.4px}
.arena-layout .player-panel strong {width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;font-weight:600;color:#f0e6cc}
.leader-deck {font-size:13px;color:#c8b993}
.arena-layout .active-side .leader-portrait {border-color:#e4cf8e;box-shadow:0 0 0 2px #10191c,0 0 0 4px #c3a66c66,0 5px 14px #0009}
.arena-layout .active-side .leader-role {color:#edce8b}
.arena-layout .damage-rail {display:flex;width:100%;justify-content:center;align-items:center}
.arena-layout .damage-zone-button {
  width:112px;min-height:48px;display:grid;grid-template-columns:1fr auto;align-items:center;
  gap:3px 8px;padding:6px 9px;border-radius:4px;border:1px solid #7c6c564d;
  background:#131c1dcc;box-shadow:inset 0 1px #d6c7a013;
}
.arena-layout .damage-zone-button>span:first-child {font-size:12px;line-height:1.4;text-align:left;color:#c6bda8}
.arena-layout .damage-zone-button>strong {font:400 26px/1 'Card Numbers',Impact,sans-serif;color:#e9c5ad;white-space:nowrap}
.arena-layout .damage-zone-button>strong small {font:400 12px/1 Tahoma,sans-serif;color:#a69e8d}
.arena-layout .damage-pips {display:flex;grid-column:1/-1;gap:4px;justify-content:center;width:100%}
.arena-layout .damage-pips i {width:7px;height:5px;min-width:0;border:1px solid #9c8d6a70;border-radius:1px;background:#071012}
.arena-layout .damage-pips i.filled {border-color:#cb8e76;background:#b0614d;box-shadow:none}
.arena-layout .damage-zone-button.danger {border-color:#d08e73;background:#492621e0}
.arena-layout .pile-column {grid-area:piles;display:flex;align-items:center;justify-content:center;gap:5px}
.arena-layout .side-piles {display:flex;flex-direction:column;align-items:center;gap:9px}
.arena-layout .pile-deck {width:45px;min-width:0;height:61px;min-height:61px;transform:none;border-color:#8b7f61}
.arena-layout .pile-deck:before,.arena-layout .pile-deck:after {transform:none}
.arena-layout .pile-grave {min-width:52px;min-height:34px;padding:4px 6px;background:#162021cf;font-size:12px}
.arena-layout .resource-row {grid-area:resources;display:flex;justify-content:flex-end;align-items:center;gap:10px;padding-right:1px;min-height:0}
.arena-layout .enemy-half .resource-row {flex-direction:row}
.arena-layout .mana-zone-button {flex:0 1 auto;background:#0f2125dc;border:1px solid #7d9c9b69;border-radius:4px;box-shadow:none;padding:4px 10px;min-height:30px;gap:12px}
.arena-layout .mana-zone-heading {gap:10px}
.arena-layout .mana-zone-heading strong {font-family:'Card Numbers',Impact,sans-serif;font-size:23px;font-weight:400;color:#c4d9cf}
.arena-layout .mana-card {transform:none!important;width:13px;height:18px;border-radius:2px;box-shadow:none}
.arena-layout .mana-card-row {gap:3px}
.arena-layout .out-zone-button {background:#131b1cd6;min-height:28px;border-color:#88846b40;box-shadow:none;transform:none}

/* An unrotated silhouette at rest, hover, selection, or an incoming attack. */
.arena-layout .duel-card,.arena-layout .field-card.resting,
.arena-layout .framed-card.hand-card {transform:none!important;rotate:none}
.arena-layout .hand-card:not(:disabled):hover,.arena-layout .hand-card.selected {transform:translateY(-4px)!important;rotate:none}
.arena-layout .field-card.resting .card-art {filter:saturate(.60) brightness(.79)}
.arena-layout .framed-card.field-card .card-surface .stance-mark {
  top:28%;right:7%;left:auto;min-height:18px;padding:2px 4px;border-radius:2px;
}
.arena-layout .field-card.resting .stance-mark {background:#443b2cf2;color:#f4ddb2;border-color:#c3a477a6}
.arena-layout .field-card:not(.resting) .stance-mark {background:#203b32eb;color:#d5ead8;border-color:#89ac8e8a}
.arena-layout .stance-label {font-size:11px}
.arena-layout .field-card .field-name {display:none}
.arena-layout .framed-card.field-card .card-surface .card-bp {font-family:'Card Numbers',Impact,sans-serif;font-weight:400;font-size:21px;line-height:1.2;background:#101819ed;bottom:6%;border:1px solid #d2c1914d;border-radius:2px}
.arena-layout .hand-zone,.arena-layout .hand-zone.has-selection {
  --hand-height:clamp(170px,calc(24*var(--xvh,1dvh)),222px);height:var(--hand-height);
  padding:0 28px 8px;background:linear-gradient(#101b1e00,#0c161be8 22%,#0a1218fc);
}
.arena-layout .hand-header {height:29px;min-height:29px;width:min(1050px,100%)}
.arena-layout .hand-header h2,.arena-layout .hand-header>span {font-size:13px}
.arena-layout .hand-cards {height:calc(100% - 29px);padding:7px 10px 4px;gap:9px;align-items:flex-end;justify-content:safe center}
.arena-layout .has-selection .hand-cards {height:100%}
.arena-layout .framed-card.hand-card {display:flex;flex-direction:column;width:114px;flex-basis:114px;height:100%;max-height:none;padding:0;box-shadow:0 3px 7px #0008}
.arena-layout .framed-card.hand-card .card-surface {height:calc(100% - 43px);width:auto;aspect-ratio:2/3;max-width:100%;margin:auto auto 0}
.arena-layout .framed-card .card-caption {height:43px;min-height:43px;padding:3px 7px;background:linear-gradient(#182529,#101b21)}
.arena-layout .framed-card .card-caption .card-name {font-size:13px;line-height:1.5}
.arena-layout .framed-card .card-caption .card-bp {font-family:'Card Numbers',Impact,sans-serif;font-weight:400}
.arena-layout .collection-grid .framed-card.hand-card {height:230px;width:100%;transform:none!important}

/* Selected hand card. The panel used to scroll, hiding the command below its fold.
   Lines are now dropped whole by priority, never cut in half:
   commands > name > why it can or can't be played > BP line > card text ("รายละเอียด" shows all).
   The command's subtitle repeats the reason line, so it is dropped first. */
.arena-layout .context-actions.hand-context {overflow:hidden;align-items:stretch}
.arena-layout .hand-context .context-content {display:flex;flex-direction:column;min-height:0}
.arena-layout .hand-context .dock-copy strong {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.arena-layout .hand-context .context-effect {display:none}
.arena-layout .hand-context .action-reason {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;max-height:none;margin-block:2px}
.arena-layout .hand-context .command-copy small {display:none}
.arena-layout .hand-context .dock-buttons {flex:none;margin-top:auto;padding-top:6px}
@media(min-height:1000px) {
  :where(body:not(.xr-staged)) .arena-layout .hand-context .context-effect {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;max-height:none}
}
/* the same on the fixed 1920x1080 stage, where the window size does not count */
:where(body.xr-staged) .arena-layout .hand-context .context-effect {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;max-height:none}
@media(max-height:800px) {
  :where(body:not(.xr-staged)) .arena-layout .hand-context .dock-copy>span {display:none}
}

/* Mulligan: on short screens the start button sat below the fold of a scrolling dialog.
   Pin it to the bottom like the effect-choice confirm bar. */
.arena-layout .mulligan-modal {padding-bottom:0}
.arena-layout .mulligan-modal .modal-actions {position:sticky;bottom:0;z-index:10;margin-top:16px;padding-block:14px 18px;background:#162a38f5;border-top:1px solid #91a5a64d}
/* Keep options reached by keyboard or scrollIntoView clear of those sticky bars. */
.arena-layout .modal {scroll-padding-bottom:110px}

/* The phase action occupies the right edge, rather than a rectangular dashboard. */
.arena-layout .turn-console {
  display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:13px;padding:12px 9px;
  border:0;border-left:1px solid #b5a07233;background:linear-gradient(90deg,#10202200,#101b1c8c);box-shadow:none;
}
.arena-layout .turn-console:before,.arena-layout .turn-console:after {display:none}
.arena-layout .turn-indicator {display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:3px}
.arena-layout .turn-indicator>span {font-size:13px;color:#b6bba8}
.arena-layout .turn-indicator>span b {font:400 25px/1 'Card Numbers',Impact,sans-serif}
.arena-layout .turn-indicator strong {font-size:15px;line-height:1.5}
.arena-layout .phase-track {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
.arena-layout .phase-track li {min-height:27px;padding:4px 2px;gap:4px;justify-content:center;text-align:center;white-space:nowrap;border:0;border-bottom:1px solid #99978326;border-radius:0;color:#929f98;font-size:12px;background:none}
.arena-layout .phase-track li>span {display:none}
.arena-layout .phase-track li:after {display:none}
.arena-layout .phase-track li.active {color:#f2dba1;background:#b1a46f0a;border-color:#c1ab72}
.arena-layout .phase-information {display:block;text-align:center}
.arena-layout .phase-information h1 {font-size:18px;line-height:1.5}
.arena-layout .phase-information p {display:block;font-size:13px;line-height:1.7;color:#b4c3bc;margin-top:4px}
.arena-layout #next-phase {
  display:grid;place-items:center;grid-template-columns:1fr;align-self:center;flex:none;
  width:126px;height:126px;min-height:126px;max-width:100%;border-radius:50%;padding:17px 10px;margin:4px auto;
  border:3px solid #aaa07c;color:#f0f0dc;text-shadow:0 2px 3px #001219;
  background:radial-gradient(circle at 45% 29%,#386474,#153945 63%,#102a32 64%,#1c3b40);
  box-shadow:0 0 0 2px #10191c,0 0 0 4px #8e826666,inset 0 0 0 2px #93b4ac66,inset 0 -5px 13px #06141ca6,0 5px 14px #0008;
  transform:none;
}
.arena-layout #next-phase:not(:disabled):hover {border-color:#efdaa0;background:radial-gradient(circle at 45% 29%,#477b88,#204754 63%,#17343c 64%,#23454a)}
.arena-layout #next-phase:disabled {opacity:1;color:#9ca9a7;border-color:#656957;background:radial-gradient(circle at 45% 29%,#2a3a3c,#1c292c 65%,#152126);box-shadow:0 0 0 2px #10191c,inset 0 0 0 2px #83958c27,0 3px 8px #0006;text-shadow:none;transform:none}
.arena-layout #next-phase .phase-button-icon {display:none}
.arena-layout #next-phase-label {font-size:21px;font-weight:600;line-height:1.5;white-space:normal;text-align:center}
.arena-layout #phase-button-caption {display:none}
.arena-layout .online-status {background:#101e20ed;border-color:#a79b7040}

@media(max-width:1100px) and (min-height:501px) {
  :where(body:not(.xr-staged)) .arena-layout {--console-width:139px}
  :where(body:not(.xr-staged)) .arena-layout .match-stage {gap:10px;padding-inline:14px}
  :where(body:not(.xr-staged)) .arena-layout .table-half,:where(body:not(.xr-staged)) .arena-layout .enemy-half {grid-template-columns:110px minmax(0,1fr) 52px;gap:6px 10px}
  :where(body:not(.xr-staged)) .arena-layout .field-row {gap:12px}
  :where(body:not(.xr-staged)) .arena-layout .phase-track {grid-template-columns:minmax(0,1fr)}
  :where(body:not(.xr-staged)) .arena-layout .duelist-rail {padding-inline:2px}
  :where(body:not(.xr-staged)) .arena-layout .battle-divider {padding-inline:128px 62px}
  :where(body:not(.xr-staged)) .arena-layout .damage-zone-button {width:95px}
  :where(body:not(.xr-staged)) .arena-layout #next-phase {width:111px;height:111px;min-height:111px}
  :where(body:not(.xr-staged)) .arena-layout #next-phase-label {font-size:19px}
}
@media(max-width:760px) and (min-height:501px) {
  :where(body:not(.xr-staged)) .arena-layout {--hud-height:45px;--leader-size:48px;--field-width:clamp(44px,calc((calc(100*var(--xvw,1vw)) - 144px)/4),83px);--back-width:calc(var(--field-width)*.70)}
  :where(body:not(.xr-staged)) .arena-layout .game-hud {padding-inline:10px;gap:8px}
  :where(body:not(.xr-staged)) .arena-layout .game-wordmark {display:none}
  /* game.css hides every span in the menu button here; keep the icon so it is not a blank square. */
  :where(body:not(.xr-staged)) .arena-layout .game-hud .menu-button [data-icon] {display:inline-flex}
  /* Start the opponent hand just right of the menu button and show only the count, clear of the HUD tools. */
  :where(body:not(.xr-staged)) .arena-layout .opponent-hand {top:-10px;height:40px;left:62px;transform:none}
  :where(body:not(.xr-staged)) .arena-layout .opponent-card-backs {gap:0}
  :where(body:not(.xr-staged)) .arena-layout .opponent-card-backs>i {width:24px;height:35px;margin-left:-12px}
  :where(body:not(.xr-staged)) .arena-layout .opponent-card-backs>i:first-child {margin-left:0}
  :where(body:not(.xr-staged)) .arena-layout .opponent-hand-count {top:26px;font-size:0;margin-left:6px}
  :where(body:not(.xr-staged)) .arena-layout .opponent-hand-count b {font-size:14px}
  :where(body:not(.xr-staged)) .arena-layout .match-stage {grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:5px;padding:7px 8px 0}
  :where(body:not(.xr-staged)) .arena-layout .battle-table {grid-template-rows:minmax(0,1fr) 10px minmax(0,1fr)}
  :where(body:not(.xr-staged)) .arena-layout .table-half,:where(body:not(.xr-staged)) .arena-layout .enemy-half {grid-template-columns:62px minmax(0,1fr) 29px;gap:4px 6px;grid-template-rows:minmax(0,1fr) 25px}
  :where(body:not(.xr-staged)) .arena-layout .enemy-half {grid-template-rows:25px minmax(0,1fr)}
  :where(body:not(.xr-staged)) .arena-layout .zone-rows,:where(body:not(.xr-staged)) .arena-layout .enemy-half .zone-rows {gap:4px}
  :where(body:not(.xr-staged)) .arena-layout .board-row {display:block;position:relative;min-height:0}
  :where(body:not(.xr-staged)) .arena-layout .board-row>.row-label {display:none}
  :where(body:not(.xr-staged)) .arena-layout .field-row {height:100%;gap:5px;grid-template-columns:repeat(4,minmax(0,1fr))}
  :where(body:not(.xr-staged)) .arena-layout .battle-divider {padding-inline:74px 34px;gap:7px}
  :where(body:not(.xr-staged)) .arena-layout .duelist-rail {gap:7px;border-color:#a2936d30;padding:2px 4px 2px 0}
  :where(body:not(.xr-staged)) .arena-layout .player-panel {gap:6px}
  :where(body:not(.xr-staged)) .arena-layout .player-panel strong {font-size:13px;line-height:1.4}
  :where(body:not(.xr-staged)) .leader-role {font-size:10px}
  :where(body:not(.xr-staged)) .leader-deck {font-size:11px;line-height:1.4}
  :where(body:not(.xr-staged)) .leader-element {width:20px;height:20px;right:-5px;bottom:-3px}
  :where(body:not(.xr-staged)) .leader-element svg {width:12px!important;height:12px!important}
  :where(body:not(.xr-staged)) .arena-layout .damage-zone-button {width:58px;min-height:39px;padding:4px;gap:4px 0;grid-template-columns:1fr}
  :where(body:not(.xr-staged)) .arena-layout .damage-zone-button>span:first-child {display:none}
  :where(body:not(.xr-staged)) .arena-layout .damage-zone-button>strong {font-size:24px;text-align:center}
  :where(body:not(.xr-staged)) .arena-layout .damage-zone-button>strong small {font-size:11px}
  :where(body:not(.xr-staged)) .arena-layout .damage-pips {gap:2px}
  :where(body:not(.xr-staged)) .arena-layout .damage-pips i {width:4px;height:4px;flex:1}
  :where(body:not(.xr-staged)) .arena-layout .pile-deck {width:27px;height:38px;min-height:38px}
  :where(body:not(.xr-staged)) .arena-layout .pile-deck .pile-label,:where(body:not(.xr-staged)) .arena-layout .pile-deck>svg,:where(body:not(.xr-staged)) .arena-layout .pile-deck:before,:where(body:not(.xr-staged)) .arena-layout .pile-deck:after {display:none}
  :where(body:not(.xr-staged)) .arena-layout .pile-deck .pile-count {font-size:17px;margin:0}
  :where(body:not(.xr-staged)) .arena-layout .pile-grave {min-width:29px;min-height:31px;width:29px;flex-direction:column;gap:0;padding:2px;font-size:10px}
  :where(body:not(.xr-staged)) .arena-layout .pile-grave svg {display:none}
  :where(body:not(.xr-staged)) .arena-layout .pile-grave .pile-count {font-size:15px;line-height:1.1}
  :where(body:not(.xr-staged)) .arena-layout .side-piles {gap:6px}
  :where(body:not(.xr-staged)) .arena-layout .resource-row {gap:6px}
  :where(body:not(.xr-staged)) .arena-layout .mana-zone-button {padding:2px 5px;gap:6px;min-height:24px}
  :where(body:not(.xr-staged)) .arena-layout .mana-zone-heading {gap:5px}
  :where(body:not(.xr-staged)) .arena-layout .mana-zone-heading>span {font-size:11px}
  :where(body:not(.xr-staged)) .arena-layout .mana-zone-heading svg {display:none}
  :where(body:not(.xr-staged)) .arena-layout .mana-zone-heading strong {font-size:18px}
  :where(body:not(.xr-staged)) .arena-layout .mana-zone-heading strong small {font-size:11px}
  :where(body:not(.xr-staged)) .arena-layout .mana-card {width:8px;height:12px;min-width:0}
  :where(body:not(.xr-staged)) .arena-layout .mana-card svg {display:none}
  :where(body:not(.xr-staged)) .arena-layout .mana-card-row {gap:2px}
  :where(body:not(.xr-staged)) .arena-layout .out-zone-button {width:31px;padding:1px 3px;min-height:24px;gap:3px;font-size:10px}
  :where(body:not(.xr-staged)) .arena-layout .out-zone-button svg {display:none}
  :where(body:not(.xr-staged)) .arena-layout .framed-card.field-card .card-surface .card-bp {font-size:17px;padding:1px;bottom:5%;border:0}
  :where(body:not(.xr-staged)) .arena-layout .framed-card.field-card .card-surface .stance-mark {min-height:14px;top:29%;right:7%;padding:2px 3px}
  :where(body:not(.xr-staged)) .arena-layout .stance-label {font-size:10px}
  :where(body:not(.xr-staged)) .arena-layout .stance-mark svg {display:none}
  :where(body:not(.xr-staged)) .arena-layout .replace-marker>span {padding:1px 6px;font-size:12px}
  :where(body:not(.xr-staged)) .arena-layout .turn-console {
    display:grid;grid-template-columns:66px minmax(0,1fr) 82px;grid-template-rows:auto;
    align-items:center;gap:8px;padding:7px 4px;min-height:90px;
    background:linear-gradient(90deg,#0e1b20,#152628dc,#0e1b20);border:0;border-block:1px solid #9e94704d;
  }
  :where(body:not(.xr-staged)) .arena-layout .turn-indicator {grid-column:1;grid-row:1;flex-direction:column;gap:3px;text-align:center}
  :where(body:not(.xr-staged)) .arena-layout .turn-indicator>span {font-size:11px}
  :where(body:not(.xr-staged)) .arena-layout .turn-indicator strong {font-size:12px}
  :where(body:not(.xr-staged)) .arena-layout .phase-track {display:none}
  :where(body:not(.xr-staged)) .arena-layout .phase-information {grid-column:2;grid-row:1;align-self:center;text-align:left}
  :where(body:not(.xr-staged)) .arena-layout .phase-information h1 {font-size:17px}
  :where(body:not(.xr-staged)) .arena-layout .phase-information p {font-size:12px;line-height:1.5;margin-top:3px;display:block}
  :where(body:not(.xr-staged)) .arena-layout #next-phase {grid-column:3;grid-row:1;width:76px;height:76px;min-height:76px;padding:9px 4px;border-width:2px;margin:0}
  :where(body:not(.xr-staged)) .arena-layout #next-phase-label {font-size:16px;line-height:1.4}
  :where(body:not(.xr-staged)) .arena-layout .hand-zone,:where(body:not(.xr-staged)) .arena-layout .hand-zone.has-selection {--hand-height:172px;padding:0 7px 5px}
  :where(body:not(.xr-staged)) .arena-layout .hand-header {height:25px;min-height:25px}
  :where(body:not(.xr-staged)) .arena-layout .hand-header h2,:where(body:not(.xr-staged)) .arena-layout .hand-header>span {font-size:11px}
  :where(body:not(.xr-staged)) .arena-layout .hand-cards {height:calc(100% - 25px);padding:5px 4px 2px;gap:7px}
  :where(body:not(.xr-staged)) .arena-layout .hand-zone.has-selection {grid-template-columns:100px minmax(0,1fr);grid-template-rows:25px minmax(0,1fr);gap:0 8px}
  :where(body:not(.xr-staged)) .arena-layout .has-selection .hand-header {grid-column:1/-1;grid-row:1}
  :where(body:not(.xr-staged)) .arena-layout .has-selection .hand-cards {grid-column:1;grid-row:2;height:100%}
  :where(body:not(.xr-staged)) .arena-layout .context-actions.hand-context {grid-column:2;grid-row:2;display:flex;padding:7px;gap:0}
  :where(body:not(.xr-staged)) .arena-layout .hand-context .context-art,:where(body:not(.xr-staged)) .arena-layout .hand-context .context-effect {display:none}
  :where(body:not(.xr-staged)) .arena-layout .hand-context .dock-copy strong {font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  :where(body:not(.xr-staged)) .arena-layout .hand-context .dock-copy>span {font-size:12px}
  :where(body:not(.xr-staged)) .arena-layout .hand-context .action-reason {font-size:11px;-webkit-line-clamp:1;line-height:1.5}
  :where(body:not(.xr-staged)) .arena-layout .hand-context .dock-buttons {display:grid;grid-template-columns:minmax(0,1fr) 58px;gap:5px;margin-top:5px;padding-top:0}
  /* The reason line says what to do next (for example "tap ทับ"); it wins over the BP line, which the card already shows. */
  :where(body:not(.xr-staged)) .arena-layout .hand-context .context-content:has(.action-reason:not(:empty)) .dock-copy>span {display:none}
  :where(body:not(.xr-staged)) .arena-layout .hand-context .command-button {padding:7px!important;gap:5px!important}
  :where(body:not(.xr-staged)) .arena-layout .hand-context .command-icon {display:none}
  :where(body:not(.xr-staged)) .arena-layout .hand-context .command-copy strong {font-size:14px}
  :where(body:not(.xr-staged)) .arena-layout .hand-context .command-copy small {font-size:11px}
  :where(body:not(.xr-staged)) .arena-layout .hand-context .command-cost {padding-left:6px;margin-left:0}
  :where(body:not(.xr-staged)) .arena-layout .hand-context .command-cost b {font-size:19px}
  :where(body:not(.xr-staged)) .arena-layout .hand-context .command-cost small {font-size:10px}
  :where(body:not(.xr-staged)) .arena-layout .hand-context .dock-detail {font-size:12px;padding:3px}
  :where(body:not(.xr-staged)) .arena-layout .framed-card.hand-card {width:100px;flex-basis:100px}
  :where(body:not(.xr-staged)) .arena-layout .framed-card .card-caption {padding-inline:5px}
  :where(body:not(.xr-staged)) .arena-layout .framed-card .card-caption .card-name {font-size:12px}
  /* Defense: one compact row per option (name + BP, outcome below) so 4 blockers and
     "รับดาเมจ" fit the board height. The BP note is dropped only when blockers list their own outcome. */
  :where(body:not(.xr-staged)) .arena-layout .defense-options {grid-template-columns:minmax(0,1fr);gap:6px}
  :where(body:not(.xr-staged)) .arena-layout .defense-option {min-height:0;padding:5px 10px}
  :where(body:not(.xr-staged)) .arena-layout .defense-option-copy>* {line-height:1.3}
  :where(body:not(.xr-staged)) .arena-layout .defense-portrait {display:none}
  :where(body:not(.xr-staged)) .arena-layout .defense-option-copy {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:8px;width:100%}
  :where(body:not(.xr-staged)) .arena-layout .defense-option-copy>span {font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  :where(body:not(.xr-staged)) .arena-layout .defense-option b {font-size:17px;white-space:nowrap}
  :where(body:not(.xr-staged)) .arena-layout .defense-option small {grid-column:1/-1;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  :where(body:not(.xr-staged)) .arena-layout .defense-options:has(.safe-block,.sacrifice-block)+.defense-note {display:none}
}
@media(max-height:500px) {
  :where(body:not(.xr-staged)) .arena-layout {--hud-height:35px;--console-width:116px;--leader-size:38px;--field-width:clamp(30px,calc((calc(100*var(--xvh,1dvh)) - 177px)*.18),59px);--back-width:calc(var(--field-width)*.70)}
  :where(body:not(.xr-staged)) .arena-layout .game-hud {height:35px;padding:2px 10px}
  :where(body:not(.xr-staged)) .arena-layout .game-hud .menu-button,:where(body:not(.xr-staged)) .arena-layout .game-hud .icon-button {min-height:29px;height:29px;padding:3px 7px;font-size:12px}
  :where(body:not(.xr-staged)) .arena-layout .game-hud .icon-button {width:31px;min-width:31px}
  :where(body:not(.xr-staged)) .arena-layout .opponent-hand {top:-12px}
  :where(body:not(.xr-staged)) .arena-layout .opponent-card-backs>i {width:22px;height:30px}
  :where(body:not(.xr-staged)) .arena-layout .opponent-hand-count {top:21px;font-size:10px}
  :where(body:not(.xr-staged)) .arena-layout .match-stage {grid-template-columns:minmax(0,1fr) 116px;grid-template-rows:minmax(0,1fr);padding:4px 12px;gap:9px}
  :where(body:not(.xr-staged)) .arena-layout .battle-table {grid-template-rows:minmax(0,1fr) 6px minmax(0,1fr)}
  :where(body:not(.xr-staged)) .arena-layout .table-half,:where(body:not(.xr-staged)) .arena-layout .enemy-half {grid-template-columns:64px minmax(0,1fr) 38px;gap:2px 9px;grid-template-rows:minmax(0,1fr) 20px}
  :where(body:not(.xr-staged)) .arena-layout .enemy-half {grid-template-rows:20px minmax(0,1fr)}
  :where(body:not(.xr-staged)) .arena-layout .zone-rows,:where(body:not(.xr-staged)) .arena-layout .enemy-half .zone-rows {gap:3px}
  :where(body:not(.xr-staged)) .arena-layout .board-row {display:block;position:relative}
  :where(body:not(.xr-staged)) .arena-layout .row-label {display:none}
  :where(body:not(.xr-staged)) .arena-layout .field-row {height:100%;gap:10px;grid-template-columns:repeat(4,minmax(0,90px))}
  :where(body:not(.xr-staged)) .arena-layout .duelist-rail {gap:4px;padding:1px 6px 1px 0}
  :where(body:not(.xr-staged)) .arena-layout .player-panel {gap:4px}
  :where(body:not(.xr-staged)) .arena-layout .leader-role,:where(body:not(.xr-staged)) .arena-layout .leader-deck {display:none}
  :where(body:not(.xr-staged)) .arena-layout .player-panel strong {font-size:12px;line-height:1.3}
  :where(body:not(.xr-staged)) .arena-layout .leader-element {width:17px;height:17px;right:-4px;bottom:-2px}
  :where(body:not(.xr-staged)) .arena-layout .leader-element svg {width:10px!important;height:10px!important}
  :where(body:not(.xr-staged)) .arena-layout .damage-zone-button {width:52px;min-height:25px;display:block;padding:3px}
  :where(body:not(.xr-staged)) .arena-layout .damage-zone-button>span {display:none}
  :where(body:not(.xr-staged)) .arena-layout .damage-zone-button>strong {font-size:19px}
  :where(body:not(.xr-staged)) .arena-layout .damage-zone-button>strong small {font-size:10px}
  :where(body:not(.xr-staged)) .arena-layout .pile-deck {width:25px;height:30px;min-height:30px}
  :where(body:not(.xr-staged)) .arena-layout .pile-deck>svg,:where(body:not(.xr-staged)) .arena-layout .pile-deck .pile-label,:where(body:not(.xr-staged)) .arena-layout .pile-deck:before,:where(body:not(.xr-staged)) .arena-layout .pile-deck:after {display:none}
  :where(body:not(.xr-staged)) .arena-layout .pile-deck .pile-count {font-size:16px;margin:0}
  :where(body:not(.xr-staged)) .arena-layout .pile-grave {min-width:35px;min-height:22px;font-size:10px;padding:2px}
  :where(body:not(.xr-staged)) .arena-layout .pile-grave svg {display:none}
  :where(body:not(.xr-staged)) .arena-layout .side-piles {gap:5px}
  :where(body:not(.xr-staged)) .arena-layout .resource-row {gap:6px}
  :where(body:not(.xr-staged)) .arena-layout .out-zone-button {width:38px;min-height:19px;font-size:10px;padding:1px 3px}
  :where(body:not(.xr-staged)) .arena-layout .mana-zone-button {min-height:19px;padding:1px 6px}
  :where(body:not(.xr-staged)) .arena-layout .mana-zone-heading strong {font-size:17px}
  :where(body:not(.xr-staged)) .arena-layout .mana-card {width:9px;height:12px}
  :where(body:not(.xr-staged)) .arena-layout .mana-card svg {display:none}
  :where(body:not(.xr-staged)) .arena-layout .battle-divider {padding-inline:78px 48px}
  :where(body:not(.xr-staged)) .arena-layout .framed-card.field-card .card-surface .stance-mark {top:26%;padding:1px 2px;min-height:11px}
  :where(body:not(.xr-staged)) .arena-layout .stance-label {font-size:9px}
  :where(body:not(.xr-staged)) .arena-layout .stance-mark svg {display:none}
  :where(body:not(.xr-staged)) .arena-layout .framed-card.field-card .card-surface .card-bp {font-size:13px;border:0;padding:0}
  :where(body:not(.xr-staged)) .arena-layout .turn-console {display:flex;flex-direction:column;justify-content:center;gap:6px;padding:3px 5px}
  :where(body:not(.xr-staged)) .arena-layout .turn-indicator {flex-direction:row;gap:8px}
  :where(body:not(.xr-staged)) .arena-layout .turn-indicator strong,:where(body:not(.xr-staged)) .arena-layout .turn-indicator>span {font-size:11px}
  :where(body:not(.xr-staged)) .arena-layout .phase-track,:where(body:not(.xr-staged)) .arena-layout .phase-information p {display:none}
  :where(body:not(.xr-staged)) .arena-layout .phase-information h1 {font-size:13px}
  :where(body:not(.xr-staged)) .arena-layout #next-phase {width:76px;height:76px;min-height:76px;padding:8px;border-width:2px;margin:0 auto}
  :where(body:not(.xr-staged)) .arena-layout #next-phase-label {font-size:15px;line-height:1.4}
  :where(body:not(.xr-staged)) .arena-layout .hand-zone,:where(body:not(.xr-staged)) .arena-layout .hand-zone.has-selection {--hand-height:96px;padding:0 12px 3px}
  :where(body:not(.xr-staged)) .arena-layout .hand-header {height:20px;min-height:20px}
  :where(body:not(.xr-staged)) .arena-layout .hand-header h2,:where(body:not(.xr-staged)) .arena-layout .hand-header>span {font-size:11px}
  :where(body:not(.xr-staged)) .arena-layout .hand-cards {height:calc(100% - 20px);padding:3px 5px 1px;gap:8px}
  :where(body:not(.xr-staged)) .arena-layout .framed-card.hand-card {display:grid;grid-template-columns:42px minmax(0,1fr);width:150px;flex-basis:150px;gap:5px;padding:3px;align-items:center;background:#142329}
  :where(body:not(.xr-staged)) .arena-layout .framed-card.hand-card .card-surface {width:42px;height:63px;margin:0}
  :where(body:not(.xr-staged)) .arena-layout .framed-card .card-caption {height:auto;min-height:58px;padding:2px 2px 2px 0;border:0;background:none}
  :where(body:not(.xr-staged)) .arena-layout .framed-card .card-caption .card-name {font-size:12px;line-height:1.5}
  :where(body:not(.xr-staged)) .arena-layout .collection-grid .framed-card.hand-card {display:flex;height:230px}
  :where(body:not(.xr-staged)) .arena-layout .collection-grid .framed-card.hand-card .card-surface {width:auto;height:calc(100% - 43px)}
  /* Up to 4 blockers + "รับดาเมจ": one row, so taking damage never ends up below the panel's fold.
     Each option already states its outcome, so the general BP note is dropped here. */
  :where(body:not(.xr-staged)) .arena-layout .defense-options {grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
  :where(body:not(.xr-staged)) .arena-layout .defense-option {min-height:0}
  :where(body:not(.xr-staged)) .arena-layout .defense-options:has(.safe-block,.sacrifice-block)+.defense-note {display:none}
  /* Slots are under 40px wide here: the highlight and arrow mark a legal slot without the label. */
  :where(body:not(.xr-staged)) .arena-layout .board-slot .empty-slot>span {display:none}
  :where(body:not(.xr-staged)) .arena-layout .replace-marker>span {padding:0 4px;font-size:11px;line-height:1.4}
  /* Only the commands fit in a 96px hand bar. The selected card stays highlighted beside it,
     and "รายละเอียด" opens the full text. The right padding keeps the × clear of the buttons. */
  :where(body:not(.xr-staged)) .arena-layout .context-actions.hand-context {padding:4px 8px;gap:8px;align-items:center}
  :where(body:not(.xr-staged)) .arena-layout .hand-context .context-art,:where(body:not(.xr-staged)) .arena-layout .hand-context .dock-copy,
  :where(body:not(.xr-staged)) .arena-layout .hand-context .context-effect,:where(body:not(.xr-staged)) .arena-layout .hand-context .action-reason {display:none}
  :where(body:not(.xr-staged)) .arena-layout .hand-context .context-content {justify-content:center}
  :where(body:not(.xr-staged)) .arena-layout .hand-context .dock-buttons {padding:0 40px 0 0;margin:0}
  :where(body:not(.xr-staged)) .arena-layout .hand-context .dock-buttons button,:where(body:not(.xr-staged)) .arena-layout .hand-context .dock-buttons .command-button {min-height:44px;padding-block:4px}
}
@media(prefers-reduced-motion:reduce) {
  .arena-layout .hand-card {transition:none}
}

/* 14.4 — dialog close button, announcer, rematch, battle log, reconnecting. */
/* The v13 button rule sets position:relative on every .icon-button, which dropped the × into the
   text flow above the heading. Keep it in the corner for every dialog, and keep the first line clear of it. */
.arena-layout .modal>.modal-close {position:absolute;top:8px;right:8px;margin:0}
.arena-layout .modal>.modal-close+* {margin-right:34px}
.arena-layout .modal>.modal-close+.result-emblem {margin-right:0}
.arena-layout .modal>.modal-close+.modal-header,.arena-layout .modal>.modal-close+.menu-heading {margin-right:0;padding-right:40px}
.arena-layout .modal>.modal-close+.back-link {margin-right:44px}

.arena-layout .announcer {
  position:absolute;z-index:36;left:50%;top:50%;transform:translate(-50%,-50%);
  display:flex;flex-direction:column;align-items:center;gap:1px;
  width:max-content;max-width:min(560px,calc(100% - 24px));padding:10px 22px 11px;
  border:1px solid #c8ad74a8;border-radius:8px;background:linear-gradient(#1b2f3bf4,#11212cf4);
  color:#f4ecd8;text-align:center;pointer-events:none;box-shadow:0 14px 44px #000b,inset 0 0 0 3px #0b182455;
  animation:announcer-in 180ms ease-out;
}
.arena-layout .announcer[hidden] {display:none}
.arena-layout .announcer strong {font-size:21px;line-height:1.45;font-weight:800;text-shadow:0 1px 2px #000a}
.arena-layout .announcer span {font-size:15px;line-height:1.55;color:#cfdadd}
.arena-layout .announcer.tone-turn {border-color:#ecd39a;background:linear-gradient(#36483ef4,#1d2f2af4)}
.arena-layout .announcer.tone-turn strong {color:#f6e2b0}
.arena-layout .announcer.tone-foe-turn strong {color:#d9e3e6}
.arena-layout .announcer.tone-combat,.arena-layout .announcer.tone-damage {border-color:#d99a7c}
.arena-layout .announcer.tone-trigger {border-color:#9fd5e2;background:linear-gradient(#1d3644f4,#122633f4)}
.arena-layout .announcer.tone-trigger strong {color:#c9f1fb}
.arena-layout .announcer.tone-alert {border-color:#f2a88c;background:linear-gradient(#5b2622f6,#3b181af6)}
.arena-layout .announcer.tone-alert strong {color:#ffe3d6}
/* While the defence panel is open in the middle of the board, the notice sits above it. */
.arena-layout .battle-table.defense-active .announcer {top:6px;transform:translateX(-50%);padding-block:6px 7px}
.arena-layout .battle-table.defense-active .announcer strong {font-size:17px}
.arena-layout .battle-table.defense-active .announcer span {font-size:13px}
@keyframes announcer-in {from{opacity:0}to{opacity:1}}

.arena-layout .battle-log .log-entry.log-detail {padding:2px 0 8px 44px;border-top:0;font-size:13px;color:#c6d2d6}
.arena-layout .battle-log .log-entry.log-detail .log-turn {display:none}
.arena-layout .battle-log .log-entry:has(+.log-detail) {border-bottom:0;padding-bottom:4px}
.arena-layout .battle-log .log-entry.trigger p {color:#bfe9f3}
.arena-layout .battle-log .log-entry.combat p {color:#f3c7b4}

.arena-layout .online-result .rematch-panel {margin-top:18px;padding:14px 16px;border:1px solid #c8ad7455;border-radius:8px;background:#0d1b26a6}
.arena-layout .online-result .rematch-decks {margin-block:10px 4px;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.arena-layout .online-result .rematch-decks .element-option {min-height:84px}
.arena-layout .online-result .rematch-decks.locked {opacity:.55}
.arena-layout .online-result .rematch-status {margin:8px 0 0;font-weight:700;color:#e5d1a7}
.arena-layout .online-result .rematch-status.foe-ready {color:#a6e0c2}
.arena-layout .online-result .modal-actions {justify-content:center}

.arena-layout .online-status.reconnecting {background:#5a3226f2;color:#ffe2cc;font-weight:600}
.arena-layout .online-status.reconnecting .quiet-button {color:#ffe2cc;text-decoration:underline}

@media (max-width:900px),(max-height:520px) {
  :where(body:not(.xr-staged)) .arena-layout .announcer {padding:7px 14px 8px;max-width:calc(100% - 16px)}
  :where(body:not(.xr-staged)) .arena-layout .announcer strong {font-size:17px}
  :where(body:not(.xr-staged)) .arena-layout .announcer span {font-size:13px}
  :where(body:not(.xr-staged)) .arena-layout .online-result .rematch-panel {padding:10px}
}
@media (prefers-reduced-motion:reduce) {
  .arena-layout .announcer {animation:none}
}

/* Functional St hooks; final screen styling is a separate pass. */
.equipment-linked{outline:3px solid var(--element);}
.equipment-label,.granted-ability{display:block;white-space:normal;}
.colour-ability-status{display:flex;flex-direction:column;font-size:.75rem;}
.deck-hero{position:relative;display:block;width:3rem;height:4rem;overflow:hidden;}

.arena-layout .field-card.resting .card-art.st-placeholder{filter:saturate(.6) brightness(.79)}
.leader-art.leader-water{background-size:185% auto;background-position:89% 8%}
.leader-art.leader-earth{background-size:185% auto;background-position:50% 10%}
.leader-art.leader-dark{background-size:185% auto;background-position:67% 18%}
/* The deck picker's hero thumbnail sat behind the button background (the art has a negative z-index). */
.deck-hero{isolation:isolate;border-radius:4px;margin-inline:auto}

/* 15 — equipment on the field: a chip on the cell edge says who wears what (full text in the title,
   the selected card's panel and the detail dialog). An equipped card shows no BP or stance. */
.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.arena-layout .card-cell .equipment-label{
  position:absolute;z-index:7;left:50%;top:0;transform:translate(-50%,-55%);display:flex;align-items:center;gap:2px;
  max-width:calc(100% + 40px);padding:0 7px;border-radius:999px;border:1px solid #d8b56c;background:#2a2113f2;color:#f6e3b4;
  font-size:12px;line-height:1.5;font-weight:700;white-space:nowrap;pointer-events:none;box-shadow:0 2px 5px #000a}
.arena-layout .equipment-label .eq-text{overflow:hidden;text-overflow:ellipsis}
.arena-layout .equipment-label .eq-tiny{display:none;align-items:center;gap:1px}
.arena-layout .equipment-label .eq-tiny svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2}
.arena-layout .card-cell .equipment-label.is-item{border-color:#9bb4c8;background:#15283af2;color:#dbe9f5}
.arena-layout .card-cell:has(.equipped-card){outline:1px dashed #d8b56c99;outline-offset:2px}
@media(max-height:500px){
  :where(body:not(.xr-staged)) .arena-layout .card-cell .equipment-label{padding:0 4px;max-width:none}
  :where(body:not(.xr-staged)) .arena-layout .equipment-label .eq-text{display:none}
  :where(body:not(.xr-staged)) .arena-layout .equipment-label .eq-tiny{display:flex}
}

/* 15 — colour ability: status for both leaders in the rail; the player's button beside the phase button.
   The attack counter is turn information, so it sits with the turn number. */
.arena-layout .colour-ability-status{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:0 5px;width:100%;font-size:12px;line-height:1.4;color:#cbbf9f}
.arena-layout .colour-ability-status .colour-name{font-weight:700;color:#e8d6a6;white-space:nowrap}
.arena-layout .colour-ability-status.used .colour-name{text-decoration:line-through;opacity:.75}
.arena-layout .colour-ability-status .colour-state{color:#a9b8b2;white-space:nowrap}
.arena-layout .colour-console{display:flex;justify-content:center}
.arena-layout .colour-console[hidden]{display:none}
.arena-layout .colour-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:100%;min-height:44px;padding:5px 8px;line-height:1.3;text-align:center;white-space:normal}
.arena-layout .colour-button .colour-kicker{font-size:12px;font-weight:400;color:#aebfba}
.arena-layout .colour-button strong{font-size:15px}
.arena-layout .colour-button small{font-size:12px;font-weight:400;color:#c9d6d3}
.arena-layout .colour-button.ready{border-color:#e4c77f;box-shadow:0 0 0 2px #e4c77f40,inset 0 0 0 1px #e4c77f40}
.arena-layout .attack-counter{font-size:12px;line-height:1.4;color:#f0d79c}
.arena-layout .attack-counter[hidden]{display:none}
@media(max-width:760px) and (min-height:501px){
  :where(body:not(.xr-staged)) .arena-layout .turn-console .colour-console{grid-column:1/-1;grid-row:2}
  :where(body:not(.xr-staged)) .arena-layout .colour-button{flex-direction:row;flex-wrap:wrap;column-gap:8px;min-height:44px}
}
@media(max-height:500px){
  :where(body:not(.xr-staged)) .arena-layout .colour-button{padding:3px 4px}
  :where(body:not(.xr-staged)) .arena-layout .colour-button .colour-kicker{display:none}
  :where(body:not(.xr-staged)) .arena-layout .colour-button strong{font-size:13px}
  /* One line under the leader: the name, struck through once used (the title and the console say it in words). */
  :where(body:not(.xr-staged)) .arena-layout .player-panel .colour-ability-status .colour-state{display:none}
}

/* 15 — a hand card with two commands (play as a unit, or equip): share the row instead of
   squeezing the play button to nothing. */
.arena-layout .hand-context .dock-buttons .command-button{flex:1 1 0;min-width:0}
@media(max-width:760px) and (min-height:501px){
  :where(body:not(.xr-staged)) .arena-layout .hand-context .dock-buttons:has([data-action="equip-card"]){grid-template-columns:minmax(0,1fr) minmax(0,1fr) 58px}
}
/* A field card's panel can hold several ability buttons; it opens downward when there is no room above. */
.arena-layout .context-actions.inline-context.flip-below{top:calc(100% + 8px);bottom:auto}
.arena-layout .context-actions.inline-context.flip-above{top:auto;bottom:calc(100% + 8px)}
.arena-layout .context-actions.inline-context{overflow:auto}
.arena-layout .context-actions .granted-ability{font-size:13px;line-height:1.55;color:#d9cfae;margin:4px 0}
.arena-layout .context-actions .ability-button{width:100%;min-height:44px;white-space:normal}
.arena-layout .equip-grant{color:#d9cfae}
.arena-layout .hand-context .dock-buttons:has([data-action="equip-card"]) .command-icon{display:none}
.arena-layout .hand-context .dock-buttons:has([data-action="equip-card"]) .command-button{padding-inline:8px}
/* The cost is printed on the card itself; two commands need the room for their words. */
.arena-layout .hand-context .dock-buttons:has([data-action="equip-card"]) .command-cost{display:none}
.arena-layout .hand-context .dock-buttons:has([data-action="equip-card"]) .command-copy strong{font-size:14px;line-height:1.25;white-space:normal}
@media(max-height:500px),(max-width:760px){:where(body:not(.xr-staged)) .arena-layout .hand-context .dock-buttons:has([data-action="equip-card"]) .command-copy strong{font-size:13px}}
.arena-layout .lethal-warning{margin-block:10px;padding:8px 12px;border-left:3px solid #f2a88c;border-radius:4px;background:#5b26224d;color:#ffd8c8;font-weight:700}
/* Thumbnails in choice dialogs: the card art has a negative z-index and fell behind the option's background. */
.effect-thumb,.defense-portrait{isolation:isolate}
.arena-layout .colour-button .why-short{display:none}
@media(max-height:500px){
  :where(body:not(.xr-staged)) .arena-layout .colour-button .why-long{display:none}
  :where(body:not(.xr-staged)) .arena-layout .colour-button .why-short{display:inline}
  /* The player's own status is on the console button; the rail keeps the opponent's. */
  :where(body:not(.xr-staged)) .arena-layout #player-status .colour-ability-status{display:none}
}
@media(max-height:500px){
  /* With the coach bar or the room bar above the board, the column is too short for everything:
     the phase name is already on the phase button's caption line, and the opponent's colour status yields. */
  :where(body:not(.xr-staged)) .arena-layout .game-shell.coach-on:not(#no-id) .phase-information,
  :where(body:not(.xr-staged)) .arena-layout.online-game .phase-information{display:none}
  :where(body:not(.xr-staged)) .arena-layout .game-shell.coach-on:not(#no-id) .colour-ability-status{display:none}
}
/* A field card with ability buttons: keep every button inside the panel without scrolling
   (the full text stays one tap away under "รายละเอียด"). */
.arena-layout .inline-context:has(.ability-button) .context-effect{max-height:52px;overflow:hidden}
.arena-layout .inline-context:has(.ability-button) .command-button small{display:none}
.arena-layout .inline-context:has(.ability-button) .dock-buttons button{min-height:44px}
.arena-layout .inline-context:has(.ability-button) [data-action="attack"]:disabled{display:none!important}
.arena-layout .inline-context:has(.ability-button):has([data-action="attack"]:disabled) .action-reason{display:none}

}

/* ================= Overdrive Chronicle Start Screen (Open Key-Visual Stage & Sculpted CCG HUD) ================= */
.arena-layout .start-screen {
  --active-element: #80b9df;
  --frame-hi: #e8c98b;
  --frame-mid: #8f6b3a;
  --frame-lo: #30271b;
  height: calc(100*var(--xvh,1dvh));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: clamp(10px, calc(2*var(--xvh,1vh)), 22px) clamp(20px, calc(4*var(--xvw,1vw)), 56px);
  background:
    radial-gradient(ellipse 52% 62% at 24% 58%, color-mix(in srgb, var(--active-element), transparent 84%), transparent 72%),
    linear-gradient(180deg, #050a11c8 0%, #050a1118 16%, #050a1120 62%, #040810f2 100%),
    linear-gradient(96deg, #050a1210 0%, #050a1224 34%, #050c16bf 56%, #050a14e6 74%, #040810f8 100%),
    url('assets/bg.jpg') 36% center / cover no-repeat;
  color: #f2ead8;
  font-family: 'Kanit', sans-serif;
}

.start-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding-bottom: clamp(6px, calc(1.2*var(--xvh,1vh)), 12px);
  border-bottom: 1px solid #e2c58938;
  flex: none;
}
.start-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.start-logo {
  width: 42px;
  height: 42px;
  clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%);
  border-radius: 0;
  object-fit: cover;
  filter: drop-shadow(0 0 1px #f5d896) drop-shadow(0 4px 10px #000d);
}
.start-wordmark {
  display: flex;
  flex-direction: column;
  font: 800 clamp(21px, calc(2.2*var(--xvw,1vw)), 28px)/1.02 'Taviraj', Georgia, serif;
  letter-spacing: 0.05em;
  color: #fbf0d5;
  text-shadow: 0 2px 10px #000e, 0 0 24px #0009;
  text-transform: uppercase;
}
.start-wordmark span {
  display: none;
}
.start-tools {
  display: flex;
  align-items: center;
  gap: 9px;
}
.start-tools .quiet-button,
.start-tools .icon-button {
  --tcut: 11px;
  position: relative;
  min-height: 38px;
  padding: 6px 18px;
  border: 0 !important;
  border-radius: 0 !important;
  clip-path: polygon(var(--tcut) 0, calc(100% - var(--tcut)) 0, 100% 50%, calc(100% - var(--tcut)) 100%, var(--tcut) 100%, 0 50%);
  background: linear-gradient(180deg, #e7c98a 0%, #8c6630 50%, #442f12 100%) !important;
  box-shadow: none !important;
  filter: drop-shadow(0 4px 10px #000b);
  color: #f4ead4;
  font-size: 13.5px;
  font-weight: 600;
  isolation: isolate;
  transition: transform 0.14s ease, filter 0.14s ease;
}
.start-tools .quiet-button::before,
.start-tools .icon-button::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  z-index: -1;
  clip-path: polygon(calc(var(--tcut) - 1px) 0, calc(100% - var(--tcut) + 1px) 0, 100% 50%, calc(100% - var(--tcut) + 1px) 100%, calc(var(--tcut) - 1px) 100%, 0 50%);
  background: linear-gradient(180deg, #162432f2 0%, #09111af6 100%);
}
.start-tools .icon-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  clip-path: polygon(28% 0, 72% 0, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0 72%, 0 28%);
}
.start-tools .icon-button::before {
  clip-path: polygon(28% 0, 72% 0, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0 72%, 0 28%);
}
.start-tools button:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.12) drop-shadow(0 6px 12px #000d);
  color: #fff9ea;
}

.start-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(400px, 560px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, calc(3.8*var(--xvw,1vw)), 56px);
  max-width: 1280px;
  width: 100%;
  margin: auto;
  padding: clamp(4px, calc(1.2*var(--xvh,1vh)), 14px) 0;
}

/* Left Showcase: Open Key-Visual Stage with Standing Leader + Signature Card + Open Editorial Lore */
.start-showcase {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: clamp(6px, calc(1.2*var(--xvh,1vh)), 12px);
  position: relative;
  min-height: 0;
}
.start-showcase:before { display: none; }

.start-stage-pair {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  min-height: clamp(210px, calc(42*var(--xvh,1vh)), 340px);
  padding-left: clamp(4px, calc(1.2*var(--xvw,1vw)), 18px);
}

/* Full-body Leader Cut-out on the Left Stage */
.start-leader-preview {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  margin-right: -28px;
}
.start-leader-standee {
  position: relative;
  width: clamp(170px, calc(21*var(--xvw,1vw)), 260px);
  height: clamp(210px, calc(41*var(--xvh,1vh)), 336px);
  pointer-events: none;
}
.start-leader-cutout {
  position: absolute;
  inset: -8px -14px 0 -14px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
  -webkit-mask: linear-gradient(180deg, #000 84%, #0000 100%);
  mask: linear-gradient(180deg, #000 84%, #0000 100%);
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--active-element), transparent 65%)) drop-shadow(0 12px 24px #000d);
}
.start-ldr-box {
  --lh: clamp(136px, calc(24*var(--xvh,1vh)), 186px);
  --lw: calc(var(--lh) * 0.78);
  position: relative;
  width: var(--lw);
  height: var(--lh);
  margin: 0 18px 12px 8px;
}
.start-ldr-box .ldr-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.start-ldr-box .ldr-shape {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--lh) * 0.14);
  background: linear-gradient(145deg, var(--frame-hi), var(--frame-mid) 34%, var(--frame-lo) 65%, var(--frame-mid));
  box-shadow: 0 0 0 1px #05090c, inset 0 1px 0 #fff7, 0 12px 28px #000d;
}
.start-ldr-box .ldr-shape::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: calc(var(--lh) * 0.14 - 3px);
  background: linear-gradient(150deg, #2b3235, #101619 65%);
}
.start-ldr-box .ldr-art {
  position: absolute;
  inset: 6px;
  border-radius: calc(var(--lh) * 0.14 - 5px);
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #4a4534, #1b1912 70%);
}
.start-ldr-box .ldr-art .card-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 18%;
}
.start-ldr-caption {
  --ccut: 9px;
  position: relative;
  z-index: 4;
  margin-top: -12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 0;
  clip-path: polygon(var(--ccut) 0, calc(100% - var(--ccut)) 0, 100% 50%, calc(100% - var(--ccut)) 100%, var(--ccut) 100%, 0 50%);
  background: linear-gradient(180deg, #162332f5, #09111af8);
  box-shadow: inset 0 1px 0 #f0d29066;
  filter: drop-shadow(0 4px 10px #000c);
  font-size: 11.5px;
  font-weight: 600;
  color: #f4e6c6;
  white-space: nowrap;
}
.ldr-caption-gem {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--active-element);
  box-shadow: 0 0 6px var(--active-element);
}

/* Signature Hero Card beside the Leader */
.start-card {
  width: min(calc(20*var(--xvw,1vw)), 212px, calc((calc(100*var(--xvh,1dvh)) - 260px) * 0.62));
  min-width: 148px;
  position: relative;
  z-index: 3;
  animation: none;
  transform: rotate(2deg);
  transform-origin: bottom center;
  filter: drop-shadow(0 16px 30px #000e) drop-shadow(0 0 1px #e8ca8a66);
  transition: transform 0.22s ease;
}
.start-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

/* Open Editorial Deck Lore (No Rectangular Dark Box Cutting Across the Stage!) */
.start-hero-plate {
  position: relative;
  width: 100%;
  max-width: 490px;
  padding: 10px 4px 4px 0;
  border-radius: 0;
  background: none !important;
  backdrop-filter: none !important;
  border: 0 !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.start-hero-plate::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 88%;
  height: 2px;
  background: linear-gradient(90deg, var(--active-element) 0%, #f2d594 34%, transparent 100%);
  box-shadow: 0 0 10px color-mix(in srgb, var(--active-element), transparent 40%);
}
.start-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.start-deck-tag {
  --dcut: 7px;
  display: inline-flex;
  align-items: center;
  padding: 2px 11px;
  border-radius: 0;
  clip-path: polygon(var(--dcut) 0, calc(100% - var(--dcut)) 0, 100% 50%, calc(100% - var(--dcut)) 100%, var(--dcut) 100%, 0 50%);
  background: color-mix(in srgb, var(--active-element), #08121c 68%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff8e6;
  text-shadow: 0 1px 3px #000;
}
.start-screen .start-deck-summary {
  display: inline;
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 11.5px;
  color: #cad8e2;
  text-shadow: 0 1px 6px #000, 0 0 12px #000;
}
.start-deck-name {
  font: 800 clamp(22px, calc(2.3*var(--xvw,1vw)), 30px)/1.14 'Taviraj', serif;
  color: #fff7e2;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px #000, 0 0 22px #000e;
}
.start-screen .start-deck-description {
  display: block;
  font-size: 13.5px;
  line-height: 1.42;
  color: #e4eef5;
  margin: 0 0 2px;
  text-shadow: 0 1px 6px #000, 0 2px 14px #000e;
}
.start-hero-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.start-view-deck {
  padding: 0 !important;
  min-height: 22px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #f7da96 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: 0 1px 6px #000, 0 0 12px #000 !important;
  white-space: nowrap;
}
.start-view-deck:hover {
  color: #fff8e6 !important;
  text-decoration: underline;
}
.start-screen .start-note { display: none; }

/* Right Column: Open Floating CCG HUD (NO Rectangular Container Box!) */
.start-controls {
  padding: 4px 0;
  border-radius: 0;
  background: none !important;
  backdrop-filter: none !important;
  border: 0 !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, calc(1.9*var(--xvh,1vh)), 18px);
  min-width: 0;
}
.start-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.start-leader-section {
  position: relative;
  padding-top: clamp(9px, calc(1.4*var(--xvh,1vh)), 13px);
  border-top: 0;
}
.start-leader-section::before,
.start-command-dock::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e5c68766 20%, #f5dca299 50%, #e5c68766 80%, transparent 100%);
}
.start-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.start-screen .start-mode {
  display: block;
  order: 2;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #e4c98f;
  text-shadow: 0 1px 6px #000;
  margin: 0;
}
.start-controls h1 {
  font: 800 clamp(20px, calc(1.95*var(--xvw,1vw)), 25px)/1.18 'Taviraj', serif;
  color: #fff6e0;
  text-shadow: 0 2px 10px #000e;
  margin: 0;
}
.start-sub-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ebd6a7;
  text-shadow: 0 1px 6px #000;
}

/* 5 Sculpted Heraldic Deck Banners (Chamfered Crest Silhouette, Not Rounded Boxes) */
.start-decks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 9px;
}
.start-decks .start-element {
  --ecut: 9px;
  position: relative;
  min-height: clamp(106px, calc(15*var(--xvh,1vh)), 134px);
  padding: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  overflow: hidden;
  clip-path: polygon(var(--ecut) 0, calc(100% - var(--ecut)) 0, 100% var(--ecut), 100% calc(100% - 11px), 50% 100%, 0 calc(100% - 11px), 0 var(--ecut));
  background: linear-gradient(180deg, #b8985d 0%, #5c4522 100%);
  box-shadow: none !important;
  filter: drop-shadow(0 6px 14px #000c);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.16s ease, filter 0.16s ease;
}
.start-decks .start-element::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  z-index: 0;
  clip-path: polygon(calc(var(--ecut) - 1px) 0, calc(100% - var(--ecut) + 1px) 0, 100% calc(var(--ecut) - 1px), 100% calc(100% - 10px), 50% 100%, 0 calc(100% - 10px), 0 calc(var(--ecut) - 1px));
  background: #081018;
}
.start-decks .start-element small,
.start-decks .start-element .deck-choice-label {
  display: none !important;
}
.start-decks .start-element .deck-emblem {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  width: 21px;
  height: 21px;
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: #071019f0;
  border: 0;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--element), #fff 25%);
  color: var(--element);
  display: grid !important;
  place-items: center;
}
.start-decks .start-element .deck-emblem svg {
  width: 11px !important;
  height: 11px !important;
}
.start-decks .start-element .deck-hero {
  position: absolute;
  inset: 1.5px;
  width: calc(100% - 3px) !important;
  height: calc(100% - 3px) !important;
  margin: 0 !important;
  border-radius: 0 !important;
  clip-path: polygon(calc(var(--ecut) - 1px) 0, calc(100% - var(--ecut) + 1px) 0, 100% calc(var(--ecut) - 1px), 100% calc(100% - 10px), 50% 100%, 0 calc(100% - 10px), 0 calc(var(--ecut) - 1px));
  z-index: 1;
}
.start-decks .start-element .deck-hero .card-art {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  background-size: cover;
  background-position: 50% 16%;
  transition: transform 0.22s ease, filter 0.22s ease;
  filter: brightness(0.84) saturate(0.95);
}
.start-decks .start-element::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  z-index: 2;
  clip-path: polygon(calc(var(--ecut) - 1px) 0, calc(100% - var(--ecut) + 1px) 0, 100% calc(var(--ecut) - 1px), 100% calc(100% - 10px), 50% 100%, 0 calc(100% - 10px), 0 calc(var(--ecut) - 1px));
  background:
    linear-gradient(180deg, #0000 32%, #060b11d8 72%, #05090ef8 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--element), transparent 62%) 0%, transparent 36%);
  pointer-events: none;
}
.start-decks .start-element strong {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 5px 4px 11px;
  font: 700 clamp(12px, calc(1*var(--xvw,1vw)), 13.5px)/1.18 'Kanit', sans-serif;
  color: #f4ecda;
  text-align: center;
  text-shadow: 0 1px 4px #000, 0 0 8px #000c;
  min-height: 0;
}
.start-decks .start-element:not(:disabled):hover {
  transform: translateY(-4px);
  background: linear-gradient(180deg, #ffe7a8 0%, var(--element) 100%);
  filter: drop-shadow(0 10px 18px #000e);
}
.start-decks .start-element:not(:disabled):hover .deck-hero .card-art {
  transform: scale(1.06);
  filter: brightness(1.04) saturate(1.08);
}
.start-decks .start-element.active {
  outline: 0;
  transform: translateY(-3px);
  background: linear-gradient(180deg, #fff3c8 0%, #f3cc78 45%, var(--element) 100%);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--element), transparent 45%)) drop-shadow(0 10px 20px #000e);
}
.start-decks .start-element.active .deck-hero .card-art {
  filter: brightness(1.08) saturate(1.12);
}
.start-decks .start-element.active strong {
  color: #fff9ea;
}
.element-option .deck-picked {
  z-index: 4;
  right: 6px;
  top: 6px;
  width: 21px;
  height: 21px;
  padding: 0;
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  border: 0;
  background: linear-gradient(180deg, #ffe7a8, #c78d32);
  color: #1f1204;
  box-shadow: none;
}
.element-option .deck-picked svg {
  display: block;
  width: 12px;
  height: 12px;
  margin: 0;
  stroke-width: 2.6;
}

/* Leader Character Switcher (Sculpted Hexagonal Game Plaques) */
.start-leaders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.leader-pick-option {
  --lcut: 11px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 5px 12px;
  border-radius: 0 !important;
  border: 0 !important;
  clip-path: polygon(var(--lcut) 0, calc(100% - var(--lcut)) 0, 100% 50%, calc(100% - var(--lcut)) 100%, var(--lcut) 100%, 0 50%);
  background: linear-gradient(180deg, #a68954 0%, #523d1e 100%) !important;
  box-shadow: none !important;
  filter: drop-shadow(0 4px 10px #000b);
  color: #dfd5be;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.leader-pick-option::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  z-index: -1;
  clip-path: polygon(calc(var(--lcut) - 1px) 0, calc(100% - var(--lcut) + 1px) 0, 100% 50%, calc(100% - var(--lcut) + 1px) 100%, calc(var(--lcut) - 1px) 100%, 0 50%);
  background: linear-gradient(180deg, #13202ef2 0%, #091119f6 100%);
}
.leader-pick-option:hover {
  transform: translateY(-1.5px);
  background: linear-gradient(180deg, #efd292 0%, #8f682e 100%) !important;
}
.leader-pick-option.active {
  background: linear-gradient(180deg, #fff1c2 0%, #e7b85c 50%, #996820 100%) !important;
  filter: drop-shadow(0 0 10px #f2b64a44) drop-shadow(0 5px 12px #000d);
  color: #fff5dc;
}
.leader-pick-option.active::before {
  background: linear-gradient(180deg, #2e2514f5 0%, #17130af8 100%);
}
.leader-pick-thumb {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 0;
  clip-path: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%);
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #3d4a52, #151a1e 75%);
  box-shadow: inset 0 0 0 1.5px #e5c481;
  position: relative;
}
.leader-pick-thumb > span {
  position: absolute;
  inset: -3px -3px 0 -3px;
  background-size: cover;
  background-position: 50% 10%;
  background-repeat: no-repeat;
}
.leader-pick-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.leader-pick-copy strong {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leader-pick-copy small {
  font-size: 10.5px;
  color: #9ab0bd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leader-pick-option.active .leader-pick-copy small {
  color: #f0d290;
}

/* Sculpted Command Dock: Forged Fantasy Battle Crest Buttons */
.start-command-dock {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: clamp(9px, calc(1.4*var(--xvh,1vh)), 13px);
  border-top: 0;
}
.start-screen .start-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(144px, 1fr);
  gap: 10px;
  margin: 0;
}
.start-screen .start-play {
  --pcut: 16px;
  position: relative;
  animation: none;
  min-height: 60px;
  padding: 9px 20px;
  border-radius: 0 !important;
  border: 0 !important;
  clip-path: polygon(var(--pcut) 0, calc(100% - var(--pcut)) 0, 100% 50%, calc(100% - var(--pcut)) 100%, var(--pcut) 100%, 0 50%);
  background: linear-gradient(180deg, #fff5cf 0%, #dca347 45%, #6e4510 100%) !important;
  box-shadow: none !important;
  filter: drop-shadow(0 8px 18px #000d) drop-shadow(0 0 14px #f2b64a38);
  color: #1f1406;
  display: flex;
  align-items: center;
  gap: 12px;
  isolation: isolate;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.start-screen .start-play::before {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: -1;
  clip-path: polygon(calc(var(--pcut) - 1px) 0, calc(100% - var(--pcut) + 1px) 0, 100% 50%, calc(100% - var(--pcut) + 1px) 100%, calc(var(--pcut) - 1px) 100%, 0 50%);
  background: linear-gradient(180deg, #f7dd9c 0%, #ce9740 48%, #94631e 100%);
  box-shadow: inset 0 2px 1px #fff9;
}
.start-screen .start-play:not(:disabled):hover {
  transform: translateY(-2px);
  filter: brightness(1.06) drop-shadow(0 10px 22px #000e) drop-shadow(0 0 20px #f2b64a66);
}
.start-screen .button-emblem {
  width: 34px;
  height: 34px;
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform: none;
  background: #231606f2;
  border: 0;
  box-shadow: inset 0 0 0 1.5px #f7dda0;
  color: #f7dda0;
}
.start-screen .button-emblem > svg {
  transform: none;
  width: 17px;
  height: 17px;
}
.start-screen .start-play-copy strong {
  font: 800 18px/1.16 'Kanit', sans-serif;
  color: #1c1104;
  text-shadow: 0 1px 0 #fff7;
}
.start-screen .start-play-copy small {
  display: block;
  font-size: 11.5px;
  line-height: 1.22;
  color: #38230a;
  font-weight: 700;
}
.start-screen .start-tutorial-btn {
  --bcut: 15px;
  position: relative;
  min-height: 60px;
  padding: 8px 16px;
  border-radius: 0 !important;
  border: 0 !important;
  clip-path: polygon(var(--bcut) 0, calc(100% - var(--bcut)) 0, 100% 50%, calc(100% - var(--bcut)) 100%, var(--bcut) 100%, 0 50%);
  background: linear-gradient(180deg, #ebd094 0%, #8f6930 50%, #463112 100%) !important;
  box-shadow: none !important;
  filter: drop-shadow(0 6px 14px #000c);
  color: #f6ecd6;
  font-size: 14.5px;
  font-weight: 700;
  isolation: isolate;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.start-screen .start-tutorial-btn::before {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: -1;
  clip-path: polygon(calc(var(--bcut) - 1px) 0, calc(100% - var(--bcut) + 1px) 0, 100% 50%, calc(100% - var(--bcut) + 1px) 100%, calc(var(--bcut) - 1px) 100%, 0 50%);
  background: linear-gradient(180deg, #1b2c3df5 0%, #0d1722fa 100%);
}
.start-screen .start-tutorial-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1) drop-shadow(0 8px 18px #000e);
  color: #fff8e6;
}

/* Friend Room Strip — Open HUD Row with Sculpted Game Buttons (No Outer Box) */
.start-screen .friend-entry {
  position: relative;
  margin: 0;
  padding: 8px 2px 2px;
  border-radius: 0;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.start-screen .friend-entry::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #d8b87844 25%, #d8b87844 75%, transparent 100%);
}
.start-screen .friend-entry-head {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left;
  gap: 1px !important;
  min-width: 0;
}
.start-screen .friend-entry strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #f4e8ce;
  text-shadow: 0 1px 6px #000;
}
.start-screen .friend-entry > div > span {
  display: block;
  font-size: 11px;
  color: #b4c8d6;
  text-shadow: 0 1px 4px #000;
}
.start-screen .friend-entry-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  justify-content: flex-end;
}
.start-screen .friend-entry-actions > button {
  --fcut: 11px;
  position: relative;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 0 !important;
  border-radius: 0 !important;
  clip-path: polygon(var(--fcut) 0, calc(100% - var(--fcut)) 0, 100% 50%, calc(100% - var(--fcut)) 100%, var(--fcut) 100%, 0 50%);
  box-shadow: none !important;
  filter: drop-shadow(0 4px 10px #000b);
  white-space: nowrap;
  isolation: isolate;
  transition: transform 0.14s ease, filter 0.14s ease;
}
.start-screen .friend-entry-actions > .secondary-button {
  background: linear-gradient(180deg, #e7c98a 0%, #8c6630 50%, #442f12 100%) !important;
  color: #f6ecd6;
}
.start-screen .friend-entry-actions > .secondary-button::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  z-index: -1;
  clip-path: polygon(calc(var(--fcut) - 1px) 0, calc(100% - var(--fcut) + 1px) 0, 100% 50%, calc(100% - var(--fcut) + 1px) 100%, calc(var(--fcut) - 1px) 100%, 0 50%);
  background: linear-gradient(180deg, #1d2f40f5 0%, #0e1924fa 100%);
}
.start-screen .friend-entry-actions > .quiet-button {
  background: linear-gradient(180deg, #9eb8cc 0%, #4c6478 50%, #22303c 100%) !important;
  color: #e4f0f8;
}
.start-screen .friend-entry-actions > .quiet-button::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  z-index: -1;
  clip-path: polygon(calc(var(--fcut) - 1px) 0, calc(100% - var(--fcut) + 1px) 0, 100% 50%, calc(100% - var(--fcut) + 1px) 100%, calc(var(--fcut) - 1px) 100%, 0 50%);
  background: linear-gradient(180deg, #101b26f5 0%, #081018fa 100%);
}
.start-screen .friend-entry-actions > button:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.12) drop-shadow(0 6px 12px #000d);
}
.start-screen .online-resume {
  width: 100%;
  min-height: 34px !important;
  font-size: 12.5px;
}
.start-screen .start-resume {
  --rcut: 10px;
  padding: 7px 16px;
  border-radius: 0;
  border: 0;
  clip-path: polygon(var(--rcut) 0, calc(100% - var(--rcut)) 0, 100% 50%, calc(100% - var(--rcut)) 100%, var(--rcut) 100%, 0 50%);
  background: linear-gradient(90deg, #162330f0, #0c141df0);
  box-shadow: inset 0 1px 0 #e5c68755;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.start-screen .start-resume p { margin: 0; font-size: 12px; color: #dcd2bc; }
.start-screen .start-resume button { min-height: 32px !important; font-size: 12.5px; }

/* Sculpted Modal Dialogs & Pause Menu (No Geometric Buttons, Fits 1280x800 Without Scrollbar) */
.arena-layout .modal {
  border-radius: 0 !important;
  border: 1.5px solid #d8b87888 !important;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
  background: radial-gradient(ellipse at 50% 0%, #182836fa 0%, #0a121bfa 75%) !important;
}
.arena-layout .modal .primary-button,
.arena-layout .modal .secondary-button {
  --mcut: 11px;
  border-radius: 0 !important;
  border: 0 !important;
  clip-path: polygon(var(--mcut) 0, calc(100% - var(--mcut)) 0, 100% 50%, calc(100% - var(--mcut)) 100%, var(--mcut) 100%, 0 50%);
  padding-inline: 20px !important;
}
.arena-layout .modal .primary-button {
  background: linear-gradient(180deg, #f7de9e 0%, #cc933b 50%, #8c5c18 100%) !important;
  color: #1f1304 !important;
  box-shadow: inset 0 1.5px 0 #fff9 !important;
}
.arena-layout .modal .secondary-button {
  background: linear-gradient(180deg, #243648 0%, #131f2b 100%) !important;
  color: #f2e6ce !important;
  box-shadow: inset 0 1px 0 #e5c68755 !important;
}
.arena-layout .menu-modal {
  padding: 18px 22px !important;
  gap: 10px !important;
}
.arena-layout .menu-modal .menu-heading h2 {
  font-size: 22px;
  margin: 0;
}
.arena-layout .menu-modal .menu-heading p {
  margin: 2px 0 0;
}
.arena-layout .menu-modal .game-menu {
  gap: 7px !important;
  margin-block: 8px !important;
}
.arena-layout .menu-modal .menu-tile {
  --tcut: 9px;
  min-height: 46px !important;
  padding: 6px 14px !important;
  border-radius: 0 !important;
  border: 0 !important;
  clip-path: polygon(var(--tcut) 0, calc(100% - var(--tcut)) 0, 100% var(--tcut), 100% calc(100% - var(--tcut)), calc(100% - var(--tcut)) 100%, var(--tcut) 100%, 0 calc(100% - var(--tcut)), 0 var(--tcut));
  background: linear-gradient(90deg, #162432f0, #0f1924f0) !important;
  box-shadow: inset 0 0 0 1px #d8b87838 !important;
}
.arena-layout .menu-modal .menu-tile:hover {
  background: linear-gradient(90deg, #203447f5, #152331f5) !important;
  box-shadow: inset 0 0 0 1.5px #f0d29088 !important;
}

/* Responsive adjustments for mobile landscape & narrow screens */
@media (max-width: 960px) {
  :where(body:not(.xr-staged)) .start-layout {
    grid-template-columns: minmax(230px, 340px) minmax(340px, 1fr);
    gap: 18px;
  }
  :where(body:not(.xr-staged)) .start-leader-standee { width: 150px; height: 220px; }
}
@media (max-height: 500px) {
  :where(body:not(.xr-staged)) .arena-layout .start-screen { padding: 4px 14px 6px; }
  :where(body:not(.xr-staged)) .start-header { min-height: 32px; padding-bottom: 3px; }
  :where(body:not(.xr-staged)) .start-logo { width: 24px; height: 24px; }
  :where(body:not(.xr-staged)) .start-wordmark { font-size: 15px; }
  :where(body:not(.xr-staged)) .start-tools .quiet-button, :where(body:not(.xr-staged)) .start-tools .icon-button { min-height: 27px; padding: 2px 10px; font-size: 11px; }
  :where(body:not(.xr-staged)) .start-tools .icon-button { width: 27px; min-width: 27px; height: 27px; }
  :where(body:not(.xr-staged)) .start-layout { grid-template-columns: minmax(195px, 260px) minmax(320px, 1fr); gap: 12px; padding: 2px 0; }
  :where(body:not(.xr-staged)) .start-showcase { gap: 4px; }
  :where(body:not(.xr-staged)) .start-stage-pair { min-height: 150px; padding-left: 0; }
  :where(body:not(.xr-staged)) .start-leader-standee { width: 112px; height: 154px; }
  :where(body:not(.xr-staged)) .start-leader-preview { margin-right: -18px; }
  :where(body:not(.xr-staged)) .start-ldr-box { --lh: 100px; margin: 0 10px 6px 2px; }
  :where(body:not(.xr-staged)) .start-ldr-caption { font-size: 9.5px; padding: 1px 8px; margin-top: -8px; }
  :where(body:not(.xr-staged)) .start-card { width: min(calc(16*var(--xvw,1vw)), 122px); min-width: 102px; }
  :where(body:not(.xr-staged)) .start-hero-plate { padding: 5px 4px 2px 0; gap: 1px; }
  :where(body:not(.xr-staged)) .start-deck-tag { font-size: 9.5px; padding: 1px 7px; }
  :where(body:not(.xr-staged)) .start-deck-name { font-size: 13.5px; }
  :where(body:not(.xr-staged)) .start-screen .start-deck-description { font-size: 10.5px; line-height: 1.25; margin: 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  :where(body:not(.xr-staged)) .start-view-deck { font-size: 11px !important; min-height: 18px !important; }
  :where(body:not(.xr-staged)) .start-screen .start-deck-summary { display: none; }
  :where(body:not(.xr-staged)) .start-controls { padding: 2px 0; gap: 5px; }
  :where(body:not(.xr-staged)) .start-section { gap: 3px; }
  :where(body:not(.xr-staged)) .start-leader-section, :where(body:not(.xr-staged)) .start-command-dock { padding-top: 4px; }
  :where(body:not(.xr-staged)) .start-controls h1 { font-size: 15px; }
  :where(body:not(.xr-staged)) .start-sub-label { font-size: 10px; }
  :where(body:not(.xr-staged)) .start-decks .start-element { min-height: 58px; }
  :where(body:not(.xr-staged)) .start-decks .start-element .deck-emblem { width: 15px; height: 15px; top: 3px; left: 3px; }
  :where(body:not(.xr-staged)) .start-decks .start-element .deck-emblem svg { width: 9px !important; height: 9px !important; }
  :where(body:not(.xr-staged)) .start-decks .start-element strong { font-size: 10.5px; padding: 2px 3px 5px; }
  :where(body:not(.xr-staged)) .leader-pick-option { min-height: 30px; padding: 2px 7px; gap: 5px; }
  :where(body:not(.xr-staged)) .leader-pick-thumb { width: 22px; height: 22px; }
  :where(body:not(.xr-staged)) .leader-pick-copy strong { font-size: 10.5px; }
  :where(body:not(.xr-staged)) .leader-pick-copy small { display: none; }
  :where(body:not(.xr-staged)) .start-command-dock { gap: 5px; }
  :where(body:not(.xr-staged)) .start-screen .start-play, :where(body:not(.xr-staged)) .start-screen .start-tutorial-btn { min-height: 36px; padding: 4px 12px; font-size: 12.5px; }
  :where(body:not(.xr-staged)) .start-screen .button-emblem { width: 24px; height: 24px; }
  :where(body:not(.xr-staged)) .start-screen .button-emblem > svg { width: 14px; height: 14px; }
  :where(body:not(.xr-staged)) .start-screen .start-play-copy strong { font-size: 13.5px; }
  :where(body:not(.xr-staged)) .start-screen .start-play-copy small { display: none; }
  :where(body:not(.xr-staged)) .start-screen .friend-entry { padding: 4px 0 0; gap: 6px; }
  :where(body:not(.xr-staged)) .start-screen .friend-entry strong { font-size: 12px; }
  :where(body:not(.xr-staged)) .start-screen .friend-entry > div > span { display: none; }
  :where(body:not(.xr-staged)) .start-screen .friend-entry-actions > button { min-height: 28px; padding: 2px 10px; font-size: 11.5px; }
}
/* Also upgrade deck tiles in online lobby, new-game modal, and rematch modal */
.newgame-modal .deck-grid,
.online-decks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px;
}
.newgame-modal .element-option,
.online-decks .element-option {
  --ecut: 8px;
  position: relative;
  min-height: 98px;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
  clip-path: polygon(var(--ecut) 0, calc(100% - var(--ecut)) 0, 100% var(--ecut), 100% calc(100% - 10px), 50% 100%, 0 calc(100% - 10px), 0 var(--ecut));
  border: 1px solid #967c4e66;
  background: #0e1519;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.newgame-modal .element-option .deck-emblem,
.newgame-modal .element-option small,
.newgame-modal .element-option .deck-choice-label,
.online-decks .element-option .deck-emblem,
.online-decks .element-option small,
.online-decks .element-option .deck-choice-label {
  display: none !important;
}
.newgame-modal .element-option .deck-hero,
.online-decks .element-option .deck-hero {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  z-index: 0;
}
.newgame-modal .element-option .deck-hero .card-art,
.online-decks .element-option .deck-hero .card-art {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  background-size: cover;
  background-position: 50% 18%;
  filter: brightness(0.86) saturate(0.95);
}
.newgame-modal .element-option::after,
.online-decks .element-option::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, #0000 32%, #080d11cc 74%, #070b0ef8 100%);
  pointer-events: none;
}
.newgame-modal .element-option strong,
.online-decks .element-option strong {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 5px 4px 9px;
  font: 600 13px/1.25 'Kanit', sans-serif;
  color: #f4ecda;
  text-align: center;
  text-shadow: 0 1px 4px #000;
}
.newgame-modal .element-option.active,
.online-decks .element-option.active {
  outline: 0;
  border-color: #f0d294;
  box-shadow: 0 0 0 1px #f0d294, 0 5px 14px #000b;
}

@media (max-width: 640px) and (min-height: 501px) {
  :where(body:not(.xr-staged)) .start-layout { grid-template-columns: 1fr; }
  :where(body:not(.xr-staged)) .start-leaders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.start-screen button:focus-visible,
.modal button:focus-visible {
  outline: none !important;
  filter: brightness(1.08) drop-shadow(0 0 8px rgba(240, 210, 148, 0.55));
}

@layer legacy{
.patch-button{white-space:nowrap;color:#e6c78c!important}
.patch-label{font-size:11px;letter-spacing:.12em;color:#c8a56d}
.patch-notes{display:grid;gap:18px}.patch-notes section{padding:16px;border:1px solid #b994553b;border-radius:12px;background:#101a20}
.patch-notes h3{margin:0 0 10px;color:#edd3a1;font-size:17px}.patch-notes ul{margin:0;padding-left:22px}.patch-notes li{padding:3px 0;line-height:1.65;color:#d5dce0}
@media(max-width:760px){:where(body:not(.xr-staged)) .start-tools{flex-wrap:wrap;justify-content:flex-end;gap:6px}:where(body:not(.xr-staged)) .patch-button{font-size:12px;padding:8px!important}:where(body:not(.xr-staged)) .patch-notes section{padding:12px}}
}

.home .hm-banner {
  background:
    linear-gradient(90deg, #0b1622f7, #0b1622d9 32%, #0b16229c 58%, #0b162233 84%, #0b16221a),
    url('assets/observatory-ui/patch-013-arena.webp') center 53% / cover no-repeat,
    #0b1622;
}

@media (max-height: 500px) {
  :where(body:not(.xr-staged)) .home .hm-banner { padding-right: var(--s3); }
}
