/* 21online.ch – Social Casino Free-to-Play | DE | Schweiz */

:root {
  --bg-dark: #0a0a12;
  --bg-card: #12121f;
  --neon-cyan: #00f5ff;
  --neon-purple: #b24bf3;
  --neon-gold: #ffd54f;
  --neon-pink: #ff6b9d;
  --text: #e8e8f0;
  --text-muted: #9898b0;
  --border-glow: rgba(0, 245, 255, 0.4);
  --font: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background */
.app::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(178, 75, 243, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 245, 255, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(255, 107, 157, 0.15), transparent),
    var(--bg-dark);
  animation: bgPulse 12s ease-in-out infinite;
}

.app::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: 
    linear-gradient(90deg, transparent 0%, rgba(0, 245, 255, 0.03) 50%, transparent 100%),
    linear-gradient(0deg, transparent 0%, rgba(178, 75, 243, 0.04) 50%, transparent 100%);
  background-size: 200% 200%;
  animation: bgShift 15s linear infinite;
  pointer-events: none;
}

/* Animated particles (CSS-only) */
.hero__bg {
  --particle-count: 12;
}

.hero__content::before {
  content: '';
  position: absolute;
  inset: -50%;
  z-index: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(0, 245, 255, 0.4), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(178, 75, 243, 0.35), transparent),
    radial-gradient(2px 2px at 60% 20%, rgba(255, 213, 79, 0.25), transparent),
    radial-gradient(2px 2px at 80% 80%, rgba(255, 107, 157, 0.3), transparent),
    radial-gradient(2px 2px at 10% 90%, rgba(0, 245, 255, 0.2), transparent),
    radial-gradient(2px 2px at 90% 10%, rgba(178, 75, 243, 0.2), transparent);
  background-size: 250% 250%;
  animation: particleMove 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes particleMove {
  0%, 100% { opacity: 0.6; transform: translate(0, 0); }
  25% { opacity: 1; transform: translate(2%, -3%); }
  50% { opacity: 0.7; transform: translate(-2%, 2%); }
  75% { opacity: 0.9; transform: translate(1%, 1%); }
}

@keyframes bgPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}

@keyframes bgShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* Floating orbs (animated circles) */
.hero__bg::before,
.hero__bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.hero__bg::before {
  width: 300px;
  height: 300px;
  background: var(--neon-purple);
  top: -100px;
  right: 10%;
}

.hero__bg::after {
  width: 250px;
  height: 250px;
  background: var(--neon-cyan);
  bottom: -50px;
  left: 5%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.98); }
}

/* Age Gate */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  background-image: 
    radial-gradient(ellipse at center, rgba(178, 75, 243, 0.2), transparent 60%);
}

.age-gate.hidden {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.age-gate__box {
  max-width: 400px;
  padding: 2rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.15);
}

.age-gate__logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.age-gate__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.age-gate__sub {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.age-gate__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-glow);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner[aria-hidden="true"]:not(.visible) {
  transform: translateY(100%);
}

.cookie-banner__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__inner p {
  margin: 0;
  flex: 1 1 300px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-banner__inner a {
  color: var(--neon-cyan);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--neon-cyan), #00c4cc);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
  transform: translateY(-2px);
}

.btn--secondary {
  background: linear-gradient(135deg, var(--neon-purple), #8b2fc9);
  color: #fff;
  box-shadow: 0 0 20px rgba(178, 75, 243, 0.3);
}

.btn--secondary:hover {
  box-shadow: 0 0 30px rgba(178, 75, 243, 0.5);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
}

.btn--ghost:hover {
  background: rgba(0, 245, 255, 0.1);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 245, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.25), 0 0 30px rgba(0, 245, 255, 0.1);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo:hover {
  opacity: 0.9;
}

/* Burger – visible from 991px and below */
.nav-close {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  cursor: pointer;
  color: var(--neon-cyan);
  transition: background 0.2s;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 991px) {
  .burger {
    display: flex;
  }

  .nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    flex-direction: column;
    background: var(--bg-card);
    border-left: 1px solid var(--border-glow);
    padding: 4rem 1.5rem 2rem;
    z-index: 99;
  }

  .nav.open {
    display: flex;
  }

  .nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    color: var(--neon-cyan);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }

  .nav-close:hover {
    background: rgba(0, 245, 255, 0.15);
    color: #fff;
  }

  .nav-close span {
    display: block;
    margin-top: -0.15em;
  }
}

@media (max-width: 991px) {
  .nav__list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav__list a {
    display: block;
    padding: 0.75rem;
    border-radius: 8px;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 98;
  }

  .nav-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav__list a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__list a:hover {
  color: var(--neon-cyan);
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, #fff, var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

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

.hero__age {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
}

.section--alt {
  background: rgba(18, 18, 31, 0.6);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
  word-break: break-all;
}

.section__lead {
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 60ch;
}

.intro-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  /* max-width: 65ch; */
  margin: 0;
}

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.15);
}

.game-card__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.game-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.game-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Slots preview */
.slots-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.slot-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(178, 75, 243, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.slot-item:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.12);
}

.slot-item__thumb {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.slot-item__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.slot-item__desc {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.slot-item .btn {
  margin-top: auto;
}

.legal-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--neon-cyan);
  font-weight: 700;
}

.leaderboard-placeholder {
  background: var(--bg-card);
  border: 1px dashed rgba(0, 245, 255, 0.3);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.footer a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--bg-card);
  border-top: 1px solid rgba(0, 245, 255, 0.4);
  padding: 2rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 245, 255, 0.25), 0 0 30px rgba(0, 245, 255, 0.1);
}

.footer__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer__legal {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 75ch;
  margin-left: auto;
  margin-right: auto;
}

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

.footer__age {
  font-weight: 700;
  color: var(--neon-gold);
  margin: 0 0 0.5rem;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Utility */
.app[aria-hidden="true"] {
  visibility: hidden;
}

.app[aria-hidden="false"] {
  visibility: visible;
}

/* Legal pages (AGB, Datenschutz, Cookie) */
.page-legal {
  padding: 2rem 1.5rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-legal .header__inner {
  max-width: 800px;
}

.page-legal h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.page-legal h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--neon-cyan);
}

.page-legal p,
.page-legal li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.page-legal ul {
  padding-left: 1.5rem;
}

.page-legal a {
  color: var(--neon-cyan);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}
