:root {
  --font-geist-sans: Arial, Helvetica, sans-serif;
  --purple: #3b1c62;
  --purple-deep: #271041;
  --purple-soft: #eee8f7;
  --teal: #0097b2;
  --teal-dark: #007e96;
  --gold: #ffd000;
  --orange: #ff7714;
  --ink: #241c2e;
  --muted: #6f6677;
  --cream: #fffaf0;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 208, 0, .2), transparent 24rem),
    var(--cream);
  color: var(--ink);
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
}

a { color: inherit; text-decoration: none; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(59, 28, 98, .12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--purple);
  font-size: 1.28rem;
  font-weight: 850;
  letter-spacing: -.035em;
}

.brand-mark, .mini-mark {
  width: 38px;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border-radius: 11px;
  box-shadow: 4px 4px 0 var(--gold);
}

nav { display: flex; align-items: center; gap: 30px; }
nav a { font-size: .92rem; font-weight: 700; }
nav a:not(.nav-cta):hover { color: var(--teal); }

.nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--purple);
  color: white;
  box-shadow: 0 7px 18px rgba(59, 28, 98, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(59, 28, 98, .24); }

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 660px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 60px;
  padding: 70px 0 86px;
}

.eyebrow, .kicker {
  margin: 0 0 20px;
  color: var(--teal-dark);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 22px; height: 3px; border-radius: 99px; background: var(--gold); }

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

h1 {
  max-width: 650px;
  margin-bottom: 24px;
  color: var(--purple);
  font-size: clamp(3.35rem, 6vw, 5.8rem);
  line-height: .94;
  letter-spacing: -.07em;
  font-weight: 900;
}

h1 em {
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.hero-lede {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.72;
}

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }

.store-button {
  min-width: 176px;
  min-height: 58px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 13px;
  background: #171419;
  color: white;
  box-shadow: 0 8px 20px rgba(36, 28, 46, .14);
  transition: transform .2s ease, box-shadow .2s ease;
}

.store-button:hover, .store-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(36, 28, 46, .23);
}

.store-button span { display: flex; flex-direction: column; line-height: 1.02; }
.store-button small { font-size: .63rem; letter-spacing: .01em; }
.store-button strong { font-size: 1.17rem; letter-spacing: -.025em; }
.store-icon { width: 28px; height: 28px; flex: 0 0 auto; }
.play-icon { width: 30px; height: 30px; }

.availability {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 650;
}

.availability span { color: var(--teal); margin-right: 5px; }

.hero-art { min-height: 500px; position: relative; display: grid; place-items: center; isolation: isolate; }

.hero-art::before {
  content: "";
  width: 430px;
  height: 430px;
  position: absolute;
  border-radius: 49% 51% 42% 58% / 55% 41% 59% 45%;
  background: var(--teal);
  transform: rotate(-8deg);
  z-index: -2;
}

.sun-orbit { position: absolute; border-radius: 50%; border: 2px dashed rgba(59, 28, 98, .18); z-index: -3; }
.orbit-one { width: 510px; height: 510px; }
.orbit-two { width: 570px; height: 420px; transform: rotate(24deg); }

.game-board {
  width: min(410px, 86%);
  padding: 25px;
  border: 7px solid var(--white);
  border-radius: 31px;
  background: var(--white);
  box-shadow: 0 30px 60px rgba(39, 16, 65, .24), inset 0 0 0 1px rgba(59, 28, 98, .08);
  transform: rotate(3deg);
}

