/* --------------------------------------------------------------------------
   Menu, setup and lobby — same materials as the game
   -------------------------------------------------------------------------- */
.wf-panel { display: flex; flex-direction: column; gap: 14px; }
.wf-lead { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.page-play h2 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0;
}
.wf-choices { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }

.wf-tabs { display: flex; gap: 6px; margin: 0; }
.wf-tab {
  appearance: none;
  flex: 1;
  padding: 11px 10px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--chip);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.wf-tab[aria-selected="true"] { color: var(--accent-text); border-color: var(--accent); }

.page-play .feedback-form { margin: 0; max-width: none; display: grid; gap: 12px; }
.page-play .feedback-form label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
  gap: 6px;
}
.page-play .feedback-form input {
  padding: 12px 13px;
  font-family: var(--font-body);
  font-size: 16px;              /* 16px: iOS will not zoom the page on focus */
  border-radius: 9px;
  background: var(--chip);
  border: 1px solid var(--rule);
  color: var(--ink);
  box-shadow: none;
}
.wf-code-input {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-align: center;
  text-transform: uppercase;
  max-width: 11rem;
}
.wf-code-input.is-locked { color: var(--muted); border-style: dashed; }
.wf-error { color: var(--accent-text); font-size: 13px; margin: 0; }
.wf-note { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }

.wf-nudge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.wf-nudge .btn { padding: 9px 16px; font-size: 11px; }

.wf-idle {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--chip);
  font-size: 13px;
  color: var(--muted);
}

/* Removing somebody is a real consequence, so it does not look like a
   decoration: a quiet word until you reach for it, the accent when you do. */
.wf-kick {
  appearance: none;
  margin-left: auto;
  border: none;
  background: none;
  padding: 4px 2px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  cursor: pointer;
}
.wf-kick:hover { color: var(--accent-text); }
.wf-kick:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  color: var(--accent-text);
}


/* PICK A SIDE — a relay's lobby. Buttons rather than a drag: CLAUDE.md already
   records that a touch drag needs `touch-action: none`, which kills scrolling
   on the very screen it would live on, and this is a game played on phones.

   Each side shows WHO is on it rather than a count. "Team A 2/4" answers how
   many; the only reason to pick a side is who you are picking it with. */
.wf-sides { margin-top: 14px; }
.wf-sides h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.wf-sides-row { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-side {
  flex: 1 1 8rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  text-align: left;
  background: var(--chip);
  border: 1px solid var(--rule);
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.wf-side b {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.wf-side small { font-size: 11px; color: var(--muted); }
.wf-side.is-on {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.wf-side.is-on b { color: var(--accent-text); }
/* A full side you are not on cannot be joined. Dimmed AND disabled, because
   the reason is in the note underneath and a button that silently does nothing
   is worse than one that says it is full. */
.wf-side:disabled { opacity: 0.5; cursor: default; }
.wf-side:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
