:root {
  --paper: #f7f3ea;
  --paper-deep: #ece5d9;
  --ink: #17161c;
  --muted: #69656d;
  --line: rgba(23, 22, 28, 0.14);
  --coral: #df4d43;
  --coral-text: #b92f2a;
  --violet: #6e4cf5;
  --teal: #146b79;
  --white: #fffdf8;
  --shadow: 0 24px 80px rgba(29, 24, 47, 0.12);
  --radius: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(27, 126, 142, 0.09), transparent 27rem),
    radial-gradient(circle at 95% 15%, rgba(110, 76, 245, 0.11), transparent 32rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--coral);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(247, 243, 234, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--coral);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1rem;
  transform: rotate(-4deg);
}

.header-tools,
.site-nav,
.language-switcher {
  display: flex;
  align-items: center;
}

.header-tools {
  gap: 28px;
}

.site-nav {
  gap: 24px;
  font-size: 0.86rem;
  font-weight: 750;
}

.site-nav a,
.language-switcher a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--violet);
}

.language-switcher {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.language-switcher a {
  min-width: 38px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.language-switcher a[aria-current="true"] {
  background: var(--ink);
  color: white;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  background: currentColor;
  content: "";
  transform: rotate(-3deg);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 930px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 8vw, 7.7rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

h3 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.hero {
  min-height: 74vh;
  display: grid;
  align-items: center;
  padding-block: 92px 76px;
}

.hero-home {
  position: relative;
  overflow: hidden;
}

.hero-home::after {
  position: absolute;
  z-index: -1;
  right: -95px;
  bottom: 32px;
  width: 300px;
  height: 300px;
  border: 36px solid var(--coral);
  border-radius: 42% 58% 46% 54%;
  content: "";
  opacity: 0.85;
  transform: rotate(18deg);
}

.hero-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-copy strong {
  color: var(--ink);
}

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

.button {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  box-shadow: 5px 5px 0 var(--coral);
  transform: translate(-2px, -2px);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 15px 3px;
  padding: 0;
  border-radius: 8px;
  line-height: 0;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.store-badge-link:hover {
  opacity: 0.84;
}

.store-badge {
  width: 180px;
  height: auto;
}

.section {
  padding-block: 88px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 42px;
}

.section-heading p {
  color: var(--muted);
}

.games-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 22px;
}

.game-card,
.panel,
.feature,
.support-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--shadow);
}

.game-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.game-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
}

.game-card-copy {
  z-index: 2;
  padding: 44px;
}

.game-icon {
  width: 74px;
  height: 74px;
  margin-bottom: 28px;
  border: 3px solid var(--ink);
  border-radius: 21px;
  box-shadow: 7px 7px 0 var(--violet);
}

.game-card p {
  color: var(--muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.badge {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-art {
  min-height: 520px;
  background: var(--violet);
}

.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% center;
  mix-blend-mode: multiply;
}

.game-card-soon {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px;
  background: var(--ink);
  color: white;
  transform: rotate(1deg);
}

.game-card-soon .eyebrow {
  color: #b8aaff;
}

.soon-mark {
  align-self: flex-end;
  font-size: clamp(7rem, 16vw, 12rem);
  font-weight: 950;
  line-height: 0.75;
  color: var(--coral);
  transform: rotate(8deg);
}

.home-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.note-number {
  font-size: 3rem;
  font-weight: 950;
  line-height: 1;
  color: var(--violet);
}

.home-note p {
  margin: 0;
  font-weight: 700;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 56px;
  align-items: center;
  min-height: 760px;
  padding-block: 76px;
}

.product-visual {
  position: relative;
  min-height: 590px;
}

.product-visual::before,
.product-visual::after {
  position: absolute;
  border-radius: 34px;
  content: "";
}

.product-visual::before {
  inset: 8% 6% 2% 8%;
  background: var(--coral);
  transform: rotate(7deg);
}

.product-visual::after {
  inset: 2% 10% 8% 2%;
  border: 3px solid var(--ink);
  background: var(--violet);
  transform: rotate(-4deg);
}

.product-visual img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 35px rgba(23, 22, 28, 0.22));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  min-height: 210px;
  padding: 26px;
}

.feature-number {
  display: block;
  margin-bottom: 38px;
  color: var(--coral-text);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step {
  position: relative;
  padding-top: 58px;
  border-top: 2px solid var(--ink);
}

.step::before {
  counter-increment: step;
  position: absolute;
  top: 14px;
  left: 0;
  content: "0" counter(step);
  color: var(--violet);
  font-weight: 900;
}

.step h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.step p {
  color: var(--muted);
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 48px;
  border-radius: var(--radius);
  background: var(--violet);
  color: white;
  box-shadow: 10px 10px 0 var(--ink);
}

.cta-panel h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

.cta-panel .button {
  background: white;
  color: var(--ink);
}

.page-hero {
  padding-block: 96px 52px;
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(3rem, 7vw, 6.7rem);
}

.page-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.15rem;
}

.support-page .page-hero h1 {
  max-width: none;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 100px;
}

.support-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}

.support-card:nth-child(2) {
  background: var(--ink);
  color: white;
}

.support-card:nth-child(3) {
  background: var(--coral);
}

.support-card h2 {
  font-size: 1.6rem;
  letter-spacing: -0.025em;
}

.support-card a {
  font-weight: 800;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: 64px;
  align-items: start;
  padding-bottom: 110px;
}

.legal-nav {
  position: sticky;
  top: 112px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.7);
}

.legal-nav strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.legal-nav a {
  display: block;
  padding-block: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--violet);
}

.legal-content {
  min-width: 0;
}

.legal-content section {
  scroll-margin-top: 110px;
  padding-block: 35px;
  border-top: 1px solid var(--line);
}

.legal-content section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-content h2 {
  margin-bottom: 24px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
}

.legal-content p {
  color: #3d3a42;
}

.legal-note {
  margin-bottom: 34px;
  padding: 20px 22px;
  border-left: 5px solid var(--violet);
  background: rgba(110, 76, 245, 0.08);
  color: var(--muted);
}

.site-footer {
  padding-block: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink);
  color: white;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.footer-title {
  max-width: 270px;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.footer-col strong {
  display: block;
  margin-bottom: 12px;
  color: #afaab5;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col span {
  display: block;
  margin-block: 6px;
  font-size: 0.85rem;
}

.footer-col a {
  color: white;
}

.fine-print {
  width: min(calc(100% - 40px), var(--max));
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #918d97;
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .games-grid,
  .game-card-main,
  .product-hero,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .game-card-main {
    min-height: auto;
  }

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

  .game-card-soon {
    min-height: 350px;
    transform: none;
  }

  .product-hero {
    gap: 10px;
  }

  .product-visual {
    min-height: 520px;
  }

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

  .legal-nav {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: min(calc(100% - 26px), var(--max));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    font-size: 0.7rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .header-tools {
    gap: 10px;
  }

  .hero {
    min-height: auto;
    padding-block: 76px 64px;
  }

  .hero-home::after {
    right: -130px;
    opacity: 0.5;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5.1rem);
  }

  .section {
    padding-block: 68px;
  }

  .game-card-copy,
  .game-card-soon {
    padding: 28px;
  }

  .feature-grid,
  .steps,
  .support-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .product-hero {
    min-height: auto;
    padding-block: 62px;
  }

  .product-visual {
    min-height: 390px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .page-hero {
    padding-block: 68px 38px;
  }

  .page-hero h1 {
    font-size: clamp(2.7rem, 15vw, 4.8rem);
  }

  .legal-layout {
    gap: 34px;
  }

  .home-note {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
