#lobby.lobby { min-height: 0; }
#lobby.invite-lobby .hero-copy > h1 { margin-top: 0; }
.hero-art { margin-inline: 0; }
.table-error { max-width: 810px; margin: 15px auto; }
.round-track.bes-rounds { grid-template-columns: repeat(15, minmax(0, 1fr)); }
.question-card.bes-table { margin-bottom: 16px; }
.bes-table .table-moon { position: absolute; top: 17px; right: 22px; width: 45px; height: auto; }
.bes-table h1 { margin: 5px 0 14px; padding-right: 42px; }
.bes-table .paper-line { margin-bottom: 10px; }
.bes-table .paper-detail { color: var(--muted); }
.heart-board { max-width: 810px; margin: 0 auto; }
.heart-budget {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--muted);
}
.heart-budget strong { color: var(--accent); }
.heart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.heart-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 10px #769ab50d;
}
.heart-card h2 { margin: 0 0 13px; font: 1.23rem/1.18 Georgia, serif; color: var(--ink); overflow-wrap: anywhere; }
.heart-card.marked { border-color: #c38da8; background: #fff7fb; }
.host-peek {
  margin: auto 0 8px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #f1f6fa;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.host-peek span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.host-peek strong { flex-shrink: 0; color: var(--ink); font-weight: 600; }
.host-peek.active { background: #e8f2fa; border-color: #9fbed4; color: var(--ink); }
.host-peek.active strong { color: var(--accent); }
.heart-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.heart-controls button {
  min-height: 44px;
  min-width: 44px;
  padding: 2px;
  font-size: 21px;
  border: 1px solid #e0c0d1;
  background: #fbecf4;
  color: var(--accent);
  border-radius: 9px;
}
.heart-controls button:enabled:hover { background: #f2d8e4; }
.heart-controls button:disabled { opacity: .52; }
.heart-value { min-width: 2ch; font-size: 1.1rem; font-weight: 650; text-align: center; color: var(--accent); }
.heart-value span { font-size: .86em; }
.table-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 15px 0 0; }
.table-actions p { width: 100%; margin: 0; text-align: center; color: var(--muted); font-size: .86rem; }
.score-card.winner { border-color: #c68aa7; background: #fff5fa; }
.score-info { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .86rem; }
.score-info b { color: var(--ink); overflow-wrap: anywhere; }
.result-total { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; color: var(--accent); }
.result-total small { color: var(--accent); font-weight: 700; }
.tie-note { margin: 10px 0 0; color: var(--muted); font-size: .8rem; }
.bes-history { max-width: 810px; margin: 15px auto; display: grid; gap: 10px; }
.bes-history ol { margin: 8px 0 0; padding-left: 19px; color: var(--muted); }
@media (max-width: 550px) {
  .heart-grid { gap: 8px; }
  .heart-card { padding: 10px; }
  .heart-controls button { min-width: 39px; min-height: 44px; }
  .heart-card h2 { font-size: 1.07rem; }
  .heart-budget { gap: 6px; font-size: .85rem; margin-top: 0; }
  .bes-table .table-moon { top: 13px; right: 15px; width: 35px; }
}
