:root {
  --ink: #f8fbff;
  --muted: #bfc6dc;
  --deep: #120d27;
  --panel: #20163f;
  --panel-2: #2b1d55;
  --line: rgba(255, 255, 255, 0.14);
  --pink: #ff2fad;
  --cyan: #00e5ff;
  --gold: #ffd447;
  --green: #55f08a;
  --danger: #ff5a7a;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(13, 8, 33, 0.76), rgba(13, 8, 33, 0.88)),
    url("../images/social-casino-scene.png") center top / min(1600px, 140vw) auto no-repeat,
    radial-gradient(circle at 12% 8%, rgba(255, 47, 173, 0.28), transparent 30rem),
    radial-gradient(circle at 84% 14%, rgba(0, 229, 255, 0.2), transparent 28rem),
    linear-gradient(160deg, #0d0821 0%, #171132 48%, #24124b 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 8, 33, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  color: #120d27;
  box-shadow: 0 0 28px rgba(255, 47, 173, 0.45);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 1.45rem;
}

.hero {
  padding: 58px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 5vw, 5.3rem);
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 3.1rem);
}

h3 {
  font-size: 1.18rem;
}

.lead {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), #ff7b3d 54%, var(--gold));
  color: #120d27;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(255, 47, 173, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
  filter: saturate(1.12);
  box-shadow: 0 18px 42px rgba(255, 47, 173, 0.38);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  box-shadow: none;
}

.button:disabled {
  cursor: default;
  opacity: 0.78;
}

.hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media::before,
.game-card::before,
.showcase-media::before,
.page-hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.22) 48%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 600ms ease;
}

.hero-media:hover::before,
.game-card:hover::before,
.showcase-media:hover::before,
.page-hero-art:hover::before {
  transform: translateX(130%);
}

.hero-media img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  max-width: 230px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(18, 13, 39, 0.82);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-strip,
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-strip span,
.feature-list span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

section {
  padding: 52px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.notice {
  border: 1px solid rgba(255, 212, 71, 0.48);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 212, 71, 0.16), rgba(255, 47, 173, 0.12));
  box-shadow: var(--shadow);
}

.notice-inner {
  padding: 24px;
}

.notice p {
  margin: 12px 0 0;
  color: #fff5d0;
}

.showcase {
  padding-top: 34px;
}

.showcase-grid,
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: center;
}

.showcase-media,
.page-hero-art {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.showcase-media img,
.page-hero-art img {
  width: 100%;
  min-height: 300px;
  object-fit: cover;
}

.showcase-copy {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.13), rgba(255, 47, 173, 0.11)),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.game-card,
.benefit,
.review,
.stat,
.info-panel,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.game-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.42);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34), 0 0 34px rgba(0, 229, 255, 0.16);
}

.game-art {
  position: relative;
  min-height: 184px;
  background-image: url("../images/games-sheet.png");
  background-size: 200% 200%;
  background-position: 0 0;
}

.game-art::after {
  content: "DEMO";
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(18, 13, 39, 0.78);
  color: var(--gold);
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 900;
}

.game-art.viper {
  background-position: 100% 0;
}

.game-art.dragon {
  background-position: 0 100%;
}

.game-art.sweets {
  background-position: 100% 100%;
}

.game-body {
  padding: 17px;
}

.game-kicker {
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.game-card .button {
  width: 100%;
}

.benefits-grid,
.reviews-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.benefit,
.review,
.info-panel {
  padding: 20px;
}

.benefit,
.review {
  position: relative;
  overflow: hidden;
}

.benefit::before,
.review::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background: url("../images/social-casino-scene.png") center / cover no-repeat;
  pointer-events: none;
}

.benefit::after,
.review::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 13, 39, 0.48), rgba(18, 13, 39, 0.94));
  pointer-events: none;
}

.benefit > *,
.review > * {
  position: relative;
  z-index: 1;
}

.benefit-frame::before {
  background-position: 58% 42%;
}

.benefit-za::before {
  background-position: 84% 48%;
}

.benefit-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.16);
  color: var(--cyan);
  font-weight: 900;
}

