/* VirtuPet site. Mobile first; the desktop layout starts at 900px. */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2D1B0E;
  --ink-2: #5C3D24;
  --ink-3: #6B4A33;
  --cream: #FFF4E1;
  --peach: #FFE9C9;
  --sand: #F3E3CC;
  --orange: #FF8A3D;
  --orange-ink: #A84A12;
  --white: #FFFFFF;
  --green-bg: #DDF5E3;
  --pink-bg: #FFE1EA;
  --teal-bg: #D3F1EE;
  --gold-bg: #FFF1C9;
  --lilac-bg: #EFE4FF;
  --line: 1.75px solid var(--ink);
  --sticker: 0 4px 0 var(--ink);
  --r: 22px;
  --r-lg: 30px;
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.2px; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--orange); }
.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange-ink);
}
.lede { font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--cream);
}
.skip:focus { top: 12px; }

/* Platform-only blocks (set by site.js on <html data-platform>) */
.only-desktop, .only-android { display: none !important; }
[data-platform="desktop"] .only-desktop { display: flex !important; }
[data-platform="android"] .only-android { display: block !important; }
[data-platform="android"] .not-android { display: none !important; }

/* ---------- Buttons ---------- */
.badge { display: inline-block; line-height: 0; border-radius: 12px; }
.badge img { width: 162px; height: 54px; }
.badge-lg img { width: 180px; height: 60px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 900; font-size: 15px; text-decoration: none; cursor: pointer;
  border: var(--line); background: var(--orange); color: var(--ink);
}
.btn:hover { color: var(--ink); filter: brightness(1.04); }
.btn-dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-dark:hover { color: var(--cream); }
.btn-sticker { box-shadow: var(--sticker); }
.btn-sticker:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: var(--wrap); margin: 0 auto; padding: 12px 14px;
}
.site-header.over-hero { position: absolute; top: 0; left: 0; right: 0; }
.brand {
  display: inline-flex; align-items: center; gap: 8px; height: 44px;
  padding: 4px 14px 4px 4px; border-radius: 999px; text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 19px; }
