/* BomberoFlash Arena V4 · integrada en el lenguaje visual actual de la app. */
.bf-arena-shell {
  --arena-ink: #0f172a;
  --arena-primary: #2563eb;
  --arena-primary-dark: #1d4ed8;
  --arena-orange: #f97316;
  --arena-border: #e2e8f0;
  --arena-muted: #64748b;
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 84px;
  font-family: var(--font-ui, 'Manrope', system-ui, sans-serif);
}

.bf-arena-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  padding: 30px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #172554 58%, #1d4ed8 100%);
  box-shadow: 0 18px 42px -30px rgba(15, 23, 42, .8);
}
.bf-arena-hero::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -88px;
  top: -142px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, .42), rgba(249, 115, 22, 0) 68%);
  pointer-events: none;
}
.bf-arena-hero > * { position: relative; z-index: 1; }
.bf-arena-kicker { color: #fdba74; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.bf-arena-title {
  margin: 6px 0 8px;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 950;
  letter-spacing: -.04em;
  line-height: 1.05;
  text-wrap: balance;
}
.bf-arena-subtitle {
  max-width: 680px;
  color: #dbeafe;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
  text-wrap: pretty;
}
.bf-arena-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, .4);
  color: #fff7ed;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.bf-arena-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34, 197, 94, .14); }

