/* ==========================================================================
   sections.css · page sections in document order:
   SiteHeader · HeroSection · GameIntro · GameplayShowcase · FeaturesSection ·
   HowToPlay · LetterTileShowcase · StrategySection (playable Level 21) ·
   ScreenshotGallery · FaqSection · DownloadCTA · CompanyDeveloperSection · SiteFooter
   ========================================================================== */

/* ---- SiteHeader ------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgb(33 19 12 / 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgb(255 200 120 / 0.14), 0 10px 30px rgb(8 4 2 / 0.35);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  border-radius: 12px;
  text-decoration: none;
}

.brand__emblem {
  width: 34px;
  filter: drop-shadow(0 3px 6px rgb(0 0 0 / 0.45));
}

.brand__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.14rem;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffe9b8;
}

.brand__masters {
  font-size: 0.64em;
  letter-spacing: 0.34em;
  color: var(--gold);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text-strong);
  background: rgb(255 220 160 / 0.08);
}

.site-header__cta {
  --btn-h: 44px;
  padding: 0 1.1em;
  font-size: 0.95rem;
}

.site-header__cta .icon {
  width: 1.05em;
  height: 1.05em;
}

.nav-toggle {
  display: none;
}

/* Five links + the CTA need ~900px, so the menu button takes over below 1080px. */
@media (max-width: 1079.98px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1.5px solid rgb(255 200 120 / 0.35);
    border-radius: 14px;
    background: rgb(58 33 19 / 0.75);
  }

  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-pale);
    transition: rotate 0.25s var(--ease-out), translate 0.25s var(--ease-out), opacity 0.2s;
  }

  .nav-toggle__bars {
    position: relative;
  }

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle__bars::before {
    translate: 0 -6px;
  }

  .nav-toggle__bars::after {
    translate: 0 6px;
  }

  .is-open .nav-toggle__bars {
    background: transparent;
  }

  .is-open .nav-toggle__bars::before {
    translate: 0 0;
    rotate: 45deg;
  }

  .is-open .nav-toggle__bars::after {
    translate: 0 0;
    rotate: -45deg;
  }

  html:not(.js) .nav-toggle {
    display: none;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 6px var(--gutter) 22px;
    background: rgb(33 19 12 / 0.97);
    box-shadow: 0 22px 30px rgb(8 4 2 / 0.45);
  }

  .site-header.is-open .site-nav {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    min-height: 52px;
    font-size: 1.08rem;
    border-bottom: 1px solid rgb(255 200 120 / 0.1);
    border-radius: 0;
  }
}

@media (max-width: 419.98px) {
  .brand__name {
    font-size: 1rem;
  }

  .site-header__cta {
    width: 44px;
    padding: 0;
  }

  .site-header__cta-label {
    display: none;
  }
}

/* ---- HeroSection ------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(28px, 5vw, 60px)) 0 clamp(56px, 8vw, 100px);
  background:
    radial-gradient(55% 55% at 76% 46%, rgb(255 170 70 / 0.4), rgb(255 140 60 / 0.1) 52%, transparent 72%),
    radial-gradient(70% 60% at 6% 0%, rgb(126 74 168 / 0.55), transparent 62%),
    radial-gradient(60% 50% at 100% 100%, rgb(255 120 50 / 0.2), transparent 60%),
    linear-gradient(172deg, #2e1a40 0%, #43243f 24%, #5a3030 52%, #472818 78%, var(--choc-900) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: inset 0 0 180px rgb(20 8 4 / 0.5);
  pointer-events: none;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  min-height: min(calc(100svh - var(--header-h) - 60px), 780px);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

[data-enter] {
  animation: enter-up 0.9s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 110ms + 150ms);
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  margin-top: 22px;
}

.hero__headline {
  font-size: clamp(2.5rem, 1.35rem + 4.3vw, 4.15rem);
  line-height: 1;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 34em;
  margin-top: 24px;
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  color: var(--text);
  text-shadow: 0 2px 8px rgb(20 8 2 / 0.5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  margin-top: 32px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* Stage: two phones, warm light and floating tiles. */
.hero__stage {
  --mx: 0;
  --my: 0;
  --k: 1;
  position: relative;
  justify-self: center;
  width: min(100%, 540px);
  aspect-ratio: 50 / 66;
}

