:root {
  color-scheme: dark;
  --ink: #f4f1ea;
  --muted: #a7abb1;
  --black: #050709;
  --panel: #0b0e12;
  --panel-2: #12171d;
  --line: rgba(255, 255, 255, 0.14);
  --red: #d72b34;
  --blue: #1d9fe6;
  --gold: #efc35a;
  --cell: clamp(22px, 4.75vh, 38px);
  --header-h: 60px;
  font-family: Inter, "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--black); color: var(--ink); overflow-x: hidden; }
button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; box-shadow: 0 0 0 2px var(--black), 0 0 0 6px rgba(239,195,90,.32); }
h1[tabindex="-1"]:focus { outline: 0; }
button { touch-action: manipulation; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 99; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 16px; background: var(--ink); color: var(--black); }
.skip-link:focus { transform: none; }

.arena-header {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 9, 0.93);
  backdrop-filter: blur(18px);
}
.arena-logo { display: inline-flex; width: max-content; align-items: baseline; gap: 7px; color: var(--ink); text-decoration: none; letter-spacing: .08em; font-weight: 900; font-size: 13px; }
.arena-logo strong { color: var(--red); font-size: 19px; letter-spacing: .02em; }
.arena-header__status { display: flex; align-items: baseline; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.arena-header__status strong { color: var(--ink); font-size: 20px; letter-spacing: .05em; }
.arena-header__actions { justify-self: end; display: flex; gap: 8px; }
.arena-header__actions button, .screen-heading button, .title-actions button, .stage-progress button, .arena-dialog button, .battle-intro button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255,255,255,.035);
  font-weight: 800;
  cursor: pointer;
}
.arena-header__actions button:hover, .screen-heading button:hover, .title-actions button:hover, .stage-progress button:hover, .arena-dialog button:hover, .battle-intro button:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }

