/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
  --white:    #ffffff;
  --black:    #111111;
  --blue:     #5bb8f5;
  --blue-bg:  rgba(91, 184, 245, 0.10);
  --blue-bd:  rgba(91, 184, 245, 0.35);
  --gray-50:  #f7f7f7;
  --gray-200: #e0e0e0;
  --gray-500: #888888;
  --green:    #16a34a;
  --red:      #dc2626;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--white);
  color: var(--black);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Screen transition keyframes ─────────────────────────────────────────── */
@keyframes screen-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes screen-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-14px); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.screen-enter { animation: screen-in  0.38s cubic-bezier(0.16, 1, 0.3, 1) both; }
.screen-exit  { animation: screen-out 0.24s ease both; }
.fade-enter   { animation: fade-in    0.32s ease both; }
.fade-exit    { animation: fade-out   0.22s ease both; }

/* ── Logo ────────────────────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon-box {
  width: 38px;
  height: 38px;
  border: 2px solid var(--black);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-i { color: var(--blue); }

/* ── Tagline ─────────────────────────────────────────────────────────────── */
.tagline {
  font-size: 0.9rem;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  padding: 13px 20px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s, transform 0.12s;
  width: 100%;
  letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.97); }

.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { opacity: 0.82; }

.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { opacity: 0.88; }

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-200);
}
.btn-outline:hover { background: var(--gray-50); border-color: #bbb; }

/* ── Inputs ──────────────────────────────────────────────────────────────── */
input[type="text"] {
  display: block;
  width: 100%;
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 9px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(91,184,245,0.12);
}
input[type="text"]::placeholder { color: #bbb; }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.error  { font-size: 0.84rem; color: var(--red); text-align: center; }

/* ════════════════════════════════════════════════════════════════════════════
   SCREEN 1 — Join / Create
   ════════════════════════════════════════════════════════════════════════════ */

#lobby-wrapper {
  width: 100%;
  max-width: 390px;
  padding: 1.5rem;
  animation: screen-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lobby-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 2.8rem 2.2rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 18px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.07);
}

.lobby-card .logo { justify-content: center; }
.lobby-card .tagline { margin-top: -2px; margin-bottom: 6px; }

/* Staggered entrance for lobby card children */
.lobby-card > *              { animation: screen-in 0.48s cubic-bezier(0.16, 1, 0.3, 1) both; }
.lobby-card > *:nth-child(1) { animation-delay: 0.04s; }
.lobby-card > *:nth-child(2) { animation-delay: 0.09s; }
.lobby-card > *:nth-child(3) { animation-delay: 0.14s; }
.lobby-card > *:nth-child(4) { animation-delay: 0.19s; }
.lobby-card > *:nth-child(5) { animation-delay: 0.24s; }
.lobby-card > *:nth-child(6) { animation-delay: 0.29s; }
.lobby-card > *:nth-child(7) { animation-delay: 0.34s; }

.divider {
  position: relative;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
  padding: 2px 0;
}
.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 36%;
  height: 1px;
  background: var(--gray-200);
}
.divider::before { left: 0; }
.divider::after  { right: 0; }

.join-row { display: flex; gap: 8px; align-items: stretch; }
.join-row input { flex: 1; }
.join-row .btn  { width: auto; flex-shrink: 0; padding: 13px 18px; }

#code-input {
  text-transform: uppercase;
  letter-spacing: 5px;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   GAME SCREEN shell
   ════════════════════════════════════════════════════════════════════════════ */

#game-screen {
  position: fixed;
  inset: 0;
  background: #000;
}

#game-screen video,
#game-screen canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

#webcam      { object-fit: cover; transform: scaleX(-1); z-index: 0; }
#paintCanvas { z-index: 1; pointer-events: none; }
#overlay     { z-index: 2; pointer-events: none; }

/* ════════════════════════════════════════════════════════════════════════════
   SCREEN 2 — Pregame lobby (solid white overlay)
   ════════════════════════════════════════════════════════════════════════════ */

