/*
 * EmailHandler site: "playful neo-brutalism with gamification".
 * Cream ground, ink outlines, hard offset shadows (no blur), candy accents
 * taken from the app icon. Bricolage Grotesque for display, Geist for UI,
 * Geist Mono for HUD numbers. Text colors meet WCAG AA on their grounds.
 * Scroll animations are pure CSS (scroll-driven); without support, or with
 * reduced motion, every element shows its finished state.
 */

:root {
  --ink: #1f1b2d;
  --ink-2: #4a4560;
  --cream: #fff8ef;
  --cream-2: #ffefdc;
  --paper: #ffffff;
  --orange: #ff6a3d;
  --orange-text: #b23a10;
  --sun: #ffc23d;
  --pink: #ff6fae;
  --sky: #5cc8ff;
  --mint: #3ddc97;
  --grape: #8b6cff;
  --night: #1a1626;
  --muted: #c3bcd6;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-sans: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pop: cubic-bezier(0.3, 1.6, 0.5, 1);
  --line: 2.5px solid var(--ink);

  color-scheme: light;
}

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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--orange-text);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--grape);
  outline-offset: 4px;
  border-radius: 6px;
}

[id] {
  scroll-margin-top: 90px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
}
.skip:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 1248px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
  margin: 0;
}

h2.display {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
}

.eyebrow {
  margin: 0;
  font: 700 13px/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-text);
}

.lead {
  margin: 18px 0 0;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.meta,
.mono {
  font-family: var(--font-mono);
}
.meta {
  font-size: 0.8rem;
  color: var(--ink-2);
}

.hot {
  color: var(--orange-text);
}

.section-head {
  max-width: 46rem;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head .display {
  margin-top: 14px;
}
.section-head .lead {
  margin-inline: auto;
}

/* ---------- Buttons: chunky, pressable ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 24px;
  border: var(--line);
  border-radius: 16px;
  font: 700 17px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.btn svg {
  flex: none;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(4px);
}

.btn-go,
a.btn-go,
a.btn-go:hover {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
}
.btn-ghost,
a.btn-ghost,
a.btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
}
.btn-ink,
a.btn-ink,
a.btn-ink:hover {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 5px 0 rgb(31 27 45 / 0.35);
}
.btn-go:hover,
.btn-ghost:hover {
  box-shadow: 0 7px 0 var(--ink);
}
.btn-go:active,
.btn-ghost:active {
  box-shadow: 0 1px 0 var(--ink);
}
.btn-lg {
  min-height: 60px;
  padding: 18px 28px;
  font-size: 18px;
}
.btn-sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 15px;
  box-shadow: 0 4px 0 var(--ink);
}

/* ---------- Small parts ---------- */

.chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: var(--line);
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.chip {
  padding: 9px 14px;
  font-size: 15px;
  box-shadow: 0 4px 0 var(--ink);
}
.tag {
  gap: 6px;
  padding: 4px 10px;
  border-width: 2px;
  font-size: 13px;
}
.dot {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--c, var(--ink));
}
.tag .dot {
  width: 10px;
  height: 10px;
}
.badge {
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font: 700 13px/1 var(--font-mono);
  white-space: nowrap;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 248 239 / 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.progress {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2.5px;
  height: 5px;
  background: var(--orange);
  transform-origin: left;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 800 22px/1 var(--font-display);
  letter-spacing: -0.03em;
}
.brand:hover {
  color: var(--ink);
}
.brand img {
  display: block;
  transition: transform 0.25s var(--pop);
}
.brand:hover img {
  transform: rotate(-8deg) scale(1.06);
}
.brand b,
.brand .hot {
  color: var(--orange-text);
  font-weight: inherit;
}

.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--orange-text);
}
.hdr-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* EN / IT switch */
.lang {
  display: inline-flex;
  border: var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}