.hero__glow {
  position: absolute;
  inset: 6% -8% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 190 90 / 0.5), rgb(255 150 60 / 0.16) 45%, transparent 70%);
  animation: glow-pulse 8s ease-in-out infinite;
}

.hero__rays {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 135%;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgb(255 214 130 / 0.11) 0 6deg, transparent 6deg 24deg);
  -webkit-mask-image: radial-gradient(circle, #000 12%, transparent 66%);
  mask-image: radial-gradient(circle, #000 12%, transparent 66%);
}

.hero__floor {
  position: absolute;
  left: 8%;
  right: 4%;
  bottom: 1%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(10 4 2 / 0.6), transparent 70%);
  filter: blur(8px);
}

.hero__phone {
  position: absolute;
  translate: calc(var(--mx) * var(--depth, 8) * 1px) calc(var(--my) * var(--depth, 8) * 1px);
  transition: translate 0.6s var(--ease-out);
  animation: phone-in 1.1s var(--ease-out) backwards;
}

.hero__phone--front {
  --w: 308px;
  --depth: 10;
  --device-glow: rgb(255 204 116 / 0.5);
  left: 2%;
  top: 3%;
  z-index: 3;
  rotate: -4deg;
  animation-delay: 0.35s;
}

.hero__phone--back {
  --w: 243px;
  --depth: 5;
  --device-glow: rgb(255 170 80 / 0.35);
  right: 1%;
  top: 14%;
  z-index: 2;
  rotate: 7deg;
  animation-delay: 0.55s;
}

@keyframes phone-in {
  from {
    opacity: 0;
    translate: 0 70px;
  }
}

.hero__tile {
  --s: calc(var(--k) * var(--base, 60px));
  z-index: 4;
  translate: calc(var(--mx) * var(--depth, 18) * 1px) calc(var(--my) * var(--depth, 18) * 1px);
  transition: translate 0.6s var(--ease-out);
}

.hero__tile.disc {
  --d: calc(var(--k) * var(--base, 60px));
}

.hero__coin {
  width: calc(var(--k) * 44px);
  height: calc(var(--k) * 44px);
  z-index: 4;
  filter: drop-shadow(0 8px 10px rgb(10 4 2 / 0.4));
}

@media (max-width: 959.98px) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: center;
  }

  .hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__title {
    align-items: center;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__actions,
  .hero__badges {
    justify-content: center;
  }

  .hero__stage {
    width: min(100%, 470px);
  }
}

@media (max-width: 599.98px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
  }

  .hero__stage {
    --k: 0.7;
  }

  .hero__phone--front {
    --w: 196px;
  }

  .hero__phone--back {
    --w: 154px;
  }
}

@supports (width: 1cqi) {
  .hero__stage {
    container-type: inline-size;
  }

  .hero__phone--front {
    --w: 57cqi;
  }

  .hero__phone--back {
    --w: 45cqi;
  }
}

/* ---- GameIntro ---------------------------------------------------------------- */

