/* SpinWord — site styles. Colours and type follow the app's Theme.kt and colors.xml. */

@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

/* One app dp inside the phone mock-up, so the demo can use the app's own measurements.
   Registered as a length so it is resolved once, against the phone screen, and inherited as px. */
@property --dp {
  syntax: "<length>";
  inherits: true;
  initial-value: 1px;
}

:root {
  --cream: #fff6dc;
  --cream-shade: #d6c99f;
  --ink: #1a2050;
  --muted: #9ba6db;
  --veil: rgb(255 255 255 / 0.12);
  --raised: #242c6e;
  --gold: #ffcb47;
  --gold-deep: #ffb833;
  --gold-rim: #e08a0b;
  --green: #45e08e;
  --coral: #ff8a75;
  --bg-top: #262e7a;
  --bg: #0c1133;

  --line: rgb(255 255 255 / 0.08);
  --card: linear-gradient(180deg, rgb(255 255 255 / 0.065), rgb(255 255 255 / 0.025));
  --radius-lg: 28px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1180px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cream);
  background:
    radial-gradient(110% 70% at 50% -8%, var(--bg-top) 0%, rgb(38 46 122 / 0) 62%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

b {
  font-weight: 800;
  color: var(--cream);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 12px;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip:focus {
  transform: none;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.text-gold {
  background: linear-gradient(180deg, var(--gold) 20%, var(--gold-deep) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgb(69 224 142 / 0.18);
}

/* ---------- Buttons and pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    background-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--lg {
  height: 58px;
  padding: 0 28px;
  font-size: 1.0625rem;
}

.btn--tonal {
  color: var(--cream);
  background: var(--veil);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
}

.btn--tonal:hover {
  background: rgb(255 255 255 / 0.18);
}

/* Where the store link will go once the app is on Google Play. Not a link, so not a button. */
.soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 58px;
  padding: 0 26px;
  border-radius: 999px;
  background: rgb(255 203 71 / 0.1);
  box-shadow:
    inset 0 0 0 1.5px rgb(255 203 71 / 0.5),
    0 12px 32px -16px rgb(255 184 51 / 0.6);
  color: var(--gold);
  font-size: 1.0625rem;
  font-weight: 800;
  white-space: nowrap;
}

.soon--sm {
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

.soon__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: soon-pulse 2s ease-out infinite;
}

@keyframes soon-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(255 203 71 / 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgb(255 203 71 / 0);
  }
}

/* The app's PillButton, at page scale. */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.pill svg {
  width: 18px;
  height: 18px;
}

.pill--tonal {
  background: var(--veil);
  color: var(--cream);
}

.pill--gold {
  background: var(--gold);
  color: var(--ink);
}

.pill--go {
  background: var(--green);
  color: var(--ink);
}

.pill--wide {
  width: 100%;
  height: 56px;
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow:
    inset 0 0 0 1px var(--line),
    inset 0 1px 0 rgb(255 255 255 / 0.06);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px rgb(255 203 71 / 0.22),
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 30px 60px -30px rgb(0 0 0 / 0.6);
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition:
    background-color 0.3s,
    box-shadow 0.3s,
    backdrop-filter 0.3s;
}

.nav.is-scrolled {
  background: rgb(12 17 51 / 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 4px 12px rgb(255 203 71 / 0.35));
  transition: transform 0.8s var(--ease-out);
}

.brand:hover .brand__mark {
  transform: rotate(360deg);
}

.nav nav {
  margin-left: auto;
}

.nav__links {
  display: flex;
  gap: 4px;
}

.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9375rem;
  text-decoration: none;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.nav__links a:hover {
  color: var(--cream);
  background: var(--veil);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(24px, 4vw, 56px) 0 clamp(64px, 8vw, 110px);
  overflow-x: clip;
  isolation: isolate;
}

.hero::before {
  /* The gold glow the game puts around its wheel, behind the phone. */
  content: "";
  position: absolute;
  z-index: -1;
  right: max(-10vw, calc(50% - 760px));
  top: 4%;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(255 203 71 / 0.2), rgb(255 184 51 / 0.06) 55%, transparent 75%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero__title {
  font-size: clamp(3.1rem, 1.6rem + 5.2vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 34rem;
  margin-top: 26px;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 34rem;
}

.hero__facts li {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hero__facts strong {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.hero__facts span {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
}

.hero__tiles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.float-tile {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--cream);
  box-shadow:
    inset 0 -4px 0 var(--cream-shade),
    0 18px 40px -14px rgb(0 0 0 / 0.6);
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
  opacity: 0.16;
  rotate: var(--r);
  animation: drift 14s ease-in-out var(--d) infinite;
}

.float-tile--gold {
  background: var(--gold);
  box-shadow:
    inset 0 -4px 0 var(--gold-rim),
    0 18px 40px -14px rgb(0 0 0 / 0.6);
}

@keyframes drift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -18px;
  }
}

/* ---------- Phone mock-up ---------- */

.hero__demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.phone {
  position: relative;
  width: min(360px, 88vw, max(280px, calc((100svh - 190px) * 9 / 19)));
  aspect-ratio: 9 / 19;
  padding: 10px;
  border-radius: 54px;
  background: linear-gradient(155deg, #343c84, #12173f 40%, #090c26);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.14),
    inset 0 0 0 4px rgb(0 0 0 / 0.35),
    0 60px 120px -30px rgb(0 0 0 / 0.75),
    0 0 0 1px rgb(0 0 0 / 0.4);
}

.phone::before {
  /* Side buttons. */
  content: "";
  position: absolute;
  right: -3px;
  top: 22%;
  width: 3px;
  height: 64px;
  border-radius: 0 3px 3px 0;
  background: #2b3170;
  box-shadow: 0 90px 0 #2b3170;
}

.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 44px;
  background: linear-gradient(180deg, var(--bg-top), var(--bg));
  container-type: size;
}

.phone__screen::after {
  /* Punch-hole camera. */
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #04061a;
  box-shadow: inset 0 0 0 2px #151a45;
  z-index: 5;
}

.demo-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--muted);
}

.demo-hint__badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(69 224 142 / 0.14);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Playable demo: the app's GameScreen, measured in app dp ---------- */

.demo {
  --dp: calc(100cqw / 360);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  font-size: calc(var(--dp) * 15);
  line-height: 1.25;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.demo:focus-visible {
  outline-offset: -4px;
  border-radius: 44px;
}

.demo__noscript {
  margin: auto;
  padding: 0 32px;
  text-align: center;
  color: var(--muted);
}

:where(.demo button) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.demo button:focus-visible {
  outline-width: calc(var(--dp) * 3);
  outline-offset: calc(var(--dp) * 2);
}

.d-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--dp) * 36);
  padding: calc(var(--dp) * 4) calc(var(--dp) * 28) 0;
  font-size: calc(var(--dp) * 13);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.d-statusbar__icons {
  display: flex;
  align-items: center;
  gap: calc(var(--dp) * 6);
}

