:root {
  --bg: #f7f5ef;
  --panel: rgba(255, 252, 246, 0.82);
  --panel-strong: #fffaf1;
  --text: #162033;
  --muted: #56627a;
  --line: rgba(62, 88, 130, 0.14);
  --accent: #ff8f42;
  --accent-strong: #e4671f;
  --shadow: 0 24px 80px rgba(121, 95, 49, 0.14);
  --radius: 22px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Instrument Sans", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 143, 66, 0.18), transparent 30%),
    radial-gradient(circle at right, rgba(87, 162, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #fffaf1 0%, #f8f2e7 55%, #f6efe2 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 32, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 32, 51, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent);
  pointer-events: none;
}

a {
  color: inherit;
}

.shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 48px;
  position: relative;
  z-index: 1;
}

.site-header,
.site-footer,
.card,
.page,
.hero {
  backdrop-filter: blur(16px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.78);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(228, 103, 31, 0.16);
}

.brand-text,
h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 143, 66, 0.12);
}

main {
  padding: 36px 0;
}

.hero,
.page {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  padding: 56px;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 143, 66, 0.24), transparent 68%);
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.94;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(68vh, 620px);
  filter: drop-shadow(0 28px 48px rgba(192, 122, 46, 0.18));
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 143, 66, 0.12);
  color: #bc5416;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ffd15f 100%);
  color: #2f1907;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.games-page {
  display: grid;
  gap: 18px;
}

.games-nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.carousel-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.games-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.games-carousel::-webkit-scrollbar {
  display: none;
}

.game-slide {
  scroll-snap-align: start;
}

.game-card {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--panel);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.game-media,
.game-overlay,
.game-content {
  position: absolute;
  inset: 0;
}

.game-media iframe,
.game-media img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}

.game-media {
  background: linear-gradient(180deg, #fff4e4 0%, #ffe6b4 100%);
}

.video-shell {
  position: absolute;
  inset: 0;
  transform: scale(1.15);
}

.game-overlay {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.82) 0%, rgba(17, 24, 39, 0.56) 42%, rgba(17, 24, 39, 0.18) 100%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.48));
  z-index: 1;
}

.game-content {
  inset: auto auto 0 0;
  width: min(100%, 560px);
  padding: 36px;
  z-index: 2;
  display: grid;
  gap: 14px;
  color: #f7f8fb;
}

.game-content h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
}

.game-genre,
.game-tagline {
  margin: 0;
}

.game-genre {
  color: #ffd36f;
  font-weight: 600;
}

.game-tagline {
  color: rgba(247, 248, 251, 0.88);
}

.store-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.store-link {
  min-width: 170px;
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 12, 20, 0.48);
  backdrop-filter: blur(14px);
}

.store-eyebrow,
.store-name {
  display: block;
}

.store-eyebrow {
  font-size: 0.76rem;
  color: rgba(247, 248, 251, 0.7);
}

.store-name {
  margin-top: 3px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.games-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.games-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(22, 32, 51, 0.18);
}

.games-dot.is-active {
  background: var(--accent);
}

.card,
.page {
  padding: 28px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.card h2,
.page h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.card p,
.page p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.page {
  max-width: 860px;
}

.page > * + * {
  margin-top: 18px;
}

.policy-page,
.terms-page {
  max-width: 920px;
  padding: 36px 40px;
}

.policy-page,
.terms-page,
.policy-page *,
.terms-page * {
  font-family: Arial, sans-serif;
}

.policy-page {
  color: #595959;
}

.terms-page {
  color: #4a5568;
}

.policy-page div,
.terms-page div {
  max-width: 100%;
}

.policy-page [data-custom-class="title"],
.policy-page [data-custom-class="title"] * {
  display: inline-block;
  color: #111827 !important;
  font-size: 2rem !important;
  font-weight: 700;
  line-height: 1.2;
}

.policy-page [data-custom-class="subtitle"],
.policy-page [data-custom-class="subtitle"] * {
  color: #6b7280 !important;
  font-size: 0.95rem !important;
}

.policy-page [data-custom-class="heading_1"],
.policy-page [data-custom-class="heading_1"] * {
  color: #111827 !important;
  font-size: 1.35rem !important;
  font-weight: 700;
  line-height: 1.35;
}

.policy-page [data-custom-class="heading_2"],
.policy-page [data-custom-class="heading_2"] * {
  color: #1f2937 !important;
  font-size: 1.08rem !important;
  font-weight: 700;
  line-height: 1.45;
}

.policy-page [data-custom-class="body_text"],
.policy-page [data-custom-class="body_text"] * {
  color: #5b6474 !important;
  font-size: 0.98rem !important;
  line-height: 1.8 !important;
}

.policy-page [data-custom-class="link"],
.policy-page [data-custom-class="link"] * {
  color: #1d4ed8 !important;
  text-decoration: none;
}

.policy-page p,
.policy-page li,
.policy-page span,
.terms-page p,
.terms-page li {
  line-height: 1.8;
}

.policy-page ul,
.terms-page ul {
  margin: 16px 0 20px 22px;
  padding: 0;
}

.policy-page li,
.terms-page li {
  margin: 8px 0;
}

.policy-page ul li,
.terms-page ul li {
  list-style: disc;
}

.policy-page a,
.terms-page a {
  color: #1d4ed8;
}

.policy-page bdt,
.terms-page bdt {
  display: inline;
}

.terms-content .row,
.terms-content .col-md-12 {
  display: block;
}

.terms-content h2,
.terms-content h3 {
  margin: 0 0 14px;
  color: #111827;
  font-family: Arial, sans-serif;
  line-height: 1.3;
}

.terms-content h2 {
  font-size: 2rem;
}

.terms-content h3 {
  margin-top: 30px;
  font-size: 1.28rem;
}

.terms-content p {
  margin: 0 0 16px;
  color: #5b6474;
  font-size: 0.98rem;
}

.terms-content hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid rgba(62, 88, 130, 0.14);
}

.meta {
  font-size: 0.94rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 251, 245, 0.78);
}

.site-footer p,
.footer-links {
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer {
    border-radius: 24px;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 32px 24px;
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-phone-image {
    width: auto;
    height: min(52vh, 460px);
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 12px;
  }

  .site-header,
  .card,
  .page,
  .site-footer {
    padding: 20px;
  }

  .policy-page,
  .terms-page {
    padding: 24px 20px;
  }

  .game-card {
    min-height: 560px;
  }

  .game-content {
    width: 100%;
    padding: 24px 20px;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    width: 100%;
    text-align: center;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .game-content h2 {
    font-size: clamp(1.85rem, 10vw, 2.6rem);
  }
}
