/* ============================================================
   Black Lounge Casino - Ultra-VIP Luxury Theme
   Crafted to match the Black & Gold Monogram Logo
   ============================================================ */

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

:root {
  --bg-main: #060709;
  --bg-elevated: #0c0e14;
  --bg-card: rgba(15, 18, 25, 0.88);
  --bg-card-hover: rgba(22, 26, 36, 0.96);
  --bg-input: #0b0d13;

  --gold-primary: #d4af37;
  --gold-light: #fef0b3;
  --gold-mid: #e5be49;
  --gold-dark: #8c6a18;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold-gradient: linear-gradient(135deg, #fff3c4 0%, #e5be49 45%, #a1771b 100%);
  --gold-gradient-hover: linear-gradient(135deg, #ffffff 0%, #fae082 45%, #c59525 100%);
  --gold-border: rgba(212, 175, 55, 0.28);

  --text-main: #f3f4f6;
  --text-muted: #94a3b8;
  --text-gold: #e5be49;

  --success: #10b981;
  --danger: #ef4444;
  --discord-blurple: #5865F2;
  --discord-hover: #4752c4;

  --font-serif: 'Cinzel', serif;
  --font-sans: 'Outfit', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 14px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 175, 55, 0.14) 0%, transparent 65%),
    radial-gradient(circle at 85% 25%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(138, 106, 24, 0.07) 0%, transparent 50%),
    linear-gradient(rgba(6, 7, 9, 0.94), rgba(6, 7, 9, 0.94)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 1px, transparent 0, transparent 10px);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #07080b;
}
::-webkit-scrollbar-thumb {
  background: #242938;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-mid);
}

/* Typography */
h1, h2, h3, h4, .brand-title, .gold-heading {
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
  font-weight: 700;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ============================================================
   HEADER & NAVBAR
   ============================================================ */
/* Kein backdrop-filter: Der Header klebt über dem dauerhaft animierten
   Aurora-/Partikel-Hintergrund, d.h. der Blur müsste in jedem einzelnen
   Frame über die volle Breite neu berechnet werden. Bei 0.9 Deckkraft war
   davon ohnehin kaum etwas sichtbar - ein leicht dichterer Verlauf sieht
   identisch aus und kostet nichts. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 8, 12, 0.97);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.navbar-inner {
  max-width: 1760px;
  margin: 0 auto;
  padding: 10px clamp(14px, 1.8vw, 28px);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
}

/* Linien-Icons: Das Sprite liegt einmal im DOM, jede Instanz erbt
   Farbe und Strichstärke über currentColor. */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon,
.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(18, 22, 32, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: var(--gold-light);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle .ico-shut,
.site-header.nav-open .nav-toggle .ico-open {
  display: none;
}

.site-header.nav-open .nav-toggle .ico-shut {
  display: block;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
  transition: var(--transition);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.06) rotate(4deg);
  box-shadow: 0 0 26px rgba(212, 175, 55, 0.65);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.02rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-sans);
  white-space: nowrap;
}

/* Nav Menu - als zusammenhängende Schiene statt loser Links */
.primary-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  list-style: none;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-item a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 8px clamp(9px, 0.85vw, 14px);
  border-radius: 10px;
  border: 1px solid transparent;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.nav-icon {
  color: rgba(212, 175, 55, 0.7);
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-item a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.2);
}

.nav-item a:hover .nav-icon {
  color: var(--gold-light);
  transform: translateY(-1px);
}

.nav-item a.active {
  color: var(--gold-light);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.05));
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.15);
}

.nav-item a.active .nav-icon {
  color: var(--gold-light);
}

/* User & Action Bar */
.user-action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Sound Toggle Button */
.sound-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(18, 22, 32, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  padding: 0;
}

.sound-toggle-btn:hover {
  border-color: var(--gold-primary);
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.sound-toggle-btn .ico-sound-off,
.sound-toggle-btn.is-muted .ico-sound-on {
  display: none;
}

.sound-toggle-btn.is-muted {
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.14);
}

.sound-toggle-btn.is-muted .ico-sound-off {
  display: block;
}

