/* ============================================================
   CASINO — Design System
   Dark luxury theme with gold accents
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Syne:wght@700;800&display=swap');

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
  /* Colors */
  --bg-base: #0a0b0f;
  --bg-surface: #12141c;
  --bg-card: #1a1d2a;
  --bg-card-hover: #21253a;

  --primary-300: #FF8A80;
  --primary-400: #FF5252;
  --primary-500: #E53935;
  --primary-600: #C62828;
  --primary-glow: rgba(229, 57, 53, 0.28);

  --accent-purple: #7c3aed;
  --accent-pink: #db2777;
  --accent-teal: #0d9488;

  --text-primary: #f0f1f5;
  --text-muted: #8b92a8;
  --text-dim: #535870;

  --border: rgba(255, 255, 255, 0.07);
  --border-primary: rgba(229, 57, 53, 0.4);

  --danger: #ef4444;
  --success: #22c55e;

  /* Typography */
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-display: 'Syne', system-ui, sans-serif;

  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-primary: 0 0 24px rgba(229, 57, 53, 0.35);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

input,
textarea,
select {
  font-family: inherit;
}

/* ── Typography ──────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.text-primary-accent {
  color: var(--primary-400);
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Layout Helpers ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 4rem;
}

.section--sm {
  padding-block: 2rem;
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-400);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.navbar__logo:hover {
  opacity: 0.85;
}

.navbar__logo span {
  color: var(--text-primary);
  font-weight: 400;
  font-size: 0.8em;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Balance chip */
.balance-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-400);
}

.balance-chip svg {
  width: 14px;
  height: 14px;
}

/* Hamburger (mobile) */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
}

.navbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons (Material Design 3) ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 100px;
  /* MD3 pill shape */
  font-size: 0.875rem;
  font-weight: 500;
  /* MD3 uses medium weight */
  letter-spacing: 0.006em;
  transition: var(--transition);
  white-space: nowrap;
  border: none;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  cursor: pointer;
}

/* ── Ripple ──────────────────────────────────────────────── */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-effect 0.55s linear;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Filled – primary */
.btn--primary {
  background: var(--primary-500);
  color: #fff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 2px 6px rgba(229, 57, 53, 0.2);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.18s ease;
  border-radius: inherit;
}

.btn--primary:hover::before {
  opacity: 0.08;
}

.btn--primary:active::before {
  opacity: 0.14;
}

.btn--primary:hover {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 6px 16px rgba(229, 57, 53, 0.35);
}

.btn--primary:active {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transform: scale(0.98);
}

/* Tonal – subtle filled (MD3 "tonal" button) */
.btn--tonal {
  background: rgba(229, 57, 53, 0.14);
  color: var(--primary-300);
  box-shadow: none;
}

.btn--tonal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-400);
  opacity: 0;
  transition: opacity 0.18s ease;
  border-radius: inherit;
}

.btn--tonal:hover::before {
  opacity: 0.08;
}

.btn--tonal:active::before {
  opacity: 0.14;
}

.btn--tonal:active {
  transform: scale(0.98);
}

/* Outlined */
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn--outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-400);
  opacity: 0;
  transition: opacity 0.18s ease;
  border-radius: inherit;
}

.btn--outline:hover {
  border-color: var(--primary-500);
  color: var(--primary-300);
}

.btn--outline:hover::before {
  opacity: 0.06;
}

.btn--outline:active::before {
  opacity: 0.12;
}

.btn--outline:active {
  transform: scale(0.98);
}

/* Ghost / Text button */
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn--ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.18s ease;
  border-radius: inherit;
}

.btn--ghost:hover {
  color: var(--text-primary);
}

.btn--ghost:hover::before {
  opacity: 0.05;
}

.btn--ghost:active::before {
  opacity: 0.10;
}

.btn--ghost:active {
  transform: scale(0.98);
}

/* Danger */
.btn--danger {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.22);
}

.btn--danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
}

.btn--danger:active {
  transform: scale(0.98);
}

/* Sizes */
.btn--lg {
  padding: 0.8rem 2.25rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.btn--sm {
  padding: 0.375rem 1rem;
  font-size: 0.8rem;
  border-radius: 100px;
}

.btn--block {
  width: 100%;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  var(--shadow-inset);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.card--primary {
  border-color: var(--border-primary);
  box-shadow: var(--shadow-card), var(--shadow-primary);
}

.card__header {
  padding: 1.5rem 1.5rem 0;
}

.card__body {
  padding: 1.5rem;
}

.card__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Form Elements ───────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.18);
}

.form-control::placeholder {
  color: var(--text-dim);
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.alert--error {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.alert--success {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.3);
}

.alert--info {
  background: rgba(229, 57, 53, 0.1);
  color: var(--primary-400);
  border-color: var(--border-primary);
}

/* ── Game Cards (lobby grid) ─────────────────────────────── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-primary);
  box-shadow: var(--shadow-card), var(--shadow-primary);
}

.game-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.game-card__badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.2rem 0.55rem;
  background: var(--primary-500);
  color: #fff;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-card__body {
  padding: 1rem;
}

.game-card__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.game-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 5rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(229, 57, 53, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(124, 58, 237, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.9rem;
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid var(--border-primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero__title {
  margin-bottom: 1.2rem;
}

.hero__title strong {
  color: var(--primary-400);
}

.hero__desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
  margin-inline: auto;
}

.hero__cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  justify-content: space-around;
  flex-wrap: wrap;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-400);
}

.stat__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Section Headers ─────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin-bottom: 0;
}

.section-header a {
  font-size: 0.85rem;
  color: var(--primary-400);
  font-weight: 500;
}

.section-header a:hover {
  color: var(--primary-300);
}

/* ── Auth Layout ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(124, 58, 237, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 80%, rgba(229, 57, 53, 0.09) 0%, transparent 60%),
    var(--bg-base);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

/* ✕ Close button */
.auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.auth-close:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.auth-card__logo {
  text-align: center;
  margin-bottom: 1.75rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary-400);
}