.lang a {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 8px;
  color: var(--ink);
  font: 700 13px/1 var(--font-mono);
  text-decoration: none;
}
.lang a + a {
  border-left: 2px solid var(--ink);
}
.lang a:hover {
  color: var(--ink);
  background: var(--cream-2);
}
.lang a[aria-current='true'] {
  background: var(--sun);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 40px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 14px 6px 6px;
  background: var(--paper);
  border: var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 3px 0 var(--ink);
}
.pill .badge {
  background: var(--mint);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.hero h1 {
  margin-top: 26px;
  font-size: clamp(3.4rem, 8vw, 6.75rem);
}
.hero h1 span {
  display: block;
}
.squiggle {
  display: block;
  width: 300px;
  max-width: 70%;
  height: 20px;
  margin-top: 6px;
}
.hero .lead {
  margin-top: 22px;
  font-size: 1.19rem;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-checks {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 15px;
  font-weight: 600;
}
.hero-meta {
  margin: 18px 0 0;
}

/* The game stage with the mascot. */
.stage {
  position: relative;
  height: 540px;
  border: var(--line);
  border-radius: 36px;
  background-color: var(--cream-2);
  background-image: radial-gradient(rgb(31 27 45 / 0.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  box-shadow: 0 10px 0 var(--ink);
  overflow: hidden;
}
.hud {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--paper);
  border: var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--ink);
}
.hud .badge {
  flex: none;
  background: var(--sun);
  border-radius: 10px;
}
.hud-name {
  flex: none;
  font-weight: 700;
  font-size: 14px;
}
.hud-xp {
  flex: none;
  font: 700 13px/1 var(--font-mono);
}
.xp-track {
  flex: 1;
  height: 16px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}
.xp-fill {
  width: 40%;
  height: 100%;
  background: var(--orange);
  border-right: var(--line);
  transition: width 0.35s var(--pop);
}
.stage .chip {
  position: absolute;
  transform: rotate(var(--rot, 0deg));
}
.combo {
  position: absolute;
  left: 34%;
  bottom: 6%;
  z-index: 3;
  padding: 8px 14px;
  background: var(--grape);
  color: #fff;
  border: var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--ink);
  font: 800 20px/1 var(--font-display);
}
.poke {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 300px;
  margin: -140px 0 0 -150px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.poke svg {
  display: block;
  overflow: visible;
  transition: transform 0.12s ease;
}
.poke:active svg {
  transform: scale(0.94);
}
.mascot-shadow {
  position: absolute;
  left: 50%;
  top: 79%;
  width: 180px;
  height: 22px;
  margin-left: -90px;
  border-radius: 50%;
  background: rgb(31 27 45 / 0.18);
}
.eye,
.spark {
  transform-box: fill-box;
  transform-origin: center;
}
.xp-pop,
.lvup {
  position: absolute;
  left: 50%;
  z-index: 6;
  border: var(--line);
  box-shadow: 0 4px 0 var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}
.xp-pop {
  top: 14%;
  padding: 8px 14px;
  background: var(--sun);
  border-radius: 14px;
  font-size: 30px;
  line-height: 1;
  transform: translateX(-50%);
}
.lvup {
  bottom: 14%;
  padding: 10px 16px;
  background: var(--grape);
  color: #fff;
  border-radius: 14px;
  font-size: 22px;
  line-height: 1;
  transform: translateX(-50%);
}
.xp-pop.go,
.lvup.go {
  opacity: 1;
}
.poke-hint {
  margin: 18px 0 0;
  text-align: center;
  font: 500 13px/1.4 var(--font-mono);
  color: var(--ink-2);
}

/* ---------- Tag marquee ---------- */

.band {
  margin: 40px -20px 0;
  padding: 18px 0;
  background: var(--ink);
  transform: rotate(-2deg);
  overflow: hidden;
}
.band-track {
  display: flex;
  gap: 14px;
  width: max-content;
}
.band .chip {
  box-shadow: none;
  font-size: 16px;
}

/* ---------- Levels: the inbox sorts itself as you scroll ---------- */

.levels {
  position: relative;
  padding-top: 120px;
  padding-bottom: 60px;
}
.levels .section-head {
  margin-bottom: 40px;
}
.track-line {
  position: absolute;
  left: 58px;
  top: 340px;
  bottom: 120px;
  width: 6px;
  border-radius: 6px;
  background: repeating-linear-gradient(to bottom, rgb(31 27 45 / 0.25) 0 10px, transparent 10px 20px);
}
.track-fill {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: var(--ink);
  transform-origin: top;
}
.lv {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
  padding: 56px 0;
}
.lv-node {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: var(--line);
  border-radius: 22px;
  background: var(--orange);
  box-shadow: 0 5px 0 var(--ink);
  font: 800 32px/1 var(--font-display);
}
.lv h3 {
  margin-top: 12px;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
}
.lv-text p:last-child {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}
.vis {
  position: relative;
  padding: 20px;
  background: var(--paper);
  border: var(--line);
  border-radius: 28px;
  box-shadow: 0 10px 0 var(--ink);
}
.vis-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 6px 16px;
}
.mail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px;
}
.mrow > div {
  min-width: 0;
  flex: 1;
}
.mrow .tags {
  flex: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.av {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--c, var(--sun));
  font: 800 18px/1 var(--font-display);
}
.who {
  font-weight: 700;
  font-size: 15px;
}
.subj {
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot {
  border: 2px dashed rgb(31 27 45 / 0.3);
  border-radius: 18px;
}
.trash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 18px;
  font-weight: 600;
  font-size: 15px;
}
.trash-bar > span {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bin {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--orange);
  border: 2px solid var(--cream);
}
.trash-bar .btn {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
  border-color: var(--cream);
  box-shadow: 0 3px 0 var(--cream);
  pointer-events: none;
}
.boss-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 20px;
}
.boss-card .av {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-size: 34px;
  color: #fff;
}
.boss-card .display {
  font-size: 30px;
}
.hp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font: 700 13px/1 var(--font-mono);
}
.hp {
  flex: 1;
  height: 22px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}
