:root {
  --ink: #071635;
  --muted: #526079;
  --line: #dfe6f2;
  --soft-line: #edf2f8;
  --blue: #2577ff;
  --cyan: #20c6c9;
  --pink: #f05b9e;
  --orange: #ff8d24;
  --green: #3fc27b;
  --violet: #7f61ff;
  --shadow: 0 24px 70px rgba(8, 22, 52, 0.16);
  --soft-shadow: 0 14px 35px rgba(8, 22, 52, 0.11);
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font: 700 32px/1 ui-serif, Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.brand img {
  border-radius: 8px;
}

.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a,
.site-footer a,
.text-link,
.back-link,
.primary-link {
  text-decoration: none;
}

.nav-links a {
  color: #122245;
}

.nav-links a:hover,
.site-footer nav a:hover,
.text-link:hover,
.support-card a:hover,
.policy-article a:hover {
  color: var(--blue);
}

.store-button {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 12px;
  border-radius: 8px;
  background: #05070c;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(5, 7, 12, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(5, 7, 12, 0.22);
}

.store-button svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  flex: 0 0 auto;
}

.store-button span {
  display: grid;
  gap: 1px;
}

.store-button small {
  font-size: 12px;
  line-height: 1;
}

.store-button strong {
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0;
}

.store-button-small {
  min-height: 48px;
  padding: 8px 13px;
}

.store-button-small svg {
  width: 22px;
  height: 22px;
}

.store-button-small strong {
  font-size: 16px;
}

.store-button-small small {
  font-size: 10px;
  color: #ced6e6;
}

.hero {
  width: 100%;
  min-height: min(720px, calc(100svh - 86px));
  margin: 0;
  display: grid;
  align-items: end;
  padding: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--soft-line);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 8, 18, 0.78) 0%, rgba(5, 8, 18, 0.52) 37%, rgba(5, 8, 18, 0.06) 74%),
    linear-gradient(0deg, rgba(5, 8, 18, 0.34) 0%, rgba(5, 8, 18, 0) 44%);
}

.hero::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 78%, rgba(246, 249, 253, 0.62) 100%);
}

.hero-copy {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 106px 0 78px;
  position: relative;
  z-index: 1;
}

.hero-copy h1,
.section-heading h2,
.privacy-copy h2,
.policy-article h1 {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  color: #091941;
}

.hero-copy h1 {
  font-size: clamp(68px, 9vw, 112px);
  line-height: 0.92;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 8px 30px rgba(5, 8, 18, 0.35);
}

.hero-copy p {
  max-width: 530px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.65;
  text-shadow: 0 6px 22px rgba(5, 8, 18, 0.35);
}