.board-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 21px; }
.board-top div { display: flex; flex-direction: column; gap: 2px; }
.tiny-label { color: var(--muted); font-size: .62rem; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.board-top strong { color: var(--purple); font-size: 1.05rem; letter-spacing: .05em; }
.heart { padding: 6px 9px; border-radius: 99px; background: #ffedf0; color: #dd2d46; font-size: .76rem; font-weight: 850; }

.letter-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.letter-grid span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f3eff7;
  color: var(--purple);
  font-size: .84rem;
  font-weight: 850;
}

.letter-grid .found { background: var(--gold); color: var(--purple-deep); box-shadow: inset 0 -3px 0 rgba(59,28,98,.12); }

.translation-pill {
  margin-top: 18px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 999px;
  background: var(--purple);
  color: white;
  font-size: .82rem;
}
.translation-pill span:nth-child(2) { color: var(--gold); }

.float-tile {
  width: 66px;
  aspect-ratio: 1;
  position: absolute;
  display: grid;
  place-items: center;
  border: 5px solid white;
  border-radius: 17px;
  color: var(--purple);
  font-size: 1.55rem;
  font-weight: 900;
  box-shadow: 0 14px 25px rgba(39,16,65,.2);
  animation: bob 4s ease-in-out infinite;
}
.tile-a { top: 16px; right: 34px; background: var(--gold); transform: rotate(10deg); }
.tile-z { bottom: 12px; left: 35px; background: white; transform: rotate(-11deg); animation-delay: -1.2s; }
.tile-n { top: 160px; left: -4px; background: var(--orange); color: white; transform: rotate(-14deg); animation-delay: -2.4s; }

@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--purple);
  color: white;
}

.trust-strip > div {
  min-height: 130px;
  padding: 28px 7vw;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  column-gap: 14px;
  border-right: 1px solid rgba(255,255,255,.13);
}
.trust-strip > div:last-child { border-right: 0; }
.trust-strip span { grid-row: span 2; align-self: center; color: var(--gold); font-size: 1.7rem; }
.trust-strip strong { font-size: .98rem; }
.trust-strip small { margin-top: 3px; color: rgba(255,255,255,.65); font-size: .76rem; }

.games-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 90px;
  align-items: start;
}