.muted,
.benefit p,
.review p,
.info-panel p,
.legal p,
.legal li {
  color: var(--muted);
}

.review-stars {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.numbers-section {
  position: relative;
  overflow: hidden;
  margin: 28px 0;
  padding: 72px 0 78px;
  background:
    linear-gradient(rgba(3, 3, 9, 0.72), rgba(3, 3, 9, 0.86)),
    url("../images/social-casino-scene.png") center / cover no-repeat;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
}

.numbers-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 48% 52%, rgba(255, 255, 255, 0.12), transparent 20rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.24));
  pointer-events: none;
}

.numbers-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.numbers-inner h2 {
  margin-bottom: 56px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 5.1rem);
  font-weight: 500;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.number-item {
  display: grid;
  gap: 18px;
  justify-items: center;
  min-width: 0;
}

.number-item strong {
  color: #fff;
  font-size: clamp(4rem, 7.2vw, 7.1rem);
  line-height: 0.9;
  font-weight: 900;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.number-item span {
  max-width: 280px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.15rem, 1.7vw, 1.85rem);
  font-weight: 800;
  line-height: 1.18;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.62);
}

.numbers-cta {
  width: min(220px, 100%);
  margin-top: 54px;
  background: #d8eaff;
  color: #080512;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-align: left;
}

.faq-question span {
  flex: 1;
  min-width: 0;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 1.4rem;
}

.faq-item.is-open .faq-question::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 18px 18px;
  color: var(--muted);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 22px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  background: rgba(6, 4, 17, 0.6);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.page-hero {
  padding: 58px 0 38px;
  border-bottom: 1px solid var(--line);
}

.legal {
  max-width: 900px;
}

.legal h2 {
  margin-top: 30px;
  font-size: 1.5rem;
}

.modal,
.age-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 3, 16, 0.78);
}

.modal.is-open,
.age-modal.is-open {
  display: flex;
}

.modal-dialog {
  width: min(1080px, 100%);
  max-height: min(92vh, 820px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0821;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.close-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.3rem;
}

.game-frame {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 0;
  background: #080512;
}

.age-card {
  width: min(440px, 100%);
  border: 1px solid rgba(255, 212, 71, 0.45);
  border-radius: 8px;
  background: var(--panel);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow);
}

.age-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.denied-screen {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  place-items: center;
  padding: 24px;
  background: #080512;
  color: var(--ink);
  text-align: center;
}

.denied-screen.is-visible {
  display: grid;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: none;
  width: min(420px, calc(100% - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 13, 39, 0.96);
  padding: 16px;
  box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner p {
  margin: 0 0 12px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero-grid,
  .showcase-grid,
  .page-hero-grid,
  .contact-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid,
  .reviews-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }

  .hero-media img {
    min-height: 300px;
  }

  .showcase-copy {
    padding: 22px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(18, 13, 39, 0.98);
    padding: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero,
  section,
  .page-hero {
    padding: 34px 0;
  }

  .section-head,
  .age-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .game-art {
    min-height: 220px;
  }

  .hero-badge {
    position: static;
    max-width: none;
    border-radius: 0;
  }

  .showcase-media img,
  .page-hero-art img {
    min-height: 220px;
  }

  .showcase-copy {
    padding: 18px;
  }

  .numbers-section {
    padding: 46px 0 52px;
  }

  .numbers-inner h2 {
    margin-bottom: 34px;
  }

  .numbers-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .number-item {
    gap: 12px;
  }

  .number-item strong {
    font-size: clamp(4.6rem, 18vw, 6.3rem);
  }

  .number-item span {
    max-width: 330px;
    font-size: 1.25rem;
  }

  .numbers-cta {
    margin-top: 38px;
  }

  .hero-strip span,
  .feature-list span {
    flex: 1 1 auto;
    text-align: center;
  }

  .modal {
    padding: 0;
  }

  .modal-dialog {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .game-frame {
    min-height: calc(100vh - 72px);
  }

  .button {
    width: 100%;
    padding-inline: 14px;
    white-space: normal;
  }
}
