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

body {
  background: linear-gradient(135deg, #f3e8ff, #faf5ff);
  background-attachment: fixed;
  font-family: 'Nunito', sans-serif;
  color: #444;
  line-height: 1.65;
  min-height: 100vh;
  font-size: 16px;
}

h1, h2, h3, .site-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  color: #1a1a1a;
  font-weight: 700;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

p { color: #333; }

a {
  color: #7c3aed;
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover { text-decoration: underline; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow {
  max-width: 800px;
}

/* Disclaimer */
.disclaimer-banner {
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  color: #4c1d95;
  font-weight: 600;
}

/* Cookie banner */
.cookie-banner {
  padding: 12px 0;
  font-size: 14px;
  color: #555;
}

.cookie-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}

.btn-small {
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  transition: opacity 0.2s;
}

.btn-small:hover { opacity: 0.85; }

/* Header */
.site-header {
  padding: 16px 0;
  background: transparent;
}

.site-header .container {
  text-align: center;
}

.site-logo {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #4c1d95;
  font-weight: 600;
  font-size: 15px;
}

/* Sections */
.section { padding: 48px 0; }

.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.hero .container {
  max-width: 800px;
  text-align: center;
}

.hero p {
  margin: 20px auto 28px;
  font-size: 1.05rem;
  max-width: 680px;
}

.section-title {
  text-align: center;
  margin-bottom: 32px;
}

.narrow p { margin-bottom: 16px; }

/* Buttons */
.btn {
  display: inline-block;
  background: #7c3aed;
  color: #fff;
  border-radius: 6px;
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  transition: opacity 0.2s;
  text-decoration: none;
}

.btn:hover { opacity: 0.85; text-decoration: none; }

.btn-full { width: 100%; padding: 12px; }

.btn-secondary {
  background: #e5e7eb;
  color: #1a1a1a;
}
.btn-play { background: linear-gradient(180deg, #ffd966, #d4a82c); color: #1a0f2e; font-weight: 800; box-shadow: 0 4px 14px rgba(255,215,102,0.4); }
.btn-play:hover { opacity: 1; transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 2px solid #7c3aed; color: #7c3aed; padding: 8px 22px; }
.btn-ghost:hover { background: #7c3aed; color: #fff; opacity: 1; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }

.game-modal {
  position: fixed; inset: 0; background: rgba(13, 8, 32, 0.94);
  z-index: 9999; display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.game-modal.open { display: flex; }
.game-modal-inner {
  position: relative; width: min(100%, 480px); height: min(94vh, 880px);
  background: #0d0820; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}
.game-modal-inner iframe { width: 100%; height: 100%; border: 0; display: block; }
.game-modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff; border: 0;
  font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.game-modal-close:hover { background: rgba(0,0,0,0.8); }
@media (min-width: 720px) {
  .game-modal-inner { width: min(96vw, 520px); height: min(96vh, 920px); }
}

/* Cards */
.card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s;
}

.card:hover { box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12); }

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.game-card h3 { margin-bottom: 10px; }
.game-card-1 { border-left: 4px solid #a78bfa; }
.game-card-2 { border-left: 4px solid #34d399; }
.game-card-3 { border-left: 4px solid #f472b6; }
.game-card-4 { border-left: 4px solid #fbbf24; }

/* Contact */
.contact-wrapper {
  max-width: 560px;
  margin: 0 auto;
}

.contact-card { padding: 32px; }
.contact-card h2 { margin-bottom: 8px; }
.contact-card .subtitle { color: #888; margin-bottom: 16px; }
.contact-info { font-size: 14px; color: #555; margin-bottom: 6px; }
.contact-card form { margin-top: 20px; }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
  font-weight: 600;
}

input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Nunito', sans-serif;
  background: #fff;
}

input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.125);
}
.form-consent { margin: 4px 0 16px; font-size: 13px; color: #555; }
.form-consent label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; line-height: 1.4; font-weight: 400; }
.form-consent input[type="checkbox"] { margin-top: 3px; width: auto; flex-shrink: 0; }
.form-consent a { color: #7c3aed; text-decoration: underline; }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 12px;
  background: rgba(167, 139, 250, 0.15);
  color: #4c1d95;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
}

.form-success.show { display: block; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 0;
  color: #888;
  font-size: 14px;
}

.site-footer p { color: #666; margin-bottom: 10px; }

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.responsible { margin-top: 10px; }
.muted { color: #888; font-size: 13px; margin-top: 8px; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show { display: flex; }

.modal {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  max-width: 460px;
  text-align: center;
}

.modal h3 { margin-bottom: 14px; }
.modal p { margin-bottom: 20px; }

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 { margin-bottom: 24px; }
.legal-content h2 { margin-top: 28px; margin-bottom: 12px; }
.legal-content p, .legal-content li { margin-bottom: 12px; }
.legal-content ul { padding-left: 22px; margin-bottom: 16px; }

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .hero { padding: 40px 0 32px; }
  .section { padding: 36px 0; }
  .contact-card { padding: 24px; }
  .main-nav ul { gap: 16px; }
  .cookie-content { flex-direction: column; }
}
