body { overflow: hidden; }

/* ── Accueil ──────────────────────────────────────────────────────────────── */

.lobby { max-width: 520px; margin: 60px auto; }
.lobby h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.5px; }
.lobby p { margin: 0 0 20px; }
.lobby .small { margin: 18px 0 0; }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; }

.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.small { font-size: 13px; }

kbd {
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 5px;
  padding: 1px 5px;
}

.codeInput {
  width: 110px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--mono);
}

/* ── Jeu ──────────────────────────────────────────────────────────────────── */

#view {
  position: fixed;
  inset: 52px 0 0 0;
  width: 100%;
  height: calc(100vh - 52px);
  display: block;
  touch-action: none;
}

.hud { position: fixed; z-index: 5; }
.hud-tl { top: 66px; left: 14px; }
.hud-tr { top: 66px; right: 14px; width: 220px; padding: 12px 14px; }
.hud-bl { bottom: 16px; left: 14px; display: flex; gap: 8px; }
.hud-bc { bottom: 16px; left: 50%; transform: translateX(-50%); pointer-events: none; }

.hudTitle {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.hudNote { font-size: 11.5px; line-height: 1.4; margin-top: 11px; }

.scores { display: flex; flex-direction: column; gap: 6px; }
.scoreRow {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}
.scoreRow .dot { width: 10px; height: 10px; border-radius: 50%; }
.scoreRow .n { font-variant-numeric: tabular-nums; color: var(--muted); }
.scoreRow.me .who { font-weight: 600; }
.scoreRow .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#banner {
  font-size: 14px;
  color: var(--muted);
  background: rgba(22, 27, 36, 0.9);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 14px;
  opacity: 0;
  transition: opacity 0.2s;
}
#banner.on { opacity: 1; }

@media (max-width: 700px) {
  .hud-tr { width: 160px; padding: 10px 11px; }
  .hudNote { display: none; }
}