.intro {
  background:
    radial-gradient(50% 60% at 92% 30%, rgb(150 86 196 / 0.22), transparent 70%),
    radial-gradient(40% 50% at 0% 90%, rgb(255 150 64 / 0.14), transparent 70%),
    linear-gradient(180deg, var(--choc-900), #24140d);
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.pillars {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pillar .medallion {
  --m: 50px;
}

.pillar__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  line-height: 1.15;
  color: var(--text-strong);
}

.pillar p {
  margin-top: 2px;
  color: var(--text-soft);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 26px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 14px 22px;
  border: 1.5px solid rgb(255 204 132 / 0.3);
  border-radius: 26px;
  text-align: center;
  background: linear-gradient(170deg, rgb(72 44 26 / 0.85), rgb(40 22 12 / 0.9));
  box-shadow: 0 16px 34px rgb(8 4 2 / 0.42), inset 0 1px 1px rgb(255 214 148 / 0.24);
}

.stat:nth-child(even) {
  transform: translateY(26px);
}

.stat .medallion {
  --m: 50px;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
  line-height: 1;
  background: linear-gradient(180deg, #fff3be, #ffcb5a 46%, #f09b25);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  font-weight: 900;
  font-size: 0.8rem;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffe2b0;
}

@media (max-width: 859.98px) {
  .intro__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 379.98px) {
  .stat-grid {
    gap: 12px;
  }

  .stat {
    padding: 20px 8px 18px;
  }
}

/* ---- GameplayShowcase --------------------------------------------------------- */

.showcase {
  background:
    radial-gradient(40% 35% at 12% 22%, rgb(255 182 193 / 0.38), transparent 70%),
    radial-gradient(40% 40% at 88% 32%, rgb(255 226 140 / 0.45), transparent 70%),
    radial-gradient(45% 40% at 50% 100%, rgb(255 200 120 / 0.35), transparent 70%),
    linear-gradient(180deg, var(--cream-50), var(--honey));
  box-shadow: inset 0 26px 40px -26px rgb(42 24 16 / 0.35);
}

.showcase__stage {
  position: relative;
  width: fit-content;
  margin-inline: auto;
}

.showcase__device {
  --w: 340px;
  --device-glow: rgb(255 170 80 / 0.35);
}

.callout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border: 1.5px solid rgb(255 200 120 / 0.35);
  border-radius: 20px;
  color: #ffe7bb;
  background: linear-gradient(180deg, #4a2b1c, #2f1a10);
  box-shadow: 0 14px 28px rgb(58 30 12 / 0.28);
}

.callout .medallion {
  --m: 44px;
}

.callout__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.1;
  color: #fff4e0;
}

.callout__text {
  display: block;
  margin-top: 3px;
  font-size: 0.92rem;
  line-height: 1.35;
  color: rgb(255 231 187 / 0.85);
}

@media (min-width: 1024px) {
  .callouts {
    position: absolute;
    inset: 0;
  }

  .callout {
    position: absolute;
    top: var(--y);
    width: 252px;
  }

  .callout[data-side="start"] {
    right: calc(100% + 46px);
  }

  .callout[data-side="end"] {
    left: calc(100% + 46px);
  }

  /* Leader line and dot pointing at the part of the screen described. */
  .callout::after,
  .callout::before {
    content: "";
    position: absolute;
    top: 50%;
  }

  .callout::after {
    width: 36px;
    height: 2px;
    background: #9a4a16;
  }

  .callout::before {
    width: 10px;
    height: 10px;
    margin-top: -4px;
    border-radius: 50%;
    background: #9a4a16;
    box-shadow: 0 0 0 4px rgb(154 74 22 / 0.2);
  }

  .callout[data-side="start"]::after {
    left: 100%;
  }

  .callout[data-side="start"]::before {
    left: calc(100% + 36px);
  }

  .callout[data-side="end"]::after {
    right: 100%;
  }

  .callout[data-side="end"]::before {
    right: calc(100% + 36px);
  }
}

@media (max-width: 1023.98px) {
  .showcase__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
  }

  .callouts {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 720px;
    margin: 40px auto 0;
  }
}

@media (max-width: 599.98px) {
  .showcase__device {
    --w: min(300px, 80vw);
  }

  .callouts {
    grid-template-columns: 1fr;
  }
}

/* Supporting screens. */
.screens {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(64px, 9vw, 112px);
}

.screen {
  --screen-w: min(220px, 20vw);
}

.screen figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 0;
  text-align: center;
}

.screen .device {
  --w: var(--screen-w);
  --device-glow: rgb(255 170 80 / 0.2);
  rotate: -2.5deg;
  transition: rotate 0.4s var(--ease-out), scale 0.4s var(--ease-out);
}

.screen:nth-child(even) .device {
  rotate: 2.5deg;
}

.screen:hover .device {
  rotate: 0deg;
  scale: 1.03;
}

.screen:nth-child(even) figure {
  transform: translateY(28px);
}

.screen figcaption {
  max-width: var(--screen-w);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-dark-soft);
}

.screen figcaption strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-dark);
}

@media (max-width: 1023.98px) {
  .screens {
    display: flex;
    justify-content: flex-start;
    gap: 22px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 16px var(--gutter) 22px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: #c8963e transparent;
  }

  .screen {
    --screen-w: 210px;
    flex: none;
    scroll-snap-align: center;
  }

  .screen .device,
  .screen:nth-child(even) .device {
    rotate: 0deg;
  }

  .screen:nth-child(even) figure {
    transform: none;
  }
}

/* ---- FeaturesSection ---------------------------------------------------------- */