.d-signal {
  width: calc(var(--dp) * 14);
  height: calc(var(--dp) * 11);
  background: var(--cream);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.d-battery {
  width: calc(var(--dp) * 20);
  height: calc(var(--dp) * 10);
  border-radius: calc(var(--dp) * 3);
  box-shadow: inset 0 0 0 calc(var(--dp) * 1.5) rgb(255 246 220 / 0.6);
  background: linear-gradient(90deg, var(--cream) 72%, transparent 72%) calc(var(--dp) * 3) calc(var(--dp) * 3) / calc(var(--dp) * 14) calc(var(--dp) * 4) no-repeat;
}

.d-game {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: calc(var(--dp) * 6) calc(var(--dp) * 16) 0;
}

.d-header {
  display: flex;
  align-items: center;
  gap: calc(var(--dp) * 8);
  min-height: calc(var(--dp) * 40);
}

.d-title {
  display: flex;
  align-items: center;
  gap: calc(var(--dp) * 12);
  margin-right: auto;
  font-size: calc(var(--dp) * 22);
  font-weight: 900;
}

.d-title svg {
  width: calc(var(--dp) * 24);
  height: calc(var(--dp) * 24);
}

.d-chip {
  padding: calc(var(--dp) * 4) calc(var(--dp) * 12);
  border-radius: 999px;
  background: var(--veil);
  font-size: calc(var(--dp) * 15);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.d-progress {
  display: flex;
  align-items: center;
  gap: calc(var(--dp) * 10);
  margin-top: calc(var(--dp) * 10);
}

.d-bar {
  position: relative;
  flex: 1;
  height: calc(var(--dp) * 24);
}

.d-bar::before,
.d-bar__fill {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  border-radius: 999px;
}

.d-bar::before {
  right: 0;
  background: var(--veil);
}

.d-bar__fill {
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width 0.7s var(--ease-out);
}

.d-bar__line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(var(--dp) * 4);
  margin-left: calc(var(--dp) * -2);
  border-radius: 999px;
  background: var(--green);
  transition: left 0.5s var(--ease-out);
}

.d-light {
  display: grid;
  place-items: center;
  width: calc(var(--dp) * 24);
  height: calc(var(--dp) * 24);
  border-radius: 50%;
  background: var(--veil);
  color: var(--ink);
  transition: background-color 0.3s;
}

.d-light svg {
  width: 100%;
  height: 100%;
  scale: 0;
  transition: scale 0.45s var(--ease-bounce);
}

.d-light.is-lit {
  background: var(--green);
}

.d-light.is-lit svg {
  scale: 1;
}

.d-grid {
  display: flex;
  flex: 42 1 0;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin-top: calc(var(--dp) * 12);
}

.d-columns {
  display: flex;
}

.d-word {
  display: flex;
  align-items: center;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  color: var(--cream);
}

.d-word--new {
  animation: word-pop 0.5s var(--ease-bounce);
  transform-origin: 0 50%;
}

.d-word--gold {
  color: var(--gold);
}

.d-word--missed {
  color: var(--coral);
}

.d-slot {
  flex: none;
  border-radius: 30%;
  background: var(--veil);
}

@keyframes word-pop {
  from {
    transform: scale(0.6);
  }
}

.d-tiles {
  display: flex;
  justify-content: center;
  gap: calc(var(--dp) * 6);
  margin-top: calc(var(--dp) * 12);
  padding: calc(var(--dp) * 4);
}

.d-tile {
  position: relative;
  width: calc(var(--dp) * 48);
  height: calc(var(--dp) * 48);
  border-radius: calc(var(--dp) * 11.5);
  background: var(--veil);
  overflow: hidden;
}

.d-tile:disabled {
  cursor: default;
}

.d-tile__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: calc(var(--dp) * 3.8);
  border-radius: inherit;
  background: var(--cream);
  box-shadow: inset 0 calc(var(--dp) * -3.8) 0 var(--cream-shade);
  color: var(--ink);
  font-size: calc(var(--dp) * 28);
  font-weight: 900;
  line-height: 1;
  animation: tile-pop 0.4s var(--ease-bounce);
}

