/* ちびキャラボクシング～パズル編～
 * 色は意味で使う：赤＝自分のコーナー、青＝相手のコーナー、金＝カウンター/ゴング。
 * パンチの5色はアイコン専用（data.js）。 */
:root {
  --night: #1d1830;
  --night-2: #2a2344;
  --night-3: #3a3159;
  --canvas: #ece8f4;
  --ink: #1c1a26;
  --paper: #fbfaff;
  --red: #e5394a;
  --blue: #2f78e0;
  --gold: #ffcc33;
  --hp: #ffd84a;
  --danger: #ff5a4f;
  --muted: #b9b2d6;
  --display: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(120% 70% at 50% 0%, #3b2e63 0%, var(--night) 55%) fixed, var(--night);
  color: var(--paper);
  font-family: var(--body);
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
[hidden] { display: none !important; }
/* 登録画像は縦横比を保ち、既存の試合配置に収める。 */
.fighter img, .card-img img, .slot-img img { object-fit: contain; }
img { -webkit-user-drag: none; user-select: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.screen { min-height: 100svh; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }

/* ---------- ボタン ---------- */
.btn {
  border: 0; border-radius: 999px; cursor: pointer; padding: 14px 28px;
  font-weight: 900; font-size: 1.05rem; letter-spacing: .04em;
  transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: translateY(2px) scale(.98); }
.btn-gong {
  background: linear-gradient(180deg, #ffe07a, var(--gold) 55%, #e8a915);
  color: #3a2600; box-shadow: 0 4px 0 #a8730a, 0 10px 24px rgba(255, 204, 51, .25);
  font-family: var(--display); font-weight: 400; font-size: 1.25rem;
}
.btn-gong:hover { filter: brightness(1.06); }
.btn-ghost { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-gong.btn-sm { font-size: 1.05rem; }
.btn-icon { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .1); font-size: 1.2rem; }

/* ロープ（タイトルとリングで共通） */
.ropes { position: absolute; left: 0; right: 0; display: grid; gap: 7%; pointer-events: none; }
.ropes i { display: block; height: 7px; border-radius: 4px; box-shadow: 0 3px 4px rgba(0, 0, 0, .35); }
.ropes i:nth-child(1) { background: linear-gradient(90deg, var(--red), #ff6f7b 50%, var(--red)); }
.ropes i:nth-child(2) { background: linear-gradient(90deg, #d9d6e6, #fff 50%, #d9d6e6); }
.ropes i:nth-child(3) { background: linear-gradient(90deg, var(--blue), #6aa6ff 50%, var(--blue)); }

/* ================= タイトル ================= */
.screen-title { max-width: 720px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; position: relative; overflow: hidden; text-align: center; }
.title-lights { position: fixed; inset: 0; z-index: -1; background:
  conic-gradient(from 200deg at 50% -10%, transparent 0 8deg, rgba(255, 240, 200, .10) 10deg 18deg, transparent 20deg 340deg, rgba(255, 240, 200, .10) 342deg 350deg, transparent 352deg);
  pointer-events: none; }
.logo { margin: 0; display: grid; justify-items: center; line-height: 1; position: relative; }
.logo-sm { font-size: .95rem; letter-spacing: .3em; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.logo-a, .logo-b { font-family: var(--display); font-weight: 400; letter-spacing: .02em; white-space: nowrap; }
.logo-a { font-size: clamp(1.7rem, 8.6vw, 4rem); color: #fff; text-shadow: 0 4px 0 var(--red), 0 8px 18px rgba(0, 0, 0, .45); }
.logo-b { font-size: clamp(2.2rem, 11vw, 5rem); color: var(--gold); margin-top: -2px; text-shadow: 0 5px 0 #b3720b, 0 10px 22px rgba(0, 0, 0, .5); transform: rotate(-3deg); }
.title-apron { position: relative; width: 100%; margin-top: 6px; padding-bottom: 4%; }
.title-apron .ropes { bottom: 16%; }
/* 人数が増えても1列に並べる（2026-11-05：10人になって6列の決め打ちだと2段に折り返していた） */
.title-lineup { position: relative; z-index: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; }
.title-lineup img { display: block; width: 250%; max-width: none; margin-left: -75%; height: auto; aspect-ratio: 1000 / 600;
  animation: bob 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.27s); }
.title-lineup img.is-flip { scale: -1 1; }
.title-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.title-actions .btn-gong { min-width: 160px; line-height: 1.15; }
.title-actions .btn-gong small { display: block; font-family: var(--body); font-weight: 900; font-size: .7rem; letter-spacing: .06em; opacity: .75; margin-top: 2px; }
.title-sub { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.title-actions .btn-ghost { min-width: 140px; padding: 10px 18px; font-size: .95rem; }

@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3%; } }

/* ================= キャラ選択 ================= */
.screen-select { max-width: 1040px; display: flex; flex-direction: column; gap: 12px; }
.select-head { display: flex; align-items: center; gap: 12px; }
.select-head h2 { margin: 0; flex: 1; font-family: var(--display); font-weight: 400; font-size: 1.4rem; letter-spacing: .06em; }
.matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.vs { font-family: var(--display); font-size: 1.6rem; color: var(--gold); }
.slot { border: 0; cursor: pointer; border-radius: var(--radius); padding: 10px; text-align: left; display: grid; gap: 6px;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .1); transition: box-shadow .15s, background .15s; }
.slot-p { --c: var(--red); }
.slot-e { --c: var(--blue); }
.slot.is-active { background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 3px var(--c); }
.slot-label { font-size: .78rem; font-weight: 900; color: var(--c); letter-spacing: .06em; filter: brightness(1.35); }
.slot-face { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.slot-img { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .08); flex: none; display: grid; place-items: center; }
.slot-img img { position: absolute; left: 50%; top: -4%; height: 190%; width: auto; max-width: none; aspect-ratio: 1000/600; translate: -50% 0; }
.slot-e .slot-img img { scale: -1 1; }
.slot-img.is-random { font-family: var(--display); font-size: 1.8rem; color: var(--muted); }
.slot-name { font-weight: 900; font-size: 1.05rem; line-height: 1.2; }
.select-hint { margin: 0; color: var(--muted); font-size: .9rem; min-height: 1.4em; }

.char-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .char-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; border: 0; cursor: pointer; text-align: left; padding: 0; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--theme) 22%, var(--night-2)), var(--night-2) 60%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08); display: grid; grid-template-rows: auto 1fr; transition: transform .12s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--theme) 70%, transparent); }
.card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; position: relative;
  background: radial-gradient(70% 60% at 50% 60%, color-mix(in srgb, var(--theme) 35%, transparent), transparent 70%); }
.card-img img { position: absolute; left: 50%; bottom: 0; height: 104%; width: auto; max-width: none; aspect-ratio: 1000/600; translate: -50% 0; }
.card-body { padding: 10px 12px 12px; display: grid; gap: 4px; align-content: start; }
.card-style { justify-self: start; font-size: .72rem; font-weight: 900; padding: 2px 8px; border-radius: 999px; background: var(--theme); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.card-name { font-weight: 900; font-size: 1.12rem; line-height: 1.25; display: grid; }
.card-name small { font-size: .72rem; color: var(--muted); font-weight: 700; }
.card-ability { font-size: .8rem; line-height: 1.55; color: #ddd8ef; }
.card-ability b { display: block; color: #fff; font-weight: 900; }
.card-ability small { display: block; margin-top: 2px; font-size: .7rem; color: var(--muted); }
.card-punch { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .74rem; font-weight: 900; }
.card-punch .pc { display: inline-flex; align-items: center; gap: 4px; }
.card-punch .pc small { font-size: .66rem; color: var(--muted); }
.card-punch .mini { width: 20px; height: 20px; font-size: .66rem; -webkit-text-stroke-width: 2px; }
.card-badge { position: absolute; top: 8px; width: 34px; height: 34px; border-radius: 50%; display: none; place-items: center;
  font-family: var(--display); font-size: .95rem; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.card-badge-p { left: 8px; background: var(--red); }
.card-badge-e { right: 8px; background: var(--blue); }
.card.is-p .card-badge-p, .card.is-e .card-badge-e { display: grid; }
.card.is-p { box-shadow: inset 0 0 0 3px var(--red); }
.card.is-e { box-shadow: inset 0 0 0 3px var(--blue); }
.card.is-p.is-e { box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 6px var(--blue); }

.select-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 6px 0 4px; position: sticky; bottom: 0;
  background: linear-gradient(180deg, transparent, var(--night) 30%); padding-top: 18px; }
.diff { border: 0; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.diff legend { float: left; font-size: .8rem; color: var(--muted); margin-right: 6px; font-weight: 700; }
.diff label { cursor: pointer; }
.diff input { position: absolute; opacity: 0; pointer-events: none; }
.diff span { display: inline-block; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-weight: 900; font-size: .88rem; }
.diff input:checked + span { background: var(--paper); color: var(--ink); }
.diff input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.select-foot .btn-gong { margin-left: auto; min-width: 160px; }
.btn-opt { line-height: 1.15; }
.btn-opt small { display: block; font-size: .68rem; font-weight: 700; color: var(--muted); margin-top: 1px; }

/* オプション */
.opts { display: grid; gap: 16px; }
.opt { gap: 8px; }
.opt legend { float: left; width: 100%; margin: 0 0 2px; font-size: .85rem; }
.opt label { flex: 1 1 0; }
.opt span { display: block; text-align: center; padding: 10px 12px; border-radius: 14px; font-size: 1rem; }
.opt span small { display: block; margin-top: 2px; font-size: .72rem; font-weight: 700; opacity: .75; }
.opt-note { margin: 12px 0 0; font-size: .82rem; color: #ffd9a8; line-height: 1.5; }
.dlg-options .dlg-actions { justify-content: flex-end; }

/* ================= 試合 ================= */
.screen-fight { --ring-h: clamp(160px, 27svh, 330px); max-width: 520px; padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); display: grid; gap: 8px; align-content: start; user-select: none; -webkit-user-select: none; }
.fight-main, .fight-side { display: grid; gap: 8px; align-content: start; min-width: 0; }
.fight-side { position: relative; }

/* ラウンドの間のインターバル（盤面の上にかぶせる） */
.interval { position: absolute; inset: 0; z-index: 6; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 18px 16px; text-align: center;
  border-radius: var(--radius); background: rgba(22, 16, 38, .95); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .1); animation: iv-in .3s ease-out; }
@keyframes iv-in { from { opacity: 0; translate: 0 12px; } }
.iv-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.7rem; color: var(--gold); letter-spacing: .06em; }
.iv-round { margin: 0; font-size: .85rem; color: var(--muted); font-weight: 700; }
.iv-table { max-width: 320px; }
.iv-table td small { font-family: var(--body); font-weight: 900; font-size: .72rem; color: #8ff0a8; margin-left: 4px; }
.iv-lead { margin: 2px 0 0; font-weight: 900; }
.iv-tip { margin: 0; max-width: 320px; font-size: .85rem; line-height: 1.6; color: #ddd8ef; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 8px 12px; text-align: left; }
.iv-tip::before { content: "ヒント　"; color: var(--gold); font-weight: 900; }
.iv-next { margin-top: 6px; min-width: 200px; line-height: 1.15; }
.iv-next small { display: block; font-family: var(--body); font-weight: 900; font-size: .72rem; opacity: .75; margin-top: 2px; }
.float-heal { color: #8ff0a8; }

/* HUD */
.hud { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.hud-side { display: grid; gap: 4px; min-width: 0; }
.hud-name { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.hud-name .nm { font-weight: 900; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-name .st { font-size: .68rem; color: var(--muted); white-space: nowrap; }
.hud-e .hud-name { flex-direction: row-reverse; }
@media (max-width: 480px) { .hud-name .st { display: none; } }
.hp { position: relative; height: 16px; border-radius: 4px; overflow: hidden; background: #15111f; box-shadow: inset 0 0 0 2px var(--corner); }
.hud-p { --corner: var(--red); }
.hud-e { --corner: var(--blue); }
.hp-fill, .hp-trail { position: absolute; top: 2px; bottom: 2px; left: 2px; max-width: calc(100% - 4px); border-radius: 2px; }
.hud-e .hp-fill, .hud-e .hp-trail { left: auto; right: 2px; }
.hp-trail { background: #fff; opacity: .65; transition: width .6s ease .35s; }
.hp-fill { background: linear-gradient(180deg, #fff2a8, var(--hp) 60%, #e8b31e); transition: width .12s ease-out; }
.hp::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(21, 17, 31, .55) calc(10% - 1px) 10%); pointer-events: none; }
.hud-side.is-danger .hp-fill { background: linear-gradient(180deg, #ffb0aa, var(--danger)); animation: danger .7s ease-in-out infinite alternate; }
@keyframes danger { to { filter: brightness(1.35); } }
.downs { display: flex; gap: 4px; }
.hud-e .downs { justify-content: flex-end; }
.downs i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.downs i.is-on { background: var(--danger); box-shadow: none; }
.hud-mid { text-align: center; line-height: 1; }
.round { font-family: var(--display); font-size: .8rem; color: var(--gold); letter-spacing: .08em; }
.clock { font-family: var(--display); font-size: 1.6rem; font-variant-numeric: tabular-nums; margin-top: 2px; }
.clock.is-low { color: var(--danger); }

/* リング */
.ring { position: relative; height: var(--ring-h); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #120e1f 0%, #2c2147 55%, #3b2d5d 100%); isolation: isolate; }
.ring-crowd { position: absolute; inset: 0 0 40% 0; background: radial-gradient(60% 90% at 50% 0%, rgba(255, 236, 190, .2), transparent 70%), radial-gradient(30% 50% at 15% 100%, rgba(229, 57, 74, .18), transparent 70%), radial-gradient(30% 50% at 85% 100%, rgba(47, 120, 224, .2), transparent 70%); }
.ring-floor { position: absolute; left: -10%; right: -10%; bottom: 0; height: 30%;
  background: linear-gradient(180deg, #d9d3e8, var(--canvas) 40%, #cfc8e2); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.ring-floor::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 70% at 50% 40%, rgba(255, 255, 255, .7), transparent 70%); }
.ring-post { position: absolute; bottom: 22%; width: 12px; height: 58%; border-radius: 6px; z-index: 0; }
.post-l { left: 3%; background: linear-gradient(90deg, #a71e2c, var(--red), #a71e2c); }
.post-r { right: 3%; background: linear-gradient(90deg, #1b4fa0, var(--blue), #1b4fa0); }
.ring-ropes { bottom: 30%; left: 3%; right: 3%; gap: 9px; z-index: 0; }
.ring-ropes i { height: 5px; }

.fighter { position: absolute; bottom: 4%; height: 84%; aspect-ratio: 1000 / 600; translate: -50% 0; z-index: 2; pointer-events: none; }
.fighter-p { left: 31%; --dir: 1; }
.fighter-e { left: 69%; --dir: -1; z-index: 1; }
.fighter-body { width: 100%; height: 100%; animation: bob 1.4s ease-in-out infinite; }
.fighter-e .fighter-body { animation-delay: -.7s; }
.fighter img { width: 100%; height: 100%; display: block; scale: var(--flip, 1) 1; transform-origin: 50% 100%;
  filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .35)); }
.fighter[data-pose="ko"] .fighter-body, .fighter[data-pose="koBody"] .fighter-body, .fighter[data-pose="win"] .fighter-body { animation: none; }
.fighter[data-pose="ko"] .fighter-body { translate: calc(var(--dir) * -12%) 0; scale: .8; transform-origin: 50% 100%; }
/* ボディダウン（うずくまり）は絵いっぱいに描かれているので、頭の大きさが構えとそろうよう縮める（2026-11-12） */
.fighter[data-pose="koBody"] .fighter-body { translate: calc(var(--dir) * -6%) 0; scale: .7; transform-origin: 50% 100%; }
.fighter.is-lunge img { animation: lunge .42s cubic-bezier(.2, .9, .3, 1); }
.fighter.is-hit img { animation: hit .45s ease-out; }
.fighter.is-block img { animation: block .4s ease-out; }
.fighter.is-windup img { animation: windup .45s ease-in-out infinite alternate; }
.fighter.is-yandere img { filter: drop-shadow(0 0 6px #b04dff) drop-shadow(0 0 16px #6a1fb8) drop-shadow(0 6px 4px rgba(0, 0, 0, .35)); }
.fighter.is-yandere .fighter-body::before { content: ""; position: absolute; left: 30%; right: 30%; top: 8%; bottom: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150, 40, 220, .45), transparent); animation: aura 1s ease-in-out infinite alternate; }
@keyframes lunge { 0% { translate: 0 0; } 35% { translate: calc(var(--dir) * 9%) 0; } 100% { translate: 0 0; } }
@keyframes hit {
  0% { translate: 0 0; filter: brightness(3) saturate(0); }
  20% { translate: calc(var(--dir) * -6%) 0; filter: brightness(2) saturate(.3); }
  45% { translate: calc(var(--dir) * -3%) 0; filter: none; }
  70% { translate: calc(var(--dir) * -4%) 0; }
  100% { translate: 0 0; } }
@keyframes block { 0% { translate: calc(var(--dir) * -3%) 0; filter: brightness(1.6); } 100% { translate: 0 0; } }
@keyframes windup { from { translate: 0 0; } to { translate: calc(var(--dir) * -2.5%) 0; } }
@keyframes aura { from { opacity: .6; scale: .95; } to { opacity: 1; scale: 1.08; } }
.ring.is-shake { animation: shake .35s linear; }

/* ダウンの瞬間のストップモーション：動きを止め、背景の色を抜き、集中線を出す
 * .stopfx は z-index なし（中の ::before / ::after がリングの重なり順に直接入る：背景の上・キャラの下に色抜き、キャラの上に集中線） */
.stopfx { position: absolute; inset: 0; pointer-events: none; }
.stopfx::before { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(18, 12, 34, .5); -webkit-backdrop-filter: grayscale(1); backdrop-filter: grayscale(1); }
.stopfx::after { content: ""; position: absolute; inset: 0; z-index: 4;
  background: repeating-conic-gradient(from 0deg at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .55) 0 .9deg, transparent .9deg 6deg);
  -webkit-mask: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), transparent 0 24%, #000 60%);
  mask: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), transparent 0 24%, #000 60%); }
.stopfx.is-play::before { animation: stop-flash .35s ease-out; }
.stopfx.is-play::after { animation: stop-lines .2s ease-out; }
@keyframes stop-flash { 0% { background: rgba(255, 255, 255, .95); } 100% { background: rgba(18, 12, 34, .5); } }
@keyframes stop-lines { from { opacity: 0; scale: 1.25; } }
.ring.is-stop, .ring.is-stop .fighter img, .ring.is-stop .fighter-body, .ring.is-stop .pov-gloves, .ring.is-stop .glove { animation-play-state: paused; }
.fighter.is-stopped img { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 8px rgba(255, 255, 255, .85)) !important; }
@keyframes shake { 0%, 100% { translate: 0 0; } 20% { translate: -5px 2px; } 40% { translate: 5px -2px; } 60% { translate: -3px 1px; } 80% { translate: 3px 0; } }

/* 相手の予告 */
.tele { position: absolute; top: 5%; left: 69%; translate: -50% 0; z-index: 5; width: 74px; height: 74px; display: grid; place-items: center; --cell: 46px; }
.tele.is-in { animation: tele-in .3s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes tele-in { from { scale: .3; opacity: 0; } }
.tele-timer { position: absolute; inset: 0; rotate: -90deg; }
.tele-timer circle { fill: rgba(20, 15, 32, .82); stroke: var(--tk); stroke-width: 4; stroke-dasharray: 100; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.tele .token { position: relative; width: 46px; height: 46px; transform: none !important; }
.tele-num { position: absolute; right: -16px; bottom: -6px; font-family: var(--display); font-size: 1.35rem; color: #fff;
  -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.tele.is-urgent { animation: urgent .25s ease-in-out infinite alternate; }
@keyframes urgent { to { scale: 1.1; } }

/* 吹き出し */
.bubble { position: absolute; top: 4%; max-width: 44%; z-index: 6; background: var(--paper); color: var(--ink); font-weight: 900;
  font-size: .82rem; line-height: 1.45; padding: 7px 11px; border-radius: 14px; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.bubble-p { left: 3%; }
.bubble-e { right: 3%; }
.bubble::after { content: ""; position: absolute; bottom: -8px; width: 14px; height: 14px; background: inherit; rotate: 45deg; border-radius: 2px; }
.bubble-p::after { left: 30%; }
.bubble-e::after { right: 30%; }
.bubble.is-show { animation: pop-in .25s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop-in { from { scale: .6; opacity: 0; } }
.tele:not([hidden]) ~ .bubble-e { top: calc(5% + 80px); }

/* 中央の文字 */
.banner { position: absolute; inset: 0; display: grid; place-items: center; z-index: 8; pointer-events: none; opacity: 0;
  font-family: var(--display); font-size: clamp(1.8rem, 9vw, 3.4rem); line-height: 1; text-align: center; color: #fff;
  -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; letter-spacing: .02em; }
.banner.is-show { animation: banner 1s cubic-bezier(.2, 1.3, .4, 1) forwards; }
@keyframes banner { 0% { opacity: 0; scale: 1.8; } 18% { opacity: 1; scale: 1; } 100% { opacity: 1; scale: 1; } }
.banner-round { color: #fff; }
.banner-fight, .banner-counter { color: var(--gold); }
.banner-counter { rotate: -6deg; font-size: clamp(2.2rem, 11vw, 4rem); }
.banner-down, .banner-ko { color: var(--danger); }
.banner-ko { font-size: clamp(2.8rem, 14vw, 5rem); }
.banner-special { color: #8ff0ff; font-size: clamp(1.4rem, 7vw, 2.6rem); }
.banner-warn { color: #ff9a6b; font-size: clamp(1.3rem, 6vw, 2.2rem); }
.banner-yandere { color: #e3a6ff; font-size: clamp(1.4rem, 7vw, 2.6rem); -webkit-text-stroke-color: #2a0b3d; }

.fx { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.mouthpiece { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); will-change: transform; }
.mouthpiece svg { display: block; width: 100%; height: auto; }
.float { position: absolute; top: 26%; translate: -50% 0; font-family: var(--display); font-size: 1.5rem; -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill; animation: float 1s ease-out forwards; white-space: nowrap; }
.float-p { left: 31%; }
.float-e { left: 69%; }
.float-dmg { color: #fff; }
.float-guard { color: #9fe8ff; font-size: 1.15rem; }
@keyframes float { 0% { opacity: 0; translate: -50% 10px; } 15% { opacity: 1; translate: -50% 0; } 100% { opacity: 0; translate: -50% -38px; } }

.count { position: absolute; inset: 0; display: grid; place-items: center; z-index: 8; font-family: var(--display);
  font-size: clamp(4rem, 22vw, 7rem); color: #fff; -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; pointer-events: none; }
.count.is-pop { animation: count .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes count { from { scale: 1.8; opacity: 0; } }

/* 盤面の上の帯（右にスキルボタン） */
.strip-wrap { display: flex; gap: 8px; min-width: 0; }
.strip-wrap .strip { flex: 1; min-width: 0; }
.skill { position: relative; flex: none; width: 78px; height: 70px; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--night-2); color: var(--paper); padding: 6px 4px; display: grid; align-content: center; justify-items: center; gap: 1px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08); font-family: var(--body); --g: 0; }
.skill:disabled { cursor: default; }
.sk-fill { position: absolute; inset: 0; transform-origin: 50% 100%; scale: 1 var(--g); background: linear-gradient(0deg, color-mix(in srgb, var(--theme, var(--gold)) 70%, transparent), color-mix(in srgb, var(--theme, var(--gold)) 25%, transparent)); transition: scale .25s ease-out; }
.skill > span:not(.sk-fill) { position: relative; line-height: 1.15; text-align: center; }
.sk-label { font-family: var(--display); font-size: .9rem; letter-spacing: .06em; }
.sk-name { display: none; } /* スキル名はカード・カットインで出す（ボタンには収まらない） */
.sk-state { font-family: var(--display); font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.skill.is-ready { background: linear-gradient(180deg, #ffe07a, var(--gold) 55%, #e8a915); color: #3a2600; box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(255, 204, 51, .7);
  animation: skill-ready .7s ease-in-out infinite alternate; }
.skill.is-ready .sk-fill { display: none; }
.skill.is-ready .sk-name, .skill.is-ready .sk-state { color: #3a2600; }
.skill.is-ready .sk-state { font-size: .95rem; }
.skill.is-on { box-shadow: inset 0 0 0 2px var(--theme, var(--gold)), 0 0 14px color-mix(in srgb, var(--theme, var(--gold)) 60%, transparent); }
.skill.is-on .sk-state { color: #fff; }
.skill.is-full { animation: skill-full .5s ease-out; }
@keyframes skill-ready { to { scale: 1.05; } }
@keyframes skill-full { 0% { scale: 1.25; } 100% { scale: 1; } }
.skill:not(:disabled):active { scale: .96; }

/* スキル発動中の自分 */
.fighter.is-skill img { filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 14px var(--theme)) drop-shadow(0 6px 4px rgba(0, 0, 0, .35)); }
.token.is-converted::before { animation: converted .5s ease-out; }
@keyframes converted { 0% { scale: .2; box-shadow: 0 0 0 6px #fff, 0 0 24px 8px var(--tk); } 60% { scale: 1.15; } 100% { scale: 1; } }
.float-weak { color: #ffd23f; font-size: 1.05rem; top: 14%; }
.is-skill-on .pov-gloves .glove svg { filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 16px var(--gold)); }

/* カットイン（スキル発動） */
.cutin { position: absolute; inset: 0; z-index: 9; display: grid; align-items: center; pointer-events: none; background: rgba(8, 5, 18, .45); }
.cutin-band { position: relative; height: 54%; display: flex; align-items: center; justify-content: flex-end; padding-right: 6%; overflow: hidden;
  background: linear-gradient(100deg, color-mix(in srgb, var(--theme) 85%, #000) 0 35%, var(--theme) 60%, color-mix(in srgb, var(--theme) 60%, #fff));
  box-shadow: 0 0 0 4px #fff, 0 0 30px rgba(0, 0, 0, .5); rotate: -4deg; margin: 0 -6%; }
.cutin-band::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(100deg, transparent 0 22px, rgba(255, 255, 255, .14) 22px 26px); }
.cutin-band img { position: absolute; left: 0; bottom: -55%; height: 210%; width: auto; aspect-ratio: 1000/600; scale: var(--flip, 1) 1; z-index: 1; translate: -18% 0;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .4)); }
.cutin-text { position: relative; z-index: 2; margin: 0; text-align: right; display: grid; gap: 2px; }
.cutin-who { font-weight: 900; font-size: .85rem; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.cutin-name { font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 7vw, 2.4rem); line-height: 1.05; color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.cutin.is-play { animation: cutin-bg 1.1s ease both; }
.cutin.is-play .cutin-band { animation: cutin-band 1.1s cubic-bezier(.2, .9, .3, 1) both; }
.cutin.is-play .cutin-band img { animation: cutin-img 1.1s cubic-bezier(.2, .9, .3, 1) both; }
.cutin.is-play .cutin-text { animation: cutin-text 1.1s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes cutin-bg { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cutin-band { 0% { scale: 1 0; } 14% { scale: 1 1; } 86% { scale: 1 1; opacity: 1; } 100% { scale: 1 .2; opacity: 0; } }
@keyframes cutin-img { 0% { translate: -70% 0; } 22% { translate: -18% 0; } 80% { translate: -12% 0; } 100% { translate: -12% 0; } }
@keyframes cutin-text { 0%, 12% { translate: 40% 0; opacity: 0; } 30% { translate: 0 0; opacity: 1; } 100% { translate: -3% 0; opacity: 1; } }

.strip { background: var(--night-2); border-radius: var(--radius); padding: 8px 12px; height: 70px; overflow: hidden; display: grid; gap: 6px; align-content: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06); }
.strip[data-mode="tele"] { box-shadow: inset 0 0 0 2px var(--blue); background: linear-gradient(90deg, rgba(47, 120, 224, .22), var(--night-2) 60%); }
.strip[data-mode="pdown"] { box-shadow: inset 0 0 0 2px var(--danger); background: linear-gradient(90deg, rgba(255, 90, 79, .2), var(--night-2) 60%); }
.st-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.st-text { flex: 1; min-width: 0; font-size: .88rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-text b { font-weight: 900; }
.st-num { font-family: var(--display); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.st-num small { font-size: .8rem; color: var(--muted); }
.st-combo { font-family: var(--display); color: var(--gold); font-size: 1rem; white-space: nowrap; }
.st-next { font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.mini { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-family: var(--display); font-size: .82rem;
  color: #fff; background: var(--tk); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); -webkit-text-stroke: 3px rgba(0, 0, 0, .35); paint-order: stroke fill; }
.meter { position: relative; height: 12px; border-radius: 6px; background: #15111f; margin: 0 4px 12px; }
.meter-fill { height: 100%; border-radius: 6px; background: var(--tk, var(--danger)); transition: width .18s ease-out; max-width: 100%; }
.meter.is-guard .meter-fill { box-shadow: 0 0 10px var(--tk); }
.meter.is-down .meter-fill { background: var(--danger); }
.mk { position: absolute; top: -3px; bottom: -3px; width: 3px; translate: -50% 0; background: #fff; border-radius: 2px; }
.mk span { position: absolute; top: 100%; left: 50%; translate: -50% 2px; font-size: .64rem; font-style: normal; font-weight: 900; white-space: nowrap; color: #cfe8ff; }
.mk-counter { background: var(--gold); }
.mk-counter span { color: var(--gold); translate: -90% 2px; }

/* パズル盤面 */
.board { position: relative; width: min(100%, calc((100svh - var(--ring-h) - 204px) * 6 / 7)); justify-self: center; touch-action: none; border-radius: var(--radius); --cell: 56px;
  background-color: #17122a;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, .055) 0 calc(var(--cell) * .4), transparent calc(var(--cell) * .41));
  background-size: var(--cell) var(--cell); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06), 0 10px 30px rgba(0, 0, 0, .3); }
.board-tokens { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.board-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.board-count { position: absolute; left: 0; top: 0; translate: -50% -100%; pointer-events: none; z-index: 3; font-family: var(--display);
  font-size: 1.3rem; color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; opacity: .8; }
.board-count.is-ready { color: var(--gold); opacity: 1; }
.board.is-locked .token { filter: saturate(.45) brightness(.7); }
.token { position: absolute; left: 0; top: 0; width: var(--cell); height: var(--cell); display: grid; place-items: center;
  transition: transform .2s cubic-bezier(.3, 1.2, .5, 1); will-change: transform; }
.token::before { content: ""; position: absolute; inset: 7%; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .75) 0 10%, transparent 34%), radial-gradient(circle at 50% 60%, var(--tk), color-mix(in srgb, var(--tk) 70%, #000));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), 0 3px 0 rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(255, 255, 255, .55); transition: scale .12s, box-shadow .12s; }
.tk-kana { position: relative; font-family: var(--display); font-size: calc(var(--cell) * .4); color: #fff; line-height: 1;
  -webkit-text-stroke: calc(var(--cell) * .07) rgba(30, 20, 40, .55); paint-order: stroke fill; translate: 0 -4%; }
.tk-kana svg { width: calc(var(--cell) * .5); height: calc(var(--cell) * .5); color: #fff; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.tk-glyph { position: absolute; right: 9%; bottom: 9%; width: calc(var(--cell) * .3); height: calc(var(--cell) * .3); border-radius: 50%;
  background: rgba(20, 14, 32, .78); color: #fff; display: grid; place-items: center; }
.tk-glyph svg { width: 78%; height: 78%; }
.token[data-type="wild"]::before { background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .85) 0 10%, transparent 34%), conic-gradient(#ff6a5c, #ffa22b, #ffd23f, #86cf45, #38c3df, #a679f2, #ff6a5c); }
.token.is-linked::before { scale: .88; box-shadow: 0 0 0 4px #fff, 0 0 18px 4px var(--tk); }
.token.is-popping { transition: none; animation: pop .22s ease-out forwards; }
@keyframes pop { to { scale: 1.5; opacity: 0; } }
/* 予告中のパンチと同じアイコンを目立たせる */
.board[data-bias="jab"] .token[data-type="jab"]::before,
.board[data-bias="straight"] .token[data-type="straight"]::before,
.board[data-bias="hook"] .token[data-type="hook"]::before,
.board[data-bias="upper"] .token[data-type="upper"]::before,
.board[data-bias="body"] .token[data-type="body"]::before { animation: beckon .6s ease-in-out infinite alternate; }
@keyframes beckon { to { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), 0 0 0 3px rgba(255, 255, 255, .85), 0 0 14px 2px var(--tk); } }

.btn-pause { margin-top: 4px; width: 34px; height: 26px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .1); cursor: pointer; display: inline-grid; place-items: center; }
.btn-pause svg { width: 16px; height: 16px; fill: #fff; }
.btn-pause:hover { background: rgba(255, 255, 255, .18); }

/* 横に広い画面ではリングと盤面を左右に並べる */
@media (min-width: 960px) and (min-height: 600px) {
  .screen-fight { --ring-h: min(66svh, 600px); max-width: 1180px; grid-template-columns: minmax(0, 1fr) min(430px, 40vw); gap: 18px; padding-top: 18px; }
  .board { width: min(100%, calc((100svh - 150px) * 6 / 7)); }
  .hud-name .nm { font-size: 1.15rem; }
  .hp { height: 20px; }
  .clock { font-size: 2.1rem; }
  .bubble { font-size: .95rem; }
}

/* ================= 1人称モード ================= */
.pov-hint { margin: -4px 0 0; font-size: .82rem; color: #ffd9a8; line-height: 1.5; }

.ring.is-pov .fighter-p { display: none; }
.ring.is-pov .fighter-e { left: 50%; height: 120%; bottom: -24%; z-index: 2; }
/* 相手のダウン（正面の尻もち・うずくまり）は持ち上げて、自分のグローブも下げて見えるようにする */
.ring.is-pov .fighter-e[data-pose="ko"] .fighter-body, .ring.is-pov .fighter-e[data-pose="koBody"] .fighter-body { translate: 0 -13%; scale: .75; transform-origin: 50% 100%; } /* 2026-11-12：頭の大きさを構えとそろえるため等倍→0.75倍。縮んだぶん少し持ち上げる */
.ring.is-pov:has(.fighter-e[data-pose="ko"]) .pov-gloves .glove, .ring.is-pov:has(.fighter-e[data-pose="koBody"]) .pov-gloves .glove { translate: 0 34%; rotate: 0deg; }
.ring.is-pov .fighter-e.is-lunge img { animation: none; }
.ring.is-pov .fighter-e.is-lunge .fighter-body { animation: pov-lunge .42s cubic-bezier(.2, .9, .3, 1); transform-origin: 50% 100%; }
@keyframes pov-lunge { 35% { scale: 1.12; translate: 0 4%; } }
.ring.is-pov .tele { left: 80%; }
.ring.is-pov .float-e { left: 50%; top: 16%; }
.ring.is-pov .float-p { left: 50%; top: 56%; }
.ring.is-pov .float-p.float-dmg { color: #ff9a8f; }
.ring.is-pov .bubble-p { top: auto; bottom: 36%; left: 4%; }
.pov-note { position: absolute; left: 50%; top: 3%; translate: -50% 0; z-index: 5; margin: 0; max-width: 92%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: .68rem; font-weight: 700; color: #ffd9a8; background: rgba(20, 15, 32, .72); padding: 3px 10px; border-radius: 999px; }

/* 被弾したときの赤いフラッシュ、ダウン中のかすみ */
.ring.is-pov::after { content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(255, 40, 60, .7)); }
.ring.is-pov.is-hurt::after { animation: hurt .45s ease-out; }
@keyframes hurt { from { opacity: 1; } to { opacity: 0; } }
.ring.is-pov:has(.pov-gloves[data-state="ko"]) .fighter-e,
.ring.is-pov:has(.pov-gloves[data-state="ko"]) .ring-floor { filter: blur(2.5px) brightness(.7); transition: filter .4s; }

/* 自分のグローブ */
.pov-gloves { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.glove { position: absolute; bottom: -26%; height: 64%; aspect-ratio: 200 / 244; transition: translate .2s ease, rotate .2s ease; }
.glove svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); animation: glove-bob 1.4s ease-in-out infinite; }
.glove-l { left: 5%; rotate: 10deg; }
.glove-l svg { scale: -1 1; }
.glove-r { right: 5%; rotate: -10deg; }
.glove-r svg { animation-delay: -.7s; }
@keyframes glove-bob { 50% { translate: 0 -5%; } }
.pov-gloves:not([data-state="guard"]):not([data-state="pinch"]) svg { animation: none; }
.pov-gloves[data-state="pinch"] .glove { translate: 0 14%; }
.pov-gloves[data-state="rest"] .glove, .pov-gloves[data-state="restPinch"] .glove, .pov-gloves[data-state="corner"] .glove { translate: 0 42%; } /* インターバル中はグローブを下ろす */
.pov-gloves[data-state="block"] .glove-l { translate: 66% -34%; rotate: 22deg; }
.pov-gloves[data-state="block"] .glove-r { translate: -66% -34%; rotate: -22deg; }
.pov-gloves[data-state="hitFace"] .glove, .pov-gloves[data-state="hitBody"] .glove { translate: 0 22%; }
.pov-gloves[data-state="ko"] .glove { translate: 0 75%; transition-duration: .6s; }
.pov-gloves[data-state="win"] .glove-l { translate: 10% -32%; rotate: -6deg; }
.pov-gloves[data-state="win"] .glove-r { translate: -10% -32%; rotate: 6deg; }
.pov-gloves.punch-jab .glove-l { animation: p-jab .4s cubic-bezier(.2, .9, .3, 1); }
.pov-gloves.punch-body .glove-l { animation: p-body .42s cubic-bezier(.2, .9, .3, 1); }
.pov-gloves.punch-straight .glove-r { animation: p-straight .42s cubic-bezier(.2, .9, .3, 1); }
.pov-gloves.punch-hook .glove-r { animation: p-hook .46s ease-out; }
.pov-gloves.punch-upper .glove-r { animation: p-upper .46s ease-out; }
@keyframes p-jab { 35% { translate: 78% -62%; scale: .6; rotate: 0deg; } }
@keyframes p-body { 35% { translate: 72% -26%; scale: .66; rotate: 0deg; } }
@keyframes p-straight { 35% { translate: -82% -64%; scale: .55; rotate: 0deg; } }
@keyframes p-hook { 22% { translate: 12% -36%; rotate: -40deg; } 50% { translate: -74% -56%; scale: .6; rotate: 18deg; } }
@keyframes p-upper { 22% { translate: -36% 12%; rotate: 0deg; } 55% { translate: -64% -82%; scale: .6; rotate: -14deg; } }
.pov-gloves.is-hurt .glove { animation: glove-hurt .45s ease-out; }
@keyframes glove-hurt { 25% { translate: 0 24%; rotate: 0deg; } }
.pov-gloves.is-blocked::after { content: ""; position: absolute; left: 50%; top: 34%; width: 34%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(circle, #fff 0 18%, rgba(160, 230, 255, .8) 30%, transparent 62%); animation: spark .4s ease-out forwards; }
@keyframes spark { from { scale: .4; opacity: 1; } to { scale: 1.4; opacity: 0; } }

/* ================= ダイアログ ================= */
.dlg { border: 0; border-radius: 20px; padding: 22px; width: min(460px, calc(100vw - 32px)); background: var(--night-2); color: var(--paper);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(255, 255, 255, .08); }
.dlg::backdrop { background: rgba(10, 6, 20, .7); backdrop-filter: blur(3px); }
.dlg h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.howto li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.howto-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #3a2600; display: grid; place-items: center; font-family: var(--display); }
.howto b { font-weight: 900; }
.howto p { margin: 2px 0 0; font-size: .88rem; line-height: 1.6; color: #ddd8ef; }
.howto-note { font-size: .82rem; color: var(--muted); margin: 14px 0; }

.dlg-result { text-align: center; }
.dlg-result[data-outcome="win"] h2 { color: var(--gold); }
.dlg-result[data-outcome="lose"] h2 { color: #ff9a8f; }
.result-sub { margin: -6px 0 12px; color: var(--muted); font-size: .85rem; }
.result-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.result-table th { text-align: left; font-weight: 700; color: var(--muted); padding: 6px 4px; }
.result-table td { text-align: right; font-family: var(--display); padding: 6px 4px; font-variant-numeric: tabular-nums; }
.result-table thead td { font-family: var(--body); font-weight: 900; font-size: .78rem; color: var(--muted); }
.result-table tbody tr { border-top: 1px solid rgba(255, 255, 255, .08); }
.result-table tbody.is-you tr:first-child { border-top: 2px solid rgba(255, 255, 255, .16); }
.dlg-result .dlg-actions { justify-content: center; }
.result-arcade { margin: -4px 0 12px; font-family: var(--display); color: var(--gold); font-size: 1.05rem; letter-spacing: .04em; }

/* 勝ち抜き：次の相手 */
.slot:disabled { cursor: default; }
.dlg-ladder { text-align: center; }
.dlg-ladder h2 { margin: 2px 0 0; }
.dlg-ladder .dlg-actions { justify-content: center; }
.ladder-stage { margin: 0 0 4px; font-family: var(--display); color: var(--gold); letter-spacing: .08em; }
.ladder-vs { display: flex; justify-content: center; align-items: center; height: 120px; margin: 0 -10px; }
.ladder-vs img { height: 100%; width: auto; aspect-ratio: 1000/600; margin: 0 -17%; }
.ladder-vs img.is-flip { scale: -1 1; }
.ladder-vs span { position: relative; z-index: 1; font-family: var(--display); font-size: 1.5rem; color: var(--gold); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.ladder-list { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0 0; }
.ladder-list li { position: relative; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.ladder-list img { position: absolute; left: 50%; top: -4%; height: 190%; width: auto; max-width: none; aspect-ratio: 1000/600; translate: -50% 0; scale: -1 1; }
.ladder-list li.is-now { box-shadow: inset 0 0 0 3px var(--gold); background: rgba(255, 204, 51, .14); }
.ladder-list li.is-done img { opacity: .35; filter: grayscale(1); }
.ladder-list li.is-done::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); color: var(--gold); font-size: 1.3rem; }
.lad-q { font-family: var(--display); font-size: 1.3rem; color: var(--muted); }
.lad-no { position: absolute; left: 4px; bottom: 1px; font-size: .68rem; font-weight: 900; color: var(--paper); text-shadow: 0 1px 2px #000, 0 0 2px #000; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .banner.is-show { opacity: 1; }
}
