:root {
  color-scheme: light;
  --ink: #21123e;
  --muted: #514665;
  --paper: #fbf9ff;
  --purple: #5832b3;
  --night: #271157;
  --light: #e9dcff;
  --line: #ded5ec;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  --shop-card: #f3edfc;
  --shop-selected: var(--light);
  --shop-accent: var(--purple);
  --shop-radius: 15px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
figure,
p,
h1,
h2,
h3 {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: "Avenir Next", system-ui, sans-serif;
  font-weight: 800;
}
h1,
h2 {
  letter-spacing: -0.065em;
  line-height: 0.99;
}
h2 {
  font-size: clamp(2.4rem, 5.2vw, 4.8rem);
}
:focus-visible {
  outline: 3px solid #a45af0;
  outline-offset: 4px;
}
[id] {
  scroll-margin-top: 1.5rem;
}
.wrap {
  width: min(1220px, calc(100% - 96px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 0.65rem 1rem;
  background: white;
  color: var(--ink);
  transform: translateY(-150%);
}
.skip:focus {
  transform: none;
}

.site-header,
.site-footer {
  color: white;
  background: var(--night);
}
.bar {
  min-height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.22rem;
  font-weight: 820;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.brand img {
  border-radius: 12px;
  flex: none;
}
.bar nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.4rem);
  font-size: 0.88rem;
  font-weight: 650;
}
.bar nav a {
  text-decoration: none;
}
.bar nav a:hover {
  text-decoration: underline;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #291347;
  background: #ffd966;
  font-size: 0.9rem;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover {
  background: #ffe89a;
}
.button svg {
  flex: none;
}
.nav-play {
  background: transparent;
  color: white;
  border-color: #a18dca;
  min-height: 42px;
  padding-inline: 1rem;
}
.nav-play:hover {
  background: #ffffff20;
}
.nav-play svg {
  width: 14px;
  height: 14px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.92rem;
  font-weight: 740;
}
.arrow {
  flex: none;
}
.arrow.down {
  transform: rotate(90deg);
}

.hero {
  color: white;
  background:
    radial-gradient(ellipse at 75% 72%, #7842c9 0%, transparent 56%),
    linear-gradient(145deg, var(--night) 8%, #3d1e75 56%, #572f9d);
  overflow: hidden;
}
.hero-grid {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: center;
  gap: 1.4rem;
  padding-block: clamp(2.3rem, 5vw, 5rem) clamp(3rem, 5.5vw, 5.4rem);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--purple);
  font-size: 0.73rem;
  font-weight: 790;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tile-dot {
  width: 9px;
  height: 9px;
  flex: none;
  background: currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
}
.hero .eyebrow {
  color: #e8ceff;
}
.hero h1 {
  font-size: clamp(3.65rem, 7.15vw, 7rem);
  margin-block: 0.22em 0.18em;
}
.hero h1 em {
  color: #ffde7b;
  font-style: normal;
}
.lead {
  max-width: 36ch;
  color: #f0e7ff;
  font-size: clamp(1rem, 1.55vw, 1.22rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.25rem;
  margin-top: 1.7rem;
}
.hero-art {
  position: relative;
  z-index: -1;
  width: 108%;
  max-width: none;
  aspect-ratio: 1.08;
  object-fit: cover;
  object-position: top;
  mask-image:
    linear-gradient(90deg, transparent, black 16% 86%, transparent),
    linear-gradient(transparent, black 9% 85%, transparent);
  mask-composite: intersect;
}

.gameplay {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(3.2rem, 7vw, 7rem);
}
.gameplay-visual {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: 26px;
  background:
    radial-gradient(circle, #ffffff68 1.5px, transparent 2px) 2px 2px / 18px
      18px,
    linear-gradient(150deg, #e9dcff, #f7def3);
}
.gameplay-visual img {
  width: min(100%, 244px);
  border: 3px solid #fff;
  border-radius: 15px;
  box-shadow: 0 12px 30px #3c245c34;
}
.gameplay h2,
.section-heading h2,
.help h2,
.download h2 {
  margin-top: 0.2em;
}
.moves {
  padding: 0;
  list-style: none;
  margin: 1.5rem 0 0;
}
.moves li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--line);
}
.moves li > span,
.gallery figcaption span {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 820;
  background: #e9ddfc;
  color: #472384;
}
.moves li:nth-child(2) > span {
  color: #126447;
  background: #d6f5e5;
}
.moves li:nth-child(3) > span {
  color: #95431c;
  background: #ffe8cf;
}
.moves h3 {
  font-size: 1.21rem;
  letter-spacing: -0.03em;
}
.moves p,
.section-heading > p {
  color: var(--muted);
}

.boards {
  background: #efe8fb;
  padding-block: clamp(3rem, 6vw, 6rem);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.1rem 2rem;
  margin-bottom: clamp(1.5rem, 3.5vw, 3.3rem);
}
.section-heading > p {
  max-width: 35ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 3vw, 2.5rem);
}
.gallery figure {
  background: var(--paper);
  padding: clamp(0.75rem, 2vw, 1.65rem);
  border: 1px solid #d8cbe9;
  border-radius: 18px;
}
.gallery img {
  width: min(100%, 245px);
  margin-inline: auto;
  border-radius: 10px;
}
.gallery figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding-top: 1rem;
  font-weight: 790;
}
.gallery figcaption span {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.74rem;
  border-radius: 6px;
}

.help {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 1.3rem clamp(2rem, 7vw, 7rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 6rem);
}
.support-links {
  display: grid;
  gap: 0.75rem;
}
.support-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}
.support-links a:hover {
  border-color: #9e87bc;
  background: #f2ebfc;
}
.support-links strong,
.support-links small {
  display: block;
  overflow-wrap: anywhere;
}
.support-links small {
  color: var(--muted);
  font-size: 0.88rem;
}

.download {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: clamp(1.3rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 6vw, 6rem);
  border-radius: 20px;
  background: #e8d9fb;
}
.download img {
  border-radius: 18px;
}
.download h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.download .button {
  margin-left: auto;
  background: var(--purple);
  color: white;
}
.download .button:hover {
  background: #432483;
}

.foot {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(105px, 0.6fr) minmax(0, 1.1fr);
  gap: 1.5rem clamp(1rem, 4vw, 4rem);
  padding-block: clamp(2rem, 5vw, 3.8rem);
  font-size: 0.9rem;
}
.footer-address {
  margin-top: 0.6rem;
  font-style: normal;
  overflow-wrap: anywhere;
  color: #e8dff8;
}
.foot nav {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  justify-items: start;
}
.foot nav a[aria-current="page"] {
  font-weight: 750;
}
.footer-payments {
  min-width: 0;
}
.footer-stripe {
  margin: 0.7rem 0;
}
.footer-stripe img {
  width: 58px;
}
.footer-payment-networks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-payment-networks li {
  width: 50px;
  background: white;
  border-radius: 4px;
  overflow: hidden;
}
.footer-payments p {
  margin-top: 0.5rem;
  color: #e8dff8;
  font-size: 0.8rem;
}

.policy {
  max-width: 740px;
  padding-block: clamp(2rem, 6vw, 5rem);
  overflow-wrap: anywhere;
}
.policy h1 {
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  margin-bottom: 0.45em;
}
.policy h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-block: 1.25em 0.35em;
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.policy p + p {
  margin-top: 0.8em;
}
.policy a {
  color: var(--purple);
}

@media (max-width: 900px) {
  .wrap {
    width: min(1220px, calc(100% - 48px));
  }
  .hero h1 {
    font-size: clamp(3.25rem, 7.7vw, 5rem);
  }
  .hero-art {
    width: 110%;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .bar {
    min-height: 68px;
    gap: 0.4rem 0.75rem;
  }
  .home-header {
    flex-wrap: wrap;
    padding-block: 0.75rem 0.3rem;
  }
  .home-header nav {
    order: 3;
    flex-basis: 100%;
  }
  .home-header nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .brand {
    font-size: 1.06rem;
    gap: 0.45rem;
  }
  .brand img {
    width: 34px;
    border-radius: 9px;
  }
  .nav-play {
    min-height: 38px;
    padding-inline: 0.65rem;
    font-size: 0.78rem;
  }
  .hero-grid,
  .gameplay,
  .help {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-grid {
    gap: 0.4rem;
    padding-bottom: 0.9rem;
  }
  .hero h1 {
    font-size: clamp(3.4rem, 13vw, 5.2rem);
  }
  .hero-actions {
    margin-top: 1.15rem;
  }
  .hero-art {
    width: 100%;
    max-width: 480px;
    justify-self: center;
  }
  .gameplay-copy {
    order: -1;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  .gallery figure {
    max-width: 380px;
    width: 100%;
    margin-inline: auto;
  }
  .download {
    flex-wrap: wrap;
  }
  .download img {
    width: 56px;
    border-radius: 12px;
  }
  .download .button {
    margin-left: 0;
  }
  .foot {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
}

.home-header nav {
  flex-wrap: wrap;
}
.home-header nav [aria-current="page"] {
  text-decoration: underline;
}
@media (max-width: 680px) {
  .home-header nav {
    gap: 0 0.8rem;
    font-size: 0.82rem;
  }
}