.features {
  background:
    radial-gradient(60% 45% at 50% 0%, rgb(255 150 64 / 0.16), transparent 70%),
    radial-gradient(50% 50% at 100% 85%, rgb(150 86 196 / 0.2), transparent 70%),
    linear-gradient(180deg, #2b1810, #1f110b);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.feature-item {
  display: flex;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding: 30px 26px 30px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.feature:hover {
  transform: translateY(-4px);
}

.feature .medallion {
  --m: 60px;
}

.feature--violet .medallion {
  color: #fff;
  background: linear-gradient(180deg, var(--violet-top), var(--violet-bottom));
}

.feature--blue .medallion {
  color: #fff;
  background: linear-gradient(180deg, #6aa1f8, var(--shuffle));
}

.feature--coin .medallion {
  background: radial-gradient(circle at 40% 30%, #7a4e38, #3b2216);
  box-shadow:
    inset 0 0 0 2px rgb(255 201 77 / 0.45),
    0 6px 14px rgb(8 4 2 / 0.32);
}

.feature--coin .medallion .icon {
  width: 62%;
  height: 62%;
}

.feature--green .medallion {
  color: #0e3a12;
  background: linear-gradient(180deg, #8fe596, #3c9d45);
}

.feature__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.42rem;
  line-height: 1.12;
  color: #fff1d0;
}

.feature__text {
  color: rgb(255 234 200 / 0.86);
}

@media (max-width: 1023.98px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639.98px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    padding: 26px 22px;
  }
}

/* ---- HowToPlay ------------------------------------------------------------------ */

.how {
  background:
    radial-gradient(40% 40% at 90% 12%, rgb(255 182 193 / 0.35), transparent 70%),
    radial-gradient(40% 40% at 8% 90%, rgb(255 226 140 / 0.45), transparent 70%),
    linear-gradient(180deg, var(--cream-50), var(--honey));
}

.steps {
  --gap: clamp(16px, 2.2vw, 28px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 18px 28px;
  border: 1.5px solid rgb(200 150 62 / 0.35);
  border-radius: 26px;
  text-align: center;
  background: rgb(255 255 255 / 0.55);
  box-shadow: 0 16px 30px rgb(120 70 20 / 0.12), inset 0 1px 0 #fff;
}

/* Chevron between steps. */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 100px;
  right: calc(var(--gap) / -2 - 7px);
  width: 14px;
  height: 14px;
  border-top: 3px solid #c8963e;
  border-right: 3px solid #c8963e;
  rotate: 45deg;
}

.step__badge {
  --s: 38px;
  position: absolute;
  top: -14px;
  left: 18px;
  rotate: -6deg;
}

.step__art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 176px;
}

.step__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1.1;
  color: var(--text-dark);
}

.step__text {
  margin-top: 6px;
  color: var(--text-dark-soft);
}

.wheel--mini {
  --wheel: 150px;
}

.wheel--short {
  --wheel: 128px;
}

/* Step 1: the letters of SELF glint in turn. */
.step--find .disc[style*="--seq"] {
  animation: glint 4.2s ease-in-out infinite paused;
  animation-delay: calc(var(--seq) * 0.35s + 0.6s);
}

@keyframes glint {
  0%,
  16%,
  100% {
    filter: none;
  }

  8% {
    filter: brightness(1.18) drop-shadow(0 0 8px rgb(255 200 90 / 0.95));
  }
}

/* Step 2: the swipe path draws itself, word bubble above. */
.step__word {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.step__word .tile {
  --s: 26px;
}

.step--connect .step__art {
  grid-template-rows: auto auto;
  align-content: center;
}

.step__path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-path 3.6s var(--ease-out) infinite paused;
}

@keyframes draw-path {
  0% {
    stroke-dashoffset: 100;
    opacity: 1;
  }

  45%,
  82% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

.step.is-revealed .disc[style*="--seq"],
.step.is-revealed .step__path {
  animation-play-state: running;
}

/* Step 3: the real Level 21 layout, mid-solve. */
.board--mini {
  width: 100%;
  max-width: 236px;
  padding: 9px;
  border-radius: 14px;
}

.board--mini .board__grid {
  --gap: 3px;
}

/* Step 4: a small Level Complete card. */
.win-card--mini {
  gap: 8px;
  width: 100%;
  max-width: 210px;
  padding: 16px 14px 14px;
  border-radius: 20px;
}

.win-card--mini .trophy-ring {
  --tr: 52px;
}

.win-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
}

.win-card__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coin-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px 2px 6px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--coin);
  background: rgb(0 0 0 / 0.3);
}

