* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  height: 100%;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  font-size: 14px;
}

a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--accent-soft-hover); }

input, button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
input:focus { outline: none; }
::placeholder { color: var(--text-faint); }

svg { flex-shrink: 0; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

video::-webkit-media-controls { display: none !important; }

.screen { display: none; }
/* Especificidade de duas classes (0,2,0) vence de propósito o `display: grid`
   declarado nas regras .home-page/.join-page/.gate-page/.lobby-page (0,1,0)
   em layout.css, então a visibilidade nunca depende da ordem dos arquivos. */
.screen.is-active { display: grid; }

/* Garante que [hidden] sempre vença, mesmo quando uma classe do componente
   também declara `display` (ex.: display:flex/grid em overlays e badges). */
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes vt-rise {
  0% { transform: translateY(0) scale(.9); opacity: 0; }
  12% { opacity: 1; transform: translateY(-6px) scale(1); }
  100% { transform: translateY(-120px) scale(1); opacity: 0; }
}

@keyframes vt-fade {
  0% { opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes vt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.pulse { animation: vt-pulse 1.6s ease-in-out infinite; }

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.dot-green { background: var(--success); }
.dot-red { background: var(--danger); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