#pregame-overlay {
  position: absolute;
  inset: 0;
  z-index: 200;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.pg-inner {
  width: 100%;
  max-width: 420px;
  padding: 2.8rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Stagger pg-inner children when overlay enters */
.screen-enter .pg-inner > *,
.pg-inner > * {
  animation: screen-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.pg-inner > *:nth-child(1) { animation-delay: 0.05s; }
.pg-inner > *:nth-child(2) { animation-delay: 0.10s; }
.pg-inner > *:nth-child(3) { animation-delay: 0.15s; }
.pg-inner > *:nth-child(4) { animation-delay: 0.20s; }
.pg-inner > *:nth-child(5) { animation-delay: 0.25s; }
.pg-inner > *:nth-child(6) { animation-delay: 0.30s; }

.code-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 32px;
  border: 2px solid var(--blue);
  border-radius: 999px;
}
.code-pill span {
  font-family: Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 12px;
  color: var(--black);
}

.code-hint {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: -12px;
}

/* Player list */
.player-list {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  animation: screen-in 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.player-item.player-empty {
  border-style: dashed;
  background: var(--gray-50);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-bg);
  border: 1.5px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.avatar-empty {
  background: var(--gray-50);
  border: 1.5px dashed var(--gray-200);
  color: transparent;
}

.player-name       { font-size: 0.95rem; font-weight: 600; color: var(--black); flex: 1; }
.player-name-empty { font-size: 0.9rem;  color: #bbb;       flex: 1; }

.host-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1px solid var(--blue-bd);
  border-radius: 4px;
  padding: 2px 7px;
}

.pg-status {
  font-size: 0.84rem;
  color: var(--gray-500);
  text-align: center;
  min-height: 1.1em;
}

#start-btn { width: 100%; }

/* ════════════════════════════════════════════════════════════════════════════
   TUTORIAL OVERLAY
   ════════════════════════════════════════════════════════════════════════════ */

#tutorial-overlay {
  position: absolute;
  inset: 0;
  z-index: 250;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.tut-card {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0,0,0,0.24);
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.tut-webcam-wrap {
  width: 100%;
  height: 190px;
  background: #111;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

/* Override the blanket #game-screen video rule */
#tut-webcam {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transform: scaleX(-1);
}

.tut-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 1.8rem 2rem 2rem;
  overflow-y: auto;
}

.tut-step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-height: 108px;
}

.tut-icon {
  font-size: 3rem;
  line-height: 1;
}

.tut-title {
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.3px;
}

.tut-desc {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.58;
  max-width: 300px;
}

.tut-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.tut-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: background 0.22s, transform 0.22s;
}
.tut-dot.active {
  background: var(--blue);
  transform: scale(1.35);
}
.tut-dot.done {
  background: var(--black);
}

.tut-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.tut-waiting {
  font-size: 0.84rem;
  color: var(--gray-500);
  text-align: center;
}

/* ════════════════════════════════════════════════════════════════════════════
   IN-GAME HUD (overlaid on webcam — white glass pills)
   ════════════════════════════════════════════════════════════════════════════ */

/* Room info — top-right */
#room-info {
  position: fixed;
  top: 16px; right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(224,224,224,0.9);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--gray-500);
  user-select: none;
  cursor: pointer;
}
#room-info:hover { background: rgba(255,255,255,0.98); }
#ri-code { font-weight: 700; letter-spacing: 3px; color: var(--black); font-size: 0.85rem; }
.ri-sep  { color: var(--gray-200); }

/* Timer — top-left */
#timer-display {
  position: fixed;
  top: 16px; left: 20px;
  z-index: 100;
  padding: 7px 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(224,224,224,0.9);
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--black);
  min-width: 74px;
  text-align: center;
  transition: color 0.25s, border-color 0.25s;
}
#timer-display.urgent { color: var(--red); border-color: rgba(220,38,38,0.35); }
.timer-unit { font-size: 0.82rem; font-weight: 500; color: var(--gray-500); margin-left: 1px; }

/* Word display — centered below toolbar */
#word-display {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 7px 22px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(224,224,224,0.9);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--black);
  white-space: nowrap;
  user-select: none;
}
#word-display strong { color: var(--green); font-weight: 700; letter-spacing: 0.5px; }

/* Scoreboard — left side */
#scoreboard {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 132px;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 11px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(224,224,224,0.9);
  border-radius: 999px;
  font-size: 0.8rem;
}
.score-row.is-drawer {
  border-color: var(--blue);
  background: rgba(91,184,245,0.08);
}
.score-name {
  font-weight: 600;
  color: var(--black);
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.score-pips { font-size: 0.68rem; letter-spacing: 1px; }
.score-pips .pip-on  { color: var(--blue); }
.score-pips .pip-off { color: var(--gray-200); }

/* ── Toolbar ─────────────────────────────────────────────────────────────── */
#toolbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(224,224,224,0.9);
  border-radius: 999px;
  user-select: none;
}

.tool-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c);
  border: 2.5px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.tool-btn:hover, .tool-btn.hovered { transform: scale(1.22); }