.bf-arena-connection {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 7px 11px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  line-height: 1.25;
}
.bf-arena-connection > span { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: currentColor; }
.bf-arena-connection strong { overflow: hidden; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.bf-arena-connection.is-connected { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.bf-arena-connection.is-reconnecting { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.bf-arena-connection.is-offline { border-color: #fecaca; background: #fff1f2; color: #be123c; }

.bf-arena-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bf-arena-grid.has-configurator { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); align-items: start; }
.bf-arena-card,
.bf-arena-game-card,
.bf-arena-player,
.bf-arena-code-panel,
.bf-arena-result {
  border: 1px solid var(--arena-border);
  background: #fff;
  box-shadow: 0 12px 28px -26px rgba(15, 23, 42, .45);
}
.bf-arena-card { border-radius: 20px; padding: 22px; }
.bf-arena-card h2 { margin: 0; color: var(--arena-ink); font-size: 18px; font-weight: 900; letter-spacing: -.025em; }
.bf-arena-card p { margin: 6px 0 0; color: var(--arena-muted); font-size: 13px; font-weight: 600; line-height: 1.5; }
.bf-arena-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.bf-arena-card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--arena-orange);
}
.bf-arena-card-icon svg { width: 21px; height: 21px; }

.bf-arena-form { display: grid; gap: 12px; }
.bf-arena-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bf-arena-setup-section { min-width: 0; margin: 0; border: 0; padding: 0; }
.bf-arena-setup-section + .bf-arena-setup-section { border-top: 1px solid #e2e8f0; padding-top: 13px; }
.bf-arena-setup-section legend { width: 100%; margin-bottom: 8px; padding: 0; color: #334155; font-size: 11px; font-weight: 900; letter-spacing: .075em; text-transform: uppercase; }
.bf-arena-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bf-arena-choice-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.bf-arena-time-choices { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bf-arena-choice { position: relative; min-width: 0; cursor: pointer; }
.bf-arena-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bf-arena-choice > span {
  display: grid;
  min-height: 54px;
  align-content: center;
  gap: 2px;
  border: 1px solid #dbe3ee;
  border-radius: 13px;
  padding: 9px 10px;
  background: #fff;
  color: #334155;
  text-align: center;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.bf-arena-mode-grid .bf-arena-choice > span { min-height: 62px; text-align: left; }
.bf-arena-choice strong { overflow: hidden; font-size: 13px; font-weight: 900; line-height: 1.2; text-overflow: ellipsis; }
.bf-arena-choice small { color: #94a3b8; font-size: 10px; font-weight: 750; line-height: 1.25; }
.bf-arena-choice:hover > span { border-color: #93c5fd; background: #f8fbff; transform: translateY(-1px); }
.bf-arena-choice input:checked + span { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; box-shadow: inset 0 0 0 1px #2563eb; }
.bf-arena-choice input:checked + span small { color: #2563eb; }
.bf-arena-choice input:focus-visible + span { outline: 3px solid rgba(37, 99, 235, .28); outline-offset: 2px; }
.bf-arena-book-picker { display: grid; gap: 8px; margin-top: 9px; border: 1px solid #dbeafe; border-radius: 14px; padding: 10px; background: #f8fbff; }
.bf-arena-topic-picker { display: grid; gap: 8px; margin-top: 9px; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px; background: #fff; }
.bf-arena-book-picker.is-hidden,
.bf-arena-topic-picker.is-hidden,
.bf-arena-form-error.is-hidden { display: none; }
.bf-arena-book-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #64748b; font-size: 10px; font-weight: 850; }
.bf-arena-book-tools > div { display: flex; gap: 5px; }
.bf-arena-book-tools button { min-height: 34px; border: 1px solid #bfdbfe; border-radius: 9px; padding: 6px 9px; background: #fff; color: #1d4ed8; font-size: 10px; font-weight: 850; cursor: pointer; }
.bf-arena-book-tools button:focus-visible { outline: 3px solid rgba(37, 99, 235, .25); outline-offset: 2px; }
.bf-arena-book-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 224px; overflow-y: auto; overscroll-behavior: contain; }
.bf-arena-book { display: grid; min-height: 46px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 1px solid #e2e8f0; border-radius: 11px; padding: 8px 9px; background: #fff; color: #334155; cursor: pointer; }
.bf-arena-book:has(input:checked) { border-color: #60a5fa; background: #eff6ff; color: #1e40af; }
.bf-arena-book input { width: 17px; height: 17px; margin: 0; accent-color: #2563eb; }
.bf-arena-book span { overflow: hidden; font-size: 11px; font-weight: 800; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.bf-arena-book svg { width: 15px; height: 15px; color: #94a3b8; }
.bf-arena-topic-list { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; }
.bf-arena-topic { display: grid; min-height: 48px; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; border: 1px solid #e2e8f0; border-radius: 11px; padding: 8px 10px; background: #fff; color: #334155; cursor: pointer; }
.bf-arena-topic:has(input:checked) { border-color: #60a5fa; background: #eff6ff; color: #1e40af; }
.bf-arena-topic input { width: 17px; height: 17px; margin: 0; accent-color: #2563eb; }
.bf-arena-topic > span { display: grid; min-width: 0; gap: 2px; }
.bf-arena-topic strong { overflow: hidden; font-size: 11px; font-weight: 850; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.bf-arena-topic small { overflow: hidden; color: #94a3b8; font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.bf-arena-empty-books { margin-top: 9px; border-radius: 12px; padding: 10px 11px; background: #f8fafc; color: #64748b; font-size: 11px; font-weight: 700; line-height: 1.4; }
.bf-arena-setup-summary { display: flex; min-height: 54px; align-items: center; gap: 10px; border: 1px solid #fed7aa; border-radius: 14px; padding: 10px 12px; background: #fff7ed; color: #9a3412; }
.bf-arena-setup-summary > svg { width: 20px; height: 20px; flex: 0 0 20px; }
.bf-arena-setup-summary span { display: grid; gap: 2px; }
.bf-arena-setup-summary strong { font-size: 12px; font-weight: 900; }
.bf-arena-setup-summary small { font-size: 10px; font-weight: 750; line-height: 1.35; }
.bf-arena-form-error { border: 1px solid #fecaca; border-radius: 12px; padding: 10px 12px; background: #fff1f2; color: #be123c; font-size: 11px; font-weight: 800; }
.bf-arena-create-button { min-height: 52px; font-size: 14px; }
.bf-arena-field { display: grid; gap: 6px; }
.bf-arena-field span { color: #475569; font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.bf-arena-field select,
.bf-arena-code-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  padding: 11px 13px;
  background: #f8fafc;
  color: var(--arena-ink);
  font-size: 14px;
  font-weight: 800;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.bf-arena-field select:focus,
.bf-arena-code-input:focus { border-color: var(--arena-primary); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.bf-arena-code-input { text-align: center; font-size: 23px; letter-spacing: .22em; text-transform: uppercase; }

.bf-arena-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 13px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--arena-primary), var(--arena-primary-dark));
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px -18px rgba(37, 99, 235, .8);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.bf-arena-button svg { width: 18px; height: 18px; }
.bf-arena-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.bf-arena-button:focus-visible,
.bf-arena-option:focus-visible { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: 2px; }
.bf-arena-button:disabled { cursor: not-allowed; filter: grayscale(.2); opacity: .55; transform: none; }
.bf-arena-button.secondary { border: 1px solid #bfdbfe; background: #fff; color: var(--arena-primary-dark); box-shadow: none; }
.bf-arena-button.danger { border: 1px solid #fecaca; background: #fff; color: #b91c1c; box-shadow: none; }

.bf-arena-notice { border: 1px solid #bfdbfe; border-radius: 15px; padding: 12px 14px; background: #eff6ff; color: #1e40af; font-size: 12px; font-weight: 700; line-height: 1.5; }
.bf-arena-code-panel {
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(145deg, #fff7ed, #ffffff 64%, #eff6ff);
  text-align: center;
}
.bf-arena-code-label { color: #c2410c; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.bf-arena-code { margin: 7px 0 14px; color: var(--arena-ink); font-size: clamp(38px, 9vw, 62px); font-weight: 950; letter-spacing: .12em; line-height: 1; }
.bf-arena-share-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.bf-arena-share-actions .bf-arena-button { width: auto; min-width: 180px; }
.bf-arena-share-box {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 14px;
  background: #f0fdf4;
  text-align: left;
}
.bf-arena-share-box label { color: #166534; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.bf-arena-share-box input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #14532d;
  font: 700 13px/1.4 var(--font-ui, 'Manrope', system-ui, sans-serif);
}
.bf-arena-share-box input:focus-visible { outline: 3px solid rgba(34, 197, 94, .24); outline-offset: 2px; }
.bf-arena-share-box p { margin: 0; color: #15803d; font-size: 11px; font-weight: 700; line-height: 1.45; text-align: center; }
.bf-arena-match-settings { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bf-arena-match-settings span { display: inline-flex; min-height: 38px; align-items: center; gap: 6px; border: 1px solid #dbeafe; border-radius: 999px; padding: 8px 11px; background: #eff6ff; color: #1e40af; font-size: 11px; font-weight: 850; }
.bf-arena-match-settings svg { width: 15px; height: 15px; }
.bf-arena-wait { display: flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; color: var(--arena-muted); font-size: 13px; font-weight: 800; }
.bf-arena-spinner { width: 18px; height: 18px; border: 3px solid #dbeafe; border-top-color: var(--arena-primary); border-radius: 50%; animation: bf-arena-spin .8s linear infinite; }
@keyframes bf-arena-spin { to { transform: rotate(360deg); } }

.bf-arena-scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.bf-arena-player { min-width: 0; border-radius: 17px; padding: 14px; }
.bf-arena-player.is-me { border-color: #bfdbfe; background: #eff6ff; }
.bf-arena-player-label { overflow: hidden; color: #475569; font-size: 12px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.bf-arena-player-score { color: var(--arena-ink); font-size: 27px; font-weight: 950; line-height: 1.1; }
.bf-arena-player-meta { margin-top: 3px; color: #94a3b8; font-size: 11px; font-weight: 750; }
.bf-arena-presence { display: inline-flex; align-items: center; gap: 4px; margin-left: 5px; color: #15803d; white-space: nowrap; }
.bf-arena-presence::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bf-arena-presence.is-away { color: #c2410c; }
.bf-arena-vs { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--arena-ink); color: #fff; font-size: 10px; font-weight: 950; box-shadow: 0 8px 18px -12px #111827; }

.bf-arena-countdown { display: grid; min-height: 280px; place-items: center; border: 1px solid #bfdbfe; border-radius: 22px; background: radial-gradient(circle at center, #eff6ff, #fff); text-align: center; }
.bf-arena-countdown strong { display: block; color: var(--arena-primary); font-size: 72px; font-weight: 950; line-height: 1; }
.bf-arena-countdown span { display: block; margin-top: 8px; color: var(--arena-muted); font-size: 13px; font-weight: 800; }

.bf-arena-game-card { overflow: hidden; border-radius: 22px; }
.bf-arena-round-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; background: var(--arena-ink); color: #fff; }
.bf-arena-round-head span { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.bf-arena-timer { min-width: 54px; text-align: right; color: #fdba74; font-size: 18px; font-weight: 950; }
.bf-arena-time-track { height: 5px; background: #1e3a8a; }
.bf-arena-time-bar { width: 100%; height: 100%; transform-origin: left; background: linear-gradient(90deg, #3b82f6, var(--arena-orange)); transition: width .18s linear; }
.bf-arena-question { padding: 22px 22px 10px; color: var(--arena-ink); font-size: clamp(17px, 3vw, 21px); font-weight: 850; line-height: 1.48; text-wrap: pretty; }
.bf-arena-options { display: grid; gap: 10px; padding: 14px 22px 22px; }
.bf-arena-option {
  display: grid;
  min-height: 52px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid #dbe3ee;
  border-radius: 15px;
  padding: 12px 14px;
  background: #fff;
  color: #334155;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.bf-arena-option:hover { border-color: #93c5fd; background: #f8fbff; transform: translateX(2px); }
.bf-arena-option:disabled { cursor: default; transform: none; }
.bf-arena-option.is-selected { border-color: var(--arena-primary); background: #eff6ff; color: #1e40af; }
.bf-arena-option-key { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 950; }
.bf-arena-feedback { margin: 0 22px 22px; border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 800; }
.bf-arena-feedback.ok { background: #ecfdf5; color: #047857; }
.bf-arena-feedback.bad { background: #fff7ed; color: #c2410c; }
.bf-arena-feedback.sent { background: #eff6ff; color: #1d4ed8; }
.bf-arena-round-review { display: grid; gap: 6px; margin: 0 22px 14px; border: 1px solid #bbf7d0; border-left: 4px solid #10b981; border-radius: 14px; padding: 13px 14px; background: #f0fdf4; color: #065f46; }
.bf-arena-round-review.is-wrong { border-color: #fecaca; border-left-color: #ef4444; background: #fff1f2; color: #991b1b; }
.bf-arena-round-review strong { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; font-weight: 900; line-height: 1.4; }
.bf-arena-round-review strong svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 1px; }
.bf-arena-round-review > span { color: #475569; font-size: 12px; font-weight: 650; line-height: 1.5; }
.bf-arena-round-actions { display: grid; justify-items: center; gap: 7px; border-top: 1px solid #e2e8f0; padding: 16px 22px 20px; }
.bf-arena-round-actions .bf-arena-button { width: min(100%, 360px); }
.bf-arena-round-actions small { color: #64748b; font-size: 10px; font-weight: 750; text-align: center; }

.bf-arena-result { border-radius: 22px; padding: 28px; background: linear-gradient(145deg, #eff6ff, #fff 64%, #fff7ed); text-align: center; }
.bf-arena-result-icon { display: grid; width: 62px; height: 62px; margin: 0 auto; place-items: center; border: 1px solid #fed7aa; border-radius: 18px; background: #fff7ed; color: var(--arena-orange); }
.bf-arena-result-icon svg { width: 31px; height: 31px; }
.bf-arena-result h2 { margin: 10px 0 4px; color: var(--arena-ink); font-size: 28px; font-weight: 950; letter-spacing: -.04em; }
.bf-arena-result p { color: var(--arena-muted); font-size: 13px; font-weight: 650; }
.bf-arena-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bf-arena-result-actions .bf-arena-button { min-width: 190px; }
.bf-arena-review { display: grid; gap: 9px; }
.bf-arena-review-row { border: 1px solid var(--arena-border); border-radius: 14px; padding: 13px 14px; background: #fff; }
.bf-arena-review-row.is-correct { border-left: 4px solid #10b981; }
.bf-arena-review-row.is-wrong { border-left: 4px solid #ef4444; }
.bf-arena-review-row strong { display: flex; align-items: flex-start; gap: 7px; color: var(--arena-ink); font-size: 13px; }
.bf-arena-review-row strong svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 1px; }
.bf-arena-review-row.is-correct strong svg { color: #059669; }
.bf-arena-review-row.is-wrong strong svg { color: #dc2626; }
.bf-arena-review-row > span { display: block; margin-top: 5px; color: var(--arena-muted); font-size: 12px; font-weight: 650; line-height: 1.45; }
.bf-arena-rival-presence { border: 1px solid #fbbf24; border-radius: 13px; padding: 12px 15px; background: #fffbeb; color: #92400e; font-size: 13px; font-weight: 750; }
.bf-arena-rival-presence[hidden] { display: none; }
.bf-arena-error { border: 1px solid #fecaca; border-radius: 17px; padding: 16px; background: #fff1f2; color: #be123c; font-size: 13px; font-weight: 800; }

@media (max-width: 720px) {
  .bf-arena-shell { gap: 14px; padding-bottom: 92px; }
  .bf-arena-grid { grid-template-columns: 1fr; }
  .bf-arena-grid.has-configurator { grid-template-columns: 1fr; }
  .bf-arena-hero { padding: 23px 19px; border-radius: 20px; }
  .bf-arena-card { padding: 18px; border-radius: 18px; }
  .bf-arena-form-row { grid-template-columns: 1fr 1fr; }
  .bf-arena-code { font-size: 42px; }
  .bf-arena-round-head { padding: 13px 15px; }
  .bf-arena-question { padding: 18px 16px 8px; }
  .bf-arena-options { padding: 12px 16px 18px; }
  .bf-arena-scoreboard { gap: 7px; }
  .bf-arena-player { padding: 11px; }
  .bf-arena-player-score { font-size: 22px; }
}

@media (max-width: 430px) {
  .bf-arena-hero { padding: 19px 16px; }
  .bf-arena-title { font-size: 28px; }
  .bf-arena-subtitle { font-size: 13px; }
  .bf-arena-live-pill { margin-top: 14px; font-size: 10px; }
  .bf-arena-form-row { grid-template-columns: 1fr; }
  .bf-arena-mode-grid { grid-template-columns: 1fr; }
  .bf-arena-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-arena-time-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-arena-book-tools { align-items: flex-start; }
  .bf-arena-book-list { grid-template-columns: 1fr; max-height: 210px; }
  .bf-arena-book { min-height: 50px; }
  .bf-arena-match-settings { display: grid; grid-template-columns: 1fr; }
  .bf-arena-match-settings span { justify-content: center; border-radius: 12px; }
  .bf-arena-field select,
  .bf-arena-code-input { min-height: 48px; font-size: 16px; }
  .bf-arena-code-input { font-size: 22px; }
  .bf-arena-code-panel { padding: 20px 14px; }
  .bf-arena-code { font-size: 38px; letter-spacing: .09em; }
  .bf-arena-share-actions { display: grid; grid-template-columns: 1fr; }
  .bf-arena-share-actions .bf-arena-button { width: 100%; min-width: 0; }
  .bf-arena-scoreboard { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); gap: 5px; }
  .bf-arena-player { padding: 10px 8px; text-align: center; }
  .bf-arena-player-label { font-size: 11px; }
  .bf-arena-player-score { font-size: 20px; }
  .bf-arena-player-meta { font-size: 10px; line-height: 1.3; }
  .bf-arena-vs { width: 32px; height: 32px; }
  .bf-arena-question { font-size: 17px; }
  .bf-arena-option { min-height: 54px; padding: 11px 12px; font-size: 14px; }
  .bf-arena-feedback { margin: 0 16px 18px; }
  .bf-arena-round-review { margin: 0 16px 12px; }
  .bf-arena-round-actions { padding: 14px 16px 18px; }
  .bf-arena-connection { width: 100%; justify-content: center; border-radius: 12px; }
  .bf-arena-result-actions { display: grid; grid-template-columns: 1fr; }
  .bf-arena-result-actions .bf-arena-button { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bf-arena-spinner { animation: none; }
  .bf-arena-button,
  .bf-arena-option,
  .bf-arena-time-bar { transition: none; }
}