/* Balance Pill */
.balance-pill {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(16, 20, 29, 0.95), rgba(10, 12, 18, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 30px;
  padding: 4px 14px 4px 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 18px rgba(212, 175, 55, 0.15);
  gap: 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

.balance-icon {
  width: 30px;
  height: 30px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #08090c;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.balance-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.balance-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.balance-amount {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.01em;
}

/* Free Spins Pill - im Gold-Ton der Marke statt im Warnrot */
.spins-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.04));
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
  border-radius: 30px;
  padding: 7px 13px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.spins-pill .icon {
  width: 15px;
  height: 15px;
  fill: rgba(212, 175, 55, 0.25);
}

.spins-pill strong {
  color: #fff;
  font-weight: 800;
}

/* Admin-Schnellzugriff */
.admin-link {
  gap: 7px;
}

.admin-link .icon {
  width: 16px;
  height: 16px;
}

/* User Profile Pill + Dropdown */
.user-menu {
  position: relative;
  flex-shrink: 0;
}

.user-profile-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px 3px 4px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  color: inherit;
  transition: var(--transition);
  white-space: nowrap;
}

.user-profile-menu:hover,
.user-menu.is-open .user-profile-menu {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-border);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-primary);
}

.user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.user-menu-caret {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.user-menu.is-open .user-menu-caret {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 236px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(19, 22, 31, 0.99), rgba(9, 11, 16, 0.99));
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1200;
}

.user-menu.is-open .user-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.user-menu-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 8px;
}

.user-menu-head .user-avatar {
  width: 42px;
  height: 42px;
}

.user-menu-id {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-menu-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.93rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-role {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-gold);
  font-weight: 700;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.user-menu-item:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
}

.user-menu-item.is-danger {
  color: #fca5a5;
}

.user-menu-item.is-danger:hover {
  background: rgba(239, 68, 68, 0.14);
  color: #fff;
}

