:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #10231f;
  color: #f3f1e8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #a7b3aa;
  --green: #b5dc8e;
  --panel: #18312a;
  --line: rgba(232, 241, 228, .13);
  --corner-radius: 2px;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
.page-shell { width: min(1120px, calc(100% - 48px)); min-height: 100vh; margin: auto; display: flex; flex-direction: column; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { color: #f3f1e8; font-size: 23px; font-weight: 750; letter-spacing: -.06em; text-decoration: none; }
.wordmark span { color: var(--green); }
.rules-label { display: flex; align-items: center; gap: 9px; color: #d3ddd2; font-size: 13px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px #b5dc8e80; }
.welcome { width: min(620px, 100%); margin: auto; padding: 84px 0 88px; }
.eyebrow { margin: 0 0 13px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(48px, 8vw, 76px); line-height: .98; letter-spacing: -.065em; font-weight: 650; }
.intro { margin: 22px 0 36px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.table-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--corner-radius); background: linear-gradient(145deg, #1d3930, var(--panel)); box-shadow: 0 24px 80px #06120f55; }
.card-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.card-heading .eyebrow { margin-bottom: 7px; }
h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
.seat-count { padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--corner-radius); color: #d1d9d0; font-size: 12px; }
.actions { padding-top: 21px; }
.button { min-height: 48px; border-radius: var(--corner-radius); padding: 0 16px; font-size: 14px; font-weight: 650; }
.button-primary { width: 100%; color: #16231b; background: var(--green); border: 0; }
.button:disabled { opacity: .46; cursor: not-allowed; }
.session-form { display: grid; gap: 9px; }
.session-form label { margin-top: 5px; color: #c8d3c9; font-size: 12px; font-weight: 600; }
.session-form label span { color: #87988d; font-weight: 400; }
.session-form input { width: 100%; min-width: 0; min-height: 45px; padding: 0 12px; border: 1px solid #53675c; border-radius: var(--corner-radius); outline: 0; color: #f3f1e8; background: #10231f99; }
.session-form input::placeholder { color: #87988d; }
.session-form input:focus { border-color: #b5dc8e; }
.join-options { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--corner-radius); background: #10231f66; }
.join-options[hidden] { display: none; }
.join-options select { width: 100%; min-height: 42px; margin: 0 0 9px; padding: 0 10px; border: 1px solid #53675c; border-radius: var(--corner-radius); color: #f3f1e8; background: #18312a; }
.form-error { color: #e4a397; }
.divider { display: flex; align-items: center; gap: 13px; margin: 20px 0; color: #93a398; font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.join-form { display: flex; gap: 10px; }
.join-form input { width: 100%; min-width: 0; padding: 0 13px; border: 1px solid #53675c; border-radius: var(--corner-radius); outline: 0; color: #f3f1e8; background: #10231f99; }
.join-form input::placeholder { color: #87988d; }
.button-secondary { flex: 0 0 auto; color: #e8eee6; background: transparent; border: 1px solid #718477; }
.setup-note { margin: 13px 0 0; color: #94a49a; font-size: 12px; }
.persistence-note { margin: 20px 0 0; color: #b1beb4; font-size: 13px; text-align: center; }
.footer { display: flex; justify-content: space-between; padding: 20px 0 26px; border-top: 1px solid var(--line); color: #87988d; font-size: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 540px) {
  .page-shell { width: min(100% - 32px, 1120px); }
  .welcome { padding: 64px 0; }
  .table-card { padding: 21px; }
  .join-form { flex-direction: column; }
  .join-form input { min-height: 48px; }
  .button-secondary { width: 100%; }
}
