:root {
  --midnight: #050018;
  --midnight-soft: #0b0733;
  --midnight-glow: #17114a;
  --surface: #120d3f;
  --surface-alt: #1c1655;
  --primary: #ff4ed4;
  --primary-dark: #d63ab0;
  --secondary: #4cf1ff;
  --secondary-dark: #1bbfd0;
  --accent: #ffe982;
  --muted: #9aa3d8;
  --text: #f4f4ff;
  --border-soft: rgba(148, 118, 255, 0.22);
  --shadow-strong: rgba(5, 0, 40, 0.45);
  --shadow-soft: rgba(12, 8, 60, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background-image: radial-gradient(circle at 15% 20%, rgba(76, 241, 255, 0.12), transparent 40%), radial-gradient(circle at 75% 10%, rgba(255, 78, 212, 0.15), transparent 45%), linear-gradient(180deg, var(--midnight) 0%, #06001f 45%, #050018 100%);
  line-height: 1.6;
  min-height: 100vh !important;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--accent);
}

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

/* Header */
.site-header,
header.bg-dark {
  background: linear-gradient(90deg, rgba(12, 8, 50, 0.95) 0%, rgba(10, 6, 38, 0.9) 55%, rgba(12, 8, 50, 0.95) 100%);
  color: var(--text);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner,
header .max-w-7xl,
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo,
header span.font-semibold {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.1rem;
}

.nav a,
header nav a {
  color: rgba(244, 244, 255, 0.92);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
header nav a:hover {
  color: var(--secondary);
  transform: translateY(-1px);
}

.nav-toggle,
#navToggle {
  display: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #0a0524;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 0.8rem;
  box-shadow: 0 12px 24px rgba(255, 78, 212, 0.25);
}

.nav-toggle:focus,
#navToggle:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .nav-toggle,
  #navToggle {
    display: block;
  }

  .nav,
  header nav#primaryNav {
    position: absolute;
    top: 100%;
    right: 1rem;
    background: rgba(12, 8, 45, 0.98);
    width: 240px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 0.75rem;
  }

  .nav.open,
  header nav.open {
    transform: translateY(12px);
    opacity: 1;
    visibility: visible;
  }

  .nav ul,
  header nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav li,
  header nav a {
    border-radius: 0.75rem;
  }

  .nav a,
  header nav a {
    display: block;
    padding: 0.75rem 0.9rem;
  }
}

/* Hero */
.hero {
  position: relative;
  color: var(--text);
  text-align: center;
}

.hero-bg {
  width: 100%;
  height: 460px;
  object-fit: cover;
  filter: brightness(0.55);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero .lead {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.cta,
.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--primary) 0%, #ff7ee6 55%, var(--secondary) 100%);
  color: #12092c;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  margin-right: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  box-shadow: 0 18px 32px rgba(255, 78, 212, 0.25);
  cursor: pointer;
}

.cta:hover,
.btn:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(76, 241, 255, 0.22);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
  background: rgba(76, 241, 255, 0.08);
  color: var(--accent);
  transform: translateY(-1px);
}

.badges {
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: rgba(76, 241, 255, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(76, 241, 255, 0.4);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}

.badge[data-tone="magenta"] {
  background: rgba(255, 78, 212, 0.1);
  border-color: rgba(255, 78, 212, 0.4);
  color: var(--primary);
}

.badge[data-tone="amber"] {
  background: rgba(255, 233, 130, 0.08);
  border-color: rgba(255, 233, 130, 0.4);
  color: var(--accent);
}

.micro-link {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--secondary);
}

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

/* Sections */
.section,
section {
  padding: 3.25rem 0;
}

.section h2,
section h2 {
  font-size: 2rem;
  margin-bottom: 1.75rem;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #11072f;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Cards */
.card {
  background: radial-gradient(circle at top, rgba(76, 241, 255, 0.18), transparent 65%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--border-soft);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 18px 40px var(--shadow-soft);
}

.card h3 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.2rem;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Games Gallery */

.game-card,
#games article {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(255, 78, 212, 0.2), transparent 55%), linear-gradient(180deg, rgba(18, 13, 63, 0.92), rgba(18, 13, 63, 0.75));
  border-radius: 1.75rem;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 48px rgba(5, 0, 25, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-card::before,
#games article::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 233, 130, 0.06);
  pointer-events: none;
}

.game-card:hover,
#games article:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(5, 0, 30, 0.65);
  border-color: rgba(76, 241, 255, 0.2);
}