@keyframes tile-pop {
  from {
    transform: scale(0.7);
  }
}

.d-statusline {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--dp) * 44);
}

.d-msg {
  max-width: 100%;
  padding: calc(var(--dp) * 5) calc(var(--dp) * 14);
  overflow: hidden;
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, currentColor 13%, transparent);
  font-size: calc(var(--dp) * 15);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  animation: msg-in 0.3s var(--ease-out);
}

.d-msg--good {
  color: var(--green);
}

.d-msg--bad {
  color: var(--coral);
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}

.d-controls {
  position: relative;
  flex: 58 1 0;
  min-height: 0;
  container-type: size;
}

.d-wheel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(80cqw, 100cqh);
  /* Clear of the corner buttons, as the app sizes it. */
  width: min(80cqw, 100cqh, 2 * hypot(50cqw - var(--dp) * 96, 50cqh - var(--dp) * 48));
  aspect-ratio: 1;
  translate: -50% -50%;
  container-type: inline-size;
}

.d-wheel::before {
  content: "";
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 203 71 / 0.28) 70%, transparent);
  pointer-events: none;
}

.d-wheel__svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.d-wedge {
  cursor: pointer;
  outline: none;
}

.d-wedge[aria-disabled="true"] {
  cursor: default;
}

.d-wedge text {
  font-size: 30px;
  font-weight: 900;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: central;
  transition: fill-opacity 0.2s;
}