.auth-card__title {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.auth-card__sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.auth-divider {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin: 0.25rem 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--border);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary-400);
  font-weight: 600;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--primary-400);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-400);
  margin-bottom: 0.75rem;
}

/* ── User Avatar ─────────────────────────────────────────── */
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.avatar:hover {
  opacity: 0.85;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.3);
}

.avatar--lg {
  width: 42px;
  height: 42px;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Avatar Dropdown ─────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
  z-index: 200;

  /* Hidden state */
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top right;
}

.nav-dropdown__menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Arrow tip */
.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 12px;
  width: 11px;
  height: 11px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}

/* Header with avatar + name */
.nav-dropdown__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem 0.5rem;
}

.nav-dropdown__username {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.nav-dropdown__role {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Balance box */
.nav-dropdown__balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.25rem 0.5rem;
  padding: 0.6rem 0.75rem;
  background: rgba(229, 57, 53, 0.08);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
}

.nav-dropdown__balance-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-dropdown__balance-value {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-400);
}

/* Divider */
.nav-dropdown__divider {
  height: 1px;
  background: var(--border);
  margin: 0.4rem 0;
}

/* Menu items */
.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.nav-dropdown__item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-dropdown__item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.nav-dropdown__item:hover svg {
  opacity: 1;
}

.nav-dropdown__item--danger {
  color: #fca5a5;
}

.nav-dropdown__item--danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}


/* ── Utility Classes ─────────────────────────────────────── */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-sm {
  gap: 0.5rem;
}

.gap-md {
  gap: 1rem;
}

.gap-lg {
  gap: 1.5rem;
}

.mt-sm {
  margin-top: 0.5rem;
}

.mt-md {
  margin-top: 1rem;
}

.mt-lg {
  margin-top: 2rem;
}

.mb-md {
  margin-bottom: 1rem;
}

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

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin-block: 1.5rem;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar__nav {
    display: none;
  }

  .navbar__burger {
    display: flex;
  }

  .navbar__nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.7rem 1rem;
    width: 100%;
  }

  .hero {
    min-height: unset;
    padding-block: 3.5rem 2rem;
  }

  .stats-bar {
    gap: 1rem;
    padding: 1.2rem;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes pulse-gold {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--gold-glow);
  }

  50% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease both;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.shimmer-text {
  background: linear-gradient(90deg, var(--primary-300) 25%, #fff 50%, var(--primary-400) 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ============================================================
   SLOTS LOBBY
   ============================================================ */

/* ── Header ──────────────────────────────────────────────── */
.slots-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 200;
}

.slots-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 0.2rem;
}

/* ── Filter Buttons ──────────────────────────────────────── */
.slots-filter {
  display: flex;
  gap: 0.5rem;
}

.filter-btn,
.dropdown-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.filter-btn:hover,
.dropdown-btn:hover {
  border-color: var(--primary-500);
  color: var(--primary-400);
  background: rgba(229, 57, 53, 0.06);
}

.filter-btn.active,
.dropdown-btn.active {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: #fff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.dropdown-btn::after {
  content: '';
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-20%) rotate(45deg);
  transition: transform 0.2s;
}

.dropdown-btn.open::after {
  transform: translateY(20%) rotate(-135deg);
}

.slots-filter {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 0.5rem 0;
  z-index: 300;
  display: none;
  min-width: 150px;
}

.dropdown-menu.show {
  display: block;
  z-index: 300;
}

.dropdown-item {
  display: block;
  padding: 0.45rem 1rem;
  color: var(--text-primary);
  font-size: 0.82rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: rgba(229, 57, 53, 0.08);
  color: var(--primary-400);
}

/* ── Grid ────────────────────────────────────────────────── */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── Slot Card ───────────────────────────────────────────── */
.slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.slot-card:hover {
  border-color: var(--border-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-primary);
}

/* ── Reel Preview Thumbnail ──────────────────────────────── */
.slot-card__thumb {
  background: linear-gradient(160deg, #12141c 0%, #1e1529 100%);
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  position: relative;
}

.slot-reel-preview {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.reel-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 5px;
  transition: var(--transition);
}

/* Walzen-Spin-Animation beim Hover */
@keyframes reel-spin {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  40% {
    transform: translateY(-6px);
    opacity: 0.5;
  }

  60% {
    transform: translateY(6px);
    opacity: 0.5;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.reel-col.spinning {
  animation: reel-spin 0.4s ease infinite;
}

.reel-symbol {
  font-size: 1.15rem;
  line-height: 1;
  text-align: center;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Badges ──────────────────────────────────────────────── */
.slot-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.18rem 0.6rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge--hot {
  background: var(--primary-500);
  color: #fff;
}

.badge--new {
  background: var(--accent-purple);
  color: #fff;
}

.badge--classic {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge--rtp {
  background: var(--accent-teal);
  color: #fff;
}

/* ── Card Body ───────────────────────────────────────────── */
.slot-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.slot-card__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: var(--font-display);
}

/* ── Pills ───────────────────────────────────────────────── */
.slot-card__pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pill {
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-base);
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.pill--vol-low {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
}

.pill--vol-medium {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}

.pill--vol-high {
  color: var(--primary-300);
  border-color: var(--border-primary);
  background: rgba(229, 57, 53, 0.08);
}

/* ── Stats Row ───────────────────────────────────────────── */
.slot-card__stats {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.slot-stat {
  text-align: center;
}

.slot-stat__value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.slot-stat__label {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .slots-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .slot-card__stats {
    gap: 0.5rem;
  }
}