/* Games Night Hub — shared styles
   Colours, fonts and buttons used by every screen (TV and phone). */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Surfaces */
  --bg: #0E0C12;
  --panel: #1A1720;
  --panel-2: #231F2A;
  --line: #2C2733;
  --line-2: #3A3442;

  /* Text */
  --text: #F4F1EA;
  --muted: #A39DAD;

  /* Accents */
  --red: #E5383B;        /* borders, highlights */
  --red-btn: #C62A2F;    /* main action buttons (white text passes contrast) */
  --red-soft: #2A1418;
  --gold: #F2C14E;       /* anything to do with pieces */
  --gold-soft: #221C14;
  --green: #7FD6B0;      /* success, locked in, defused */
  --green-soft: #13261E;
  --pink-red: #FF8A8C;   /* losses on dark backgrounds */

  /* Player colours, in join order */
  --p1: #F2C14E; --p2: #7FB7FF; --p3: #F29A6B; --p4: #B79CFF;
  --p5: #7FD6B0; --p6: #FF8FB1; --p7: #E8E1D3; --p8: #9FD9A8;

  --radius: 16px;
  --display: "Bebas Neue", sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; }

.display { font-family: var(--display); font-weight: 400; letter-spacing: 2px; line-height: 1; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px;
  border-radius: 14px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text);
  font: 600 16px var(--body); text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-primary { background: var(--red-btn); border-color: var(--red-btn); color: #fff; font-weight: 700; }
.btn-gold { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }

/* Form fields */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.input {
  height: 56px; padding: 0 18px;
  border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--text);
  font: 18px var(--body);
}
.input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Pieces badge */
.pieces {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold);
  font-weight: 700; font-size: 15px;
}

/* Player avatar circle */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--bg); font-weight: 700;
}

/* Status dot */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--green); }
.dot.off { background: var(--pink-red); }
