:root {
  color-scheme: light;
  --ink: #17142f;
  --paper: #fff8e9;
  --coral: #ff5d53;
  --yellow: #ffd84f;
  --mint: #a8e6cf;
  --line: rgba(23, 20, 47, 0.18);
  --shadow: 0 22px 0 rgba(23, 20, 47, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 216, 79, 0.35), transparent 24rem),
    var(--paper);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", system-ui, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
  border-radius: 6px;
}

.site-header {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

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

nav { display: flex; gap: 28px; }

nav a, .text-link, footer a {
  font-weight: 700;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.hero {
  width: min(1160px, calc(100% - 40px));
  min-height: 680px;
  margin: 0 auto;
  padding: 76px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: pretty; }

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.5rem, 8vw, 7.6rem);
  line-height: 0.91;
  letter-spacing: -0.065em;
  font-weight: 900;
}

h1 span { color: var(--coral); }

.intro {
  max-width: 610px;
  margin: 30px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

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

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 168px;
  padding: 10px 18px;
  color: white;
  background: var(--ink);
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.05;
  box-shadow: 0 6px 0 rgba(23, 20, 47, 0.18);
}

.store-badge > span:first-child { font-size: 2rem; }
.store-badge small { display: block; margin-bottom: 3px; font-size: 0.67rem; font-weight: 500; }

.card-stage {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 0.83;
  justify-self: center;
}

.card {
  position: absolute;
  inset: 4%;
  border: 3px solid var(--ink);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.card-back { background: var(--yellow); }
.back-one { transform: rotate(-9deg) translate(-25px, 10px); }
.back-two { background: var(--mint); transform: rotate(7deg) translate(21px, -7px); }

.game-card {
  display: flex;
  flex-direction: column;
  padding: clamp(25px, 6vw, 42px);
  background: var(--coral);
  transform: rotate(-1.5deg);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.game-card h2 {
  margin: 34px 0 24px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.game-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 700;
}

.game-card li {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(23, 20, 47, 0.35);
}

.game-card > p { margin: auto 0 0; font-weight: 900; text-align: right; }

.marquee {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 18px 24px;
  color: white;
  background: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.marquee i { color: var(--yellow); font-style: normal; }

.features {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 108px 0;
}

.section-heading { max-width: 760px; }

.section-heading h2, .support h2 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

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

.feature-grid article {
  min-height: 280px;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.45);
}

.feature-grid article:nth-child(2) { background: rgba(255, 216, 79, 0.45); }
.feature-grid article:nth-child(3) { background: rgba(168, 230, 207, 0.48); }

.feature-number { font-size: 0.78rem; font-weight: 900; letter-spacing: 0.12em; }
.feature-grid h3 { margin: 55px 0 12px; font-size: 1.5rem; line-height: 1.1; }
.feature-grid p { margin: 0; }

.support {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 80px;
  padding: clamp(34px, 7vw, 72px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  color: white;
  background: var(--ink);
  border-radius: 30px;
}

.support p:not(.eyebrow) { max-width: 630px; margin: 22px 0 0; color: rgba(255, 255, 255, 0.78); }

.support-button {
  flex: 0 0 auto;
  padding: 15px 22px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--coral);
}

footer {
  width: min(1160px, calc(100% - 40px));
  min-height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 68px; padding-top: 52px; }
  .card-stage { width: min(90%, 410px); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: auto; }
  .feature-grid h3 { margin-top: 36px; }
  .support { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header { min-height: 76px; }
  nav a:first-child { display: none; }
  h1 { font-size: clamp(3.25rem, 16vw, 5rem); }
  .hero { min-height: auto; padding-bottom: 74px; }
  .card-stage { width: 100%; }
  .card { border-radius: 24px; }
  .marquee { gap: 10px; }
  .support { margin-bottom: 40px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 28px 0; }
}

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