.d-wedge[aria-disabled="true"] text {
  fill-opacity: 0.35;
}

.d-wedge:focus-visible .d-wedge__hit {
  stroke: var(--cream);
  stroke-width: 3;
}

.d-hub {
  position: absolute;
  left: 33%;
  top: 33%;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 calc(var(--dp) * 4) calc(var(--dp) * 12) rgb(0 0 0 / 0.4);
  color: rgb(26 32 80 / 0.55);
  font-size: 5.8cqw;
  font-weight: 900;
  letter-spacing: 0.06em;
  transition:
    scale 0.45s var(--ease-bounce),
    color 0.2s;
}

.d-hub.is-ready {
  scale: 1.08;
  color: var(--ink);
}

.d-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: calc(var(--dp) * 6);
  height: calc(var(--dp) * 44);
  padding: 0 calc(var(--dp) * 14);
  border-radius: 999px;
  font-size: calc(var(--dp) * 16);
  font-weight: 800;
  transition:
    background-color 0.2s,
    color 0.2s,
    transform 0.15s;
}

.d-pill:active:not(:disabled) {
  transform: scale(0.95);
}

.d-pill svg {
  width: calc(var(--dp) * 18);
  height: calc(var(--dp) * 18);
}

.d-pill--tonal {
  background: var(--veil);
  color: var(--cream);
}

.d-pill--quiet {
  color: var(--muted);
}

.d-pill--go {
  background: var(--green);
  color: var(--ink);
}

.d-pill--gold {
  background: var(--gold);
  color: var(--ink);
}

.d-pill:disabled {
  background: rgb(255 255 255 / 0.006);
  color: rgb(255 246 220 / 0.35);
  cursor: default;
}

.d-tl {
  left: 0;
  top: 0;
}

.d-tr {
  right: 0;
  top: 0;
}

.d-bl {
  left: 0;
  bottom: 0;
}

.d-br {
  right: 0;
  bottom: 0;
}

.d-gesture {
  flex: none;
  height: calc(var(--dp) * 26);
  display: grid;
  place-items: center;
}

.d-gesture::before {
  content: "";
  width: calc(var(--dp) * 108);
  height: calc(var(--dp) * 4);
  border-radius: 999px;
  background: rgb(255 246 220 / 0.45);
}

/* Session recap, laid over the game as the app's RecapScreen. */
.d-recap {
  position: absolute;
  inset: calc(var(--dp) * 36) 0 calc(var(--dp) * 26);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--dp) * 12) calc(var(--dp) * 16) calc(var(--dp) * 8);
  background: linear-gradient(180deg, #232b74, var(--bg));
  text-align: center;
  animation: fade-in 0.35s var(--ease-out);
}

.d-recap[hidden],
.d-scrim[hidden] {
  display: none;
}

.d-recap__session {
  color: var(--muted);
  font-size: calc(var(--dp) * 16);
  font-weight: 800;
}

.d-recap__title {
  font-size: calc(var(--dp) * 34);
  font-weight: 900;
  line-height: 1.2;
}

.d-recap__found {
  font-size: calc(var(--dp) * 16);
  font-weight: 700;
}

.d-recap .number-tiles {
  align-self: stretch;
  gap: calc(var(--dp) * 12);
  margin-top: calc(var(--dp) * 20);
}

.d-recap .number-tile {
  padding: calc(var(--dp) * 14) calc(var(--dp) * 12);
  border-radius: calc(var(--dp) * 20);
}

.d-recap .number-tile strong {
  font-size: calc(var(--dp) * 34);
}

.d-recap .number-tile span {
  font-size: calc(var(--dp) * 14);
}

