:root {
  --background: #12090B;
  --section-background: #1A0D10;
  --surface: #271216;
  --primary: #FF4D6D;
  --accent: #FFB3C1;
  --text: #FFF5F7;
  --muted: #C9A8AF;
  --border: rgba(255, 179, 193, 0.18);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --header-height: 76px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --transition: 0.28s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.container { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(860px, calc(100% - 2rem)); }

h1, h2, h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.08;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(18, 9, 11, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--text);
  letter-spacing: 0.05em;
  position: relative;
}
.logo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.desktop-nav, .header-actions { display: flex; align-items: center; gap: 1.25rem; }
.desktop-nav a {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  transition: color var(--transition);
}
.desktop-nav a:hover { color: var(--text); }

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--primary);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(255, 77, 109, 0.22);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(255, 179, 193, 0.36);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 245, 247, 0.22);
}
.btn-lg { padding: 1rem 1.6rem; }
.btn-block { width: 100%; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.6rem;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}
.burger span + span { margin-top: 6px; }

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-inner {
  margin: 1rem;
  padding: 1.25rem;
  background: var(--section-background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.mobile-menu a {
  display: block;
  color: var(--text);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mobile-actions { padding-top: 1rem; display: grid; gap: 0.75rem; }

.hero {
  padding: calc(var(--header-height) + 5rem) 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(255, 77, 109, 0.24), transparent 30%),
    radial-gradient(circle at left center, rgba(255, 179, 193, 0.12), transparent 30%),
    linear-gradient(180deg, #16090d 0%, #12090B 100%);
}
.hero-content {
  max-width: 760px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 179, 193, 0.12);
  color: var(--accent);
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 700;
}
.hero h1 { font-size: clamp(3rem, 9vw, 6rem); margin-bottom: 1rem; }
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--accent);
  max-width: 680px;
  margin: 0 auto 1rem;
}
.hero-copy {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

.section {
  padding: 5rem 0;
  background: var(--section-background);
}
.section + .section { border-top: 1px solid rgba(255,255,255,0.05); }
.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 1rem;
}
.section-subtitle {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
  color: var(--muted);
}

.benefits-grid, .games-grid {
  display: grid;
  gap: 1.5rem;
}
.benefits-grid { grid-template-columns: repeat(4, 1fr); }
.games-grid { grid-template-columns: repeat(3, 1fr); }

.benefit-card, .game-card, .faq-item, .modal-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.benefit-card {
  padding: 1.5rem;
}
.benefit-icon {
  width: 54px; height: 54px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: rgba(255, 77, 109, 0.14);
  font-size: 1.5rem;
}
.benefit-card h3 { margin-bottom: 0.65rem; font-size: 1.35rem; }
.benefit-card p { color: var(--muted); }

.game-card { overflow: hidden; }
.game-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.game-image img { height: 100%; object-fit: cover; transition: transform var(--transition); }
.game-card:hover .game-image img { transform: scale(1.05); }
.game-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(to top, rgba(18,9,11,0.7), rgba(18,9,11,0.15));
}
.game-overlay span {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 77, 109, 0.84);
  font-size: 1.6rem;
}
.game-info { padding: 1.35rem; }
.game-info h3 { margin-bottom: 0.55rem; font-size: 1.5rem; }
.game-info p { color: var(--muted); margin-bottom: 1rem; min-height: 3.2em; }

.faq-list { display: grid; gap: 1rem; }
.faq-item { overflow: hidden; }
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  font-weight: 700;
  text-align: left;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), padding var(--transition);
  padding: 0 1.3rem;
}
.faq-answer p { color: var(--muted); padding-bottom: 1.2rem; }
.faq-item.active .faq-answer { max-height: 220px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform var(--transition); font-size: 1.4rem; }

.site-footer {
  background: #100709;
  padding: 2.25rem 0 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer-logo { font-size: 1.5rem; }
.footer-copy, .footer-meta p, .disclaimer p { color: var(--muted); }
.disclaimer {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1200;
}
.modal.open { display: block; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.72);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(940px, calc(100% - 1.5rem));
  margin: 4.5rem auto;
  padding: 1.3rem;
}
.auth-panel { width: min(520px, calc(100% - 1.5rem)); }
.modal-close {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--section-background);
  color: var(--text);
  font-size: 1.4rem;
}
.modal-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.modal-copy { color: var(--muted); margin: 0.8rem 0 1.2rem; }
.auth-form { display: grid; gap: 1rem; }
.auth-form label { display: grid; gap: 0.45rem; color: var(--accent); }
.auth-form input {
  background: #160d0f;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  padding: 0.95rem 1rem;
}
.iframe-wrap {
  margin-top: 1rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #14090b;
}
.iframe-wrap iframe { width: 100%; height: 100%; border: 0; background: #12090B; }

@media (max-width: 992px) {
  .desktop-nav, .header-actions { display: none; }
  .burger { display: block; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header-height) + 3.5rem); min-height: auto; }
  .section { padding: 4rem 0; }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; }
}

html, body {
  max-width: 100%;
}
body.modal-open {
  overflow: hidden;
  touch-action: none;
}
.trust-note {
  padding-top: 0;
  background: linear-gradient(180deg, rgba(26,13,16,0) 0%, var(--section-background) 42%);
}
.notice-card {
  padding: 1.45rem 1.6rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 77, 109, 0.45);
  background: rgba(39, 18, 22, 0.92);
  box-shadow: 0 14px 36px rgba(0,0,0,0.3);
}
.notice-card p {
  color: var(--muted);
  font-size: 1.02rem;
}
.notice-card strong {
  color: var(--primary);
}
.game-panel {
  width: min(1220px, calc(100% - 1rem));
  margin: 0.5rem auto;
  min-height: calc(100dvh - 1rem);
  display: flex;
  flex-direction: column;
}
.game-modal-header {
  padding-right: 3rem;
}
.iframe-wrap {
  flex: 1;
  min-height: min(78dvh, 860px);
  aspect-ratio: auto;
}
.iframe-wrap iframe {
  display: block;
}
@media (max-width: 992px) {
  .game-panel {
    width: calc(100% - 0.75rem);
    margin: 0.375rem auto;
    min-height: calc(100dvh - 0.75rem);
    padding: 1rem;
  }
}
@media (max-width: 640px) {
  .notice-card {
    padding: 1.1rem 1rem;
    border-radius: 18px;
  }
  .notice-card p {
    font-size: 0.94rem;
  }
  .modal-close {
    top: 0.55rem;
    right: 0.55rem;
  }
  .game-modal-header {
    padding-right: 2.6rem;
  }
  .iframe-wrap {
    min-height: calc(100dvh - 9rem);
  }
}


/* Fix iframe modal visibility and place notice section at the very end */
.modal { overflow: hidden; }
.modal-panel { max-height: calc(100dvh - 1rem); }
.game-panel {
  width: min(1240px, calc(100% - 1rem));
  margin: 0.5rem auto;
  height: calc(100dvh - 1rem);
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem;
}
.game-modal-header { padding-right: 3.25rem; }
.iframe-wrap {
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  display: block;
}
.iframe-wrap iframe { width: 100%; height: 100%; display: block; }
.trust-note { background: #100709; }
@media (max-width: 992px) {
  .game-panel { width: calc(100% - 0.75rem); height: calc(100dvh - 0.75rem); margin: 0.375rem auto; padding: 0.85rem; }
}
@media (max-width: 640px) {
  .game-panel { gap: 0.7rem; padding: 0.75rem; border-radius: 20px; }
  .game-modal-header { padding-right: 2.8rem; }
  .game-modal-header h2 { font-size: 1.9rem; }
}
