@font-face {
  font-family: "Luckiest Guy";
  src: url("assets/luckiest_guy.ttf") format("truetype");
  font-display: swap;
}

:root {
  --sky: #29b6f6;
  --sky-deep: #0288d1;
  --ray: rgba(77, 208, 225, 0.3);
  --navy: #111a3f;
  --ink: #1a237e;
  --cyan: #26c6da;
  --violet: #ce93d8;
  --lime: #7cb342;
  --amber: #f9a825;
  --red: #d32f2f;
  --paper: #f6fbff;
  --dark: #07080f;
  --panel: #111422;
  --muted: #647194;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
}

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

.site-header {
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(246, 251, 255, 0.82);
  border-bottom: 1px solid rgba(26, 35, 126, 0.12);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  left: 0;
  padding: 12px clamp(18px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: flex;
  font-family: "Luckiest Guy", system-ui;
  font-size: 24px;
  gap: 10px;
  letter-spacing: 0;
}

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

nav {
  display: flex;
  gap: clamp(12px, 3vw, 30px);
  font-size: 14px;
  font-weight: 800;
}

.store-link,
.ghost-link {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.store-link {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #fff;
  gap: 10px;
  line-height: 1;
  min-width: 182px;
}

.store-copy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}

.store-copy span {
  color: #f5f5f5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-copy strong {
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
}

.store-link.small {
  min-height: 38px;
  min-width: 144px;
  padding: 7px 12px;
}

.store-link.small .play-mark {
  height: 23px;
  width: 21px;
}

.store-link.small .store-copy span {
  font-size: 8px;
}

.store-link.small .store-copy strong {
  font-size: 14px;
}

.play-mark {
  background:
    linear-gradient(145deg, #00a0ff 0 38%, transparent 38%),
    linear-gradient(35deg, #00d084 0 42%, transparent 42%),
    linear-gradient(225deg, #ffba00 0 45%, transparent 45%),
    linear-gradient(315deg, #ff3d71 0 45%, transparent 45%);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  display: inline-block;
  flex: 0 0 auto;
  height: 30px;
  position: relative;
  width: 27px;
}

.play-mark::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent 55%);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  content: "";
  inset: 2px 0 2px 2px;
  position: absolute;
}

.ghost-link {
  background: rgba(255, 255, 255, 0.34);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.store-link:hover,
.ghost-link:hover {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  gap: clamp(30px, 6vw, 88px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 510px);
  min-height: 92vh;
  overflow: hidden;
  padding: 112px clamp(20px, 6vw, 86px) 54px;
}

.section-sunburst {
  background:
    repeating-conic-gradient(from 0deg at 55% 31%, var(--ray) 0deg 8deg, transparent 8deg 15deg),
    linear-gradient(180deg, var(--sky), #51c8f6 52%, #f6fbff 100%);
  position: relative;
}

.section-sunburst::after {
  background-image:
    linear-gradient(45deg, rgba(2, 136, 209, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(2, 136, 209, 0.06) 25%, transparent 25%);
  background-size: 120px 120px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-copy,
.phone-stage,
.cta > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
  max-width: 690px;
}

.tile-logo {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.tile-logo span {
  align-items: center;
  animation: tilePop 900ms cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i) * 90ms);
  background: linear-gradient(180deg, #fffdf2, #ffd54f);
  border: 3px solid rgba(26, 35, 126, 0.22);
  border-radius: 7px;
  box-shadow: 0 8px 0 rgba(26, 35, 126, 0.18);
  color: var(--ink);
  display: inline-flex;
  font-family: "Luckiest Guy", system-ui;
  font-size: clamp(34px, 5vw, 62px);
  height: clamp(52px, 7vw, 82px);
  justify-content: center;
  width: clamp(48px, 6.5vw, 76px);
}

h1,
h2,
h3 {
  letter-spacing: 0;
  margin: 0;
}

h1 {
  color: var(--ink);
  font-family: "Luckiest Guy", system-ui;
  font-size: clamp(64px, 11vw, 154px);
  line-height: 0.82;
  text-shadow: 0 8px 0 rgba(255, 255, 255, 0.45);
}

.hero p {
  color: #18336d;
  font-size: clamp(18px, 2.3vw, 26px);
  font-weight: 800;
  line-height: 1.35;
  margin: 24px 0 28px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.phone-stage {
  align-self: end;
  min-height: 640px;
  position: relative;
}

.phone {
  background: linear-gradient(180deg, #101526, #07080f);
  border: 10px solid #111;
  border-radius: 34px;
  box-shadow: 0 30px 70px rgba(10, 32, 78, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  margin-left: auto;
  max-width: 390px;
  min-height: 638px;
  overflow: hidden;
  padding: 18px;
  transform: rotate(2deg);
}

.phone-top {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #f0f4ff;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  padding: 11px;
  text-align: center;
}

.phone-top span {
  color: #8ba3c2;
  display: block;
  font-size: 10px;
  font-weight: 900;
}

.phone-top strong {
  color: var(--cyan);
  font-size: 28px;
}

.phone-top div:last-child strong {
  color: var(--violet);
}

.timer {
  align-items: center;
  aspect-ratio: 1;
  border-radius: 999px;
  display: grid;
  font-size: 13px;
  font-weight: 900;
  isolation: isolate;
  place-items: center;
  position: relative;
}

.timer span {
  --timer: 68%;
  background: conic-gradient(#4caf50 var(--timer), #2a3044 0);
  border-radius: 999px;
  inset: 0;
  position: absolute;
  z-index: -1;
}

.timer::after {
  background: #111422;
  border-radius: 999px;
  content: "";
  inset: 7px;
  position: absolute;
  z-index: -1;
}

.status-pill {
  background: rgba(38, 198, 218, 0.14);
  border: 1px solid rgba(38, 198, 218, 0.32);
  border-radius: 999px;
  color: #80deea;
  font-size: 12px;
  font-weight: 900;
  margin: 14px 0;
  padding: 9px;
  text-align: center;
}

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

.cell {
  aspect-ratio: 1;
  background: #0e1220;
  border: 1px solid #1c2b3e;
  border-radius: 6px;
}

.cell.highlight {
  box-shadow: 0 0 18px rgba(255, 215, 64, 0.58);
}

.cell img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

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

.keyboard span {
  align-items: center;
  background: linear-gradient(180deg, #1a2540, #0e162a);
  border: 1px solid #2a3d5a;
  border-radius: 5px;
  color: #8ba3c2;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
}

.emote {
  filter: drop-shadow(0 14px 22px rgba(15, 25, 55, 0.26));
  position: absolute;
  width: 96px;
}

.emote-laugh {
  left: 4%;
  top: 14%;
  transform: rotate(-12deg);
}

.emote-cry {
  bottom: 9%;
  right: -3%;
  transform: rotate(13deg);
}

.marquee-strip {
  background: #fff;
  border-block: 1px solid rgba(26, 35, 126, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 14px;
}

.marquee-strip span,
.mode-pills span {
  background: #eef8ff;
  border: 1px solid rgba(2, 136, 209, 0.18);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  padding: 9px 13px;
}

.section-dark {
  background:
    radial-gradient(circle at 15% 20%, rgba(38, 198, 218, 0.14), transparent 32%),
    radial-gradient(circle at 80% 35%, rgba(206, 147, 216, 0.16), transparent 28%),
    var(--dark);
  color: #f0f4ff;
  padding: clamp(72px, 11vw, 132px) clamp(20px, 6vw, 86px);
}

.section-heading {
  margin: 0 auto 34px;
  max-width: 760px;
  text-align: center;
}

.section-heading p,
.eyebrow {
  color: var(--amber);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.16em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.section-heading h2,
.split-section h2,
.cta h2,
.legal h1 {
  font-family: "Luckiest Guy", system-ui;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.95;
}

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

.feature-grid article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  min-height: 245px;
  padding: 26px;
}

.feature-icon {
  color: var(--cyan);
  display: block;
  font-family: "Luckiest Guy", system-ui;
  font-size: 34px;
  margin-bottom: 22px;
}

.feature-grid h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.feature-grid p,
.body-copy,
.legal p {
  color: #627195;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.65;
}

.section-dark .feature-grid p {
  color: #aab6cf;
}

.split-section {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 82px);
  grid-template-columns: minmax(280px, 480px) 1fr;
  padding: clamp(70px, 11vw, 132px) clamp(20px, 6vw, 86px);
}

.score-card {
  background: #fff;
  border: 1px solid rgba(26, 35, 126, 0.12);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(2, 41, 93, 0.12);
  padding: clamp(20px, 4vw, 34px);
}

.score-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.score-row span {
  color: var(--muted);
  font-weight: 1000;
}

.score-row strong {
  color: var(--lime);
  font-family: "Luckiest Guy", system-ui;
  font-size: 88px;
  line-height: 1;
}

.word-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.word-stack span {
  background: linear-gradient(90deg, #eef8ff, #fff7d8);
  border-radius: 7px;
  color: var(--ink);
  font-weight: 1000;
  padding: 14px 16px;
}

.mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.rules-section {
  background: #fff;
  padding: clamp(70px, 10vw, 118px) clamp(20px, 6vw, 86px);
}

.rules-list {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 850px;
}

.rules-list div {
  align-items: center;
  background: #f6fbff;
  border: 1px solid rgba(26, 35, 126, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 46px 1fr;
  padding: 16px;
}

.rules-list b {
  align-items: center;
  background: var(--amber);
  border-radius: 7px;
  color: #3a2600;
  display: flex;
  font-family: "Luckiest Guy", system-ui;
  height: 46px;
  justify-content: center;
}

.rules-list span {
  font-size: 18px;
  font-weight: 850;
}

.cta {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.cta p {
  font-size: 20px;
  font-weight: 800;
  margin: 16px auto 24px;
  max-width: 620px;
}

footer {
  align-items: center;
  background: #080a12;
  color: #aab6cf;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 26px;
}

.legal-page {
  background: #f6fbff;
}

.legal {
  background: #fff;
  border: 1px solid rgba(26, 35, 126, 0.1);
  border-radius: 8px;
  margin: 112px auto 60px;
  max-width: 840px;
  padding: clamp(24px, 5vw, 58px);
}

.legal h2 {
  color: var(--ink);
  font-size: 24px;
  margin: 30px 0 4px;
}

.legal a {
  color: var(--sky-deep);
  font-weight: 900;
}

@keyframes tilePop {
  from {
    opacity: 0;
    transform: translateY(16px) rotate(-5deg) scale(0.86);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .phone-stage {
    margin: 0 auto;
    min-height: 570px;
    width: min(100%, 430px);
  }

  .phone {
    margin: 0 auto;
    min-height: 560px;
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 10px;
    padding: 10px 14px;
  }

  .site-header nav {
    display: none;
  }

  .site-header .store-link {
    display: none;
  }

  .hero {
    padding-top: 92px;
  }

  .tile-logo span {
    font-size: 33px;
    height: 52px;
    width: 46px;
  }

  h1 {
    font-size: 72px;
  }

  .phone {
    border-width: 7px;
    border-radius: 26px;
    min-height: 520px;
    padding: 12px;
    transform: none;
  }

  .phone-stage {
    min-height: 520px;
  }

  .emote {
    width: 70px;
  }

  .keyboard {
    grid-template-columns: repeat(9, 1fr);
  }

  .feature-grid article {
    min-height: auto;
  }

  .rules-list div {
    align-items: start;
  }
}