.coin-chip .icon {
  width: 1.1em;
  height: 1.1em;
}

.next-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.82rem;
  color: var(--stroke);
  background: linear-gradient(90deg, #f6b352, #ea8f3f);
}

.next-chip .icon {
  width: 1em;
  height: 1em;
}

@media (max-width: 1023.98px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 559.98px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .step__path {
    stroke-dashoffset: 0;
    animation: none;
  }
}

html:not(.js) .step__path {
  stroke-dashoffset: 0;
  animation: none;
}

/* ---- LetterTileShowcase ----------------------------------------------------------- */

.tiles {
  background:
    radial-gradient(55% 50% at 50% 58%, rgb(255 170 70 / 0.28), transparent 70%),
    radial-gradient(45% 45% at 0% 0%, rgb(126 74 168 / 0.45), transparent 70%),
    radial-gradient(45% 45% at 100% 100%, rgb(150 86 196 / 0.3), transparent 70%),
    linear-gradient(180deg, #1f110b, #2e1a28 50%, var(--choc-900));
}

.tiles__scatter {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.tiles__scatter .tile {
  --ghost-o: 0.14;
}

/* CROSS / WORD / MASTERS as a real interlocking crossword. */
.brand-grid {
  --cell: clamp(34px, 13.2vw - 8px, 84px);
  --gap: clamp(6px, 1vw, 12px);
  display: grid;
  grid-template-columns: repeat(7, var(--cell));
  grid-template-rows: repeat(5, var(--cell));
  gap: var(--gap);
  width: max-content;
  margin-inline: auto;
}

.brand-grid .tile {
  --s: var(--cell);
  grid-column: var(--c);
  grid-row: var(--r);
  cursor: default;
  transition:
    translate 0.8s var(--ease-spring),
    rotate 0.8s var(--ease-out),
    scale 0.8s var(--ease-spring),
    opacity 0.5s ease;
  transition-delay: calc(var(--order) * 55ms);
}

.brand-grid.is-scattered .tile {
  translate: var(--sx, 0) var(--sy, 0);
  rotate: var(--sr, 0deg);
  scale: 0.6;
  opacity: 0.2;
  transition-delay: calc(var(--order) * 12ms);
}

.brand-grid.no-transition .tile {
  transition: none;
}

.brand-grid.is-settled .tile {
  transition-delay: 0s;
  animation: float-soft 6s ease-in-out infinite;
  animation-delay: calc(var(--order) * -0.45s);
}

.brand-grid.is-settled .tile:hover {
  scale: 1.1;
  rotate: -5deg;
}

/* Shared letters light up once their second word lands. */
.brand-grid.is-built .tile[data-key] {
  animation: key-light 0.9s ease both;
  animation-delay: var(--key-delay, 0s);
}

.brand-grid.is-settled .tile[data-key] {
  animation:
    key-light 1ms both,
    float-soft 6s ease-in-out infinite;
  animation-delay: 0s, calc(var(--order) * -0.45s);
}

html:not(.js) .brand-grid .tile[data-key] {
  animation: key-light 1ms both;
}

@keyframes key-light {
  to {
    border-color: rgb(255 250 222 / 0.9);
    background:
      linear-gradient(180deg, rgb(255 255 255 / 0.45) 0%, transparent 55%),
      linear-gradient(158deg, #ffe08a, #ffbb45 52%, #ee9524);
    box-shadow:
      inset 0 -3px 5px rgb(150 80 16 / 0.3),
      0 calc(var(--s) * 0.06) 0 var(--candy-edge),
      0 0 calc(var(--s) * 0.55) rgb(255 190 90 / 0.75);
  }
}

@keyframes float-soft {
  50% {
    transform: translateY(-5px);
  }
}

.tiles__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 40px;
}

.tiles__actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

/* ---- StrategySection · playable Level 21 ------------------------------------------ */

.strategy {
  background:
    radial-gradient(50% 50% at 82% 42%, rgb(255 170 70 / 0.22), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgb(126 74 168 / 0.35), transparent 70%),
    linear-gradient(180deg, var(--choc-900), #33203f 60%, #2a1830);
}

.strategy__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.strategy__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: start;
  gap: 32px;
  margin-top: 32px;
}

.tips {
  display: grid;
  gap: 18px;
}

.tip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tip .medallion {
  --m: 42px;
}

.tip p {
  color: var(--text-soft);
  line-height: 1.5;
}

.tip strong {
  display: block;
  font-weight: 900;
  color: var(--text-strong);
}

.strategy__proof {
  margin: 8px 0 0;
  text-align: center;
}

.strategy__proof .device {
  --w: 150px;
  margin-inline: auto;
  rotate: 5deg;
}

.strategy__proof figcaption {
  margin-top: 20px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--text-soft);
}

.strategy__play {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.demo {
  width: 100%;
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(160deg, #2c2c35, #0b0b0d);
  box-shadow:
    0 0 0 1.5px rgb(255 210 140 / 0.22),
    var(--shadow-deep),
    0 0 90px rgb(255 190 90 / 0.22);
}

.demo__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 18px 16px 18px;
  border-radius: 27px;
  color: var(--text-dark);
  background:
    radial-gradient(45% 30% at 8% 34%, rgb(255 182 193 / 0.45), transparent 70%),
    radial-gradient(45% 35% at 92% 62%, rgb(255 226 140 / 0.5), transparent 70%),
    linear-gradient(180deg, var(--cream-50), var(--honey));
  container-type: inline-size;
}

.demo__hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.demo__tools {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-bottom: 12px;
}

.demo__board {
  width: 100%;
}

.demo__word {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 38px;
}

.demo__word .tile {
  --s: 34px;
  animation: pop-in 0.2s var(--ease-spring) both;
}

.demo__word.is-good .tile {
  animation: none;
  border-color: #eaffd9;
  background: linear-gradient(180deg, #8ff29a, #3fbf52);
  color: var(--play-ink);
}

.demo__word.is-bonus .tile {
  animation: none;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.45) 0%, transparent 55%),
    linear-gradient(158deg, #ffe08a, #ffbb45 52%, #ee9524);
  box-shadow: 0 0 18px rgb(255 190 90 / 0.8), 0 2px 0 var(--candy-edge);
}

.demo__word.is-bad {
  animation: shake 0.42s ease;
}

.demo__word.is-bad .tile {
  animation: none;
  filter: grayscale(0.55) brightness(0.95);
}

@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

.demo__wheel {
  --wheel: 236px;
  touch-action: manipulation;
}

@supports (width: 1cqi) {
  .demo__wheel {
    --wheel: min(250px, 74cqi);
  }
}

.demo__wheel .disc {
  cursor: pointer;
  touch-action: none;
}

.demo__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.demo__status {
  min-height: 3em;
  max-width: 32ch;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.5;
  text-align: center;
  color: var(--text-dark-soft);
}

.board .tile.is-pop {
  animation: cell-pop 0.5s var(--ease-spring) both;
  animation-delay: var(--delay, 0s);
}

@keyframes cell-pop {
  from {
    opacity: 0;
    scale: 0.3;
  }
}

.demo__complete {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(30 16 8 / 0.62);
  animation: fade-in 0.3s ease both;
}

.demo__complete .win-card {
  width: 100%;
  max-width: 300px;
  animation: pop-in 0.45s var(--ease-spring) both;
}

.win-card__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
}

.win-card__heading:focus {
  outline: none;
}

.win-card__text {
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgb(255 240 220 / 0.86);
}

.win-card .btn {
  width: 100%;
}

.link-button {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  font-weight: 800;
  color: rgb(255 240 220 / 0.86);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* Interactive-only parts stay hidden until js/level-demo.js switches them on,
   so the static board never shows buttons that do nothing. */
[data-demo-only] {
  display: none !important;
}

.wheel__path[data-demo-live] {
  stroke-opacity: 0.6;
}

@media (max-width: 1099.98px) {
  .strategy__body {
    grid-template-columns: 1fr;
  }

  .strategy__proof {
    display: none;
  }
}

@media (max-width: 899.98px) {
  .strategy__grid {
    grid-template-columns: 1fr;
  }

  .strategy__play {
    justify-self: center;
    width: min(100%, 440px);
  }
}

@media (max-width: 379.98px) {
  .demo__screen {
    padding: 16px 10px;
  }

  .demo__tools {
    gap: 18px;
  }
}

/* ---- ScreenshotGallery ------------------------------------------------------------ */

.gallery {
  background:
    radial-gradient(50% 40% at 50% 58%, rgb(255 170 70 / 0.2), transparent 70%),
    linear-gradient(180deg, #2a1830, #231209 60%, #1f110b);
}

.gallery__viewport {
  position: relative;
}

/* Default (phones, tablets, no JS): a swipeable strip. */
.gallery__track {
  position: relative;
  display: flex;
  gap: 18px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 10px var(--gutter) 26px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: #c8963e transparent;
}

.shot {
  flex: 0 0 min(68vw, 300px);
  overflow: hidden;
  border-radius: 22px;
  background: var(--choc-900);
  box-shadow: 0 18px 36px rgb(8 4 2 / 0.5), 0 0 0 1.5px rgb(255 210 140 / 0.18);
  scroll-snap-align: center;
}

.shot img {
  width: 100%;
  aspect-ratio: 1080 / 1920;
  object-fit: cover;
}

/* Wide screens with JS: a layered stage — one featured shot, neighbours fanned out. */
@media (min-width: 960px) {
  .gallery__viewport.is-stage .gallery__track {
    --shot-w: 340px;
    display: block;
    height: calc(var(--shot-w) * 16 / 9 + 36px);
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .gallery__viewport.is-stage .gallery__track {
    touch-action: pan-y;
  }

  .is-stage .shot {
    position: absolute;
    top: 12px;
    left: 50%;
    z-index: var(--z, 1);
    width: var(--shot-w);
    margin-left: calc(var(--shot-w) / -2);
    translate: var(--x, 0) 0;
    scale: var(--s, 1);
    opacity: var(--o, 1);
    cursor: pointer;
    transition:
      translate 0.6s var(--ease-out),
      scale 0.6s var(--ease-out),
      opacity 0.45s ease,
      filter 0.45s ease;
  }

  .is-stage .shot:not(.is-active) {
    filter: brightness(0.6) saturate(0.9);
  }

  .is-stage .shot.is-active {
    cursor: default;
    box-shadow:
      0 30px 60px rgb(8 4 2 / 0.6),
      0 0 0 2px rgb(255 210 140 / 0.35),
      0 0 80px rgb(255 190 90 / 0.22);
  }

  .is-stage .shot.is-far {
    pointer-events: none;
  }
}

.gallery__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.gallery__arrow {
  --btn-h: 52px;
  width: 52px;
  padding: 0;
}

.gallery__arrow .icon {
  width: 1.4em;
  height: 1.4em;
}

.gallery__dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gallery__dots button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
}

.gallery__dots button::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgb(255 235 200 / 0.32);
  transition: width 0.3s var(--ease-out), background-color 0.3s ease;
}

.gallery__dots button[aria-current="true"]::before {
  width: 28px;
  background: linear-gradient(90deg, #ffd976, #f0a12c);
  box-shadow: 0 0 12px rgb(255 190 90 / 0.7);
}

.gallery__caption {
  min-height: 1.5em;
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  text-align: center;
  color: var(--gold-pale);
}

@media (max-width: 599.98px) {
  .gallery__arrow {
    display: none;
  }

  .gallery__dots button {
    width: 26px;
  }
}

/* ---- FaqSection ------------------------------------------------------------------------ */

.faq {
  background:
    radial-gradient(40% 40% at 8% 14%, rgb(255 182 193 / 0.32), transparent 70%),
    radial-gradient(40% 40% at 92% 86%, rgb(255 226 140 / 0.42), transparent 70%),
    linear-gradient(180deg, var(--cream-50), var(--honey));
  box-shadow: inset 0 26px 40px -26px rgb(42 24 16 / 0.35);
}

/* Two independent columns, so opening an answer never shifts the other side. */
.faq__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px 24px;
  max-width: 1060px;
  margin-inline: auto;
}

.faq__column {
  display: grid;
  gap: 12px;
}

.faq__item {
  overflow: hidden;
  border: 1.5px solid rgb(255 200 120 / 0.3);
  border-radius: 18px;
  background: linear-gradient(180deg, #4a2b1c, #2f1a10);
  box-shadow: 0 10px 22px rgb(58 30 12 / 0.18);
}

.faq__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px 12px 20px;
  border: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.25;
  text-align: left;
  color: #fff4e0;
  background: none;
  transition: background-color 0.2s ease;
}

.faq__toggle:hover {
  background: rgb(255 220 160 / 0.06);
}

.faq__toggle:focus-visible {
  outline-offset: -4px;
}

.faq__icon {
  --m: 30px;
  rotate: 90deg;
  transition: rotate 0.3s var(--ease-out);
}

.faq__item.is-open .faq__icon {
  rotate: -90deg;
}

/* Answers stay in the HTML for search engines and no-JS readers. With JS on,
   closed answers collapse to zero height and leave the accessibility tree. */
.faq__panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s var(--ease-out), visibility 0.3s;
}

.js .faq__item:not(.is-open) .faq__panel {
  grid-template-rows: 0fr;
  visibility: hidden;
}

.faq__answer {
  min-height: 0;
  overflow: hidden;
}

.faq__answer p {
  padding: 0 20px 18px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgb(255 231 187 / 0.88);
}

.faq__answer a {
  font-weight: 800;
  color: var(--gold-light);
  text-underline-offset: 2px;
}

html:not(.js) .faq__icon {
  display: none;
}

@media (max-width: 859.98px) {
  .faq__columns {
    grid-template-columns: 1fr;
    max-width: 680px;
  }
}

/* ---- DownloadCTA ---------------------------------------------------------------------- */

.cta {
  padding-block: clamp(96px, 13vw, 170px);
  text-align: center;
  background: var(--choc-900);
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(62% 70% at 50% 52%, rgb(40 20 12 / 0.4), rgb(26 14 8 / 0.82) 82%),
    linear-gradient(180deg, rgb(31 17 11 / 0.92), rgb(42 24 16 / 0.5) 28%, rgb(42 24 16 / 0.55) 72%, rgb(23 12 7 / 0.97));
}

.cta__tiles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta__coin {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 8px 10px rgb(10 4 2 / 0.45));
}