.game-card img,
#games article img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 32px rgba(12, 8, 60, 0.35);
}

.game-card h3,
#games article h3 {
  margin-top: 1.1rem;
  font-size: 1.25rem;
}

.game-card p,
#games article p {
  font-size: 0.95rem;
  color: var(--muted);
}

.game-card button,
#games article button {
  margin-top: 1.1rem;
  width: 100%;
  padding: 0.65rem;
  border-radius: 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(76, 241, 255, 0.55);
  background: rgba(76, 241, 255, 0.1);
  color: var(--secondary);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.game-card button:hover,
#games article button:hover {
  background: rgba(255, 78, 212, 0.15);
  color: var(--accent);
  transform: translateY(-1px);
}

.cta-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--secondary);
  font-weight: 500;
}

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

/* FAQ */
.faq {
  display: grid;
  gap: 1rem;
}

.accordion {
  background-color: rgba(18, 13, 63, 0.7);
  color: var(--text);
  cursor: pointer;
  width: 100%;
  text-align: left;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  outline: none;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border-radius: 1rem;
}

.accordion:hover,
.accordion.active {
  border-color: rgba(76, 241, 255, 0.35);
  background: rgba(18, 13, 63, 0.88);
}

.accordion + .panel {
  max-height: 0;
  overflow: hidden;
  background-color: rgba(18, 13, 63, 0.6);
  transition: max-height 0.35s ease;
  color: var(--muted);
  padding: 0 1rem;
  border-radius: 0 0 1rem 1rem;
}

.accordion::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease, content 0.3s ease;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.accordion.active::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.panel {
  padding: 0.25rem 1rem !important;
}

/* Responsible Play */
.responsible-play {
  background: linear-gradient(135deg, rgba(18, 13, 63, 0.92), rgba(28, 22, 85, 0.92));
  text-align: center;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 48px rgba(5, 0, 30, 0.5);
}

.responsible-play p {
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact page */
.contact-section p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
}

.contact-info,
.contact-form-wrapper {
  flex: 1 1 320px;
  background: linear-gradient(180deg, rgba(18, 13, 63, 0.9), rgba(28, 22, 85, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 18px 32px rgba(5, 0, 25, 0.45);
}

.contact-info h2,
.contact-form-wrapper h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.contact-info address {
  font-style: normal;
  margin-bottom: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.contact-info p {
  margin: 0 0 1rem 0;
  color: var(--muted);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: rgba(244, 244, 255, 0.9);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.9rem;
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(12, 8, 40, 0.65);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(76, 241, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(76, 241, 255, 0.12);
}

.contact-form button {
  align-self: start;
}

@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
  }
}

/* Footer */
.site-footer,
footer {
  background: rgba(8, 5, 28, 0.98);
  color: var(--text);
  padding: 2.75rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: rgba(244, 244, 255, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.footer-note {
  font-size: 0.75rem;
  text-align: center;
  color: rgba(244, 244, 255, 0.65);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 1, 16, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2000;
}

.modal-content {
  background: linear-gradient(180deg, rgba(18, 13, 63, 0.92), rgba(18, 13, 63, 0.8));
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.25rem;
  border-radius: 1.6rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(5, 0, 30, 0.65);
}

.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--secondary);
  border: 1px solid rgba(76, 241, 255, 0.5);
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(76, 241, 255, 0.12);
  border-color: rgba(76, 241, 255, 0.65);
  color: var(--accent);
}

/* Cookie Banner */
.cookie-banner,
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(12, 8, 40, 0.98);
  color: var(--text);
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1500;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-banner p,
#cookieBanner p {
  margin: 0;
  font-size: 0.85rem;
  flex: 1;
  color: rgba(244, 244, 255, 0.85);
}

.cookie-actions,
#cookieBanner .flex {
  display: flex;
  gap: 0.75rem;
}

.cookie-banner .btn-secondary,
#cookieBanner button {
  border-color: rgba(76, 241, 255, 0.45);
  color: var(--secondary);
}

.cookie-banner .btn-secondary:hover,
#cookieBanner button:hover {
  background: rgba(76, 241, 255, 0.12);
  color: var(--accent);
}

.cookie-banner.show,
#cookieBanner.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

#cookieBanner {
  transform: translateY(100%);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .nav ul {
    gap: 0.75rem;
  }

  .contact-grid {
    flex-direction: column;
  }
}

main {
  flex: 1;
}