main { min-height: 100vh; }
.screen { min-height: 100vh; padding-top: var(--header-h); }
.title-screen { position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.title-screen::before { content: ""; position: absolute; inset: 0; z-index: -4; background: radial-gradient(circle at 50% 45%, rgba(215,43,52,.24), transparent 27%), linear-gradient(115deg, #090c10, #171016 48%, #07121a); }
.title-screen::after { content: ""; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.025) 80px), linear-gradient(0deg, rgba(5,7,9,.78), transparent 48%); }
.title-screen__fighters { position: absolute; z-index: -3; inset: 5% 0 0; display: flex; justify-content: center; align-items: flex-end; gap: 4vw; opacity: .74; filter: saturate(.78) contrast(1.15); }
.title-screen__fighters img { height: min(88vh, 850px); width: auto; object-fit: cover; object-position: top; mask-image: linear-gradient(#000 60%, transparent 100%); }
.title-screen__fighters img:first-child { transform: translateX(-5vw) scale(.88); }
.title-screen__fighters img:nth-child(2) { transform: scale(1.03); }
.title-screen__fighters img:last-child { transform: translateX(5vw) scale(.9); }
.title-screen__shade { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at center, rgba(0,0,0,.18) 0 26%, rgba(0,0,0,.78) 82%); }
.title-screen__content { width: min(760px, calc(100% - 36px)); margin-top: 5vh; text-align: center; text-shadow: 0 3px 22px #000; }
.title-screen h1 { display: flex; flex-direction: column; margin: 0; line-height: .78; font-size: clamp(56px, 9vw, 132px); letter-spacing: -.07em; font-style: italic; }
.title-screen h1 span { font-size: .43em; letter-spacing: .12em; transform: skew(-7deg); }
.title-screen h1 strong { color: var(--ink); text-shadow: 4px 4px 0 var(--red), 0 8px 28px #000; }
.title-screen__content > p { max-width: 660px; margin: 36px auto 0; line-height: 1.9; font-weight: 700; }
.title-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.title-actions button { min-width: 180px; min-height: 50px; }
.primary-action { border-color: transparent !important; background: linear-gradient(135deg, #ea313b, #9e111b) !important; box-shadow: 0 10px 30px rgba(215,43,52,.23); }
.title-note { color: #d6d8db; font-size: 12px; font-weight: 500 !important; }

.stage-screen { background: radial-gradient(circle at 90% 10%, rgba(29,159,230,.12), transparent 30%), #080b0e; }
.stage-shell { width: min(1240px, calc(100% - 36px)); margin: 0 auto; padding: 54px 0 90px; }
.screen-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.screen-heading p { margin: 0 0 8px; color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.screen-heading h1 { margin: 0 0 8px; font-size: clamp(36px, 5vw, 70px); line-height: 1; }
.screen-heading span { color: var(--muted); }
.stage-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stage-card { position: relative; min-height: 272px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #10141a; text-align: left; cursor: pointer; }
.stage-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; filter: saturate(.75) brightness(.76); transition: .25s ease; }
.stage-card::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(0deg, rgba(3,5,7,.98), transparent 72%); }
.stage-card__copy { position: absolute; z-index: 2; inset: auto 14px 14px; }
.stage-card__copy span { display: block; color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.stage-card__copy strong { display: block; margin-top: 3px; font-size: 16px; }
.stage-card__copy small { color: #c3c6ca; }
.stage-card__number { position: absolute; z-index: 2; top: 10px; left: 12px; font-size: 23px; font-weight: 900; }
.stage-card__stars { position: absolute; z-index: 2; top: 14px; right: 12px; color: var(--red); font-size: 10px; letter-spacing: 1px; }
.stage-card:hover:not(:disabled) img { transform: scale(1.045); filter: saturate(1) brightness(.94); }
.stage-card[aria-current="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(239,195,90,.18); }
.stage-card:disabled { cursor: not-allowed; }
.stage-card:disabled img { filter: grayscale(1) brightness(.27); }
.stage-card:disabled::after { content: "LOCKED"; position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-9deg); padding: 7px 12px; border: 1px solid rgba(255,255,255,.28); color: #c6c7c9; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.stage-card.is-cleared::after { content: "CLEARED"; position: absolute; z-index: 3; top: 11px; left: 45px; color: #78e3b1; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.stage-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-top: 24px; color: var(--muted); }
.stage-progress strong { color: var(--ink); }
.stage-progress progress { width: 100%; height: 8px; accent-color: var(--red); }

.battle-screen { position: relative; display: grid; grid-template-rows: minmax(min-content, 1fr) auto auto; height: 100vh; padding-bottom: max(10px, env(safe-area-inset-bottom)); overflow-x: hidden; overflow-y: auto; background: radial-gradient(circle at 48% 54%, rgba(215,43,52,.12), transparent 24%), linear-gradient(100deg, #0a1117, #080a0d 48%, #14100f); }
.battle-screen::before { content: ""; position: absolute; inset: var(--header-h) 0 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 69px, rgba(255,255,255,.018) 70px); }
.battle-screen::after { content: ""; position: absolute; z-index: 3; inset: var(--header-h) 0 88px; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 48%, rgba(255,255,255,.08), rgba(239,195,90,.06) 28%, rgba(215,43,52,.12) 54%, transparent 74%); mix-blend-mode: screen; }
.battle-screen.is-impact::after { animation: arena-flash .22s ease-out both; }
.battle-screen.is-impact[data-impact="match"] .battle-arena { animation: arena-impact-match .11s ease-out both; }
.battle-screen.is-impact[data-impact="chain"] .battle-arena { animation: arena-impact-chain .18s ease-out both; }
.battle-screen.is-impact[data-impact="blast"] .battle-arena { animation: arena-impact-blast .16s ease-out both; }
.battle-screen.is-impact[data-impact="mega"] .battle-arena { animation: arena-impact-mega .34s ease-out both; }
.battle-screen.is-impact[data-impact="incoming"] .battle-arena,
.battle-screen.is-impact[data-impact="rise"] .battle-arena { animation: arena-impact-rise .18s ease-out both; }
.battle-arena { position: relative; z-index: 1; display: grid; grid-template-areas: "player cpu fighter"; grid-template-columns: minmax(350px, 1fr) minmax(350px, 1fr) minmax(190px, .58fr); align-items: center; gap: clamp(10px, 2vw, 34px); width: min(1420px, calc(100% - 28px)); min-height: 0; margin: 0 auto; padding: 12px 0 2px; }
.fighter-panel { grid-area: fighter; position: relative; align-self: stretch; min-width: 0; overflow: hidden; border-left: 1px solid var(--line); }
.fighter-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 32%, rgba(215,43,52,.2), transparent 34%); }
.fighter-panel img { position: absolute; inset: 4% 50% 0 auto; transform: translateX(50%); height: 98%; width: auto; max-width: none; object-fit: cover; object-position: top; filter: saturate(.82) contrast(1.08); mask-image: linear-gradient(#000 70%, transparent 99%); }
.fighter-panel__copy { position: absolute; z-index: 2; inset: auto 12px 12px; text-align: right; text-shadow: 0 3px 16px #000; }
.fighter-panel__copy span { display: block; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.fighter-panel__copy strong { display: block; font-size: clamp(17px, 2vw, 28px); line-height: 1.2; }
.fighter-panel__copy small { color: #d7d7d7; }
.side { min-width: 0; }
.side--player { grid-area: player; }
.side--cpu { grid-area: cpu; }
.side-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 900; }
.side-title span { padding: 5px 9px; background: var(--red); font-size: 11px; letter-spacing: .13em; }
.side--cpu .side-title span { background: var(--blue); }
.side-title strong { min-width: 108px; color: var(--gold); text-align: right; font-size: 12px; letter-spacing: .08em; }
.side-layout { display: flex; justify-content: center; align-items: end; gap: 10px; }
.side-hud { display: grid; gap: 9px; width: 92px; flex: 0 0 92px; }
.next-box, .power-meter, .attack-box { padding: 8px; border: 1px solid var(--line); background: rgba(10,13,17,.85); }
.next-box > span, .power-meter > span, .attack-box > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.next-grid { display: grid; grid-template: repeat(2, 17px) / repeat(2, 17px); gap: 2px; justify-content: center; min-height: 36px; }
.next-grid .mini { position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); font-size: 12px; }
.power-meter { border-color: rgba(239,195,90,.32); background: linear-gradient(180deg, rgba(32,27,18,.9), rgba(10,13,17,.92)); }
.power-meter__track { position: relative; display: flex; align-items: flex-end; width: 30px; height: 72px; margin: 0 auto 6px; overflow: hidden; border: 2px solid #737982; border-radius: 3px; background: repeating-linear-gradient(to top, rgba(255,255,255,.2) 0 1px, transparent 1px 14px), linear-gradient(90deg, #030405, #11161b 50%, #030405); box-shadow: inset 0 0 10px #000, 0 0 0 1px rgba(239,195,90,.15); }
.power-meter__track::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.18), transparent 25% 72%, rgba(0,0,0,.42)); }
.power-meter i { display: block; width: 100%; height: 0%; margin-top: auto; background: linear-gradient(0deg, #c91d2d 0 28%, #f16a2c 52%, #efc35a 78%, #fff4bd); box-shadow: 0 0 13px var(--red), inset 0 0 6px rgba(255,255,255,.52); transition: height .28s ease-out; }
.power-meter[data-ready="true"] { border-color: var(--gold); box-shadow: 0 0 14px rgba(239,195,90,.42); }
.power-meter[data-ready="true"] .power-meter__track { border-color: #fff1ae; animation: power-ready .48s ease-in-out infinite alternate; }
.power-meter strong, .attack-box strong { display: block; text-align: center; font-size: 12px; }
.attack-box strong { color: var(--red); font-size: 22px; }
.attack-box small { display: block; margin-top: 3px; color: var(--gold); text-align: center; font-size: 7px; font-weight: 900; letter-spacing: .05em; }
.board-frame { position: relative; flex: 0 0 auto; padding: 6px 6px 22px; border: 1px solid rgba(255,255,255,.25); background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.22)); box-shadow: 0 20px 36px rgba(0,0,0,.35); }
.side--player .board-frame { border-color: rgba(215,43,52,.45); box-shadow: inset 0 0 0 1px rgba(255,255,255,.045), 0 20px 36px rgba(0,0,0,.35), 0 0 22px rgba(215,43,52,.08); }
.side--cpu .board-frame { border-color: rgba(29,159,230,.42); box-shadow: inset 0 0 0 1px rgba(255,255,255,.045), 0 20px 36px rgba(0,0,0,.35), 0 0 22px rgba(29,159,230,.08); }
.rise-arrows { position: absolute; left: 6px; right: 6px; display: grid; grid-template-columns: repeat(8, 1fr); text-align: center; color: #777f88; font-size: 8px; }
.rise-arrows { bottom: 3px; color: var(--red); font-size: 13px; font-weight: 900; }
.puzzle-board { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(8, var(--cell)); grid-template-rows: repeat(16, var(--cell)); gap: 1px; padding: 3px; overflow: visible; border: 0; background: transparent; }
.puzzle-board::before { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: #030405; clip-path: polygon(37.5% 0, 62.5% 0, 62.5% calc((var(--cell) * 2) + 5px), 100% calc((var(--cell) * 2) + 5px), 100% 100%, 0 100%, 0 calc((var(--cell) * 2) + 5px), 37.5% calc((var(--cell) * 2) + 5px)); box-shadow: inset 0 0 25px rgba(0,0,0,.9); filter: drop-shadow(0 0 1px rgba(255,255,255,.3)); }
.cell { position: relative; z-index: 1; display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.035); background: rgba(255,255,255,.017); font-size: calc(var(--cell) * .54); font-weight: 900; line-height: 1; }
.cell--void { visibility: hidden; pointer-events: none; }
.cell--color::before { content: ""; position: absolute; inset: 7%; border: 2px solid var(--piece-edge); border-radius: 48%; background: radial-gradient(circle at 34% 27%, var(--piece-light), var(--piece) 46%, var(--piece-dark)); opacity: .98; box-shadow: inset -4px -5px 7px rgba(0,0,0,.4), inset 3px 3px 5px rgba(255,255,255,.28), 0 0 7px color-mix(in srgb, var(--piece) 70%, transparent); }
.cell--color::after { content: attr(data-mark); position: relative; color: #fff; text-shadow: 0 2px 2px rgba(0,0,0,.9), 0 0 3px rgba(0,0,0,.8); font-size: .62em; }
.piece--aqua { --piece-light: #67c5ff; --piece: #0878f9; --piece-dark: #06368f; --piece-edge: #a8ddff; }
.piece--crimson { --piece-light: #ff7783; --piece: #e31f36; --piece-dark: #7e091c; --piece-edge: #ffabb2; }
.piece--jade { --piece-light: #a5f36f; --piece: #42bf36; --piece-dark: #176c22; --piece-edge: #c9ff9e; }
.piece--gold { --piece-light: #ffe875; --piece: #e5a900; --piece-dark: #865000; --piece-edge: #fff0a8; }
.piece--violet { --piece-light: #c99aff; --piece: #8c43df; --piece-dark: #472080; --piece-edge: #dfc1ff; }
.cell--active::before { animation: active-pulse .72s ease-in-out infinite alternate; }
.cell--rotate-trail { z-index: 5; opacity: .52; animation: rotate-trail .22s ease-out both; }
.cell--rotate-trail::before { animation: none; }
.cell--rotate-arrive { z-index: 6; animation: rotate-arrive .22s ease-out both; }
.cell--rotate-arrive::before { animation: rotate-core-arrive .22s ease-out both; }
.cell--bomb::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 2px solid #676d71; background: radial-gradient(circle at 34% 30%, #667078, #191c20 55%, #050506); box-shadow: inset -3px -4px 5px #000, 0 0 0 1px #000; }
.cell--bomb::after { content: ""; position: absolute; width: 35%; height: 25%; top: 2%; right: 1%; border-top: 2px solid #ae7743; border-radius: 50%; transform: rotate(-24deg); }
.cell--lit::after { width: 26%; height: 26%; top: -1%; right: 1%; border: 0; border-radius: 50%; background: #fff8b5; box-shadow: 0 0 5px 2px #ff931d, 0 0 12px 5px #e52c14; animation: fuse .25s infinite alternate; }
.cell--mega { z-index: 2; border-color: rgba(239,195,90,.5); background: #090708; }
.cell--mega::before { content: ""; position: absolute; width: 200%; height: 200%; border: 2px solid var(--gold); border-radius: 50%; background: radial-gradient(circle, #fff 0 6%, #efc35a 7% 12%, #d72b34 14% 27%, #321014 30% 62%, #050709 65%); box-shadow: inset 0 0 14px #000, 0 0 16px rgba(215,43,52,.86); animation: mega-pulse .42s ease-in-out infinite alternate; }
.cell--mega-0::before { top: 4%; left: 4%; }
.cell--mega-1::before { top: 4%; right: 4%; }
.cell--mega-2::before { bottom: 4%; left: 4%; }
.cell--mega-3::before { right: 4%; bottom: 4%; }
.cell--mega::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(239,195,90,.72); box-shadow: inset 0 0 7px rgba(239,195,90,.28); }
.cell--mega-0 { border-right-color: transparent; border-bottom-color: transparent; border-radius: 34% 0 0; }
.cell--mega-1 { border-left-color: transparent; border-bottom-color: transparent; border-radius: 0 34% 0 0; }
.cell--mega-2 { border-top-color: transparent; border-right-color: transparent; border-radius: 0 0 0 34%; }
.cell--mega-3 { border-top-color: transparent; border-left-color: transparent; border-radius: 0 0 34%; }
.cell--garbage::before { content: ""; position: absolute; inset: 8%; border: 1px solid #5a6067; background: linear-gradient(135deg, #545b62, #1e2227 55%, #343a40); box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); }
.cell--garbage::after { content: "×"; position: relative; color: #858b91; font-size: .72em; }
.cell--match-preview { z-index: 4; outline: 1px solid #fff; outline-offset: -2px; background: rgba(239,195,90,.26); box-shadow: inset 0 0 12px #fff, 0 0 10px var(--gold); animation: match-flash .34s steps(4, end) both; }
.cell--match-preview::before, .cell--match-preview::after { animation: match-core-flash .34s steps(4, end) both; }
.cell--match-clear { z-index: 5; background: radial-gradient(circle, #fff 0 12%, #efc35a 18%, rgba(215,43,52,.76) 36%, transparent 72%); box-shadow: inset 0 0 14px #fff; animation: match-clear .12s ease-out both; }
.cell--gravity { z-index: 3; animation: cell-gravity .19s cubic-bezier(.18,.76,.24,1) both; }
.cell--rise { z-index: 3; animation: cell-rise .18s cubic-bezier(.18,.76,.24,1) both; }
.cell--topout { z-index: 8; outline: 2px solid #fff; outline-offset: -2px; background: rgba(215,43,52,.5); box-shadow: inset 0 0 14px #fff, 0 0 14px var(--red); animation: topout-warning .18s steps(2, end) 4 both; }
.cell--bomb-ignite { z-index: 5; background: radial-gradient(circle, #fff 0 10%, #efc35a 16%, rgba(215,43,52,.72) 45%, transparent 74%); box-shadow: inset 0 0 13px #fff, 0 0 12px var(--red); animation: bomb-ignite .095s ease-in-out both; }
.cell--blast { z-index: 4; background: radial-gradient(circle, #fff 0 12%, #ffdc62 20%, rgba(255,86,31,.76) 48%, transparent 76%); box-shadow: inset 0 0 12px #ffdc62, 0 0 8px rgba(215,43,52,.7); animation: blast .16s ease-out both; }
.cell--mega-charge { z-index: 5; background: radial-gradient(circle, #fff, var(--gold) 20%, rgba(215,43,52,.72) 44%, transparent 75%); box-shadow: inset 0 0 15px white, 0 0 14px var(--gold); animation: mega-charge .3s ease-in-out both; }
.cell--mega-effect { z-index: 5; background: radial-gradient(circle, #fff 0 12%, var(--gold) 23%, rgba(215,43,52,.68) 47%, transparent 76%); box-shadow: inset 0 0 12px white, 0 0 8px rgba(239,195,90,.8); animation: mega-burst .24s ease-out both; }
@keyframes active-pulse { to { filter: brightness(1.35); transform: scale(.92); } }
@keyframes rotate-trail { from { transform: rotate(calc(var(--rotate-direction, 1) * -18deg)) scale(.94); opacity: .52; } to { transform: rotate(calc(var(--rotate-direction, 1) * -34deg)) scale(.72); opacity: 0; } }
@keyframes rotate-arrive { from { transform: rotate(calc(var(--rotate-direction, 1) * 24deg)) scale(.78); filter: brightness(1.6); } to { transform: rotate(0) scale(1); filter: brightness(1); } }
@keyframes rotate-core-arrive { from { opacity: .55; transform: scale(.78); } to { opacity: .98; transform: scale(1); } }
@keyframes fuse { to { transform: scale(1.5); filter: brightness(1.4); } }
@keyframes mega-pulse { to { filter: brightness(1.45); opacity: .86; } }
@keyframes match-flash { 0%, 49% { filter: brightness(1.75); } 50%, 100% { filter: brightness(.62); } }
@keyframes match-core-flash { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .28; } }
@keyframes match-clear { from { transform: scale(.72); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@keyframes cell-gravity { from { transform: translateY(var(--fall-offset, -18px)); filter: brightness(1.28); } to { transform: translateY(0); filter: brightness(1); } }
@keyframes cell-rise { from { transform: translateY(var(--rise-offset, 18px)); filter: brightness(1.35); } to { transform: translateY(0); filter: brightness(1); } }
@keyframes topout-warning { 0%, 45% { filter: brightness(1.7); } 46%, 100% { filter: brightness(.62); } }
@keyframes bomb-ignite { 0% { transform: scale(.7); opacity: .5; } 60% { transform: scale(1.16); opacity: 1; } 100% { transform: scale(.9); opacity: .82; } }
@keyframes blast { from { background-color: rgba(255,255,255,.92); box-shadow: inset 0 0 14px #fff, 0 0 12px var(--gold); } to { background-color: rgba(255,86,31,.08); box-shadow: inset 0 0 4px rgba(255,220,98,.32), 0 0 3px rgba(215,43,52,.25); } }
@keyframes mega-charge { 0% { transform: scale(.5); opacity: .35; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(.94); opacity: .8; } }
@keyframes mega-burst { from { transform: scale(.28); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@keyframes power-ready { to { box-shadow: inset 0 0 12px #fff, 0 0 13px var(--gold); filter: brightness(1.2); } }
@keyframes arena-flash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
@keyframes arena-impact-match { 0%,100% { transform: translateX(0); } 35% { transform: translateX(-1.5px); } 65% { transform: translateX(1.5px); } }
@keyframes arena-impact-chain { 0%,100% { transform: translate(0); } 24% { transform: translate(-2px, 1px); } 48% { transform: translate(2px, -1px); } 72% { transform: translate(-1px, 0); } }
@keyframes arena-impact-blast { 0%,100% { transform: translate(0); } 22% { transform: translate(-3px, 1px); } 48% { transform: translate(3px, -1px); } 72% { transform: translate(-2px, 0); } }
@keyframes arena-impact-mega { 0%,100% { transform: translate(0) scale(1); } 18% { transform: translate(-6px, 2px) scale(1.008); } 38% { transform: translate(5px, -2px) scale(1.004); } 58% { transform: translate(-4px, 1px); } 78% { transform: translate(2px, -1px); } }
@keyframes arena-impact-rise { 0%,100% { transform: translateY(0); } 34% { transform: translateY(-2px); } 68% { transform: translateY(1px); } }

.start-signal { position: absolute; z-index: 30; inset: var(--header-h) 0 0; display: grid; place-content: center; pointer-events: none; text-align: center; background: radial-gradient(circle, rgba(5,7,9,.24), rgba(5,7,9,.66) 70%); }
.start-signal small { color: var(--gold); font-size: clamp(10px, 1.5vw, 15px); font-weight: 900; letter-spacing: .28em; }
.start-signal strong { position: relative; z-index: 1; display: block; color: #fff; font-size: clamp(66px, 13vw, 172px); font-style: italic; font-weight: 1000; line-height: .92; letter-spacing: -.06em; text-shadow: 5px 6px 0 var(--red), 0 12px 38px #000; animation: signal-in .45s cubic-bezier(.12,.78,.18,1) both; }
.start-signal span { display: block; width: min(480px, 68vw); height: 2px; margin: 16px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: signal-line .6s ease-out both; }
.start-signal[data-state="fight"] { background: radial-gradient(circle, rgba(215,43,52,.2), rgba(5,7,9,.5) 64%, rgba(5,7,9,.72)); }
.start-signal[data-state="fight"] strong { animation: fight-in .65s cubic-bezier(.1,.8,.15,1) both; }
@keyframes signal-in { from { transform: scale(.72) skew(-8deg); opacity: 0; } to { transform: scale(1) skew(-8deg); opacity: 1; } }
@keyframes signal-line { from { transform: scaleX(.05); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes fight-in { 0% { transform: scale(1.7) skew(-9deg); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(.94) skew(-9deg); opacity: .9; } }

.chain-callouts { position: absolute; z-index: 34; top: 46%; left: 50%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 2vw, 24px); width: min(370px, calc(100% - 16px)); transform: translate(-50%, -50%); pointer-events: none; }
.chain-callout { position: relative; min-width: 0; padding: 7px 10px 8px; overflow: hidden; border: 1px solid rgba(239,195,90,.78); border-left: 4px solid var(--red); background: rgba(5,7,9,.9); box-shadow: 0 9px 30px rgba(0,0,0,.7), inset 0 0 18px rgba(239,195,90,.08); text-align: center; opacity: 0; }
.chain-callout--cpu { border-left-color: var(--gold); }
.chain-callout::before { content: ""; position: absolute; inset: 0; background: linear-gradient(112deg, transparent 22%, rgba(255,255,255,.11) 42%, rgba(239,195,90,.14) 48%, transparent 68%); transform: translateX(-120%); }
.chain-callout.is-active { animation: chain-callout-in .65s cubic-bezier(.12,.78,.16,1) both; }
.chain-callout.is-active::before { animation: chain-callout-sweep .42s ease-out both; }
.chain-callout > span { display: block; color: var(--gold); font-size: 9px; font-weight: 1000; letter-spacing: .22em; }
.chain-callout strong { display: flex; align-items: baseline; justify-content: center; gap: 7px; color: #fff; white-space: nowrap; font-style: italic; line-height: .95; text-shadow: 2px 2px 0 var(--red), 0 0 14px rgba(239,195,90,.5); }
.chain-callout strong b { font-size: clamp(30px, 4vw, 50px); font-weight: 1000; }
.chain-callout strong em { color: var(--gold); font-size: clamp(14px, 1.8vw, 22px); font-weight: 1000; letter-spacing: .04em; }
.chain-callout small { display: block; margin-top: 3px; color: rgba(255,255,255,.78); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.chain-callout[data-tier="high"] { border-color: #fff; box-shadow: 0 9px 34px rgba(215,43,52,.44), inset 0 0 22px rgba(239,195,90,.15); }
.chain-callout[data-tier="critical"] { border-color: var(--gold); background: rgba(33,9,12,.94); box-shadow: 0 9px 42px rgba(215,43,52,.56), 0 0 22px rgba(239,195,90,.28), inset 0 0 26px rgba(255,255,255,.1); }
@keyframes chain-callout-in { 0% { opacity: 0; transform: translateY(18px) scale(.72) skew(-5deg); } 18% { opacity: 1; transform: translateY(-2px) scale(1.05) skew(-5deg); } 31%,75% { opacity: 1; transform: translateY(0) scale(1) skew(-5deg); } 100% { opacity: 0; transform: translateY(-9px) scale(.98) skew(-5deg); } }
@keyframes chain-callout-sweep { to { transform: translateX(120%); } }

.battle-intro { width: min(760px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow: hidden; border: 1px solid rgba(239,195,90,.5); border-radius: 6px; background: #080b0e; color: var(--ink); box-shadow: 0 32px 100px rgba(0,0,0,.84), 0 0 32px rgba(215,43,52,.2); }
.battle-intro[open] { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; }
.battle-intro::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(6px) grayscale(.35); }
.battle-intro__portrait { position: relative; min-height: 350px; overflow: hidden; background: radial-gradient(circle at 50% 35%, rgba(215,43,52,.28), transparent 50%), #090c10; }
.battle-intro__portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 62%, #080b0e), linear-gradient(0deg, #080b0e, transparent 55%); }
.battle-intro__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(.82) contrast(1.08); }
.battle-intro__portrait span { position: absolute; z-index: 2; inset: auto 14px 14px; color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.battle-intro__dialogue { position: relative; align-self: center; min-width: 0; padding: 34px 38px 32px 24px; }
.battle-intro__dialogue::before { content: ""; position: absolute; top: 25px; left: 0; width: 3px; height: 76px; background: linear-gradient(var(--red), var(--gold)); }
.battle-intro__dialogue > small { color: var(--red); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.battle-intro__dialogue > strong { display: block; margin-top: 7px; color: #fff; font-size: clamp(18px, 3vw, 30px); }
.battle-intro__dialogue > p { min-height: 4.6em; margin: 20px 0; color: #e0e1e3; font-size: clamp(14px, 2vw, 18px); font-weight: 700; line-height: 1.75; }
.battle-intro__progress { display: flex; gap: 7px; margin-bottom: 18px; }
.battle-intro__progress i { width: 28px; height: 2px; background: rgba(255,255,255,.2); }
.battle-intro__progress i.is-current { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.battle-intro[data-role="PLAYER"] .battle-intro__dialogue::before { background: linear-gradient(var(--blue), var(--gold)); }

.control-deck { z-index: 2; display: grid; grid-template-columns: repeat(6, minmax(80px, 118px)); justify-content: center; gap: 7px; padding: 0 12px; }
.control-deck button { min-height: 58px; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; background: linear-gradient(180deg, #252b31, #101419); box-shadow: inset 0 1px rgba(255,255,255,.12), 0 4px 8px rgba(0,0,0,.25); cursor: pointer; user-select: none; -webkit-user-select: none; }
.control-deck button:active, .control-deck button.is-pressed { transform: translateY(2px); border-color: var(--gold); background: #331519; }
.control-deck span { display: block; font-size: 22px; line-height: 1; }
.control-deck small { display: block; margin-top: 3px; color: #c3c6ca; font-size: 9px; font-weight: 700; }
.keyboard-guide { z-index: 2; margin: 4px 0 0; color: #858b91; text-align: center; font-size: 9px; }

.ending-screen { position: relative; display: grid; grid-template-columns: minmax(260px, 480px) minmax(300px, 620px); place-content: center; align-items: center; gap: 7vw; padding-inline: 6vw; overflow: hidden; background: radial-gradient(circle at 25% 45%, rgba(215,43,52,.25), transparent 32%), #080a0d; }
.ending-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(0,0,0,.5)); }
.ending-screen img { position: relative; z-index: 1; max-height: 84vh; max-width: 100%; width: auto; justify-self: center; object-fit: contain; mask-image: linear-gradient(#000 75%, transparent); }
.ending-screen > div { position: relative; z-index: 2; }
.ending-screen p { color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.ending-screen h1 { margin: 8px 0 22px; font-size: clamp(38px, 5.5vw, 78px); line-height: 1.08; }
.ending-screen span { color: #c4c6c8; line-height: 1.8; }

.arena-dialog { width: min(680px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; background: #0c1014; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.75); }
.arena-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.dialog-heading { display: flex; justify-content: space-between; gap: 20px; padding: 24px 28px 14px; border-bottom: 1px solid var(--line); }
.dialog-heading span, .pause-dialog > span, .result-dialog [data-result-label] { color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.dialog-heading h2, .pause-dialog h2 { margin: 5px 0 0; }
.dialog-heading button { min-width: 42px; padding: 0; font-size: 22px; }
.help-dialog ol { list-style: none; margin: 0; padding: 18px 28px; }
.help-dialog li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.help-dialog li > strong { color: var(--gold); font-size: 20px; }
.help-dialog h3 { margin: 0; font-size: 15px; }
.help-dialog p { margin: 5px 0 0; color: #b4b7bb; line-height: 1.65; font-size: 13px; }
.help-dialog > .primary-action { display: block; margin: 4px auto 24px; }
.pause-dialog { padding: 34px; text-align: center; }
.pause-dialog > div { display: grid; gap: 9px; margin-top: 26px; }
.result-dialog { grid-template-columns: minmax(150px, 230px) 1fr; overflow: hidden; }
.result-dialog[open] { display: grid; }
.result-dialog[open] { animation: result-dialog-reveal .38s cubic-bezier(.16,.82,.2,1) both; }
.result-dialog[data-outcome="win"] { border-color: rgba(239,195,90,.72); box-shadow: 0 30px 90px rgba(0,0,0,.78), 0 0 36px rgba(239,195,90,.22); }
.result-dialog[data-outcome="lose"] { border-color: rgba(215,43,52,.72); box-shadow: 0 30px 90px rgba(0,0,0,.78), 0 0 36px rgba(215,43,52,.24); }
.result-dialog > img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; object-position: top center; mask-image: linear-gradient(90deg, #000 75%, transparent); }
.result-dialog > div { align-self: center; padding: 32px 32px 32px 12px; }
.result-dialog h2 { margin: 6px 0 10px; font-size: 42px; }
.result-dialog p { color: #bdc0c4; line-height: 1.7; }
.result-dialog dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-dialog dl > div { padding: 10px; border: 1px solid var(--line); }
.result-dialog dt { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.result-dialog dd { margin: 3px 0 0; font-size: 20px; font-weight: 900; }
.result-actions { display: flex; gap: 8px; margin-top: 20px; }
@keyframes result-dialog-reveal { from { transform: scale(.86) translateY(20px); opacity: 0; filter: brightness(1.8); } to { transform: scale(1) translateY(0); opacity: 1; filter: brightness(1); } }
.confirm-dialog { padding: 28px; }
.confirm-dialog p { color: var(--muted); }
.confirm-dialog > div { display: flex; justify-content: flex-end; gap: 8px; }
.danger-action { border-color: #a3222a !important; background: #65141a !important; }

@media (max-width: 1180px) {
  :root { --cell: clamp(21px, 4.65vh, 36px); }
  .battle-arena { grid-template-areas: "player cpu"; grid-template-columns: 1fr 1fr; width: min(980px, calc(100% - 24px)); }
  .fighter-panel { position: absolute; z-index: -1; inset: 0 0 0 52%; border: 0; opacity: .16; }
  .fighter-panel__copy { display: none; }
  .stage-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 761px) and (max-height: 760px) {
  :root { --cell: clamp(20px, 3.72vh, 28px); }
  .battle-arena { padding-top: 5px; }
  .board-frame { padding-block: 5px 18px; }
  .side-hud { gap: 5px; }
  .next-box, .power-meter, .attack-box { padding-block: 5px; }
  .power-meter__track { height: 52px; }
}

@media (max-width: 760px) {
  :root { --header-h: 52px; --cell: clamp(15px, 3.78vw, 20px); }
  .arena-header { grid-template-columns: 1fr auto; padding-inline: 10px; }
  .arena-logo { font-size: 10px; }
  .arena-logo strong { font-size: 15px; }
  .arena-header__status { display: none; }
  .arena-header__actions { gap: 5px; }
  .arena-header__actions button { min-height: 34px; padding: 6px 9px; font-size: 10px; }
  .arena-header__actions [data-open-pause] { display: none; }
  .title-screen__fighters { gap: 0; }
  .title-screen__fighters img { height: 72vh; }
  .title-screen__fighters img:first-child { transform: translateX(20vw) scale(.83); }
  .title-screen__fighters img:nth-child(2) { z-index: 1; }
  .title-screen__fighters img:last-child { transform: translateX(-20vw) scale(.83); }
  .title-screen__content { margin-top: 20vh; }
  .title-screen__content > p { margin-top: 26px; font-size: 13px; }
  .title-actions { margin-top: 20px; }
  .title-actions button { min-width: 148px; min-height: 46px; }
  .title-note { display: none; }
  .stage-shell { width: min(100% - 24px, 680px); padding-top: 30px; }
  .screen-heading { align-items: start; }
  .screen-heading span { font-size: 12px; }
  .stage-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stage-card { min-height: 230px; }
  .stage-progress { grid-template-columns: 1fr auto; }
  .stage-progress progress { grid-column: 1 / -1; grid-row: 2; }
  .battle-screen { grid-template-rows: minmax(min-content,1fr) auto auto; }
  .battle-screen::after { bottom: 104px; }
  .chain-callouts { top: 48%; gap: 6px; width: calc(100% - 12px); }
  .chain-callout { padding: 5px 5px 6px; border-left-width: 3px; }
  .chain-callout > span { font-size: 7px; }
  .chain-callout strong { gap: 4px; }
  .chain-callout strong b { font-size: clamp(25px, 8vw, 34px); }
  .chain-callout strong em { font-size: clamp(11px, 3.7vw, 15px); }
  .chain-callout small { font-size: 6px; }
  .battle-arena { grid-template-areas: "fighter fighter" "player cpu"; grid-template-columns: 1fr 1fr; align-content: center; align-items: end; gap: 5px; width: calc(100% - 10px); padding-top: 4px; }
  .fighter-panel { grid-area: fighter; position: relative; z-index: 0; inset: auto; height: clamp(58px, 10vh, 82px); border: 0; opacity: 1; background: linear-gradient(90deg, rgba(215,43,52,.18), transparent 70%); }
  .fighter-panel img { inset: 0 auto auto 4px; transform: none; width: 80px; height: 100%; object-fit: cover; object-position: 50% 10%; mask-image: linear-gradient(90deg, #000 75%, transparent); }
  .fighter-panel__copy { display: block; inset: 50% 8px auto 88px; transform: translateY(-50%); text-align: left; }
  .fighter-panel__copy strong { font-size: 15px; }
  .fighter-panel__copy small { font-size: 9px; }
  .side-title { margin-bottom: 3px; }
  .side-title span { padding: 3px 5px; font-size: 8px; }
  .side-title strong { min-width: 0; font-size: 8px; }
  .side-layout { align-items: start; gap: 3px; }
  .side-hud { width: 37px; flex-basis: 37px; gap: 3px; }
  .side--player .side-layout { flex-direction: row; }
  .side--cpu .side-layout { flex-direction: row; }
  .next-box, .power-meter, .attack-box { padding: 3px; }
  .next-box > span, .power-meter > span, .attack-box > span { margin-bottom: 2px; font-size: 6px; line-height: 1.15; letter-spacing: 0; }
  .next-grid { grid-template: repeat(2, 8px) / repeat(2, 8px); gap: 1px; min-height: 17px; }
  .power-meter__track { width: 20px; height: 42px; margin-bottom: 2px; border-width: 1px; background-size: auto 9px, auto; }
  .power-meter strong { font-size: 8px; }
  .attack-box strong { font-size: 12px; }
  .attack-box small { margin-top: 1px; font-size: 5px; letter-spacing: 0; }
  .board-frame { padding: 4px 3px 17px; }
  .rise-arrows { left: 3px; right: 3px; font-size: 5px; }
  .rise-arrows { bottom: 1px; font-size: 10px; }
  .puzzle-board { gap: 1px; padding: 2px; }
  .control-deck { grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 0 7px; }
  .control-deck button { min-height: 46px; }
  .control-deck span { font-size: 18px; }
  .control-deck small { font-size: 8px; }
  .keyboard-guide { display: none; }
  .start-signal strong { font-size: clamp(58px, 23vw, 92px); text-shadow: 3px 4px 0 var(--red), 0 10px 26px #000; }
  .battle-intro[open] { grid-template-columns: 92px 1fr; }
  .battle-intro__portrait { min-height: 250px; }
  .battle-intro__portrait::after { background: linear-gradient(90deg, transparent 45%, #080b0e), linear-gradient(0deg, #080b0e, transparent 62%); }
  .battle-intro__portrait span { inset: auto 6px 9px; font-size: 7px; letter-spacing: .05em; }
  .battle-intro__dialogue { padding: 22px 14px 18px 12px; }
  .battle-intro__dialogue::before { top: 18px; height: 60px; }
  .battle-intro__dialogue > strong { font-size: 16px; }
  .battle-intro__dialogue > p { min-height: 5.25em; margin: 12px 0; font-size: 13px; line-height: 1.75; }
  .battle-intro__progress { margin-bottom: 12px; }
  .ending-screen { grid-template-columns: 1fr; padding-inline: 24px; text-align: center; }
  .ending-screen img { position: absolute; inset: var(--header-h) 50% 0 auto; transform: translateX(50%); z-index: 0; height: calc(100% - var(--header-h)); opacity: .36; }
  .ending-screen > div { z-index: 2; }
  .result-dialog[open] { grid-template-columns: 105px 1fr; }
  .result-dialog > img { min-height: 360px; }
  .result-dialog > div { padding: 24px 16px 24px 0; }
  .result-dialog h2 { font-size: 30px; }
  .result-dialog p { font-size: 12px; }
  .result-actions { flex-direction: column-reverse; }
}

@media (max-width: 380px) {
  :root { --cell: clamp(14px, 3.85vw, 17px); }
  .arena-header__actions [data-open-help] { display: none; }
  .fighter-panel { height: 55px; }
  .control-deck button { min-height: 44px; }
}

@media (max-width: 340px) {
  :root { --cell: 11px; }
  .battle-arena { gap: 2px; }
  .side-layout { gap: 2px; }
  .side-hud { width: 31px; flex-basis: 31px; }
  .next-box > span, .power-meter > span, .attack-box > span { font-size: 5px; }
  .attack-box small { font-size: 4px; }
  .battle-intro { width: calc(100% - 14px); }
  .battle-intro[open] { grid-template-columns: 76px 1fr; }
  .battle-intro__dialogue { padding-inline: 10px; }
  .battle-intro__dialogue > p { font-size: 12px; }
}

@media (max-height: 650px) and (orientation: landscape) {
  :root { --header-h: 46px; --cell: clamp(13px, 3.45vh, 20px); }
  .arena-header__actions button { min-height: 31px; }
  .battle-screen { grid-template-rows: minmax(min-content, 1fr) auto; overflow-x: hidden; overflow-y: auto; }
  .battle-screen::after { bottom: 50px; }
  .chain-callouts { top: 48%; width: min(340px, calc(100% - 18px)); }
  .battle-arena { grid-template-areas: "player cpu"; grid-template-columns: 1fr 1fr; width: min(810px, calc(100% - 24px)); margin-inline: auto; padding-top: 2px; }
  .fighter-panel { position: absolute; inset: 0 0 0 78%; height: auto; opacity: .26; }
  .fighter-panel__copy { display: none; }
  .side-hud { width: 62px; flex-basis: 62px; gap: 3px; }
  .next-box, .power-meter, .attack-box { padding: 4px; }
  .next-grid { grid-template: repeat(2, 10px) / repeat(2, 10px); min-height: 22px; }
  .power-meter__track { width: 20px; height: 30px; }
  .board-frame { padding-block: 3px 13px; }
  .control-deck { position: static; grid-template-columns: repeat(6, minmax(0, 1fr)); width: min(720px, calc(100% - 16px)); margin: 0 auto 2px; padding: 0; }
  .control-deck button { min-height: 44px; }
  .keyboard-guide { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .battle-screen.is-impact::after { animation: none !important; opacity: .08; }
  .battle-screen.is-impact .battle-arena { animation: none !important; }
  .chain-callout.is-active { animation: none !important; opacity: 1; transform: none; }
  .chain-callout.is-active::before { animation: none !important; transform: none; opacity: .08; }
}
