/* Tema común del hub: noche de salón recreativo, con un color por juego. */

@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url('/hub/fonts/display/barlow-condensed-latin-800-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 900; font-display: swap; src: url('/hub/fonts/display/barlow-condensed-latin-900-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/hub/fonts/display/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300; font-display: swap; src: url('/hub/fonts/outfit-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('/hub/fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('/hub/fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('/hub/fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('/hub/fonts/outfit-latin-700-normal.woff2') format('woff2'); }

:root {
  --ink: #07080f;
  --ink-2: #0d1020;
  --ink-3: #151a30;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef1ff;
  --muted: #98a1c4;
  --faint: #5f688c;
  --gold: #ffd166;
  --danger: #ff6b7d;
  --hoops: #5fd4ff;
  --beat: #e8c27a;
  --snake: #7ccf5a;
  --accent: #8f7bff;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.display { font-family: var(--display); font-style: italic; font-weight: 900; letter-spacing: 0.01em; text-transform: uppercase; }

/* La marca: tres colores, uno por juego. */
.wordmark {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0.01em;
  background: linear-gradient(100deg, var(--hoops) 0%, #b9a6ff 38%, var(--beat) 66%, var(--snake) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--av, #2a3050);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.crown { color: var(--gold); display: inline-flex; }
.crown svg { width: 1em; height: 1em; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 2.2em; height: 2.2em; border-radius: 50%; border: 0.22em solid var(--line-2); border-top-color: var(--text); animation: spin 0.9s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