.d-recap__missed {
  margin-top: calc(var(--dp) * 24);
  color: var(--muted);
  font-size: calc(var(--dp) * 16);
  font-weight: 800;
}

.d-recap__none {
  margin: auto 0;
  color: var(--green);
  font-size: calc(var(--dp) * 20);
  font-weight: 800;
}

.d-recap .d-grid {
  align-self: stretch;
  align-items: flex-start;
  margin-top: calc(var(--dp) * 8);
  flex: 1;
}

.d-recap__next {
  position: static;
  justify-content: center;
  width: 100%;
  height: calc(var(--dp) * 56);
  margin-top: calc(var(--dp) * 16);
}

/* The app's confirmation dialog. */
.d-scrim {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 0.5);
  animation: fade-in 0.2s;
}

.d-dialog {
  width: calc(var(--dp) * 300);
  padding: calc(var(--dp) * 24);
  border-radius: calc(var(--dp) * 28);
  background: var(--raised);
  box-shadow: 0 calc(var(--dp) * 20) calc(var(--dp) * 50) rgb(0 0 0 / 0.5);
  animation: dialog-in 0.3s var(--ease-out);
}

.d-dialog h3 {
  font-size: calc(var(--dp) * 24);
  letter-spacing: 0;
}

.d-dialog p {
  margin-top: calc(var(--dp) * 16);
  font-size: calc(var(--dp) * 14);
  line-height: 1.45;
}

.d-dialog__buttons {
  display: flex;
  justify-content: flex-end;
  gap: calc(var(--dp) * 8);
  margin-top: calc(var(--dp) * 24);
}

.d-dialog__buttons button {
  height: calc(var(--dp) * 40);
  padding: 0 calc(var(--dp) * 12);
  white-space: nowrap;
  border-radius: 999px;
  font-size: calc(var(--dp) * 14);
  font-weight: 800;
}

.d-dialog__stay {
  background: var(--gold);
  color: var(--ink);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  background: rgb(255 255 255 / 0.02);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 60s linear infinite;
}

.ticker span {
  display: flex;
  align-items: center;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(255 246 220 / 0.28);
}

.ticker span:nth-child(3n + 1) {
  color: var(--gold);
  -webkit-text-stroke: 0;
}

.ticker span::after {
  content: "";
  width: 12px;
  height: 12px;
  margin: 0 clamp(24px, 3vw, 44px);
  border-radius: 50%;
  background: var(--veil);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(80px, 11vw, 150px) 0 0;
}

.section__head {
  max-width: 46rem;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section h2 {
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.9rem);
}

.section__lede {
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--muted);
}

.card h3 {
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}

.card p {
  color: var(--muted);
}

