/* Game pages share the platform's paper, wine and editorial typography. */
.battle-lobby, .battle-play { padding-block: 44px 76px; }
.battle-hero { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); align-items: center; gap: 36px; padding-bottom: 44px; }
.battle-hero__copy .section-kicker { display: flex; align-items: center; gap: 9px; font-size: 10px; }
.battle-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tau-wine); box-shadow: 0 0 0 4px #681a3d12; }
.battle-hero h1 { margin: 23px 0 19px; font-size: clamp(42px,4.7vw,66px); line-height: 1.05; font-weight: 650; letter-spacing: -.055em; }
.battle-hero h1 span { display: block; color: var(--tau-wine); }
.battle-hero__description { max-width: 520px; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.battle-facts { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 25px; color: var(--muted); font-size: 11px; }
.battle-facts span { display: flex; align-items: baseline; gap: 7px; }
.battle-facts b { color: var(--tau-wine); font-size: 22px; font-weight: 650; letter-spacing: -.04em; }
.battle-hero__visual { position: relative; height: 300px; isolation: isolate; }
.battle-art-card { position: absolute; width: 208px; height: 248px; border-radius: 12px; box-shadow: 0 16px 35px #35152513; }
.battle-art-card--back { top: 3px; left: calc(50% - 163px); display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid #d5bcc6; background: #eac4d2; color: var(--tau-wine); transform: rotate(-13deg); animation: battle-float-back 7s ease-in-out infinite; }
.battle-art-card--back > span, .battle-art-card small { font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.battle-art-card--back svg { width: 106px; height: 106px; align-self: center; }
.battle-art-card--front { top: 20px; left: calc(50% - 47px); padding: 21px; color: #fff; background: var(--tau-wine-dark); transform: rotate(9deg); animation: battle-float-front 7s ease-in-out infinite; }
.battle-art-card--front > div { display: flex; align-items: center; justify-content: space-between; }
.battle-art-card--front > div > span { font-size: 9px; letter-spacing: .08em; }
.battle-art-card--front i { font-size: 21px; font-style: normal; color: var(--tau-rose); }
.battle-art-card--front > strong { display: flex; align-items: center; justify-content: center; margin-block: 15px 4px; color: #fff; font-size: 76px; font-weight: 600; letter-spacing: -.07em; line-height: 1; }
.battle-art-card--front > strong span { margin-inline: 7px; color: var(--tau-rose); font-size: 35px; font-weight: 400; }
.battle-art-card--front > p { color: #e8d2dc; font-size: 12px; line-height: 1.5; }
.battle-art-card__bottom { border-top: 1px solid #ffffff26; margin-top: 15px; padding-top: 10px; }
.battle-art-card__bottom > span { font-size: 8px !important; color: #e8d2dc; }
.battle-art-label { position: absolute; bottom: 0; left: 0; width: 100%; text-align: center; color: var(--muted); font-size: 10px; }
.battle-setup { display: grid; grid-template-columns: minmax(0,1fr) 340px; align-items: start; gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.battle-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.battle-section-head .section-kicker, .battle-start .section-kicker { font-size: 10px; }
.battle-section-head h2, .battle-start h2 { margin: 8px 0 0; font-size: 29px; font-weight: 600; letter-spacing: -.045em; line-height: 1.2; }
.battle-section-count { flex-shrink: 0; padding: 7px 11px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); font-size: 10px; }
.battle-topic-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.battle-topic { position: relative; cursor: pointer; min-width: 0; }
.battle-topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.battle-topic__inner { display: flex; flex-direction: column; height: 155px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fffdfb; transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s; }
.battle-topic__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.battle-topic__top svg { width: 24px; height: 26px; color: var(--tau-wine); }
.battle-topic__check { display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid var(--line); border-radius: 50%; color: transparent; font-size: 10px; }
.battle-topic__inner strong { font-size: 12px; line-height: 1.4; font-weight: 650; }
.battle-topic__inner > small { display: flex; justify-content: space-between; margin-top: auto; color: #9c8d94; font-size: 9px; }
.battle-topic__inner > small span { font-size: 15px; line-height: 1; }
.battle-topic input:checked + .battle-topic__inner { background: var(--tau-wine); color: #fff; border-color: var(--tau-wine); box-shadow: 0 6px 18px #681a3d13; }
.battle-topic input:checked + .battle-topic__inner svg, .battle-topic input:checked + .battle-topic__inner small { color: #efd0dc; }
.battle-topic input:checked + .battle-topic__inner .battle-topic__check { color: var(--tau-wine); background: #f5dce5; border-color: #f5dce5; }
.battle-topic input:focus-visible + .battle-topic__inner { outline: 3px solid var(--tau-wine); outline-offset: 3px; }
@media(hover:hover) { .battle-topic:hover .battle-topic__inner { transform: translateY(-3px); border-color: #b993a4; box-shadow: var(--shadow-sm); } }
.battle-start { position: sticky; top: 100px; display: grid; gap: 10px; padding: 26px; border: 1px solid #dfd3d8; border-radius: 14px; background: #f1e9eb; }
.battle-start__heading > p:last-child { margin-top: 9px; color: var(--muted); font-size: 12px; }
.battle-selected { display: grid; gap: 5px; margin: 9px 0 8px; padding: 13px 0; border-block: 1px solid #dbcdd3; }
.battle-selected > span { color: var(--muted); font-size: 10px; }
.battle-selected strong { color: var(--tau-wine); font-size: 13px; line-height: 1.4; }
.battle-start label { margin-top: 4px; color: var(--ink-soft); font-size: 11px; font-weight: 650; }
.battle-start label small { margin-left: 6px; color: var(--muted); font-size: 10px; font-weight: 400; }
.battle-start input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #d9cbd1; border-radius: 6px; background: #fffdfb; color: var(--ink); font: inherit; font-size: 13px; }
.battle-start input::placeholder { color: #96868d; }
.battle-start input:focus { outline: 2px solid var(--tau-wine); outline-offset: 2px; }
.battle-start input[readonly] { background: #f8f2f4; }
.battle-start__hint { color: var(--muted); font-size: 11px; line-height: 1.65; }
.battle-start .tau-button { display: flex; justify-content: space-between; width: 100%; min-height: 50px; margin-top: 9px; padding-inline: 17px; }
.battle-start__note { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.battle-start__note svg { flex: 0 0 15px; width: 15px; height: 15px; }
.battle-start .text-link { margin-top: 8px; padding-top: 14px; border-top: 1px solid #dbcdd3; font-size: 11px; text-align: center; color: var(--tau-wine); }
.battle-how { margin-top: 54px; padding-top: 28px; border-top: 1px solid var(--line); }
.battle-how h2 { margin-top: 8px; font-size: 27px; letter-spacing: -.04em; font-weight: 600; }
.battle-how .section-kicker { font-size: 10px; }
.battle-how ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin-top: 26px; }
.battle-how li { display: flex; gap: 14px; }
.battle-how li > span { color: var(--tau-wine); font-size: 11px; font-weight: 700; }
.battle-how h3 { margin-bottom: 8px; font-size: 14px; font-weight: 650; }
.battle-how li p { max-width: 280px; color: var(--muted); font-size: 12px; line-height: 1.7; }
@keyframes battle-float-back { 50% { transform: translateY(7px) rotate(-10deg); } }
@keyframes battle-float-front { 50% { transform: translateY(-6px) rotate(7deg); } }
.battle-back { display: inline-block; margin-bottom: 28px; font-size: 13px; }
.battle-play__head { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 32px; }
.battle-play__head h1 { margin: 12px 0; font-size: clamp(2rem,4vw,3.7rem); font-weight: 600; letter-spacing: -.05em; line-height: 1.12; }
.battle-play__head > div > p:last-child { color: var(--muted); font-size: 14px; }
.battle-score { flex: 0 0 auto; display: flex; align-items: center; gap: 26px; padding: 20px 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.battle-score div { display: grid; gap: 7px; text-align: center; max-width: 120px; }
.battle-score small { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.battle-score strong { font-size: 42px; color: var(--tau-wine); font-weight: 580; font-variant-numeric: tabular-nums; }
.battle-score > span { color: #bea8b2; font-size: 25px; }
.battle-play__grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(270px,1fr); gap: 24px; align-items: start; }
.battle-question { padding: 30px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-height: 380px; }
.battle-question__head { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.battle-timer { display: grid; text-align: right; }
.battle-timer span { font-size: 30px; font-weight: 600; line-height: 1.2; color: var(--tau-wine); font-variant-numeric: tabular-nums; }
.battle-timer small { color: var(--muted); font-size: 10px; }
.battle-time-track { height: 3px; border-radius: 2px; overflow: hidden; background: #eee5e9; margin: 20px 0 28px; }
.battle-time-track > div { height: 100%; width: 100%; background: var(--tau-wine); transition: width .1s linear; }
.battle-question h2 { font-size: clamp(1.4rem,2.6vw,2rem); font-weight: 580; letter-spacing: -.025em; line-height: 1.4; }
.battle-options { display: grid; gap: 10px; margin-top: 26px; }
.battle-option { width: 100%; padding: 15px; background: #faf8f7; border: 1px solid #e4d9de; border-radius: 6px; text-align: left; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.battle-option:hover:not(:disabled) { border-color: var(--tau-wine); transform: translateX(3px); }
.battle-option.is-selected { color: #fff; background: var(--tau-wine); border-color: var(--tau-wine); }
.battle-option__row { display: flex; align-items: center; gap: 13px; }
.battle-option__letter { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border: 1px solid #d6c2cb; border-radius: 4px; font-size: 12px; }
.battle-option__text { font-size: 14px; line-height: 1.5; }
.battle-hint { margin-top: 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.battle-picked { margin-top: 8px; color: var(--tau-wine); font-size: 12px; font-weight: 600; }
.battle-side { display: grid; gap: 18px; }
.battle-status { position: relative; padding: 25px; color: #fff; background: #341525; border-radius: 10px; }
.battle-status .section-kicker { color: #cfaabc; }
.battle-status h2 { color: #fff; margin: 22px 0 12px; font-size: 25px; font-weight: 570; letter-spacing: -.025em; }
.battle-status > p:not(.section-kicker) { color: #dcc5d0; font-size: 13px; line-height: 1.7; }
.battle-status__signal { position: absolute; top: 25px; right: 25px; width: 7px; height: 7px; border-radius: 50%; background: #eab4cb; animation: battle-pulse 2s ease-in-out infinite; }
.battle-room-code { margin-top: 18px; }
.battle-log { margin-top: 18px; padding-top: 14px; border-top: 1px solid #ffffff20; }
.battle-rules { padding: 24px; background: #eee7e9; border: 1px solid var(--line); border-radius: 8px; }
.battle-rules ol { padding-left: 16px; margin: 18px 0 23px; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.battle-rules .tau-button { width: 100%; justify-content: space-between; }
.battle-review { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; }
.battle-review.hidden { display: none; }
@keyframes battle-pulse { 50% { box-shadow: 0 0 0 7px #eab4cb20; opacity: .65; } }
.battle-history main { width: min(calc(100% - 64px),1240px); }
.battle-history main section { background: #fff; border-color: var(--line); box-shadow: none; border-radius: 9px; }
.battle-history main [class*="text-white"] { color: var(--ink-soft); }
.battle-history main [class*="bg-dark"], .battle-history main [class*="bg-white"] { background: #f4efef; }
.battle-history main [class*="border-white"] { border-color: var(--line); }

/* Match layout and responsive adaptation. */
.battle-play__head h1 { font-size: clamp(28px,3.5vw,44px); }
.battle-play__head { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.battle-question { border-radius: 14px; padding: 32px; background: #fffdfb; box-shadow: 0 12px 32px #35152504; }
.battle-question h2 { margin-top: 8px; }
.battle-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.battle-option { min-height: 80px; padding: 16px; }
.battle-option:disabled { cursor: default; }
.battle-option__text { overflow-wrap: anywhere; }
.battle-option.is-selected .battle-option__letter { border-color: #ffffff60; background: #ffffff10; }
.battle-timer { min-width: 62px; }
.battle-timer span { font-size: 26px; }
.battle-score { border-radius: 12px; padding: 18px 24px; }
.battle-status { border-radius: 12px; }
.battle-rules { border-radius: 12px; }
@media(max-width:1100px) {
  .battle-setup { grid-template-columns: minmax(0,1fr) 310px; gap: 24px; }
  .battle-topic-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .battle-start { padding: 23px; }
}
@media(max-width:820px) {
  .battle-lobby,.battle-play { padding-block: 32px 50px; }
  .battle-hero { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 15px; }
  .battle-hero h1 { font-size: 43px; }
  .battle-hero__visual { height: 260px; }
  .battle-art-card { width: 166px; height: 208px; padding: 16px; }
  .battle-art-card--back { left: calc(50% - 126px); }
  .battle-art-card--back svg { width: 85px; height: 85px; }
  .battle-art-card--front { left: calc(50% - 44px); }
  .battle-art-card--front > strong { font-size: 59px; }
  .battle-art-card--front > p { font-size: 10px; }
  .battle-art-card--front > div > span { font-size: 8px; }
  .battle-art-card--back > span,.battle-art-card small { font-size: 7px; }
  .battle-setup { grid-template-columns: minmax(0,1fr) 280px; gap: 20px; }
  .battle-topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .battle-start { padding: 20px; }
  .battle-play__head { align-items: start; flex-direction: column; }
  .battle-score { width: 100%; justify-content: space-between; }
  .battle-play__grid { grid-template-columns: 1fr; }
  .battle-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .battle-review { grid-column: 1/-1; }
}
@media(max-width:620px) {
  .battle-hero { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .battle-hero h1 { font-size: clamp(38px,10vw,54px); margin-top: 18px; }
  .battle-hero__description { font-size: 14px; }
  .battle-facts { gap: 12px 19px; margin-top: 18px; font-size: 10px; }
  .battle-facts b { font-size: 20px; }
  .battle-hero__visual { height: 237px; max-width: 330px; width: 100%; margin-inline: auto; }
  .battle-art-card--back { top: 0; }
  .battle-art-card--front { top: 12px; }
  .battle-art-label { bottom: -3px; }
  .battle-setup { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
  .battle-topics,.battle-start { width: 100%; }
  .battle-topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .battle-topic__inner { height: 138px; padding: 15px; }
  .battle-topic__inner strong { font-size: 13px; }
  .battle-topic__top { margin-bottom: 10px; }
  .battle-start { position: static; padding: 24px; }
  .battle-section-head h2, .battle-start h2 { font-size: 27px; }
  .battle-how { margin-top: 32px; }
  .battle-how ol { grid-template-columns: 1fr; gap: 22px; }
  .battle-how li p { max-width: none; }
  .battle-question { padding: 20px; min-height: 320px; }
  .battle-options,.battle-side { grid-template-columns: 1fr; }
  .battle-option { min-height: 68px; }
  .battle-play__head > div > p:last-child { font-size: 13px; line-height: 1.6; }
  .battle-history main { width: calc(100% - 32px); }
}
@media(prefers-reduced-motion:reduce) {
  .battle-art-card,.battle-status__signal { animation: none; }
  .battle-topic__inner,.battle-option { transition: none; }
}
.battle-waiting-art { display: none; }
.battle-question[data-match-state="waiting"] { min-height: 380px; display: flex; flex-direction: column; }
.battle-question[data-match-state="waiting"] .battle-waiting-art { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 48px 0 24px; }
.battle-waiting-art span { display: grid; width: 70px; height: 70px; place-items: center; border: 1px solid #d6b9c6; border-radius: 18px; background: #f2e6ec; color: var(--tau-wine); font-size: 18px; font-weight: 650; transform: rotate(-7deg); }
.battle-waiting-art span:last-child { color: #a58a96; background: #faf6f8; border-style: dashed; transform: rotate(7deg); animation: battle-wait 2.5s ease-in-out infinite; }
.battle-waiting-art i { font-size: 22px; font-style: normal; color: #bda7b1; }
.battle-question[data-match-state="waiting"] .battle-time-track, .battle-question[data-match-state="waiting"] .battle-timer, .battle-question[data-match-state="waiting"] .battle-picked { display: none; }
.battle-question[data-match-state="waiting"] h2 { max-width: 420px; margin-inline: auto; text-align: center; font-size: 24px; }
.battle-question[data-match-state="waiting"] .battle-hint { margin-top: 15px; text-align: center; }
.battle-question[data-match-state="waiting"] .battle-options { margin: 0; }
.battle-question[data-match-state="finished"] h2 { color: var(--tau-wine); font-size: 36px; }
@keyframes battle-wait { 50% { opacity: .6; transform: rotate(3deg) translateY(-4px); } }
@media(prefers-reduced-motion:reduce) { .battle-waiting-art span { animation: none; } }
.battle-mobile-next { display: none; }
@media(max-width:620px) {
  .battle-mobile-next { display: flex; position: sticky; top: 64px; z-index: 5; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #f8f6f2; box-shadow: 0 6px 15px #35152508; }
  .battle-mobile-next > span { color: var(--ink-soft); font-size: 11px; line-height: 1.4; }
  .battle-mobile-next a { flex-shrink: 0; padding: 7px 10px; border-radius: 5px; color: #fff; background: var(--tau-wine); font-size: 11px; font-weight: 650; }
  #battle-start { scroll-margin-top: 18px; }
}
