:root {
  --felt: #1a4a32;
  --felt-deep: #0f2e1f;
  --felt-edge: #163d2a;
  --ivory: #f3ead7;
  --ivory-dim: #e5d8c0;
  --ink: #1c1712;
  --ink-soft: #4a4036;
  --copper: #b56a3a;
  --copper-bright: #d4844f;
  --rust: #8c3d28;
  --gold: #c9a227;
  --cream: #faf6ee;
  --shadow: rgba(0, 0, 0, 0.35);
  --ok: #2d6a4f;
  --bad: #9b2c2c;
  --card-back: #6b3a28;
  --radius: 10px;
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-ui);
  color: var(--ivory);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201, 162, 39, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 0, 0, 0.25), transparent 45%),
    linear-gradient(160deg, var(--felt) 0%, var(--felt-deep) 55%, #0a2418 100%);
  background-attachment: fixed;
  line-height: 1.45;
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.25rem clamp(0.75rem, 2vw, 1.75rem) 2rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow-anchor: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--ivory);
}

h2 {
  font-size: 1.55rem;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.sub {
  color: var(--ivory-dim);
  max-width: 36rem;
  margin: 0 0 1.25rem;
}

.panel {
  background: rgba(15, 46, 31, 0.72);
  border: 1px solid rgba(243, 234, 215, 0.12);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 12px 40px var(--shadow);
  backdrop-filter: blur(4px);
}

.panel + .panel {
  margin-top: 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.row.spread {
  justify-content: space-between;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--ivory-dim);
}

input[type="text"],
input[type="number"],
select {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(243, 234, 215, 0.22);
  background: var(--cream);
  color: var(--ink);
  min-width: 0;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn {
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
  background: var(--copper);
  color: var(--cream);
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 2px 0 #7a4324;
}

.btn:hover {
  background: var(--copper-bright);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn.secondary {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(243, 234, 215, 0.35);
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(243, 234, 215, 0.08);
}

.local-end-game-row {
  margin-top: 0.35rem;
  justify-content: flex-start;
}

.btn.ghost {
  background: transparent;
  color: var(--ivory-dim);
  box-shadow: none;
  padding-inline: 0.5rem;
}

.btn.danger {
  background: var(--rust);
  box-shadow: 0 2px 0 #5c2418;
}

.btn.letter {
  min-width: 2.4rem;
  padding: 0.55rem 0.4rem;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 2px 0 #c4b59a;
  font-weight: 700;
}

.btn.letter:hover {
  background: #fff;
}

.btn.letter.blank {
  background: #2a2a2a;
  color: var(--ivory);
  box-shadow: 0 2px 0 #111;
  min-width: 3.4rem;
  padding: 0.55rem 0.35rem;
  font-size: clamp(0.58rem, 2.4vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  line-height: 1.1;
}

.btn.letter.denied,
.btn.letter:disabled {
  background: #6b6560;
  color: #b0a89e;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.55;
  text-decoration: line-through;
}

.btn.letter.blank.denied,
.btn.letter.blank:disabled {
  background: #3a3a3a;
  color: #777;
}

.btn.player-pick {
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 2px 0 #b8a88c;
  min-width: 7rem;
}

.btn.player-pick.solved {
  opacity: 0.55;
}

.btn.player-pick.selected {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 2px 0 #8a6e14;
}

.pass-screen {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1rem;
}

.pass-screen .panel {
  max-width: 28rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  text-align: center;
}

.pass-screen .panel > .btn,
.pass-screen .local-end-game-row .btn {
  width: 100%;
  box-sizing: border-box;
}

.pass-screen .local-end-game-row {
  margin-top: 0;
  width: 100%;
  justify-content: stretch;
}

.lobby-brand {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  margin-bottom: 0.35rem;
}

.home-legal {
  text-align: center;
  margin-top: 0.25rem;
}

.home-legal a {
  color: var(--gold);
  text-decoration: none;
}

.home-legal a:hover {
  text-decoration: underline;
}

.lobby-app-mark {
  display: inline-flex;
  line-height: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.lobby-brand .brand-mark {
  margin-bottom: 0;
}

.lobby-brand .sub {
  max-width: 36rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 0.95;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

.score-card {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(243, 234, 215, 0.1);
}

.score-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35);
}

.score-card.activity-focus {
  border-color: var(--copper-bright, #c4784a);
  box-shadow: 0 0 0 2px rgba(196, 120, 74, 0.45);
  background: rgba(196, 120, 74, 0.12);
}

.score-card.ask-target {
  border-color: #7eb8ff;
  box-shadow: 0 0 0 2px rgba(126, 184, 255, 0.4);
}

.tray.activity-focus {
  outline: 2px solid rgba(196, 120, 74, 0.85);
  outline-offset: 3px;
  border-radius: 10px;
}

.score-card .name {
  font-weight: 600;
  font-size: 0.95rem;
}

.score-card .pts {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--gold);
}

.score-card .meta {
  font-size: 0.75rem;
  color: var(--ivory-dim);
}

.trays {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.table-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(5.5rem, auto) auto;
  gap: 0.65rem 0.75rem;
  margin-top: 1rem;
  align-items: center;
}

.seat {
  min-width: 0;
}

.seat-empty {
  visibility: hidden;
  pointer-events: none;
}

.seat-top {
  grid-column: 2;
  grid-row: 1;
}

.seat-left {
  grid-column: 1;
  grid-row: 2;
}

.table-center {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.seat-right {
  grid-column: 3;
  grid-row: 2;
}

.seat-bottom {
  grid-column: 1 / -1;
  grid-row: 3;
}

.table-layout.players-3 .seat-left {
  grid-column: 1;
  grid-row: 1;
}

.table-layout.players-3 .seat-right {
  grid-column: 3;
  grid-row: 1;
}

.table-layout.players-3 .table-center {
  grid-column: 2;
  grid-row: 1 / 3;
}

.table-layout.players-2 .seat-top {
  grid-column: 1 / -1;
  grid-row: 1;
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
}

.table-layout.players-2 .table-center {
  grid-column: 1 / -1;
  grid-row: 2;
}

.table-felt {
  width: min(100%, 11rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(243, 234, 215, 0.08), transparent 45%),
    radial-gradient(circle at 50% 50%, #1f5a3c 0%, #0f2e1f 70%);
  border: 2px solid rgba(201, 162, 39, 0.35);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  gap: 0.25rem;
}

.table-turn {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
  line-height: 1.2;
}

.table-dir {
  font-size: 0.72rem;
  color: var(--ivory-dim);
  letter-spacing: 0.04em;
}

.seat-highlight .tray {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.tray-active {
  border-color: rgba(201, 162, 39, 0.55);
}

.tray-you {
  border-color: rgba(212, 132, 79, 0.45);
}

.seat-top .tray,
.seat-left .tray,
.seat-right .tray {
  font-size: 0.92em;
}

.seat-left .slots,
.seat-right .slots {
  gap: 0.18rem;
}

.tray {
  background: linear-gradient(180deg, #2a1a12 0%, #1a100c 100%);
  border-radius: 12px;
  padding: 0.85rem 0.75rem 0.7rem;
  border: 1px solid rgba(201, 162, 39, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tray-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.55rem;
  padding-inline: 0.2rem;
}

.tray-head .name {
  font-weight: 600;
}

.tray-head .hint {
  font-size: 0.78rem;
  color: var(--ivory-dim);
}

.slots {
  display: flex;
  justify-content: flex-end;
  gap: 0.28rem;
  width: 100%;
}

.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  flex: 0 1 calc((100% - 11 * 0.28rem) / 12);
  width: calc((100% - 11 * 0.28rem) / 12);
  min-width: 0;
}

.slot-value {
  font-size: 0.62rem;
  color: var(--gold);
  opacity: 0.85;
  font-weight: 600;
}

.card {
  width: 100%;
  aspect-ratio: 0.72;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.7rem, 2.2vw, 1.05rem);
  user-select: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card.empty {
  background: transparent;
  border: 1px dashed rgba(243, 234, 215, 0.12);
}

.card.hidden {
  background:
    repeating-linear-gradient(
      135deg,
      var(--card-back) 0 6px,
      #5a2f22 6px 12px
    );
  border: 1px solid #3d1f16;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  color: transparent;
}

.card.revealed {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid #d4c4a8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Only newly revealed cards animate — avoids re-flip on every UI sync/re-render. */
.card.revealed.flip-new {
  animation: flip-in 0.28s ease;
}

.card.revealed.blank-face {
  background: #1f1f1f;
  color: rgba(243, 234, 215, 0.55);
  border-color: #444;
  font-family: var(--font-ui);
  font-size: clamp(0.42rem, 1.4vw, 0.62rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card.selectable {
  cursor: pointer;
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.card.selectable:hover {
  transform: translateY(-3px);
}

/* Light peek of choosable faces while the owner picks which card to reveal. */
.card.choice-peek {
  color: rgba(243, 234, 215, 0.78);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  background:
    linear-gradient(rgba(15, 46, 31, 0.35), rgba(15, 46, 31, 0.35)),
    repeating-linear-gradient(
      135deg,
      var(--card-back) 0 6px,
      #5a2f22 6px 12px
    );
}

.card.choice-peek.blank-peek {
  font-family: var(--font-ui);
  font-size: clamp(0.7rem, 2.2vw, 1rem);
  font-weight: 600;
}

@keyframes flip-in {
  from {
    transform: rotateY(90deg);
    opacity: 0.4;
  }
  to {
    transform: rotateY(0);
    opacity: 1;
  }
}

.log {
  max-height: 160px;
  overflow-y: auto;
  font-size: 0.88rem;
  color: var(--ivory-dim);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.log .entry strong {
  color: var(--ivory);
}

.log .gain {
  color: #95d5b2;
}

.log .loss {
  color: #f4a3a3;
}

.activity {
  background: linear-gradient(145deg, #fff8ea, #f0e2c4);
  color: var(--ink);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  border: 1px solid #d8c49a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.activity .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rust);
  font-weight: 700;
}

.activity .text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-top: 0.25rem;
}

.letter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.4rem, 1fr));
  gap: 0.35rem;
}

.letter-grid .btn.letter {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.setup-preview {
  margin-top: 0.75rem;
}

.setup-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.setup-label-row {
  align-items: baseline;
  gap: 0.75rem;
}

.setup-count {
  font-family: "Outfit", sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--ivory-dim);
}

.setup-count.is-short {
  color: #f0c674;
}

.setup-count.is-full {
  color: var(--gold);
}

.blank-hint {
  margin: 0;
}

.blank-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.bot-ack-panel {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.2), 0 12px 40px var(--shadow);
}

.bot-update-panel {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.2), 0 12px 40px var(--shadow);
}

.bot-update-panel h2 {
  margin-bottom: 0.25rem;
}

.bot-ack-panel.solve-ack {
  border-color: rgba(149, 213, 178, 0.55);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(149, 213, 178, 0.18), transparent 55%),
    rgba(15, 46, 31, 0.72);
}

.bot-ack-panel.solve-ack h2 {
  color: #95d5b2;
}

.bot-ack-body {
  font-size: 1.15rem;
  color: var(--ivory);
  margin: 0.35rem 0 1rem;
  line-height: 1.4;
}

.btn.autoplay-toggle.on {
  border-color: var(--gold);
  color: var(--gold);
}

.banner.warn {
  background: rgba(155, 44, 44, 0.2);
  border-color: rgba(244, 163, 163, 0.35);
}

.ask-timer {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  min-width: 2.75rem;
  text-align: right;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(15, 46, 31, 0.55);
}

.ask-timer.warn {
  color: #f4a3a3;
  border-color: rgba(244, 163, 163, 0.45);
  background: rgba(155, 44, 44, 0.25);
  animation: timer-pulse 0.85s ease-in-out infinite alternate;
}

@keyframes timer-pulse {
  from { opacity: 1; }
  to { opacity: 0.72; }
}

.muted {
  color: var(--ivory-dim);
  font-size: 0.88rem;
}

.winner-board {
  text-align: center;
  padding: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.winner-board.celebrate {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.22), transparent 55%),
    rgba(15, 46, 31, 0.72);
  border-color: rgba(201, 162, 39, 0.45);
  animation: celebrate-glow 1.8s ease-in-out infinite alternate;
}

.winner-crown {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--copper-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
  animation: winner-pop 0.55s ease-out;
}

.winner-board .winner-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  color: var(--gold);
  animation: winner-pop 0.7s ease-out;
  text-shadow: 0 0 24px rgba(201, 162, 39, 0.35);
}

.winner-cheer {
  color: var(--ivory);
  font-size: 1.1rem;
  margin: 0.35rem auto 0.5rem;
  max-width: 28rem;
}

.final-scores {
  list-style: none;
  padding: 0;
  margin: 1.25rem auto 0;
  max-width: 20rem;
  text-align: left;
}

.final-scores li {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(243, 234, 215, 0.12);
}

.final-scores li.is-winner {
  color: var(--gold);
  font-weight: 700;
}

.final-scores li.is-winner strong {
  color: var(--gold);
}

.confetti {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0.9;
  animation: confetti-fall 2.8s linear infinite;
}

.confetti-piece.c1 { left: 8%; background: var(--gold); animation-delay: 0s; }
.confetti-piece.c2 { left: 22%; background: var(--copper-bright); animation-delay: 0.3s; }
.confetti-piece.c3 { left: 36%; background: #f3ead7; animation-delay: 0.7s; }
.confetti-piece.c4 { left: 52%; background: #95d5b2; animation-delay: 0.15s; }
.confetti-piece.c5 { left: 68%; background: var(--gold); animation-delay: 1s; }
.confetti-piece.c6 { left: 84%; background: var(--copper); animation-delay: 0.45s; }
.confetti-piece:nth-child(n+7) { width: 6px; height: 10px; animation-duration: 3.4s; }
.confetti-piece:nth-child(7) { left: 14%; background: #f4a3a3; animation-delay: 0.6s; }
.confetti-piece:nth-child(8) { left: 44%; background: var(--gold); animation-delay: 1.2s; }
.confetti-piece:nth-child(9) { left: 60%; background: #fff; animation-delay: 0.9s; }
.confetti-piece:nth-child(10) { left: 76%; background: #95d5b2; animation-delay: 1.5s; }
.confetti-piece:nth-child(11) { left: 30%; background: var(--copper-bright); animation-delay: 1.8s; }
.confetti-piece:nth-child(12) { left: 90%; background: var(--gold); animation-delay: 0.2s; }

.confetti-piece.streamer {
  width: 5px;
  height: 18px;
  border-radius: 2px;
  animation-duration: 3.6s;
}

.confetti-piece.streamer:nth-child(3n) {
  width: 4px;
  height: 22px;
  animation-duration: 4.2s;
}

@keyframes winner-pop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes celebrate-glow {
  from {
    box-shadow: 0 12px 40px var(--shadow), 0 0 0 1px rgba(201, 162, 39, 0.2);
  }
  to {
    box-shadow: 0 12px 40px var(--shadow), 0 0 28px rgba(201, 162, 39, 0.35);
  }
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(420px) rotate(520deg);
    opacity: 0;
  }
}

.player-setup-row {
  display: grid;
  grid-template-columns: 1fr minmax(7rem, 8.5rem);
  gap: 0.75rem;
  align-items: end;
}

.type-label select {
  width: 100%;
}

@media (max-width: 640px) {
  .slots {
    gap: 0.18rem;
  }

  .slot-value {
    font-size: 0.5rem;
  }

  .blank-controls {
    grid-template-columns: 1fr;
  }

  .player-setup-row {
    grid-template-columns: 1fr;
  }

  .table-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0.75rem;
  }

  .table-layout .seat-top,
  .table-layout .seat-left,
  .table-layout .seat-right,
  .table-layout .seat-bottom,
  .table-layout .table-center,
  .table-layout.players-3 .seat-left,
  .table-layout.players-3 .seat-right,
  .table-layout.players-3 .table-center,
  .table-layout.players-2 .seat-top,
  .table-layout.players-2 .table-center {
    grid-column: 1;
    grid-row: auto;
  }

  .table-felt {
    width: min(100%, 9rem);
    margin: 0.25rem auto;
  }

  .seat-empty {
    display: none;
  }
}

.room-code-line {
  font-size: 1.05rem;
  margin: 0.35rem 0 0.5rem;
}

.room-code {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  background: rgba(15, 46, 31, 0.65);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 8px;
  padding: 0.2rem 0.55rem 0.2rem 0.7rem;
}

.online-seat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.online-seat-list li {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: rgba(15, 46, 31, 0.45);
  border: 1px solid rgba(243, 234, 215, 0.1);
}

.online-settings {
  margin-top: 0.35rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-inline: 0.85rem;
}

.home-btn .home-icon {
  display: inline-flex;
  line-height: 0;
}

.home-btn .home-label {
  font-size: 0.92rem;
}

.check-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--ivory-dim);
  line-height: 1.35;
}

.check-row input[type="checkbox"] {
  margin: 0.15rem 0 0;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  accent-color: var(--gold);
}