.tool-btn.active {
  border-color: var(--black);
  transform: scale(1.14);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.2);
}
.tool-btn.active.hovered { transform: scale(1.24); }

.toolbar-sep { width: 1px; height: 20px; background: var(--gray-200); flex-shrink: 0; }

.eraser-btn {
  width: 42px; height: 30px;
  border-radius: 15px;
  background: var(--gray-50) !important;
  border: 1.5px solid var(--gray-200) !important;
  color: var(--black);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.eraser-btn.active {
  background: var(--black) !important;
  border-color: var(--black) !important;
  color: var(--white);
}
.eraser-btn.hovered { transform: scale(1.1); }

/* ── Guess input — bottom center ─────────────────────────────────────────── */
#guess-area {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(460px, 88vw);
}
#guess-input {
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(224,224,224,0.95);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--black);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
#guess-input:focus { border-color: var(--blue); }
#guess-input::placeholder { color: #bbb; }

/* ── Guess bubbles — full-viewport float ─────────────────────────────────── */
#bubbles-area {
  position: fixed;
  inset: 0;
  z-index: 105;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: 82px;
  padding: 9px 18px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(200,200,200,0.6);
  border-radius: 999px;
  color: var(--black);
  font-size: 0.88rem;
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  animation: bubble-float var(--bdur, 5.5s) ease-out forwards;
}

@keyframes bubble-float {
  0%   { opacity: 0; transform: translateX(-50%) translateY(0)    scale(0.82); }
  7%   { opacity: 1; transform: translateX(-50%) translateY(-18px) scale(1);   }
  82%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(-50%) translateY(calc(-100vh - 100px)); }
}

.bubble-correct {
  background: rgba(22,163,74,0.13);
  border-color: rgba(22,163,74,0.45);
  color: #15803d;
  font-weight: 700;
  animation: bubble-float var(--bdur, 5.5s) ease-out forwards,
             bubble-correct-pulse 0.55s ease 0.1s;
}

@keyframes bubble-correct-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(22,163,74,0.55); }
  50%  { box-shadow: 0 0 0 20px rgba(22,163,74,0);    }
  100% { box-shadow: 0 0 0 0    rgba(22,163,74,0);    }
}

.bubble-name { font-weight: 700; color: var(--black); }
.bubble-correct .bubble-name { color: #15803d; }

/* ── Round transition overlay ────────────────────────────────────────────── */
#round-overlay {
  position: absolute;
  inset: 0;
  z-index: 210;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}
#round-msg {
  padding: 2.2rem 2.8rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 18px;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--black);
  text-align: center;
  max-width: 440px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.08);
  animation: screen-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both;
}
#round-msg strong { color: var(--green); }

/* ════════════════════════════════════════════════════════════════════════════
   SCREEN 3 — Winner screen (solid white)
   ════════════════════════════════════════════════════════════════════════════ */
#winner-screen {
  position: absolute;
  inset: 0;
  z-index: 300;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

#confetti-canvas {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  z-index: 0;
}

#winner-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
}

.winner-star-box {
  width: 66px; height: 66px;
  border: 2px solid var(--blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--blue);
  animation: star-pop 0.55s ease infinite alternate;
}
@keyframes star-pop {
  from { transform: scale(1);    }
  to   { transform: scale(1.08); }
}

#winner-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--black);
  text-align: center;
  letter-spacing: -0.5px;
}

.winner-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  text-align: center;
  margin-top: -6px;
  letter-spacing: 0.02em;
}

#winner-scores {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ws-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--black);
  background: var(--white);
}
.ws-row.ws-winner {
  background: var(--blue-bg);
  border-color: var(--blue);
  font-weight: 700;
}
.ws-pts { color: var(--gray-500); font-size: 0.84rem; }
.ws-row.ws-winner .ws-pts { color: var(--blue); font-weight: 700; }

/* ── Session wins tracker ────────────────────────────────────────────────── */
.session-wins {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  background: var(--gray-50);
}

.session-wins-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  text-align: center;
}

.session-wins-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.sw-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.sw-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-bg);
  border: 1.5px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sw-crown {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 2px;
}

.sw-zero { color: var(--gray-200); font-weight: 400; }

/* ── Invite panel ────────────────────────────────────────────────────────── */
.invite-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1.5px solid var(--blue);
  border-radius: 12px;
  background: var(--blue-bg);
  animation: screen-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.invite-hint {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.invite-panel .code-pill {
  padding: 6px 24px;
}

.invite-panel .code-pill span {
  font-size: 1.9rem;
  letter-spacing: 10px;
}

.winner-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}
