body.host .host-main {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 480px) {
  body.host .host-main { padding: 10px; gap: 10px; }
}

/* One consistent vertical rhythm for every direct child of a card. The ad-hoc
   per-element margins below used to collide with default <p> margins, giving
   us "6px then 16px then 10px" step-ups within one card. */
.host .card > * { margin: 0; }
.host .card > * + * { margin-top: 12px; }
.host .card h2 { font-size: 1.2rem; }

/* Stacked-label pattern (text caption above the input) — mirrors the landing
   form so Players/Rounds/Seconds + the passphrase field all share one look. */
.host .row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.host .row label select,
.host .row label input { font-size: 1rem; color: var(--fg); text-transform: none; letter-spacing: 0; }

/* The passphrase row mixes a stacked label with free-standing buttons.
   Align the buttons with the input (bottom of the label), not the caption. */
.host .row.passphrase-row { align-items: flex-end; }

.host .players-mini {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.host .player-chip {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
}
.host .player-chip.ready { border-color: var(--good); }
.host .player-chip.offline { border-color: var(--warn); opacity: 0.75; }
.host .player-chip .state { color: var(--dim); font-size: 0.8rem; }
.host .player-chip.ready .state { color: var(--good); font-weight: 700; }
.host .player-chip.offline .state { color: var(--warn); font-weight: 700; }

.host .score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}
.host .score-card {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.host .score-card .name { font-weight: 700; margin-bottom: 4px; }
.host .score-card .round { color: var(--good); font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.host .score-card .total { color: var(--dim); font-size: 0.85rem; }
.host .score-card .count { color: var(--info); font-size: 0.85rem; }

.host #lastRoundInfo .result-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--border);
}
.host #lastRoundInfo .result-row.winner { color: var(--accent); font-weight: 700; }

/* Children of the host's #lastRoundInfo and the top-of-card hint/status-line
   participate in the card's 12px rhythm; we intentionally don't add their own
   margins. These rules exist only to call that out for future editors. */