.hp-fill {
  width: 100%;
  height: 100%;
  background: var(--pink);
  transform-origin: left;
  transform: scaleX(0);
}
.ko {
  position: absolute;
  right: 22px;
  top: 58px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--mint);
  border: var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink);
  font: 800 20px/1 var(--font-display);
  transform: rotate(-6deg);
}
.vis-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ---------- Power-ups ---------- */

.powerups {
  padding-top: 100px;
  padding-bottom: 120px;
}
.split-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.split-head > div {
  max-width: 40rem;
}
.split-head .display {
  margin-top: 14px;
}
.split-head .lead {
  margin: 0;
  max-width: 24rem;
}
.pu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pu-card {
  height: 100%;
  padding: 24px;
  background: var(--paper);
  border: var(--line);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--ink);
  transition:
    translate 0.2s var(--pop),
    rotate 0.2s,
    box-shadow 0.2s;
}
.pu-card:hover {
  translate: 0 -6px;
  rotate: -1.2deg;
  box-shadow: 0 12px 0 var(--ink);
}
.pu-card.gold {
  background: var(--sun);
}
.pu-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: var(--line);
  border-radius: 16px;
  background: var(--c);
  box-shadow: 0 3px 0 var(--ink);
}
.rar {
  padding: 4px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--c);
  font: 700 11px/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pu-card h3 {
  margin: 18px 0 8px;
  font: 800 22px/1.1 var(--font-display);
  letter-spacing: -0.02em;
}
.pu-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.pu-card.gold p {
  color: var(--ink);
}

/* ---------- Privacy (night) ---------- */

.night {
  background: var(--night);
  color: var(--cream);
}
.night a {
  color: var(--sun);
}
.night a:hover {
  color: #fff;
}
.night .eyebrow {
  color: var(--sun);
}
.night .lead {
  color: var(--muted);
}
.privacy {
  padding: 120px 0;
}
.privacy .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.privacy h2 {
  margin-top: 14px;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.chk-i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  background: var(--mint);
  border: 2px solid var(--cream);
}
.flow {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.flow-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.nbox {
  padding: 16px 18px;
  border: 2.5px solid var(--cream);
  border-radius: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 17px;
}
.nbox small {
  display: block;
  margin-top: 4px;
  font: 400 12px/1.3 var(--font-mono);
  color: var(--muted);
}
.wire {
  width: 5px;
  height: 56px;
  margin: 0 auto;
  background: repeating-linear-gradient(to bottom, var(--cream) 0 9px, transparent 9px 18px);
  background-size: 5px 18px;
}
.me {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px;
  background: var(--orange);
  color: var(--ink);
  border: 2.5px solid var(--cream);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--cream);
}
.me .display {
  font-size: 28px;
}
.cut {
  position: relative;
  height: 70px;
}
.cut .wire {
  height: 70px;
  opacity: 0.35;
}
.cut span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: var(--pink);
  border: 2.5px solid var(--cream);
}
.ghost {
  position: relative;
  padding: 18px;
  border: 2.5px dashed rgb(255 248 239 / 0.4);
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
}
.ghost s {
  font-weight: 700;
  font-size: 17px;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--pink);
}
.ghost .badge {
  position: absolute;
  right: -12px;
  top: -16px;
  transform: rotate(6deg);
  background: var(--sun);
  color: var(--ink);
  border-radius: 10px;
  font-size: 12px;
}