.section-heading { position: sticky; top: 30px; }
.section-heading h2, .download-panel h2 {
  margin-bottom: 22px;
  color: var(--purple);
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.section-heading > p:last-child { max-width: 450px; color: var(--muted); line-height: 1.7; }

.game-list { display: grid; gap: 12px; }
.game-card {
  padding: 22px;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(59,28,98,.11);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 30px rgba(59,28,98,.05);
  transition: transform .2s ease, border-color .2s ease;
}
.game-card:hover { transform: translateX(6px); border-color: rgba(0,151,178,.5); }
.game-icon {
  width: 74px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 1.55rem;
  font-weight: 900;
  box-shadow: inset 0 -5px 0 rgba(39,16,65,.1);
}
.game-icon.teal { background: var(--teal); color: white; }
.game-icon.gold { background: var(--gold); color: var(--purple); }
.game-icon.purple { background: var(--purple); color: white; }
.game-icon.orange { background: var(--orange); color: white; }
.game-card small { color: var(--teal); font-size: .67rem; font-weight: 850; letter-spacing: .12em; }
.game-card h3 { margin: 3px 0 3px; color: var(--purple); font-size: 1.35rem; letter-spacing: -.025em; }
.game-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.web-coming-soon {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 110px;
  padding: 72px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: 72px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 36px;
  background:
    radial-gradient(circle at 0 100%, rgba(0,151,178,.28), transparent 24rem),
    radial-gradient(circle at 100% 0, rgba(255,208,0,.2), transparent 20rem),
    var(--purple-deep);
  color: white;
  box-shadow: 0 24px 65px rgba(39,16,65,.2);
}

.web-coming-soon::before {
  content: "";
  width: 240px;
  height: 240px;
  position: absolute;
  top: -155px;
  left: 32%;
  border: 38px solid rgba(255,255,255,.035);
  border-radius: 50%;
}
.web-coming-soon::after {
  content: "P  A  L  A  B  R  I  T  A  Z";
  position: absolute;
  right: -35px;
  bottom: 12px;
  color: rgba(255,255,255,.035);
  font-size: clamp(3.7rem, 8vw, 7.8rem);
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.web-copy { position: relative; z-index: 1; }
.web-labels {
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.web-status {
  width: fit-content;
  margin: 0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.web-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(255,208,0,.13);
}
.web-coming-soon .kicker { margin: 0; color: var(--gold); }
.web-coming-soon h2 {
  margin-bottom: 24px;
  color: white;
  font-size: clamp(2.7rem, 4.8vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.06em;
}
.web-coming-soon h2 em {
  color: #55d1e3;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}
.web-lede {
  max-width: 490px;
  margin-bottom: 28px;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  line-height: 1.72;
}
.web-highlights {
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
  color: rgba(255,255,255,.86);
  font-size: .86rem;
  font-weight: 700;
}
.web-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.web-highlights span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(85,209,227,.15);
  color: #72e0ef;
  font-size: .68rem;
}
.web-mobile-link {
  width: fit-content;
  min-height: 48px;
  padding: 10px 11px 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--purple-deep);
  font-size: .9rem;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(0,0,0,.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.web-mobile-link span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple-deep);
  color: white;
  transition: transform .2s ease;
}
.web-mobile-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.25);
}
.web-mobile-link:hover span { transform: translate(2px, 2px); }

.browser-preview {
  position: relative;
  z-index: 1;
  border: 6px solid rgba(255,255,255,.95);
  border-radius: 25px;
  background: white;
  box-shadow: 0 28px 55px rgba(0,0,0,.28);
  transform: rotate(1.5deg);
  transition: transform .3s ease, box-shadow .3s ease;
}
.browser-preview:hover {
  transform: rotate(0) translateY(-5px);
  box-shadow: 0 35px 70px rgba(0,0,0,.34);
}
.browser-bar {
  min-height: 47px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  border-bottom: 1px solid rgba(59,28,98,.08);
  background: #f4f1f7;
  border-radius: 19px 19px 0 0;
}
.browser-dots { display: flex; gap: 5px; }
.browser-dots span { width: 8px; height: 8px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #ff6b5f; }
.browser-dots span:nth-child(2) { background: var(--gold); }
.browser-dots span:nth-child(3) { background: #42bf75; }
.browser-address {
  min-width: 0;
  padding: 7px 14px;
  overflow: hidden;
  border: 1px solid rgba(59,28,98,.08);
  border-radius: 8px;
  background: white;
  color: #81788a;
  font-size: .65rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-lock { margin-right: 5px; color: var(--teal); font-size: .45rem; }
.browser-screen {
  min-height: 335px;
  padding: 27px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 19px 19px;
  background:
    radial-gradient(circle at 80% 25%, rgba(255,208,0,.38), transparent 10rem),
    var(--cream);
}
.browser-screen::after {
  content: "";
  width: 210px;
  height: 210px;
  position: absolute;
  right: -80px;
  bottom: -95px;
  border-radius: 50%;
  background: var(--teal);
}
.web-brand-row { display: flex; align-items: center; gap: 9px; color: var(--purple); font-size: .85rem; font-weight: 900; }
.web-brand-row img { width: 29px; height: 29px; border-radius: 8px; box-shadow: 3px 3px 0 var(--gold); }
.web-screen-copy { margin: 39px 0 25px; }
.web-screen-copy small { display: block; margin-bottom: 7px; color: var(--teal-dark); font-size: .62rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.web-screen-copy strong { color: var(--purple); font-size: clamp(1.85rem, 3.2vw, 3rem); line-height: .95; letter-spacing: -.055em; }
.web-game-tiles { display: flex; gap: 10px; position: relative; z-index: 1; }
.web-tile {
  width: 55px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 4px solid white;
  border-radius: 15px;
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: 0 8px 17px rgba(39,16,65,.16);
}
.web-tile.teal { background: var(--teal); color: white; }
.web-tile.gold { background: var(--gold); color: var(--purple); }
.web-tile.purple { background: var(--purple); color: white; }
.web-tile.orange { background: var(--orange); color: white; }
.preview-badge {
  padding: 10px 15px;
  position: absolute;
  right: -18px;
  bottom: 24px;
  border: 4px solid white;
  border-radius: 999px;
  background: var(--gold);
  color: var(--purple-deep);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  box-shadow: 0 10px 20px rgba(39,16,65,.2);
  transform: rotate(-5deg);
}

.download-panel {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 70px;
  padding: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  border-radius: 31px;
  background:
    radial-gradient(circle at 0 0, rgba(255,208,0,.22), transparent 17rem),
    var(--teal);
  color: white;
  box-shadow: 0 20px 55px rgba(0,126,150,.18);
}
.download-copy { display: flex; align-items: center; gap: 24px; }
.mini-mark { width: 65px; flex: 0 0 auto; box-shadow: 6px 6px 0 var(--gold); }
.download-panel .kicker { margin-bottom: 8px; color: var(--gold); }
.download-panel h2 { margin: 0; color: white; font-size: clamp(1.85rem, 3vw, 3rem); }

footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 35px;
  border-top: 1px solid rgba(59,28,98,.12);
  color: var(--muted);
  font-size: .78rem;
}
.footer-brand { font-size: 1.05rem; }
.footer-brand .brand-mark { width: 31px; border-radius: 9px; box-shadow: 3px 3px 0 var(--gold); }
footer p { margin: 0; text-align: center; }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links a { color: var(--purple); font-weight: 750; }

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

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-art { width: min(600px, 100%); margin: 0 auto; }
  .trust-strip > div { padding-inline: 4vw; }
  .games-section { grid-template-columns: 1fr; gap: 40px; }
  .section-heading { position: static; text-align: center; }
  .section-heading > p:last-child { margin-inline: auto; }
  .web-coming-soon { grid-template-columns: 1fr; gap: 55px; padding: 60px; text-align: center; }
  .web-labels { justify-content: center; }
  .web-lede { margin-inline: auto; }
  .web-highlights { width: fit-content; margin-inline: auto; text-align: left; }
  .web-mobile-link { justify-content: center; }
  .browser-preview { width: min(620px, 100%); margin: 0 auto; }
  .download-panel { flex-direction: column; text-align: center; }
  footer { grid-template-columns: 1fr; justify-items: center; padding: 35px 0; gap: 20px; }
}

@media (max-width: 680px) {
  .site-header, .hero, .games-section, .web-coming-soon, .download-panel, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 72px; }
  nav { gap: 12px; }
  nav a:first-child { display: none; }
  nav a:not(.nav-cta) { font-size: .8rem; }
  .brand { font-size: 1.12rem; }
  .brand-mark { width: 34px; }
  .nav-cta { padding: 9px 14px; font-size: .82rem; }
  .hero { min-height: auto; padding: 55px 0 70px; gap: 45px; }
  h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .hero-lede { font-size: 1rem; }
  .store-row { width: 100%; justify-content: center; }
  .store-button { min-width: 0; width: calc(50% - 6px); padding-inline: 12px; }
  .store-button strong { font-size: 1rem; }
  .hero-art { min-height: 380px; }
  .hero-art::before { width: 310px; height: 310px; }
  .orbit-one { width: 360px; height: 360px; }
  .orbit-two { width: 380px; height: 300px; }
  .game-board { width: 310px; padding: 18px; border-radius: 25px; }
  .letter-grid { gap: 4px; }
  .letter-grid span { font-size: .68rem; border-radius: 6px; }
  .float-tile { width: 49px; border-width: 4px; border-radius: 13px; font-size: 1.2rem; }
  .tile-a { right: 5px; }
  .tile-z { left: 1px; }
  .tile-n { left: -8px; top: 120px; }
  .trust-strip { grid-template-columns: 1fr; padding: 10px 0; }
  .trust-strip > div { min-height: 93px; padding: 18px 25px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .trust-strip > div:last-child { border-bottom: 0; }
  .games-section { padding: 80px 0; }
  .game-card { grid-template-columns: 62px 1fr; gap: 15px; padding: 16px; }
  .game-icon { width: 60px; border-radius: 16px; }
  .game-card h3 { font-size: 1.15rem; }
  .web-coming-soon { margin-bottom: 80px; padding: 42px 20px; border-radius: 27px; }
  .web-labels { flex-direction: column; gap: 12px; }
  .web-coming-soon h2 { font-size: clamp(2.6rem, 13vw, 3.9rem); }
  .web-lede { font-size: .93rem; }
  .browser-preview { border-width: 4px; border-radius: 20px; transform: none; }
  .browser-bar { grid-template-columns: 47px 1fr 47px; padding-inline: 10px; }
  .browser-screen { min-height: 290px; padding: 22px; text-align: left; }
  .web-screen-copy { margin-top: 34px; }
  .web-game-tiles { gap: 7px; }
  .web-tile { width: 47px; border-radius: 13px; }
  .preview-badge { right: -5px; bottom: 20px; }
  .download-panel { padding: 42px 20px; margin-bottom: 35px; }
  .download-copy { flex-direction: column; gap: 20px; }
  .download-panel .store-button { width: 100%; max-width: 230px; }
  .footer-links { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