.badge-admin {
  background: var(--gold-gradient);
  color: #000;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Generische Badges. Standen vorher nur in admin.css, werden aber auch in
   den Spiel-Seiten benutzt - admin.css wird jetzt nur noch im Adminbereich
   geladen. */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge-active {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* In Badge-Form bleibt der Admin-Ton transparent, damit heller Text darin
   lesbar bleibt - der alleinstehende .badge-admin im Header bleibt massiv. */
.badge.badge-admin {
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 99px;
}

/* VIP Live Ticker Bar */
.vip-live-ticker-wrap {
  background: rgba(10, 12, 18, 0.96);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  display: flex;
  align-items: center;
  height: 36px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.ticker-badge {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  box-shadow: 6px 0 18px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.ticker-marquee-track {
  display: flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
  animation: marqueeTicker 34s linear infinite;
  padding-left: 24px;
}

.ticker-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticker-user {
  font-weight: 700;
  color: #f1f5f9;
}

.ticker-win {
  color: #38bdf8;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #090a0d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 18px rgba(212, 175, 55, 0.35);
  font-weight: 800;
}

.btn-gold:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 25px rgba(212, 175, 55, 0.55);
}

.btn-discord {
  background: linear-gradient(135deg, #6875f5 0%, #5865F2 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.35);
  font-weight: 700;
}

.btn-discord:hover {
  background: linear-gradient(135deg, #7983f8 0%, #4752c4 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(88, 101, 242, 0.5);
}

.btn-outline-gold {
  background: rgba(212, 175, 55, 0.05);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold-primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-gold.active {
  background: var(--gold-gradient);
  color: #08090c;
  border-color: var(--gold-light);
  font-weight: 800;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.btn-sm {
  padding: 6px 13px;
  font-size: 0.82rem;
  border-radius: 8px;
}

/* ============================================================
   FLASH MESSAGES & CONTAINERS
   ============================================================ */
.flash-container {
  max-width: 1440px;
  margin: 14px auto 0;
  padding: 0 24px;
  width: 100%;
}

.alert {
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  backdrop-filter: blur(10px);
}

.alert-success {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

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

.alert-info {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-border);
  color: var(--gold-light);
}

/* Main Container */
.main-wrapper {
  flex: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
  position: relative;
  border-radius: 20px;
  background:
    radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.12) 0%, transparent 55%),
    linear-gradient(135deg, rgba(18, 21, 30, 0.92) 0%, rgba(8, 9, 13, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 48px 44px;
  margin-bottom: 42px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 50px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.025) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 20px;
  color: var(--gold-light);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.12;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-desc {
  font-size: 1.04rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-trust-strip {
  display: flex;
  gap: 28px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.hero-logo-ring {
  position: relative;
  padding: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
}

.hero-logo-glow {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.45), inset 0 0 20px rgba(0, 0, 0, 0.8);
  animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

/* ============================================================
   LOBBY GAMES GRID & MINI PREVIEWS
   ============================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.85rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}

@media (max-width: 1320px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}

.game-card {
  position: relative;
  background: linear-gradient(160deg, rgba(20, 24, 34, 0.92) 0%, rgba(11, 13, 19, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-card:hover {
  transform: translateY(-7px);
  border-color: var(--gold-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 42px rgba(212, 175, 55, 0.22);
}

.game-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gold-gradient);
  color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
}

.game-card-preview {
  height: 210px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0c12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Miniature Slots Preview */
.mini-slots-preview {
  display: grid;
  grid-template-columns: repeat(3, 58px);
  gap: 8px;
  padding: 14px;
  background: rgba(7, 10, 16, 0.85);
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.2);
  transition: transform 0.4s ease;
}

.game-card:hover .mini-slots-preview {
  transform: scale(1.06);
}

.mini-slot-tile {
  height: 58px;
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
}

/* Miniature Roulette Preview */
.mini-roulette-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: transform 0.4s ease;
}

.game-card:hover .mini-roulette-preview {
  transform: scale(1.06);
}

.mini-wheel-ring {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 7px solid #4a2517;
  outline: 2px solid #d4af37;
  background: conic-gradient(
    #047857 0deg 20deg,
    #991b1b 20deg 40deg,
    #0f172a 40deg 60deg,
    #991b1b 60deg 80deg,
    #0f172a 80deg 100deg,
    #991b1b 100deg 120deg,
    #0f172a 120deg 140deg,
    #991b1b 140deg 160deg,
    #0f172a 160deg 180deg,
    #991b1b 180deg 200deg,
    #0f172a 200deg 220deg,
    #991b1b 220deg 240deg,
    #0f172a 240deg 260deg,
    #991b1b 260deg 280deg,
    #0f172a 280deg 300deg,
    #991b1b 300deg 320deg,
    #0f172a 320deg 340deg,
    #991b1b 340deg 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.35);
}

.mini-wheel-cone {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef0b3 0%, #d4af37 60%, #8c6a18 100%);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

/* Miniature Chicken Road Preview */
.mini-chicken-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: #0b1116;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.18);
  transition: transform 0.4s ease;
}

.game-card:hover .mini-chicken-preview {
  transform: scale(1.06);
}

.mini-road-lane {
  width: 54px;
  height: 92px;
  border-radius: 8px;
  background: #141a24;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold-light);
}

.mini-road-lane.passed {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid #10b981;
  color: #6ee7b7;
}

.mini-road-lane.active {
  background: rgba(245, 158, 11, 0.22);
  border: 1.5px solid #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.45);
}

/* Mini Blackjack Preview */
.mini-blackjack-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}

.game-card:hover .mini-blackjack-preview {
  transform: scale(1.06);
}

.mini-bj-card {
  width: 56px;
  height: 78px;
  border-radius: 8px;
  background: linear-gradient(160deg, #ffffff 0%, #e5e7eb 100%);
  border: 1px solid rgba(212, 175, 55, 0.7);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.1;
}

.mini-bj-card.black { color: #0f172a; }
.mini-bj-card.red { color: #dc2626; }
.mini-bj-card.rotated {
  margin-left: -14px;
  transform: rotate(10deg) translateY(3px);
}

.mini-bj-suit {
  font-size: 1.35rem;
}

.mini-bj-badge {
  position: absolute;
  bottom: -10px;
  right: -14px;
  background: var(--gold-gradient);
  color: #050608;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 99px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.game-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.game-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  gap: 10px;
}

.game-features-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.game-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  color: var(--text-muted);
}

/* ============================================================
   VIP BENEFITS & RECENT ACTIVITY CARDS
   ============================================================ */
.vip-panel-section {
  background: linear-gradient(160deg, rgba(16, 19, 28, 0.92), rgba(10, 12, 18, 0.96));
  border: 1px solid var(--gold-border);
  border-radius: 18px;
  padding: 34px;
  margin-bottom: 36px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 40px rgba(0, 0, 0, 0.5);
}

.vip-feature-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  transition: var(--transition);
}

.vip-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.04);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: linear-gradient(160deg, #131722 0%, #0b0d14 100%);
  border: 1px solid var(--gold-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(212, 175, 55, 0.15);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  padding: 32px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-window {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.35rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #050608;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  padding: 36px 24px 28px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 850px) {
  .hero-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 22px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-actions,
  .hero-trust-strip {
    justify-content: center;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Der Header wird stufenweise verdichtet, statt ab einer festen Breite
   in drei zentrierte Zeilen umzubrechen. Jede Stufe entfernt genau die
   Elemente, die am wenigsten Information tragen. */
@media (max-width: 1660px) {
  .spins-label,
  .admin-link-label {
    display: none;
  }
  .admin-link {
    padding: 7px 10px;
  }
}

@media (max-width: 1500px) {
  .brand-subtitle {
    display: none;
  }
  .brand-title {
    font-size: 0.95rem;
  }
}

@media (max-width: 1400px) {
  .brand-text-block {
    display: none;
  }
}

/* Ab hier wandert die Navigation in ein aufklappbares Panel. */
@media (max-width: 1200px) {
  .nav-toggle {
    display: inline-flex;
  }

  .brand-text-block {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 12px clamp(14px, 1.8vw, 28px) 18px;
    background: linear-gradient(180deg, rgba(11, 13, 19, 0.995), rgba(7, 8, 12, 0.995));
    border-bottom: 1px solid var(--gold-border);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  .site-header.nav-open .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .nav-item a {
    padding: 12px 14px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .nav-icon {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 720px) {
  .brand-text-block,
  .user-name,
  .user-profile-menu .badge-admin,
  .balance-label,
  .admin-link {
    display: none;
  }

  .balance-pill {
    padding: 4px 12px 4px 5px;
  }

  .user-profile-menu {
    padding: 3px 8px 3px 4px;
  }

  .login-btn-label {
    display: none;
  }
}

@media (max-width: 430px) {
  .spins-pill {
    display: none;
  }
  .navbar-inner {
    gap: 7px;
    padding: 8px 10px;
  }
  .nav-toggle,
  .sound-toggle-btn {
    width: 36px;
    height: 36px;
  }
  .balance-pill {
    padding: 4px 10px 4px 4px;
    gap: 7px;
  }
  .balance-icon {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
  }
  .balance-amount {
    font-size: 0.9rem;
  }
}

@media (max-width: 380px) {
  /* Auf sehr schmalen Geräten trägt die Münze keine Information mehr -
     der Betrag selbst muss aber vollständig lesbar bleiben. */
  .balance-icon {
    display: none;
  }
  .balance-pill {
    padding: 6px 12px;
  }
}

@media (max-width: 360px) {
  .navbar-inner {
    gap: 6px;
  }
  .brand-logo-img {
    width: 38px;
    height: 38px;
  }
  .nav-toggle,
  .sound-toggle-btn {
    width: 34px;
    height: 34px;
  }
  .user-avatar {
    width: 30px;
    height: 30px;
  }
  .balance-amount {
    font-size: 0.85rem;
  }
  /* Auf Kleinstgeräten bleibt nur noch der Avatar als Menü-Auslöser */
  .user-profile-menu {
    padding: 2px;
    gap: 4px;
  }
  .user-menu-caret {
    display: none;
  }
}