.over-hero .brand { padding: 0; height: 38px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
.over-hero .brand img { width: 32px; height: 32px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.over-hero .brand span { color: var(--cream); }
.nav { display: none; align-items: center; gap: 22px; font-weight: 800; font-size: 15px; }
.nav a { text-decoration: none; }
.over-hero .nav a { color: var(--cream); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-get { min-height: 38px; padding: 0 18px; }
.header-get .get-long { display: none; }

/* ---------- Home hero ---------- */
.hero { background: var(--ink); color: var(--cream); }
.hero-photo { position: relative; height: 133vw; max-height: 560px; overflow: hidden; isolation: isolate; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 96px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(45, 27, 14, 0.6) 0%, rgba(45, 27, 14, 0) 100%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 180px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(45, 27, 14, 0) 0%, var(--ink) 92%);
}
.hero-photo .slides {
  display: flex; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.hero-photo .slides::-webkit-scrollbar { display: none; }
.hero-photo .slides:focus-visible { outline-offset: -4px; }
.slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.dots {
  position: absolute; left: 50%; bottom: 76px; z-index: 2; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 999px;
  background: rgba(45, 27, 14, 0.6);
}
.dot, .dots .pause {
  position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 244, 225, 0.6);
  transition: width 0.25s ease, background 0.25s ease;
}
.dot[aria-current="true"]::before { width: 18px; background: var(--orange); }
.dots .pause svg { width: 13px; height: 13px; fill: none; stroke: var(--cream); stroke-width: 3; stroke-linecap: round; }
.dots .pause .i-play { display: none; fill: var(--cream); stroke: none; }
.dots .pause.is-paused .i-pause { display: none; }
.dots .pause.is-paused .i-play { display: block; }
.hero-copy {
  position: relative; margin-top: -64px; padding: 0 22px 38px;
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, rgba(45, 27, 14, 0) 0, var(--ink) 64px);
}
.hero h1 { font-size: clamp(40px, 11.4vw, 64px); line-height: 1; color: var(--cream); }
.hero .lede { color: var(--sand); }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.rating { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 800; color: var(--sand); }
.rating svg { width: 84px; height: 15px; }
.qr {
  align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 18px;
  background: rgba(255, 244, 225, 0.08); border: 1px solid rgba(255, 244, 225, 0.25);
  font-size: 13px; line-height: 1.3; color: var(--sand);
}
.qr img { width: 76px; height: 76px; border-radius: 10px; background: #fff; }

/* Android: waitlist instead of the badge */
.waitlist {
  padding: 16px; border-radius: var(--r); background: rgba(255, 244, 225, 0.08);
  border: 1px solid rgba(255, 244, 225, 0.25);
}
.waitlist p { font-size: 15px; color: var(--sand); margin-bottom: 10px; }
.waitlist form { display: flex; gap: 8px; flex-wrap: wrap; }
.waitlist input {
  flex: 1 1 180px; min-height: 46px; padding: 0 16px; border-radius: 999px;
  border: var(--line); background: var(--white); color: var(--ink);
}
.waitlist .note { margin: 8px 0 0; font-size: 13px; }
.light .waitlist { background: var(--white); border: var(--line); }
.light .waitlist p, .light .waitlist .note { color: var(--ink-2); }

/* ---------- Pocket world ---------- */
.pocket {
  position: relative; overflow: hidden; padding: 36px 0 40px;
  background: radial-gradient(120% 60% at 50% 42%, #FFE3BC 0%, var(--cream) 70%);
}
.pocket h2 { padding: 0 22px; font-size: clamp(36px, 9.8vw, 52px); line-height: 1; }
.pocket-inner { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "stage" "mech"; }
.pocket-inner > h2 { grid-area: title; }
.pocket-inner > .stage { grid-area: stage; }
.pocket-inner > .mechanics { grid-area: mech; }
.paw { position: absolute; width: 32px; height: 32px; fill: rgba(45, 27, 14, 0.07); pointer-events: none; }
.stage { position: relative; width: 390px; max-width: 100%; height: 548px; margin: 16px auto 0; }
.stage .glow {
  position: absolute; left: 50%; top: 90px; width: 360px; height: 360px; margin-left: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 186, 90, 0.55) 0%, rgba(255, 186, 90, 0) 68%);
}
.stage .ground {
  position: absolute; left: 50%; top: 500px; width: 350px; height: 44px; margin-left: -175px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(45, 27, 14, 0.24) 0%, rgba(45, 27, 14, 0) 70%);
}
.phone {
  position: relative; padding: 9px; border-radius: 46px; background: var(--ink);
  box-shadow: 0 30px 60px rgba(45, 27, 14, 0.3);
}
.phone .ring { padding: 2px; border-radius: 37px; background: var(--cream); }
.phone .screen { border-radius: 35px; width: 100%; height: auto; aspect-ratio: 923 / 2000; object-fit: cover; }
.phone .island {
  position: absolute; top: 19px; left: 50%; width: 66px; height: 19px; margin-left: -33px;
  border-radius: 999px; background: #08080A;
}
.stage .phone { position: absolute; left: 50%; top: 4px; width: 250px; margin-left: -125px; }
.bubble {
  position: absolute; width: 96px; height: 96px; padding: 4px; border-radius: 50%;
  background: var(--white); border: var(--line); box-shadow: 0 5px 0 var(--ink);
  animation: float 3.6s ease-in-out infinite;
}
.bubble video, .bubble img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #FCF7E2; }
.bubble.b1 { left: calc(50% - 195px); top: 56px; }
.bubble.b2 { right: calc(50% - 195px); top: 180px; animation-delay: -0.9s; }
.bubble.b3 { left: calc(50% - 195px); top: 296px; animation-delay: -1.8s; }
.bubble.b4 { right: calc(50% - 195px); top: 372px; animation-delay: -2.7s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.mechanics {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  margin: 18px auto 0; padding: 0 16px; max-width: 560px;
}
.mech {
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
  background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--sticker);
}
.mech .row { display: flex; align-items: center; gap: 8px; }
.mech .ico {
  flex: 0 0 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.mech .ico img, .mech .ico svg { width: 22px; height: 22px; }
.mech h3 { font-size: 17px; line-height: 1.1; }
.mech p { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }

/* ---------- Feature rows with app clips ---------- */
.features { padding: 44px 20px; display: flex; flex-direction: column; gap: 30px; max-width: 1000px; margin: 0 auto; }
.feature { display: flex; align-items: center; gap: 16px; }
.feature:nth-child(even) { flex-direction: row-reverse; }
.feature .phone { flex: 0 0 150px; width: 150px; padding: 5px; border-radius: 30px; box-shadow: 0 14px 28px rgba(45, 27, 14, 0.22); }
.feature .phone .ring { padding: 1.5px; border-radius: 25px; }
.feature .phone video { width: 100%; height: auto; aspect-ratio: 360 / 780; border-radius: 23.5px; object-fit: cover; background: var(--sand); }
.feature h3 { font-size: 24px; line-height: 1.08; }
.feature p { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }

/* ---------- Biomes ---------- */
.band { background: var(--peach); border-top: var(--line); border-bottom: var(--line); }
.biomes { padding: 36px 0 20px; }
.biomes .head { padding: 0 20px; display: flex; flex-direction: column; gap: 8px; max-width: var(--wrap); margin: 0 auto; }
.biomes h2, .section-title { font-size: 32px; line-height: 1.05; }
.rail {
  display: flex; gap: 10px; overflow-x: auto; padding: 16px 20px 14px; margin: 0 auto; max-width: var(--wrap);
  scroll-snap-type: x proximity; scroll-padding-inline: 20px; scrollbar-width: none; list-style: none;
}
.rail > li { flex: 0 0 92px; scroll-snap-align: start; }
.rail::-webkit-scrollbar { display: none; }
.egg {
  height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px 10px; background: var(--white); border: 1.5px solid var(--ink); border-radius: 20px;
  font-size: 13px; font-weight: 800; text-align: center; text-decoration: none;
}
.egg img { width: 56px; height: 56px; }
.egg.mythic { background: var(--ink); color: #FFD45D; }

/* ---------- Friends ---------- */
.friends { padding: 36px 20px 10px; display: flex; flex-direction: column; gap: 16px; max-width: var(--wrap); margin: 0 auto; }
.friends .photo { width: 100%; height: auto; aspect-ratio: 1000 / 665; object-fit: cover; border-radius: 24px; border: var(--line); }
.perks { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.perks b { color: var(--ink); }
.perks .ico {
  flex: 0 0 42px; height: 42px; border-radius: 14px; border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.perks svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- FAQ ---------- */
.faq { padding: 40px 20px 10px; max-width: 760px; margin: 0 auto; }
.faq h2 { margin-bottom: 4px; }
.faq details { border-bottom: 1.5px solid rgba(45, 27, 14, 0.15); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 17px; font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: 0 0 20px; width: 20px; height: 20px; transition: transform 0.2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Final CTA ---------- */
.final { padding: 34px 16px 24px; }
.cta-card {
  max-width: 920px; margin: 0 auto; padding: 24px 22px 28px; border-radius: var(--r-lg);
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.cta-card .sign {
  width: 186px; height: auto; aspect-ratio: 880 / 1168; object-fit: cover;
  border-radius: 20px; border: 2px solid var(--cream); transform: rotate(-3deg);
}
.cta-card .copy { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-card h2 { font-size: 34px; line-height: 1.04; color: var(--cream); }
.cta-card p { color: var(--sand); font-size: 16px; }
.cta-card .waitlist { text-align: left; }

/* ---------- Footer ---------- */
.site-footer { padding: 8px 20px 120px; max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: var(--ink-2); }
.site-footer .brand { padding: 0; height: auto; }
.site-footer .brand img { width: 30px; height: 30px; border-radius: 9px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.foot-nav a { font-weight: 800; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.foot-cols h2 { font-family: var(--body); font-size: 13px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 8px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-cols a { font-weight: 800; text-decoration: none; }
.lang-links { display: flex; gap: 14px; }

/* ---------- Sticky get bar ---------- */
.sticky-get {
  position: fixed; left: 10px; right: 10px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  height: 70px; padding: 0 10px; display: flex; align-items: center; gap: 10px;
  background: var(--white); border: var(--line); border-radius: var(--r);
  box-shadow: 0 6px 18px rgba(45, 27, 14, 0.18);
  transform: translateY(140%); transition: transform 0.28s ease;
}
.sticky-get.show { transform: translateY(0); }
.sticky-get img { width: 46px; height: 46px; border-radius: 12px; }
.sticky-get .t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sticky-get .t b { font-family: var(--display); font-size: 17px; }
.sticky-get .t span { font-size: 13px; color: var(--ink-3); }
.sticky-get .btn { padding: 0 24px; font-size: 16px; }

/* ---------- Dialog (Android waitlist) ---------- */
dialog.sheet {
  width: min(440px, calc(100% - 24px)); padding: 22px; border: var(--line); border-radius: 26px;
  background: var(--cream); color: var(--ink); box-shadow: 0 20px 60px rgba(45, 27, 14, 0.35);
}
dialog.sheet::backdrop { background: rgba(45, 27, 14, 0.55); }
dialog.sheet h2 { font-size: 26px; margin-bottom: 6px; }
dialog.sheet .close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }

/* ---------- Inner pages ---------- */
.crumbs { max-width: var(--wrap); margin: 0 auto; padding: 4px 20px 0; font-size: 13px; color: var(--ink-3); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.page-hero { max-width: var(--wrap); margin: 0 auto; padding: 18px 20px 26px; display: grid; gap: 18px; }
.page-hero h1 { font-size: clamp(34px, 9.4vw, 56px); line-height: 1.02; }
.page-hero .lede { max-width: 640px; }
.page-hero .meta { font-size: 13px; color: var(--ink-3); }
.page-hero .art {
  width: 100%; max-width: 420px; height: auto; aspect-ratio: 880 / 1168; object-fit: cover;
  border-radius: 26px; border: var(--line); box-shadow: var(--sticker);
}
.page-hero .art.wide { aspect-ratio: auto; }

.answer {
  max-width: 760px; margin: 0 auto 8px; padding: 18px 20px; border-radius: var(--r);
  background: var(--white); border: var(--line); box-shadow: var(--sticker);
  font-size: 18px; line-height: 1.5;
}
.answer b { color: var(--orange-ink); }

.prose { max-width: 760px; margin: 0 auto; padding: 8px 20px 24px; font-size: 17px; line-height: 1.65; font-weight: 600; color: var(--ink-2); }
.prose h2 { font-size: 28px; line-height: 1.1; color: var(--ink); margin: 34px 0 10px; }
.prose h3 { font-size: 21px; line-height: 1.15; color: var(--ink); margin: 24px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong, .prose b { color: var(--ink); font-weight: 800; }
.prose a { font-weight: 800; }
.prose blockquote { margin: 18px 0; padding: 14px 18px; border-radius: 18px; background: var(--peach); border: 1.5px solid var(--ink); color: var(--ink); }
.prose figure { margin: 22px 0; }
.prose figure img { border-radius: 22px; border: var(--line); }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.prose .sources { font-size: 14px; }

.table-wrap { overflow-x: auto; margin: 6px 0 18px; border: var(--line); border-radius: 18px; background: var(--white); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; font-weight: 700; color: var(--ink); }
.table-wrap caption { text-align: left; padding: 12px 14px 0; font-weight: 900; font-size: 14px; color: var(--orange-ink); }
.table-wrap th, .table-wrap td { padding: 10px 14px; text-align: left; white-space: nowrap; }
.table-wrap thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-3); border-bottom: 1.5px solid rgba(45, 27, 14, 0.15); }
.table-wrap tbody tr + tr td, .table-wrap tbody tr + tr th { border-top: 1px solid rgba(45, 27, 14, 0.1); }
.table-wrap tr.here td, .table-wrap tr.here th { background: var(--peach); }

/* App promo inside articles */
.app-card {
  max-width: 760px; margin: 18px auto 26px; padding: 18px; border-radius: var(--r-lg);
  background: var(--ink); color: var(--cream); display: grid; gap: 14px; grid-template-columns: 1fr;
}
.app-card .who { display: flex; align-items: center; gap: 12px; }
.app-card .who img { width: 56px; height: 56px; border-radius: 14px; }
.app-card h2, .app-card h3 { font-size: 24px; line-height: 1.1; color: var(--cream); }
.app-card p { color: var(--sand); font-size: 15px; line-height: 1.5; }
.app-card .mood { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: rgba(255, 244, 225, 0.08); }
.app-card .mood img { width: 72px; height: 72px; border-radius: 50%; background: var(--cream); }

/* Related links */
.related { max-width: var(--wrap); margin: 0 auto; padding: 10px 20px 30px; }
.related h2 { font-size: 24px; margin-bottom: 12px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; list-style: none; margin: 0; padding: 0; }
.cards a {
  display: flex; align-items: center; gap: 12px; padding: 14px; height: 100%;
  background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--sticker);
  text-decoration: none; color: var(--ink);
}
.cards a:hover { color: var(--ink); background: #FFFBF4; }
.cards img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.cards b { display: block; font-family: var(--display); font-size: 18px; line-height: 1.15; }
.cards span { display: block; font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--white); border: 1.5px solid var(--ink); font-weight: 800; font-size: 14px; text-decoration: none;
}
.chips a[aria-current="page"] { background: var(--orange); }

/* Step calculator */
.calc {
  max-width: 760px; margin: 0 auto 10px; padding: 18px; border-radius: var(--r-lg);
  background: var(--white); border: var(--line); box-shadow: var(--sticker);
}
.calc h2 { font-size: 22px; margin-bottom: 12px; }
.calc .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 900; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.6px; }
.calc input, .calc select {
  min-height: 46px; padding: 0 12px; border-radius: 14px; border: 1.5px solid var(--ink);
  background: var(--cream); font-size: 17px; font-weight: 800; text-transform: none; letter-spacing: 0;
}
.calc .units { display: flex; gap: 6px; margin: 0 0 12px; }
.calc .units button {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--white); font-weight: 900; cursor: pointer;
}
.calc .units button[aria-pressed="true"] { background: var(--orange); }
.calc output { display: block; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.results div { padding: 12px; border-radius: 16px; background: var(--peach); }
.results b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.1; }
.results span { font-size: 13px; color: var(--ink-3); }

/* Virtudex page */
.starters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 640px; margin: 0 auto; padding: 0 16px; }
.starters figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 900; }
.starters .bubble { position: relative; width: 100%; height: auto; aspect-ratio: 1; max-width: 104px; animation: none; }
.biome-block { max-width: var(--wrap); margin: 0 auto; padding: 24px 20px 6px; }
.biome-block h2 { display: flex; align-items: center; gap: 10px; font-size: 28px; }
.biome-block h2 img { width: 40px; height: 40px; }
.biome-block > p { margin: 6px 0 14px; color: var(--ink-2); }
.dex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.dex-card {
  display: flex; flex-direction: column; gap: 6px; padding: 12px; height: 100%;
  background: var(--white); border: var(--line); border-radius: var(--r);
}
.dex-card img { width: 96px; height: 96px; align-self: center; object-fit: contain; }
.dex-card h3 { font-size: 18px; line-height: 1.1; }
.dex-card .kind { font-size: 13px; color: var(--ink-3); }
.dex-card .tag { align-self: flex-start; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.tag.common { background: #E9EFE1; color: #46562F; }
.tag.rare { background: #E1ECFA; color: #1F4E87; }
.tag.epic { background: var(--lilac-bg); color: #59338F; }
.tag.mythic { background: #FFF1C9; color: #7A5A0B; }
.dex-card p { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.dex-card .how { font-size: 12.5px; font-weight: 800; color: var(--orange-ink); }
.dex-card.secret { background: var(--ink); color: var(--cream); }
.dex-card.secret img { filter: brightness(2.6) saturate(0.7) drop-shadow(0 0 14px rgba(255, 212, 93, 0.35)); }
.dex-card.secret .kind, .dex-card.secret p { color: var(--sand); }

/* Legal */
.legal { max-width: 760px; margin: 0 auto; padding: 0 20px 30px; font-size: 16px; line-height: 1.65; font-weight: 600; color: var(--ink-2); }
.legal h2 { font-size: 22px; color: var(--ink); margin: 28px 0 8px; }
.legal ul { padding-left: 22px; }
.legal strong { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubble { animation: none; }
  .sticky-get, .dot::before { transition: none; }
}

/* ---------- Tablet and up ---------- */
@media (min-width: 640px) {
  .dex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app-card { grid-template-columns: 1fr auto; align-items: center; padding: 22px 26px; }
  .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .nav { display: flex; }
  .site-header { padding: 18px 32px; }
  .site-header.over-hero { max-width: none; }

  .hero { padding: 110px 0 70px; }
  .hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
  .hero-photo { order: 2; height: auto; max-height: none; border-radius: 34px; border: 2px solid var(--cream); transform: rotate(2deg); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); }
  .hero-photo img { aspect-ratio: 880 / 1168; height: auto; }
  .hero-photo .slides, .slide { height: auto; }
  .hero-photo::before { display: none; }
  .header-get { min-height: 44px; }
  .header-get .get-long { display: inline; }
  .header-get .get-short { display: none; }
  .dots { bottom: 16px; }
  .hero-photo::after { display: none; }
  .hero-copy { order: 1; margin: 0; padding: 0; gap: 20px; background: none; }
  .hero h1 { font-size: 72px; }
  .hero .lede { font-size: 20px; max-width: 520px; }

  .pocket { padding: 80px 0; }
  .pocket-inner {
    max-width: var(--wrap); margin: 0 auto; padding: 0 32px; column-gap: 48px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
    grid-template-areas: "title stage" "mech stage";
  }
  .pocket h2 { padding: 0; font-size: 60px; align-self: end; }
  .pocket .mechanics { padding: 0; margin: 28px 0 0; max-width: none; align-self: start; }
  .stage { margin: 0 auto; transform: scale(1.08); transform-origin: top center; height: 600px; }

  .features { flex-direction: row; gap: 40px; padding: 80px 32px; }
  .feature, .feature:nth-child(even) { flex: 1; flex-direction: column; align-items: flex-start; gap: 22px; }
  .feature .phone { flex: none; width: 240px; padding: 8px; border-radius: 42px; }
  .feature .phone .ring { border-radius: 34px; }
  .feature .phone video { border-radius: 32px; }
  .feature h3 { font-size: 32px; }
  .feature p { font-size: 17px; }

  .biomes { padding: 56px 0 30px; }
  .biomes .head { padding: 0 32px; }
  .rail { padding: 18px 32px 16px; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); overflow: visible; }
  .rail > li { flex: none; }

  .friends { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 80px 32px 30px; }
  .friends .copy { display: flex; flex-direction: column; gap: 16px; }
  .biomes h2, .section-title { font-size: 44px; }

  .faq { padding: 70px 32px 20px; }
  .final { padding: 60px 32px 50px; }
  .cta-card { flex-direction: row; text-align: left; gap: 40px; padding: 36px 48px; }
  .cta-card .sign { width: 220px; flex: 0 0 220px; }
  .cta-card .copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
  .cta-card h2 { font-size: 46px; }

  .sticky-get { display: none; }
  .site-footer { padding: 20px 32px 60px; }

  .page-hero { grid-template-columns: 1.2fr 0.8fr; align-items: center; padding: 30px 32px 40px; }
  .page-hero.solo { grid-template-columns: 1fr; }
  .crumbs { padding: 6px 32px 0; }
  .dex-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related { padding: 20px 32px 50px; }
  .biome-block { padding: 34px 32px 10px; }
}

@media print {
  .site-header, .site-footer, .sticky-get, .crumbs, .app-card, .related, .faq, .no-print, dialog { display: none !important; }
  body { background: #fff; }
  .page-hero .art { display: none; }
}