/* ---------- How to play ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: none;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 28px;
}

.step__art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 150px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(80% 90% at 50% 120%, rgb(255 203 71 / 0.16), transparent 70%),
    linear-gradient(180deg, rgb(38 46 122 / 0.7), rgb(12 17 51 / 0.7));
  box-shadow: inset 0 0 0 1px var(--line);
}

.step__num,
.step h3,
.step p {
  padding-inline: 12px;
}

.step__num {
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.step h3 {
  margin: 8px 0 10px;
}

.step p {
  font-size: 0.98rem;
}

.mini-tiles {
  display: flex;
  gap: 5px;
}

.mini-tile {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding-bottom: 3px;
  border-radius: 8px;
  background: var(--cream);
  box-shadow: inset 0 -3px 0 var(--cream-shade);
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

.mini-tile--empty {
  background: var(--veil);
  box-shadow: none;
}

.mini-tiles--gold .mini-tile {
  background: var(--gold);
  box-shadow: inset 0 -3px 0 var(--gold-rim);
}

.is-in .mini-tiles--gold .mini-tile {
  animation: tile-hop 0.6s var(--ease-bounce) both;
}

.mini-tiles--gold .mini-tile:nth-child(2) { animation-delay: 0.06s; }
.mini-tiles--gold .mini-tile:nth-child(3) { animation-delay: 0.12s; }
.mini-tiles--gold .mini-tile:nth-child(4) { animation-delay: 0.18s; }
.mini-tiles--gold .mini-tile:nth-child(5) { animation-delay: 0.24s; }
.mini-tiles--gold .mini-tile:nth-child(6) { animation-delay: 0.3s; }

@keyframes tile-hop {
  0% {
    transform: translateY(14px) scale(0.6);
    opacity: 0;
  }
}

.mini-hub {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.4);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  scale: 1.08;
}

.mini-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--veil);
  font-size: 13px;
  font-weight: 800;
}

.mini-pill svg {
  width: 14px;
  height: 14px;
}

.mini-wheel {
  width: 104px;
  height: 104px;
  margin-top: 26px;
  filter: drop-shadow(0 0 22px rgb(255 203 71 / 0.35));
}

.is-in .mini-wheel--spin {
  animation: spin-hold 4s var(--ease-out) 0.4s infinite;
}

@keyframes spin-hold {
  0% {
    transform: rotate(0);
  }
  35%,
  100% {
    transform: rotate(720deg);
  }
}

.mini-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 78%;
}

.mini-bar__track {
  position: relative;
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: var(--veil);
}

.mini-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.mini-bar__line {
  position: absolute;
  left: 25%;
  top: -6px;
  bottom: -6px;
  width: 4px;
  margin-left: -2px;
  border-radius: 999px;
  background: var(--green);
}

.mini-light {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--veil);
  color: var(--ink);
}

.mini-light svg {
  width: 24px;
  height: 24px;
  scale: 0;
}

.is-in .mini-bar__fill {
  animation: bar-fill 3.6s var(--ease-out) 0.3s infinite;
}

.is-in .mini-light {
  animation: light-on 3.6s 0.3s infinite;
}

.is-in .mini-light svg {
  animation: tick-on 3.6s var(--ease-bounce) 0.3s infinite;
}

@keyframes bar-fill {
  0% {
    width: 0;
  }
  45%,
  90% {
    width: 62%;
  }
  100% {
    width: 0;
  }
}

@keyframes light-on {
  0%,
  11% {
    background: var(--veil);
  }
  12%,
  90% {
    background: var(--green);
  }
}

@keyframes tick-on {
  0%,
  11% {
    scale: 0;
  }
  20%,
  90% {
    scale: 1;
  }
  100% {
    scale: 0;
  }
}

/* ---------- Sessions & scoring ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.split h2 {
  max-width: 14ch;
}

.checks {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.checks li {
  position: relative;
  padding-left: 40px;
  color: var(--muted);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.7,12.5L10.3,16.1L17.3,8.6' fill='none' stroke='%231A2050' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.1'/%3E%3C/svg%3E")
      center / 100% no-repeat,
    var(--green);
}

.recap-card {
  justify-self: center;
  width: min(100%, 400px);
  margin: 0;
  padding: 30px 26px 26px;
  border-radius: 36px;
  background: linear-gradient(180deg, var(--bg-top), var(--bg));
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.1),
    0 50px 100px -40px rgb(0 0 0 / 0.8),
    0 0 120px -30px rgb(255 203 71 / 0.25);
  text-align: center;
  rotate: 2deg;
  transition: rotate 0.5s var(--ease-out);
}

.recap-card:hover {
  rotate: 0deg;
}

.recap-card__session {
  font-weight: 800;
  color: var(--muted);
}

.recap-card__title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--green);
}

.recap-card__found {
  font-weight: 700;
}

.number-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.number-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px;
  border-radius: 20px;
  background: var(--veil);
  text-align: center;
  line-height: 1.2;
}

.number-tile strong {
  font-size: 2.125rem;
  font-weight: 900;
  color: var(--gold);
}

.number-tile span {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
}

.recap-card__missed {
  margin-top: 24px;
  font-weight: 800;
  color: var(--muted);
}

.recap-card__words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 10px 0 24px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--coral);
}

/* ---------- Modes ---------- */

.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mode {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 34px;
}

.mode h3 {
  margin: 0 18px 12px;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
}