.hero-copy .lead {
  color: #ffffff;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.24;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}

.text-link,
.primary-link {
  font-weight: 800;
  color: var(--blue);
}

.hero .text-link {
  color: #ffffff;
  text-shadow: 0 6px 20px rgba(5, 8, 18, 0.38);
}

.availability {
  font-size: 15px !important;
  margin-top: 14px !important;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-art-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.hero-poster-strip {
  position: absolute;
  right: max(28px, calc((100vw - 1180px) / 2));
  bottom: 38px;
  display: flex;
  gap: 16px;
}

.hero-poster-strip img {
  width: 132px;
  aspect-ratio: 0.68;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(5, 8, 18, 0.26);
}

.steps,
.themes,
.privacy-panel,
.policy-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.steps {
  padding: 72px 0 62px;
}

.section-heading {
  text-align: center;
  margin-bottom: 38px;
}

.section-heading h2,
.privacy-copy h2 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
}

.section-heading p,
.privacy-copy > p {
  max-width: 650px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step {
  padding: 34px 34px 38px;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step-number {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.violet { background: var(--violet); }
.mint { background: var(--green); }
.amber { background: #ffb323; }

.step h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.step p {
  min-height: 74px;
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.screenshot-card {
  width: 100%;
  aspect-ratio: 0.76;
  border-radius: 8px;
  background: #f7faff;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  border: 1px solid var(--line);
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gameplay-shot img { object-position: 50% 50%; }
.preview-shot img { object-position: 50% 50%; }
.gallery-shot img { object-position: 50% 50%; }

.themes {
  padding: 60px 0 82px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.theme-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.theme-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.theme-grid span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  color: #26344f;
  font-weight: 800;
}

.privacy-panel {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 54px;
  align-items: start;
  padding: 74px 0 76px;
  border-top: 1px solid var(--line);
}

.privacy-copy .section-heading {
  text-align: left;
}

.privacy-copy > p {
  margin-left: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 38px;
  margin-top: 34px;
}

.trust-grid div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0 14px;
}

.trust-grid strong,
.trust-grid p {
  grid-column: 2;
}

.trust-grid strong {
  font-size: 18px;
}

.trust-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.icon-dot {
  width: 46px;
  height: 46px;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 19px;
  box-shadow: inset -5px -6px 10px rgba(5, 15, 35, 0.18), inset 4px 4px 8px rgba(255, 255, 255, 0.28);
}

.icon-dot i {
  width: auto;
}

.icon-dot.blue { background: var(--blue); }
.icon-dot.orange { background: var(--orange); }
.icon-dot.green { background: var(--green); }
.icon-dot.pink { background: var(--pink); }

.support-card {
  border-left: 1px solid var(--line);
  padding-left: 48px;
  text-align: center;
}

.support-card h3 {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.1;
}

.support-card p {
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.55;
}

.support-card a,
.policy-article a {
  color: var(--blue);
  font-weight: 800;
}

.policy-link {
  margin-top: 42px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.site-footer {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.site-footer .brand {
  font-size: 30px;
}

.site-footer p {
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav {
  gap: 24px;
  font-size: 14px;
}

.policy-header {
  border-bottom: 1px solid var(--soft-line);
}

.policy-main {
  padding: 62px 0 82px;
}

.policy-article {
  max-width: 780px;
  margin: 0 auto;
}

.back-link {
  color: var(--blue);
  font-weight: 800;
}

.policy-article h1 {
  margin-top: 22px;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.98;
}

.policy-date {
  color: var(--muted);
  font-weight: 800;
}

.policy-article h2 {
  margin: 38px 0 10px;
  font-size: 25px;
  line-height: 1.2;
}

.policy-article p {
  color: #3f4f68;
  font-size: 18px;
  line-height: 1.72;
}

.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #f7fbff;
}

.not-found-panel {
  width: min(430px, calc(100% - 40px));
  padding: 44px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.not-found-panel img {
  margin: 0 auto 18px;
  border-radius: 8px;
}

.not-found-panel h1 {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 42px;
}

.not-found-panel p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    min-height: auto;
    padding: 18px 0;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 660px;
    padding: 0;
  }

  .hero-copy {
    padding: 92px 0 72px;
  }

  .hero-poster-strip {
    display: none;
  }

  .step-list,
  .privacy-panel {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .theme-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .support-card {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 42px 0 0;
  }

  .site-footer {
    padding: 30px 0;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .steps,
  .themes,
  .privacy-panel,
  .policy-main {
    width: min(calc(100% - 28px), 1180px);
  }

  .brand {
    font-size: 27px;
  }

  .store-button-small {
    display: none;
  }

  .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .hero {
    width: 100%;
    min-height: 640px;
  }

  .hero-copy h1 {
    font-size: 66px;
  }

  .hero-copy {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    min-width: 0;
  }

  .hero-copy p {
    width: 100% !important;
    max-width: 330px !important;
    font-size: 16px;
    overflow-wrap: break-word;
  }

  .hero-copy .lead {
    width: 100% !important;
    max-width: 330px !important;
    font-size: 23px;
    line-height: 1.32;
  }

  .section-heading h2,
  .privacy-copy h2 {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    font-size: 31px;
    line-height: 1.08;
  }

  .section-heading p,
  .privacy-copy > p {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    gap: 18px;
  }

  .hero-art-main {
    object-position: 62% 50%;
  }

  .theme-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step {
    padding: 30px 16px 34px;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 430px) {
  .theme-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .store-button {
    width: 100%;
    justify-content: center;
  }

  .text-link {
    width: 100%;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(5, 8, 18, 0.84) 0%, rgba(5, 8, 18, 0.56) 56%, rgba(5, 8, 18, 0.18) 100%),
      linear-gradient(0deg, rgba(5, 8, 18, 0.34) 0%, rgba(5, 8, 18, 0) 44%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