/* ---------- Download ---------- */

.download {
  padding-top: 120px;
  padding-bottom: 100px;
}
.phone-note {
  margin: 0 auto 28px;
  max-width: 40rem;
  padding: 16px 20px;
  background: var(--paper);
  border: var(--line);
  border-radius: 18px;
  text-align: center;
}
.pf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.pf {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 150px;
  padding: 22px;
  background: var(--paper);
  border: var(--line);
  border-radius: 24px;
  box-shadow: 0 5px 0 var(--ink);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.15s var(--pop),
    box-shadow 0.15s,
    background 0.2s;
}
.pf:hover {
  transform: translateY(-2px);
}
.pf[aria-pressed='true'] {
  background: var(--sun);
  box-shadow: 0 9px 0 var(--ink);
  transform: translateY(-4px);
}
.pf strong {
  margin-top: 8px;
  font-size: 18px;
}
.pf span {
  font-size: 14px;
  color: var(--ink-2);
}
.pf .sel {
  display: none;
  position: absolute;
  top: -13px;
  right: 16px;
  padding: 5px 10px;
  background: var(--ink);
  color: var(--sun);
  border-radius: 999px;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pf[aria-pressed='true'] .sel {
  display: block;
}
.pf .mine {
  display: none;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-text);
}
.pf.is-mine .mine {
  display: block;
}

.start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  margin-top: 34px;
  background: var(--paper);
  border: var(--line);
  border-radius: 28px;
  box-shadow: 0 10px 0 var(--ink);
  overflow: hidden;
}
.start-go {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 36px;
  background: var(--ink);
  color: var(--cream);
}
.start-go .eyebrow {
  color: var(--sun);
}
.start-go .display {
  font-size: 34px;
  line-height: 1.05;
}
.start-go .btn {
  align-self: flex-start;
  border-color: var(--cream);
  box-shadow: 0 5px 0 var(--cream);
}
.start-go .meta {
  color: var(--muted);
}
.quests {
  padding: 36px;
}
.quests .eyebrow {
  margin-bottom: 18px;
}
.quests ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: quest;
}
.quests li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  counter-increment: quest;
}
.quests li::before {
  content: counter(quest);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--sun);
  font: 800 15px/1 var(--font-display);
}
.quests code {
  font: 500 0.85em var(--font-mono);
  background: var(--cream-2);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}
.quests > p {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}
.alt-links {
  margin: 26px auto 0;
  max-width: 52rem;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
.beta {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 36px;
  padding: 24px;
  background: var(--sun);
  border: var(--line);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--ink);
}
.beta .tile {
  --c: var(--paper);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: none;
  flex: none;
}
.beta h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
}
.beta p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
}
.beta a {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 56px;
  padding-top: 60px;
  padding-bottom: 120px;
}
.faq h2 {
  margin-top: 14px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq details {
  padding: 0 22px;
  background: var(--paper);
  border: var(--line);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--ink);
}
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.plus {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--sun);
  transition: transform 0.25s var(--pop);
}
.faq details[open] .plus {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 20px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ---------- Final call ---------- */

.final {
  padding-bottom: 120px;
}
.cta {
  position: relative;
  overflow: hidden;
  padding: 40px 32px 44px;
  background: var(--orange);
  border: var(--line);
  border-radius: 40px;
  box-shadow: 0 10px 0 var(--ink);
  text-align: center;
}
.cta-in {
  position: relative;
}
.cta img {
  display: block;
  margin: 0 auto;
}
.cta .eyebrow {
  margin-top: 14px;
  color: var(--ink);
}
.cta h2.display {
  margin: 10px auto 0;
  max-width: 900px;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
}
.cta p {
  margin: 12px auto 0;
  max-width: 520px;
  font-size: 17px;
  font-weight: 500;
}
.cta .btn {
  margin-top: 22px;
}
.conf {
  position: absolute;
  top: -40px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--c);
}
.conf.round {
  border-radius: 50%;
}
.conf.long {
  width: 12px;
  height: 22px;
}

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

