:root {
  --bg: #0f0e17;
  --surface: #1a1a2e;
  --surface-alt: #16213e;
  --primary: #e94560;
  --primary-light: #ff6b6b;
  --accent: #f5a623;
  --text: #fffffe;
  --text-muted: #a7a9be;
  --border: #2d2d44;
  --success: #06d6a0;
  --danger: #c0392b;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

h1, h2, h3 { font-weight: 700; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-light); }

.btn-ghost {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--primary); color: var(--text); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #e74c3c; }

.input {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--surface-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}
.input:focus { border-color: var(--primary); }
.input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.input::placeholder { color: var(--text-muted); }

.label {
  display: block;
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: .4rem;
  font-weight: 500;
}

.form-group { margin-bottom: 1.2rem; }

.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
}
.badge-owner { background: var(--accent); color: #000; }
.badge-spectator { background: var(--surface-alt); color: var(--text-muted); border: 1px solid var(--border); }

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s ease;
  z-index: 999;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 600px) {
  .btn { padding: .65rem 1rem; font-size: .9rem; }
  .input { font-size: .95rem; }
}