.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__emblem img {
  width: clamp(116px, 15vw, 164px);
  filter: drop-shadow(0 16px 26px rgb(8 4 2 / 0.6)) drop-shadow(0 0 30px rgb(255 190 90 / 0.4));
}

.cta__title {
  max-width: 18ch;
  margin-top: 26px;
  font-size: clamp(2.2rem, 1.25rem + 4vw, 4.1rem);
  text-transform: uppercase;
}

.cta__lead {
  max-width: 36em;
  margin-top: 20px;
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  color: var(--text);
  text-shadow: 0 2px 10px rgb(10 4 2 / 0.85);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.cta__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

@media (max-width: 599.98px) {
  .cta__tiles .floaty:nth-child(n + 3) {
    display: none;
  }
}

/* ---- CompanyDeveloperSection ------------------------------------------------------------ */

.studio {
  background:
    radial-gradient(50% 60% at 50% 0%, rgb(255 150 64 / 0.12), transparent 70%),
    linear-gradient(180deg, #1f110b, #170c07);
}

.studio__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  max-width: 940px;
  margin-inline: auto;
}

.studio__cards > li {
  display: flex;
}

.person-card {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  padding: 30px;
}

.person-card .medallion {
  --m: 76px;
}

.person-card__monogram {
  --s: 76px;
  flex: none;
  rotate: -4deg;
  font-size: calc(var(--s) * 0.42);
}

.person-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.1;
  color: #fff1d0;
}

.person-card__role {
  margin-top: 6px;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.person-card__link {
  margin-top: 18px;
}

.btn--linkedin {
  --btn-h: 48px;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(180deg, #1a7fd6, #0a66c2);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.3),
    0 4px 0 #064a8f,
    0 10px 20px rgb(4 30 70 / 0.4);
}

.btn--linkedin:active {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 1px 0 #064a8f;
}

@media (max-width: 767.98px) {
  .studio__cards {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

@media (max-width: 419.98px) {
  .person-card {
    flex-direction: column;
    padding: 28px 22px;
    text-align: center;
  }
}

/* ---- SiteFooter ---------------------------------------------------------------------------- */

.site-footer {
  padding: 48px 0;
  border-top: 1px solid rgb(255 200 120 / 0.12);
  background: #140a06;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 40px;
}

.site-footer .brand {
  margin-right: 0;
}

.site-footer__tagline {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-footer__nav a:hover {
  color: var(--text-strong);
  background: rgb(255 220 160 / 0.08);
}

.site-footer__nav .icon {
  width: 1em;
  height: 1em;
  opacity: 0.7;
}

@media (max-width: 767.98px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer__nav ul {
    justify-content: center;
  }
}