.site-footer {
  padding: 48px 0;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer .brand {
  color: var(--cream);
}
.site-footer .brand .hot {
  color: var(--orange);
}
.site-footer p,
.site-footer small {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Download toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(560px, calc(100% - 32px));
  padding: 14px 18px;
  background: var(--paper);
  border: var(--line);
  border-radius: 20px;
  box-shadow: 0 6px 0 var(--ink);
  transform: translate(-50%, 160%);
  opacity: 0;
  transition:
    transform 0.35s var(--pop),
    opacity 0.2s;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.toast p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}
.toast img {
  flex: none;
}

/* ---------- Text pages (README, privacy, terms) ---------- */

.doc {
  max-width: 52rem;
  margin-inline: auto;
  padding: 56px 24px 110px;
}
.doc > h1 {
  margin: 0;
  font: 800 clamp(2.6rem, 9vw, 4rem) / 0.95 var(--font-display);
  letter-spacing: -0.035em;
}
.doc > .meta {
  margin: 12px 0 0;
}
.card {
  margin-top: 22px;
  padding: 24px;
  background: var(--paper);
  border: var(--line);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--ink);
}
.card h2,
.readme h2 {
  margin: 0 0 10px;
  font: 800 1.5rem/1.15 var(--font-display);
  letter-spacing: -0.02em;
}
.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}
.card li {
  margin-bottom: 6px;
}
.doc code {
  font: 500 0.85em var(--font-mono);
  background: var(--cream-2);
  border: 1.5px solid rgb(31 27 45 / 0.2);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}
.readme img {
  max-width: 100%;
  height: auto;
}
.readme h2 {
  margin-top: 2.4rem;
}
.readme table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--paper);
  border: var(--line);
  border-radius: 18px;
}
.readme th,
.readme td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1.5px solid rgb(31 27 45 / 0.12);
}
.readme pre {
  overflow-x: auto;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 16px;
  font-size: 0.85rem;
}
.readme pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}
.readme hr {
  margin: 2rem 0;
  border: 0;
  border-top: var(--line);
}
.readme blockquote {
  margin: 1rem 0;
  padding: 12px 16px;
  background: var(--sun);
  border: var(--line);
  border-radius: 16px;
}

