/* Salon — shared design tokens.
   Runs entirely offline (local Wi-Fi, no internet guaranteed at a party),
   so no external font loading — system font stacks only. */

:root {
  --bg-deep: #0b1326;
  --bg-sunken: #060e20;
  --bg-card: #171f33;
  --bg-card-raised: #222a3d;
  --bg-card-bright: #2d3449;
  --accent-gold: #ffc700;
  --accent-gold-soft: #ffe9b9;
  --accent-coral: #ff6b5d;
  --accent-teal: #3ec1a6;
  --text-light: #dae2fd;
  --text-muted: #97a3c2;
  --border-soft: rgba(218, 226, 253, 0.11);

  --font-display: "Segoe UI Rounded", "Baloo 2", "Trebuchet MS", "Arial Rounded MT Bold", sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--text-light);
  font-family: var(--font-body);
  min-height: 100vh;
}

body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(242, 183, 5, 0.08), transparent 40%),
    radial-gradient(circle at 85% 100%, rgba(62, 193, 166, 0.08), transparent 45%);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
}

button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
}

input, select {
  font-family: var(--font-body);
}

.hidden { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-display);
  transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--accent-gold); color: #201400; }
.btn-primary:not(:disabled):hover { filter: brightness(1.08); }
/* Dimming bright gold just makes it muddy, so a disabled primary changes
   surface instead of fading. */
.btn-primary:disabled { background: var(--bg-card-raised); color: var(--text-muted); opacity: 1; }

.btn-secondary { background: var(--bg-card-raised); color: var(--text-light); border: 1px solid var(--border-soft); }
.btn-secondary:not(:disabled):hover { filter: brightness(1.15); }

.btn-ghost { background: transparent; color: var(--text-muted); padding: 10px 14px; font-weight: 600; font-family: var(--font-body); }

.btn-block { width: 100%; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #17233a;
  flex-shrink: 0;
}

/* Signature element: room codes rendered as chunky game-tile letters,
   readable at a glance from across a room. */
.code-tiles {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.code-tile {
  width: 52px;
  height: 60px;
  background: var(--accent-gold);
  color: #201400;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  box-shadow: 0 4px 0 rgba(0,0,0,0.25);
}
