/* Shared reading tokens sit above the palace skin, never change card hit boxes. */
:root { --battle-reading-size: 13px; --ui-reading-size: 14px; }
html.rebel-battle .game-shell.battle-layout:not(.hidden) { position: fixed; inset: 0; }
html.rebel-battle:has(.game-shell:not(.hidden)), html.rebel-battle body:has(.game-shell:not(.hidden)) { overflow: hidden; }
.battle-reading-settings { border: 0; border-top: 1px solid #725d4f; padding: 18px 0 0; margin-top: 18px; }
.battle-reading-settings legend { color: #d8ba86; padding-right: 12px; }
.settings-panel :is(.battle-reading-settings, .salon-preferences) label { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; font-size: var(--ui-reading-size); }
.battle-reading-settings select { min-height: 40px; color: #f3e3c8; background: #251d25; border: 1px solid #8b7356; padding: 6px 12px; }
.battle-reading-settings input { width: 20px; height: 20px; accent-color: #b82b43; }
html[data-reading-size] :is(#cardInspector .inspect-description, #cardInspector .inspect-effect, #journalContent, #journalSearch, #guideOverlay p) { font-size: var(--ui-reading-size); }
html.battle-quiet-backdrop .game-shell.battle-layout::after { content: ""; position: absolute; inset: 20% 0 25%; z-index: 1; background: #100e1640; pointer-events: none; }
html.rebel-battle .theme-feijin.phase-one .battle-layout .board-row .card .stats {
  display: flex; position: absolute; inset: auto 2px 1px; justify-content: space-between; align-items: center; z-index: 6; pointer-events: none;
}
html.rebel-battle .theme-feijin.phase-one .battle-layout .board-row .card .stats > span {
  min-width: 26px; width: auto; min-height: 26px; height: 26px; padding: 1px 4px;
  display: grid; place-items: center; font: 700 19px/1 Georgia, serif; font-variant-numeric: tabular-nums;
  border: 1px solid #d3b884; border-radius: 4px; color: #fff7e6; text-shadow: 0 1px 2px #000;
}
html.rebel-battle .theme-feijin.phase-one .battle-layout .board-row .card .stats > .atk { background: #224b54; }
html.rebel-battle .theme-feijin.phase-one .battle-layout .board-row .card .stats > .hp { background: #79253c; }
html.rebel-battle .theme-feijin.phase-one .battle-layout .board-row .card.non-minion .stats { display: none; }
html.rebel-battle .theme-feijin.phase-one .battle-layout .board-row .card.selected { outline: none; box-shadow: none; }
html.rebel-battle .theme-feijin.phase-one .battle-layout .attack-drop-ready { outline: 1px solid #acd4c2 !important; outline-offset: 3px; box-shadow: 0 0 0 2px #1e3531, 0 0 12px #769f8f33; }
html.rebel-battle .theme-feijin.phase-one .battle-layout .attack-drop-ready:is(:hover,.attack-drop-hover) { outline-color: #f6dfac !important; box-shadow: 0 0 0 2px #4c3825, 0 0 18px #d7b57540; }
html.rebel-battle .theme-feijin.phase-one .battle-layout .attack-drop-blocked { filter: saturate(.55) brightness(.8); }
html.rebel-battle .theme-feijin.phase-one .battle-layout .board-card .evolve-button:disabled { visibility: hidden; }
#battleQuickEmotes { position: absolute; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 6px; z-index: 8; }
#battleQuickEmotes button { display: grid; place-items: center; width: 40px; height: 40px; min-width: 40px; padding: 8px; border: 1px solid #ad8d65; border-radius: 4px; background: #251923ed; color: #f1dfbd; cursor: pointer; }
#battleQuickEmotes button[data-quick-emote="ciallo"] { padding: 2px; }
#battleQuickEmotes img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
#battleQuickEmotes svg { width: 20px; height: 20px; }
#battleQuickEmotes output { color: #f2e3c8; width: 30px; font: 12px/1 system-ui; font-variant-numeric: tabular-nums; }
#battleQuickEmotes button:disabled { opacity: .4; cursor: not-allowed; }
html.rebel-battle .theme-feijin.phase-one .battle-layout #endTurnButton { font-size: 19px; }
@media (max-width: 999px) {
  html.rebel-battle .theme-feijin.phase-one .game-shell.battle-layout:not(:has(#mulliganPanel:not(.hidden))) { grid-template-columns: 8% minmax(0, 1fr) var(--leader-width) minmax(0, 1fr) 13%; }
  html.rebel-battle .theme-feijin.phase-one .battle-layout .board-row { gap: 8px; padding: 6px 4px; }
  html.rebel-battle .theme-feijin.phase-one .battle-layout .board-row .board-card { width: min(135px, calc(100cqh * 2 / 3 - 8px), calc((100cqw - 56px) / 7)); }
  html.rebel-battle .theme-feijin.phase-one .battle-layout .board-row .card .stats > span { min-width: 20px; min-height: 21px; height: 21px; padding: 0 3px; font-size: 15px; }
  html.rebel-battle .theme-feijin.phase-one .battle-layout .board-row .card .stats { inset: auto 0 -1px; }
  html.rebel-battle .theme-feijin.phase-one .battle-layout .board-row .card .evolve-button { display: none; }
  html.rebel-battle .theme-feijin.phase-one .battle-layout #endTurnButton { font-size: 12px; }
  #battleQuickEmotes { bottom: max(6px, env(safe-area-inset-bottom)); right: max(6px, env(safe-area-inset-right)); gap: 4px; }
  #battleQuickEmotes button { width: 36px; height: 36px; min-width: 36px; padding: 6px; }
  #battleQuickEmotes output { width: 24px; font-size: 11px; }
  html.rebel-battle .game-shell > #emoteBubble { max-width: min(230px, 40%); }
}
@media (max-height: 350px) {
  html.rebel-battle .theme-feijin.phase-one .battle-layout .board-row .card .stats > span { min-width: 17px; min-height: 18px; height: 18px; font-size: 13px; padding: 0 2px; }
}
@media (pointer: coarse) and (min-height: 400px) { #battleQuickEmotes button, .battle-card-focus .focus-toolbar button { width: 44px; height: 44px; min-width: 44px; } }
body.salon-reduced-motion :is(.game-shell, #cardInspector, #collectionEditor) *, body.salon-reduced-motion :is(.game-shell, #cardInspector, #collectionEditor) *::before, body.salon-reduced-motion :is(.game-shell, #cardInspector, #collectionEditor) *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
body.salon-reduced-motion .hand-card-face { rotate: 0deg !important; }

html.rebel-battle .rebel-match-signature { display: none; }
#battleCountRibbon { position: absolute; top: 8px; right: 18px; width: min(420px, calc(50% - var(--leader-width) / 2 - 40px)); z-index: 7; color: #ede2cb; border-block: 1px solid #a98c594a; background: #17131ad9; padding: 3px 6px; }
.battle-count-row { display: flex; align-items: center; gap: 4px; min-height: 28px; }
.battle-count-row > strong { width: 30px; flex: 0 0 30px; font: 11px/1.4 system-ui; color: #ddc397; }
.battle-count-row[data-owner="enemy"] > strong { color: #d9a5af; }
#battleCountRibbon button { display: flex; align-items: center; justify-content: center; flex: 1; gap: 5px; min-width: 0; min-height: 28px; border: 0; border-radius: 2px; padding: 3px; background: transparent; color: inherit; font: 12px/1.3 system-ui; box-shadow: none; }
#battleCountRibbon svg { width: 14px; height: 14px; flex: 0 0 14px; stroke-width: 1.5; }
#battleCountRibbon button.battle-scene-marker { flex: 0 0 26px; color: #c3b9aa; border-left: 1px solid #a98c594a; }
#battleCountRibbon .battle-scene-marker[data-active="true"] { color: #f2d599; box-shadow: inset 0 -1px #d0aa64; }
#battleCountRibbon button.battle-connection-status { justify-content: end; width: 100%; min-height: 18px; padding-block: 1px; font-size: 11px; color: #b5bfae; }
#battleCountRibbon .battle-connection-status[data-state="closed"], #battleCountRibbon .battle-connection-status[data-state="suspended"] { color: #f4a1ad; }
html.rebel-battle .theme-feijin.phase-one .battle-layout > .topbar { top: 98px; right: 18px; gap: 8px; }
html.rebel-battle .battle-layout > .topbar > button, html.rebel-battle .battle-layout > .topbar > .battle-menu > summary { width: 36px; height: 36px; min-width: 36px; padding: 8px; background: #1c171de8; color: #e5cc9d; border: 1px solid #a286585c; border-radius: 4px; box-shadow: inset 0 1px #ecdbb01c; }
#battleTaskProgress { position: absolute; right: 18px; top: 146px; max-width: min(420px, calc(50% - var(--leader-width) / 2 - 40px)); z-index: 6; border: 0; border-bottom: 1px solid #a286585c; padding: 5px; background: #231820e8; color: #dbc6a2; font: 12px/1.5 system-ui; text-align: right; overflow-wrap: anywhere; }
#battleTaskProgress[hidden] { display: none; }
html.rebel-battle .theme-feijin.phase-one .game-shell.battle-layout .log-panel { display: none; }
#battleCommandDialog { width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; color: #f0e5d2; background: #19151d; border: 1px solid #a58b605c; border-radius: 6px; box-shadow: 0 22px 80px #000a; overflow: auto; }
#battleCommandDialog::backdrop { background: #08070c99; backdrop-filter: blur(4px); }
#battleCommandDialog > header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid #a58b605c; background: #261c24; }
#battleCommandDialog h2 { margin: 0; font: 500 20px/1.4 'Songti SC',serif; letter-spacing: 0; }
#battleCommandDialog > header button { width: 40px; height: 40px; display: grid; place-items: center; padding: 10px; border: 1px solid #9b805852; border-radius: 4px; background: transparent; color: #ead3a6; }
#battleCommandDialog svg { width: 18px; height: 18px; }
#battleCommandDialog .battle-assistant { border: 0; padding: 8px; }
#battleCommandDialog .battle-assistant, #journalContent .battle-timeline { font-size: var(--ui-reading-size); }
#battleCommandDialog .ba-task strong, #battleCommandDialog .ba-scenes strong { font-size: var(--battle-reading-size); }
#battleCommandDialog :is(.ba-task p,.ba-preview-note,.ba-turn-use,.ba-picks label), .battle-card-focus .focus-modifiers { font-size: max(12px, calc(var(--ui-reading-size) - 1px)); }
#battleCommandDialog select { background: #221b23; color: #efdebc; border-color: #806b50; }
html.rebel-battle .theme-feijin.phase-one .game-shell.battle-layout :is(#battleQuickEmotes button,#battleCountRibbon button,.topbar > button,.battle-menu > summary,.focus-toolbar button):not(:disabled):is(:hover,:focus-visible) { background: #392830; color: #f4dfb4; border-color: #c0a16a; box-shadow: inset 0 1px #ffecc324; transform: none; }
html.rebel-battle .theme-feijin.phase-one .game-shell.battle-layout .deck-pack:hover { transform: none; }
html.rebel-battle .theme-feijin.phase-one .battle-layout .board-card.is-evolved::after { content: none; }
/* Follow the existing transparent artwork silhouette instead of boxing the painting. */
html.rebel-battle .theme-feijin.phase-one .game-shell.battle-layout .board-row .card:is(.chess-card,.framed-card):is(.is-inspected,.selected,.attack-drop-ready) { outline: none !important; box-shadow: none; }
html.rebel-battle .theme-feijin.phase-one .game-shell.battle-layout .board-row .card:is(.chess-card,.framed-card).is-inspected .card-art { filter: none; }
html.rebel-battle .theme-feijin.phase-one .game-shell.battle-layout .board-row .card.attack-exhausted.is-inspected .card-art { filter: grayscale(.55) brightness(.48); }
html.rebel-battle .theme-feijin.phase-one .game-shell.battle-layout .board-row .card.attack-drop-ready .card-art { filter: drop-shadow(0 0 1px #bce8d4) drop-shadow(0 0 5px #80b99d50); }
html.rebel-battle .theme-feijin.phase-one .game-shell.battle-layout .board-row .card.attack-drop-ready:hover .card-art { filter: drop-shadow(0 0 1px #ffebbc) drop-shadow(0 0 7px #e2c58760); }
html.rebel-battle .theme-feijin.phase-one .game-shell.battle-layout .board-row .card:focus-visible:not(.is-inspected):not(.selected) { outline: 1px solid #f5dcab !important; outline-offset: 4px; }
html.rebel-battle .battle-layout .board-card .ward-emblem { color: #d8e7cf; filter: drop-shadow(0 1px 2px #080d0a); }
html.rebel-battle .battle-layout .board-card .ward-emblem svg { fill: #244039f2; stroke-width: 1.4; }
html.rebel-battle .theme-feijin.phase-one .game-shell.battle-layout .deck-pack { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
html.rebel-battle .theme-feijin.phase-one .game-shell.battle-layout .deck-pack > :is(strong,span:last-child) { top: 0; padding: 0; background: transparent; }
html.rebel-battle #cardPlayEffects .play-fx-card { border: 1px solid #c5a878; border-radius: 4px; background: #18141b; box-shadow: 0 8px 28px #0008, 0 0 12px #d9c39324; }
html.rebel-battle #cardPlayEffects .play-fx-impact { border: 1px solid var(--fx-color); border-radius: 50%; clip-path: none; background: transparent; box-shadow: inset 0 0 12px #e8d6b718, 0 0 8px #e8d6b724; }
html.rebel-battle #cardPlayEffects .play-fx-label { border-block: 1px solid #b596655e; clip-path: none; padding: 7px 14px; background: #241923eb; color: #f5e6c8; font: 14px/1.5 'Songti SC',serif; }
html.rebel-battle #cardPlayEffects .play-fx-group { --fx-color: #cda879; }
html.rebel-battle #cardPlayEffects .play-fx-group[data-rarity="legendary"] { --fx-color: #ead399; }
html.rebel-battle #cardPlayEffects .play-fx-group.play-fx-scene { --fx-color: #a7c8b6; }
html.rebel-battle .battle-feedback { inset: 0 0 auto; height: 20dvh; padding: 12px; align-items: end; }
html.rebel-battle .battle-feedback-card { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; width: max-content; max-width: min(600px, 80%); padding: 10px 18px; border: 1px solid #b89b656b; border-radius: 4px; background: #251b24f2; box-shadow: 0 8px 24px #0005, inset 0 1px #fff1ce15; }
html.rebel-battle .battle-feedback-type { margin: 0; padding: 0 10px 0 0; border-right: 1px solid #b89b655c; border-radius: 0; background: transparent; color: #d1b77f; font: 12px/1.4 system-ui; white-space: nowrap; }
html.rebel-battle .battle-feedback-card strong { font: 500 17px/1.5 'Songti SC',serif; color: #f3e5cc; overflow-wrap: anywhere; }
html.rebel-battle .battle-feedback.show .battle-feedback-card { animation: court-notice-in 1.5s ease both; }
@keyframes court-notice-in { 0% { opacity: 0; transform: translateY(4px); } 12%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-3px); } }
body.salon-reduced-motion .battle-feedback.show .battle-feedback-card { animation: none; opacity: 1; transform: none; }
@media (max-width: 999px) {
  #battleCountRibbon { top: 3px; right: 8px; padding: 0 3px; width: calc(50% - var(--leader-width) / 2 - 24px); }
  #battleCountRibbon button { min-height: 25px; gap: 2px; padding: 2px; font-size: 11px; }
  .battle-count-row { min-height: 25px; gap: 1px; }
  .battle-count-row > strong { width: 24px; flex-basis: 24px; font-size: 10px; }
  #battleCountRibbon svg { width: 12px; height: 12px; flex-basis: 12px; }
  #battleCountRibbon button.battle-scene-marker { flex-basis: 20px; }
  #battleCountRibbon button.battle-connection-status { min-height: 16px; font-size: 10px; }
  html.rebel-battle .theme-feijin.phase-one .battle-layout > .topbar { inset: 6px auto auto 8px; gap: 4px; }
  html.rebel-battle .battle-layout > .topbar > button, html.rebel-battle .battle-layout > .topbar > .battle-menu > summary { width: 36px; height: 36px; min-width: 36px; }
  #battleTaskProgress { inset: 46px auto auto 8px; max-width: calc(50% - var(--leader-width) / 2 - 30px); font-size: 10px; text-align: left; line-height: 1.4; padding: 2px; }
  #battleCommandDialog > header { padding-block: 4px; }
  #battleCommandDialog .ba-body { padding-block: 5px; }
  html.rebel-battle .battle-feedback { height: 24dvh; }
  html.rebel-battle .battle-feedback-card { max-width: 72%; padding: 6px 10px; gap: 6px; }
  html.rebel-battle .battle-feedback-card strong { font-size: 13px; }
  html.rebel-battle .battle-feedback-type { font-size: 10px; }
  html.rebel-battle .theme-feijin.phase-one .battle-layout .hero.enemy.has-deck-leader .phase1-economy { inset: 68px auto auto calc(100% + 22px); width: 138px; padding: 2px 4px; border: 0; }
  html.rebel-battle .theme-feijin.phase-one .battle-layout .hero.enemy.has-deck-leader .phase1-next { display: none; }
  html.rebel-battle .theme-feijin.phase-one .battle-layout .hero.player.has-deck-leader .phase1-economy { inset: auto auto 50px calc(100% + 20px); width: 120px; padding: 3px 6px; }
  html.rebel-battle .theme-feijin.phase-one .battle-layout .hero.player.has-deck-leader .phase1-next { display: none; }
}
html.rebel-battle .theme-feijin.phase-one .game-shell.battle-layout .hero.enemy .chess-skills { display: none; }
@media (max-width: 1199px) {
  html.rebel-battle .theme-feijin.phase-one .battle-layout > .topbar { inset: 6px auto auto 8px; gap: 4px; height: auto; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: start; }
  html.rebel-battle .theme-feijin.phase-one .battle-layout > .topbar > button, html.rebel-battle .theme-feijin.phase-one .battle-layout > .topbar > .battle-menu > summary { min-height: 36px; height: 36px; flex: 0 0 36px; margin: 0; align-self: center; transform: none; translate: none; }
  #battleTaskProgress { inset: 50px auto auto 8px; max-width: calc(50% - var(--leader-width) / 2 - 30px); font-size: 10px; text-align: left; line-height: 1.4; padding: 2px; }
}
@media (max-width: 999px) and (orientation: landscape) {
  html.rebel-battle .theme-feijin.phase-one .battle-layout .hero.player .chess-skills { inset: auto auto 2px calc(100% + 20px); width: 48px; gap: 3px; }
  html.rebel-battle .theme-feijin.phase-one .battle-layout .hero.player .chess-skills button { min-height: 26px; height: 26px; padding: 2px; font-size: 10px; border-radius: 3px; background: #241c23; }
}
@media (max-width: 999px) and (max-height: 350px) {
  html.rebel-battle .theme-feijin.phase-one .battle-layout .hero.player .chess-skills button { min-height: 20px; height: 20px; }
}
/* Coarse-pointer portrait uses the existing orientation gate; narrow desktop windows remain readable. */
@media (max-width: 560px) and (orientation: portrait) {
  #battleCountRibbon { inset: calc(22dvh + 4px) 8px auto; width: auto; }
  #battleTaskProgress { inset: 40% 8px auto; width: auto; max-width: none; text-align: center; }
}

/* Reference information belongs in the journal; only the clock stays on the field. */
#battleCountRibbon .battle-ribbon-footer { display: flex; align-items: center; gap: 6px; }
#battleCountRibbon .battle-ribbon-footer .battle-connection-status { justify-content: start; width: auto; }
#battleCountRibbon .battle-connection-status span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#battleCountRibbon .battle-ribbon-clock { flex: 0 1 auto; min-height: 18px; font-size: 11px; color: #decfae; white-space: nowrap; }
#battleCountRibbon .battle-ribbon-clock.is-low { color: #ffb0b9; }
.theme-feijin #battleJournal[open] { display: flex; flex-direction: column; overflow: hidden; max-height: calc(100dvh - 24px); }
#battleJournal > :not(#journalContent) { flex-shrink: 0; }
#battleJournal #journalContent { flex: 1 1 auto; min-height: 0; max-height: none; padding-bottom: 6px; }
#battleJournal .battle-status-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 8px 0; color: #d8c3a2; font: 12px/1.5 system-ui; border-bottom: 1px solid #a78b5440; }
#battleJournal .battle-status-strip > * { display: none; }
#battleJournal .battle-status-strip :is(#turnCounter,#turnTimerStatus,#phase1Receipt):not(.hidden) { display: block; min-height: 0; border: 0; padding: 0; background: none; font: inherit; color: inherit; }
#battleJournal .battle-status-strip #turnCounter { font-weight: 600; }
#battleJournal .battle-status-strip #turnTimerStatus.is-low { color: #ffb0b9; }
#battleJournal .journal-recent { padding: 4px 0 12px; margin-bottom: 12px; border-bottom: 1px solid #a78b543b; }
#battleJournal .journal-recent summary { padding: 6px 0; font: 500 15px/1.5 'Songti SC',serif; color: #dec491; cursor: pointer; }
#battleJournal .battle-info-table thead th { position: sticky; top: 0; z-index: 1; }
#battleJournal .journal-recent .battle-latest-control { border: 0; border-radius: 0; background: transparent; padding: 7px 0; font-size: var(--battle-reading-size); box-shadow: none; }
#battleJournal .journal-recent .battle-latest-control span { -webkit-line-clamp: 2; }
#battleQuickEmotes[hidden], #battleResultDock[hidden] { display: none; }
.game-shell.match-finished #turnNotice { visibility: hidden; }
#battleResultDock { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 12; display: flex; gap: 8px; }
#battleResultDock button { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border: 1px solid #ac8b635e; border-radius: 4px; background: #251a22f5; color: #f0ddbc; font: 13px/1.5 system-ui; box-shadow: inset 0 1px #ffe8be12; }
#battleResultDock button[data-result-home] { background: #6a293a; border-color: #ba8090; }
#battleResultDock svg { width: 18px; height: 18px; }
html.rebel-battle .theme-feijin.phase-one .game-shell.battle-layout #battleResultDock button:hover { transform: none; box-shadow: inset 0 1px #ffefc322; color: #fff0d0; background: #47303b; }

/* A native modal supplies focus containment and leaves the finished field inspectable. */
.theme-feijin #resultOverlay { inset: 0; margin: auto; width: min(600px, calc(100% - 24px)); height: fit-content; max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 6px; background: transparent; color: #f4e4cb; backdrop-filter: none; overflow: auto; }
#resultOverlay:not([open]), #resultOverlay.hidden { display: none; }
#resultOverlay::backdrop { background: #09080fba; backdrop-filter: blur(5px); }
.theme-feijin #resultPanel { display: flex; flex-direction: column; width: 100%; max-height: calc(100dvh - 24px); padding: 24px 28px 0; border: 1px solid #ad8d635e; border-top: 2px solid #d2b778; border-radius: 6px; background: #20181f; box-shadow: inset 0 1px #f9e5b21a; animation: result-settle 180ms ease-out; overflow: hidden; }
.theme-feijin #resultPanel::before { content: none; }
#resultPanel .result-body { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.theme-feijin #resultPanel.lose { border-top-color: #b87787; }
.theme-feijin #resultPanel.draw { border-top-color: #9dbdac; }
#resultPanel .result-seal { display: block; width: 150px; height: 56px; object-fit: contain; margin: 0 auto 10px; }
.theme-feijin #resultPanel .eyebrow { margin: 0; font: 12px/1.5 system-ui; color: #b9a58b; letter-spacing: 0; }
.theme-feijin #resultPanel #resultTitle { margin: 10px 0; font-size: 40px; line-height: 1.2; }
.theme-feijin #resultPanel #resultSummary { margin: 0; font-size: var(--ui-reading-size); line-height: 1.6; }
#resultPanel .result-ledger { padding: 18px 0; margin: 18px 0; border-color: #b698633b; }
#resultPanel .result-ledger div { border-color: #b698633b; }
#resultPanel .result-ledger strong { font: 500 26px/1.2 Georgia,serif; font-variant-numeric: tabular-nums; }
#resultPanel .result-actions { flex-shrink: 0; display: grid; width: auto; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 0 -12px; padding: 12px 12px 22px; background: #20181ffa; border-top: 1px solid #b698632b; }
.theme-feijin #resultPanel .result-actions button { width: 100%; display: flex; justify-content: center; align-items: center; gap: 8px; min-width: 0; min-height: 44px; border-color: #9a805b65; background: #2b212a; color: #eedec1; font: 14px/1.5 system-ui; letter-spacing: 0; }
.theme-feijin #resultPanel .result-actions .primary-button { background: #742b3e; border-color: #b87785; }
.theme-feijin #resultPanel .result-actions button:is(:hover,:focus-visible) { background: #4b303c; border-color: #d0ae78; transform: none; box-shadow: none; }
.theme-feijin #resultPanel .result-actions button:focus-visible, #battleResultDock button:focus-visible { outline: 2px solid #edd5a6; outline-offset: 2px; }
#resultPanel .result-actions svg { width: 18px; height: 18px; }
#resultPanel .result-meme-video { max-height: 160px; margin-bottom: 10px; object-fit: contain; }
@keyframes result-settle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-height: 520px) {
  .theme-feijin #resultPanel { padding: 12px 20px 0; }
  #resultPanel .result-seal { height: 28px; width: 110px; margin-bottom: 3px; }
  .theme-feijin #resultPanel #resultTitle { font-size: 28px; margin: 5px 0; }
  .theme-feijin #resultPanel #resultSummary { font-size: 12px; }
  #resultPanel .result-ledger { margin: 8px 0; padding: 8px 0; }
  #resultPanel .result-ledger strong { font-size: 21px; }
  #resultPanel .result-ledger div { gap: 2px; }
  #resultPanel .result-actions { padding-block: 8px; }
  .theme-feijin #resultPanel .result-actions button { min-height: 36px; padding: 5px; font-size: 12px; }
  #battleJournal .battle-status-strip { padding-block: 4px; font-size: 11px; gap: 2px 10px; }
  #battleResultDock { right: 8px; bottom: 8px; gap: 5px; }
  #battleResultDock button { padding: 5px 8px; min-height: 36px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .theme-feijin #resultPanel { animation: none; } }
.theme-feijin.salon-reduced-motion #resultPanel { animation: none; }