/* ---------- Motion ---------- */

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}
@keyframes blink {
  0%, 93%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.1); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes squash {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.78); }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@keyframes xp-pop {
  0% { opacity: 0; transform: translate(-50%, 16px) scale(0.5); }
  18% { opacity: 1; transform: translate(-50%, -6px) scale(1.15); }
  30% { transform: translate(-50%, -12px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -80px) scale(1); }
}
@keyframes lvup {
  0% { opacity: 0; transform: translateX(-50%) scale(0.3) rotate(-10deg); }
  25% { opacity: 1; transform: translateX(-50%) scale(1.15) rotate(3deg); }
  40% { transform: translateX(-50%) scale(1) rotate(0); }
  85% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
}
@keyframes combo {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(-3deg) scale(1.08); }
}
@keyframes flow {
  to { background-position: 0 18px; }
}
@keyframes fall {
  to { transform: translateY(560px) rotate(600deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* Scroll-driven keyframes */
@keyframes sr-rise {
  from { opacity: 0; transform: translateY(60px) scale(0.96); }
}
@keyframes sr-pop {
  from { opacity: 0; transform: translateY(60px) scale(0.82) rotate(-5deg); }
}
@keyframes untangle {
  from { transform: translate(var(--tx), var(--ty)) rotate(var(--r)); }
}
@keyframes stamp {
  0% { opacity: 0; transform: scale(2.8) rotate(-14deg); }
  60% { opacity: 1; transform: scale(0.9) rotate(3deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes to-trash {
  to { transform: translate(115%, 24px) rotate(16deg) scale(0.5); opacity: 0; }
}
@keyframes wiggle {
  0%, 100% { transform: none; }
  25% { transform: rotate(-7deg) scale(1.06); }
  75% { transform: rotate(7deg) scale(1.06); }
}
@keyframes hp {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
@keyframes shake {
  0%, 100% { transform: none; }
  15% { transform: translateX(-8px) rotate(-1.5deg); }
  30% { transform: translateX(8px) rotate(1.5deg); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(6px); }
  80% { transform: translateX(-3px); }
}
@keyframes grow-y {
  from { transform: scaleY(0); }
}
@keyframes grow-x {
  from { transform: scaleX(0); }
}
@keyframes node-on {
  from { background: #fff; transform: scale(0.8) rotate(-8deg); }
}
@keyframes parallax {
  to { transform: translateY(-90px); }
}
@keyframes zoom {
  from { opacity: 0; transform: scale(0.82) rotate(-2deg); }
}

@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 4.5s ease-in-out infinite; }
  .stage .chip { animation: bob 3.6s ease-in-out infinite; }
  .eye { animation: blink 4.2s infinite; }
  .spark { animation: spin 9s linear infinite; }
  .mascot-shadow { animation: squash 4.5s ease-in-out infinite; }
  .band-track { animation: marquee 38s linear infinite; }
  .band:hover .band-track { animation-play-state: paused; }
  .xp-pop.go { animation: xp-pop 1.1s ease-out forwards; }
  .lvup.go { animation: lvup 2.2s ease-out forwards; }
  .in { animation: rise 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; animation-delay: calc(var(--d, 0) * 90ms); }
  .combo { animation: combo 1.6s ease-in-out infinite; }
  .wire { animation: flow 0.9s linear infinite; }
  .conf { animation: fall linear infinite; }
  .pulse { animation: pulse 1.8s ease-in-out infinite; }

  @supports (animation-timeline: view()) {
    .progress { display: block; animation: grow-x linear both; animation-timeline: scroll(root); }
    .parallax { animation: parallax linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
    .sr { animation: sr-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .pu { animation: sr-pop linear both; animation-timeline: view(); animation-range: entry calc(var(--i) * 7%) cover calc(24% + var(--i) * 4%); }
    .zoom { animation: zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .levels { view-timeline: --levels block; }
    .track-fill { animation: grow-y linear both; animation-timeline: --levels; animation-range: entry 40% exit 40%; }
    .lv { view-timeline: --lv block; }
    .lv-node { animation: node-on linear both; animation-timeline: --lv; animation-range: cover 25% cover 40%; }
    .l1 .mess { animation: untangle linear both; animation-timeline: --lv; animation-range: cover 15% cover 48%; }
    .l2 .stamp { animation: stamp linear both; animation-timeline: --lv; animation-range: cover calc(20% + var(--i) * 6%) cover calc(30% + var(--i) * 6%); }
    .l3 .junk { animation: to-trash linear both; animation-timeline: --lv; animation-range: cover 30% cover 50%; }
    .l3 .bin { animation: wiggle linear both; animation-timeline: --lv; animation-range: cover 44% cover 56%; }
    .l4 .hp-fill { animation: hp linear both; animation-timeline: --lv; animation-range: cover 22% cover 48%; }
    .l4 .boss { animation: shake linear both; animation-timeline: --lv; animation-range: cover 22% cover 48%; }
    .l4 .ko { animation: stamp linear both; animation-timeline: --lv; animation-range: cover 47% cover 56%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .pf, .pu-card, .toast, .plus { transition: none; }
}

/* ---------- Tablets and phones ---------- */

@media (max-width: 960px) {
  .hero,
  .privacy .container,
  .faq,
  .start {
    grid-template-columns: minmax(0, 1fr);
  }
  .pu-grid,
  .pf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lv {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 20px;
    padding: 40px 0;
  }
  .lv .vis {
    grid-column: 1 / -1;
  }
  .lv-node {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 24px;
  }
  .track-line {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header .container {
    gap: 10px;
  }
  .brand {
    font-size: 19px;
  }
  .hdr-end .btn-sm .label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .hdr-end .btn-sm {
    padding: 10px 12px;
  }
}

@media (max-width: 560px) {
  .pu-grid,
  .pf-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-top: 48px;
  }
  .stage {
    height: 440px;
  }
  .poke {
    width: 230px;
    margin: -110px 0 0 -115px;
  }
  .stage .chip {
    font-size: 13px;
    padding: 7px 11px;
  }
  .hide-sm,
  .combo {
    display: none;
  }
  .hero-actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .ko {
    top: 50px;
    right: 12px;
    font-size: 16px;
  }
  .start-go,
  .quests {
    padding: 26px;
  }
  .cta {
    padding: 32px 20px 36px;
  }
}