.mode > p {
  margin: 0 18px;
}

.mode__art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  height: 230px;
  margin-bottom: 30px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgb(38 46 122 / 0.75), rgb(12 17 51 / 0.75));
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.mode--blitz .mode__art {
  background:
    radial-gradient(70% 80% at 50% 0%, rgb(255 138 117 / 0.16), transparent 70%),
    linear-gradient(180deg, rgb(38 46 122 / 0.75), rgb(12 17 51 / 0.75));
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 14px 30px;
  align-items: center;
}

.slot-grid .w {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.slot-grid .w--gold {
  color: var(--gold);
}

/* One slot per letter, as the game's word grid shows a word still to find. */
.slot-grid .s {
  height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='13'%3E%3Crect width='13' height='13' rx='4' fill='%23fff' fill-opacity='.12'/%3E%3C/svg%3E") 0 0 / 18px 13px repeat-x;
}

.slot-grid .s3 { width: 49px; }
.slot-grid .s4 { width: 67px; }
.slot-grid .s5 { width: 85px; }
.slot-grid .s6 { width: 103px; }

.clock-chip {
  padding: 6px 26px;
  border-radius: 999px;
  background: var(--veil);
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.clock-chip.is-low {
  color: var(--coral);
}

.difficulties {
  display: flex;
  gap: 10px;
}

.difficulties .pill {
  height: 40px;
  font-size: 0.9375rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 18px 0;
}

.tags li {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--veil);
  font-size: 0.875rem;
  font-weight: 800;
}

.outcomes {
  display: grid;
  gap: 12px;
  margin: 24px 18px 0;
}

.outcomes li {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 0.98rem;
}

.outcome-dot {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 50%;
}

.outcome-dot--go {
  background: var(--green);
  box-shadow: 0 0 0 4px rgb(69 224 142 / 0.18);
}

.outcome-dot--stop {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgb(255 138 117 / 0.18);
}

/* ---------- Features ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 32px;
  overflow: hidden;
}

.feature--scoreboard {
  grid-row: span 2;
  justify-content: space-between;
  gap: 32px;
}

.feature__copy {
  display: grid;
  gap: 10px;
}

.feature .feature__stat {
  margin-bottom: 6px;
  font-size: clamp(3rem, 2.4rem + 2vw, 4.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 18px;
  background: var(--gold);
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--gold-rim);
}

.feature__icon svg {
  width: 26px;
  height: 26px;
}

.scoreboard-mock {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgb(38 46 122 / 0.8), rgb(12 17 51 / 0.8));
  box-shadow: inset 0 0 0 1px var(--line);
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--veil);
}

.tab {
  flex: 1;
  padding: 8px 0;
  border-radius: 999px;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--muted);
}

.tab--on {
  background: var(--gold);
  color: var(--ink);
}

.scoreboard-mock .number-tiles {
  margin: 0;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 18px;
  background: var(--veil);
  line-height: 1.3;
}

.score-row div {
  display: flex;
  flex-direction: column;
}

.score-row b {
  font-size: 1.0625rem;
  font-weight: 700;
}

.score-row span {
  font-size: 0.875rem;
  color: var(--muted);
}

.score-row strong {
  font-size: 1.0625rem;
  font-weight: 900;
  color: var(--gold);
  white-space: nowrap;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 56px;
  margin-bottom: 14px;
}

.eq i {
  width: 8px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--gold-rim));
  transform-origin: bottom;
  transform: scaleY(0.3);
}

.is-in .eq i {
  animation: eq 1.2s ease-in-out infinite alternate;
}

.eq i:nth-child(2) { animation-delay: -0.4s; }
.eq i:nth-child(3) { animation-delay: -0.9s; }
.eq i:nth-child(4) { animation-delay: -0.2s; }
.eq i:nth-child(5) { animation-delay: -0.7s; }
.eq i:nth-child(6) { animation-delay: -1.1s; }
.eq i:nth-child(7) { animation-delay: -0.5s; }

@keyframes eq {
  0% {
    transform: scaleY(0.25);
  }
  50% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0.5);
  }
}

/* ---------- Call to action ---------- */

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(56px, 8vw, 96px) 24px;
  overflow: hidden;
  border-radius: 40px;
  background:
    radial-gradient(60% 70% at 50% 0%, rgb(255 203 71 / 0.22), transparent 70%),
    linear-gradient(180deg, var(--bg-top), #141a4d);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.1),
    0 60px 120px -60px rgb(0 0 0 / 0.8);
  text-align: center;
}

.cta__wheel {
  width: 120px;
  height: 120px;
  margin-bottom: 28px;
  filter: drop-shadow(0 0 36px rgb(255 203 71 / 0.45));
  animation: turn 24s linear infinite;
}

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

.cta h2 {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
}

.cta__lede {
  margin: 16px 0 34px;
  font-size: 1.1875rem;
  color: var(--muted);
}

.cta__note {
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.footer {
  margin-top: clamp(80px, 10vw, 130px);
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 40px;
  align-items: start;
}

.footer__brand p {
  margin-top: 6px;
  color: var(--muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.footer__links a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--cream);
}

.footer__credits {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: rgb(155 166 219 / 0.75);
}

.footer__credits a {
  text-decoration-color: rgb(155 166 219 / 0.4);
  text-underline-offset: 3px;
}

/* ---------- Privacy policy ---------- */

.policy {
  max-width: 72ch;
  margin-inline: auto;
  padding-top: clamp(24px, 5vw, 64px);
}

.policy h1 {
  margin-bottom: 32px;
  font-size: clamp(2.25rem, 1.75rem + 3vw, 3.5rem);
  line-height: 1.15;
}

.policy h2 {
  margin: 40px 0 16px;
  font-size: 1.5rem;
  line-height: 1.3;
}

.policy p,
.policy ul {
  margin-block: 16px;
}

.policy ul {
  padding-left: 24px;
  list-style: disc;
}

.policy li + li {
  margin-top: 6px;
}

.policy a {
  color: var(--gold);
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.policy hr {
  margin-block: 32px;
  border: 0;
  border-top: 1px solid var(--line);
}

/* ---------- Not-found page ---------- */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 24px;
  text-align: center;
}

.not-found__icon {
  margin-bottom: 32px;
  border-radius: 24%;
  box-shadow:
    0 30px 60px -24px rgb(0 0 0 / 0.7),
    0 0 60px rgb(255 203 71 / 0.2);
}

.not-found h1 {
  font-size: clamp(2.75rem, 1.8rem + 4vw, 4.5rem);
}

.not-found .btn {
  margin-top: 36px;
}

/* ---------- Scroll reveal (only once JavaScript is there to undo it) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Cards lift on hover with their own transition once revealed. */
.js .card[data-reveal].is-in {
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero__grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__copy {
    text-align: center;
  }

  .hero__copy .lede,
  .hero__facts {
    margin-inline: auto;
  }

  .hero__actions,
  .hero__facts {
    justify-content: center;
  }

  .hero::before {
    right: 50%;
    top: auto;
    bottom: 0;
    translate: 50% 0;
  }

  .split__copy {
    text-align: center;
  }

  .split h2 {
    margin-inline: auto;
  }

  .checks {
    max-width: 34rem;
    margin-inline: auto;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }

  .nav nav {
    margin-left: 0;
  }

  .nav__inner {
    justify-content: space-between;
  }

  .steps,
  .modes,
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature--scoreboard {
    grid-row: auto;
  }

  .feature {
    padding: 26px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .hero__tiles {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero__facts {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
  }

  .hero__facts strong {
    font-size: 1.375rem;
  }

  .hero__facts span {
    font-size: 0.75rem;
  }

  .slot-grid {
    grid-template-columns: repeat(3, auto);
  }

  .slot-grid > :nth-child(n + 10) {
    display: none;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .hero__actions > * {
    width: 100%;
  }

  .difficulties .pill {
    padding: 0 14px;
  }

  .slot-grid {
    gap: 12px 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .ticker__track {
    animation: none;
  }
}
