/* Family Games · landing page
   Palette shared with Piscou, Perdeu (indigo + yellow); Family Kart keeps its own
   dark/yellow look inside its card. */

:root {
  --ink: #1b1340;
  --ink-2: #2a1a63;
  --ink-3: #140e30;
  --text: #ffffff;
  --muted: #c9c2ef;
  --yellow: #ffbe0b;
  --yellow-shadow: #c48f00;
  --pink: #ff4d6d;
  --blue: #3a86ff;
  --green: #06d6a0;
  --purple: #8338ec;
  --orange: #fb5607;
  --cream: #fff7e8;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-border: rgba(255, 255, 255, 0.14);
  --kart-bg: #0e1015;
  --kart-accent: #ffd23d;
  --radius: 28px;
  --font-display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--yellow);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

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

.wrap.narrow {
  width: min(820px, 100% - 48px);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
}

.skip:focus {
  top: 16px;
}

/* ───────────────────────── Buttons, pills ───────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 15px 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 0 var(--yellow-shadow);
  transition:
    transform 0.1s,
    box-shadow 0.1s,
    filter 0.15s;
}

.button:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--yellow-shadow);
}

.button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--yellow-shadow);
}

.button.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.button.ghost:active {
  transform: translateY(2px);
}

.button.small {
  padding: 10px 20px;
  font-size: 1rem;
  box-shadow: 0 4px 0 var(--yellow-shadow);
}

.button.disabled,
.button.disabled:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
  transform: none;
  cursor: default;
  filter: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
}

.cta-row.center {
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
}

.pill-yellow {
  background: rgba(255, 190, 11, 0.14);
  color: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 11, 0.35);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  color: var(--yellow);
  margin-bottom: 12px;
}

/* ───────────────────────── Nav ───────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 19, 64, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.nav.scrolled {
  border-color: var(--panel-border);
  background: rgba(27, 19, 64, 0.88);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .brand {
    font-size: 1.2rem;
    gap: 8px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
}

.brand b {
  color: var(--yellow);
  font-weight: 700;
}

.brand img {
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.brand:hover img {
  transform: rotate(-10deg) scale(1.08);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  transition:
    color 0.15s,
    background 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-inner .button {
    margin-left: auto;
  }
}

/* ───────────────────────── Hero ───────────────────────── */

.hero {
  position: relative;
  padding: 56px 0 96px;
  background:
    radial-gradient(ellipse 60% 70% at 12% 0%, #3d2596 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 100%, #5b1f70 0%, transparent 70%),
    var(--ink);
  overflow: hidden;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 48px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  margin: 22px 0 22px;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
}

.hero h1 span {
  color: var(--yellow);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-facts {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.98rem;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* floating confetti */
.confetti i {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  opacity: 0.55;
  animation: float 9s ease-in-out infinite;
}

.confetti i:nth-child(1) { left: 6%; top: 18%; background: var(--pink); transform: rotate(20deg); }
.confetti i:nth-child(2) { left: 44%; top: 8%; background: var(--green); border-radius: 50%; animation-delay: -2s; }
.confetti i:nth-child(3) { left: 92%; top: 14%; background: var(--blue); animation-delay: -4s; }
.confetti i:nth-child(4) { left: 3%; top: 82%; background: var(--yellow); border-radius: 50%; animation-delay: -1s; }
.confetti i:nth-child(5) { left: 50%; top: 92%; background: var(--purple); animation-delay: -6s; width: 18px; height: 18px; }
.confetti i:nth-child(6) { left: 97%; top: 70%; background: var(--pink); border-radius: 50%; animation-delay: -3s; }
.confetti i:nth-child(7) { left: 36%; top: 60%; background: var(--blue); border-radius: 50%; width: 8px; height: 8px; animation-delay: -5s; }
.confetti i:nth-child(8) { left: 26%; top: 4%; background: var(--orange); width: 10px; height: 10px; animation-delay: -7s; }

@keyframes float {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 0 -18px;
    rotate: 40deg;
  }
}

/* ── The stage: a TV and two phones, sized in container units so it scales as one piece ── */

.stage {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 640px;
  justify-self: center;
}

.stage::before {
  content: "";
  display: block;
  padding-top: 86%;
}

.stage-switch {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--panel-border);
  z-index: 5;
}

.stage-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: max(13px, 2.4cqw);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}

.stage-switch button[aria-pressed="true"] {
  background: var(--yellow);
  color: var(--ink);
}

.tv {
  position: absolute;
  left: 4cqw;
  top: 10cqw;
  width: 92cqw;
}

.tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 2.2cqw;
  border: 1.6cqw solid #0b0820;
  background: #000;
  overflow: hidden;
  box-shadow:
    0 0 0 0.35cqw #2d2452,
    0 4cqw 8cqw rgba(0, 0, 0, 0.55),
    0 0 12cqw rgba(131, 56, 236, 0.35);
}

.tv-stand {
  width: 22cqw;
  height: 4.5cqw;
  margin: 0 auto;
  background: linear-gradient(#251c50, #120d2a);
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}

.tv-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0%, transparent 35%);
  pointer-events: none;
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.stage[data-scene="piscou"] .scene-piscou,
.stage[data-scene="kart"] .scene-kart {
  opacity: 1;
}

.scene-kart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-piscou {
  background:
    radial-gradient(circle at 15% -10%, #3d2596 0%, transparent 55%),
    radial-gradient(circle at 110% 110%, #5b1f70 0%, transparent 50%),
    var(--ink);
  display: grid;
  place-items: center;
}

.pp-top {
  position: absolute;
  top: 2.2cqw;
  left: 2.6cqw;
  right: 2.6cqw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6cqw;
}

.pp-logo b,
.pp-room b {
  color: var(--yellow);
}

.pp-room {
  display: none;
}

.pp-score {
  position: absolute;
  right: 2.6cqw;
  top: 2cqw;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4cqw;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2cqw;
}

.pp-score li {
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 0.4cqw 1.1cqw 0.4cqw 0.5cqw;
}

.pp-score img {
  width: 2.8cqw;
  height: 2.8cqw;
}

.pp-score b {
  color: var(--yellow);
}

.tv-card {
  width: 34cqw;
  margin-top: 4cqw;
}

/* phones */
.phone {
  position: absolute;
  border-radius: 3.6cqw;
  background: #0b0820;
  padding: 1.2cqw;
  box-shadow:
    0 0 0 0.35cqw #3a3166,
    0 3cqw 6cqw rgba(0, 0, 0, 0.55);
  transition:
    transform 0.6s cubic-bezier(0.3, 1.4, 0.5, 1),
    filter 0.6s,
    opacity 0.6s;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 2.6cqw;
  overflow: hidden;
}

.phone-piscou {
  left: 0;
  top: 40cqw;
  width: 23cqw;
  aspect-ratio: 9 / 18.5;
  transform: rotate(-7deg);
  z-index: 3;
}

.phone-piscou .phone-screen {
  background:
    radial-gradient(circle at 20% 0%, #3d2596 0%, transparent 60%),
    var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4cqw;
  padding: 2cqw 1.4cqw;
}

.pp-me {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2cqw;
}

.pp-me img {
  width: 3.4cqw;
  height: 3.4cqw;
}

.pp-me span {
  color: var(--muted);
  font-weight: 500;
  font-size: 1.7cqw;
  margin-left: 0.4cqw;
}

.phone-card {
  width: 100%;
}

.pp-hint {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6cqw;
  color: var(--yellow);
  text-align: center;
}

.phone-kart {
  right: 0;
  top: 58cqw;
  width: 42cqw;
  aspect-ratio: 18.5 / 9;
  transform: rotate(5deg);
  z-index: 4;
}

.phone-kart .phone-screen {
  background: var(--kart-bg);
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 1cqw;
  padding: 1.2cqw;
  font-family: "Exo 2", var(--font-display);
  font-style: italic;
  font-weight: 900;
}

.pad {
  display: grid;
  place-items: center;
  border-radius: 1.6cqw;
  font-size: 1.9cqw;
  letter-spacing: 0.04em;
}

.pad-brake {
  background: linear-gradient(#ff4d5e, #c22a3a);
}

.pad-gas {
  background: linear-gradient(#3ddc84, #1d9e59);
  color: #07230f;
}

.pad-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8cqw;
}

.pad-who {
  display: inline-flex;
  align-items: center;
  gap: 0.6cqw;
  font-size: 1.5cqw;
  font-style: normal;
  font-weight: 900;
  color: #f4f6fb;
}

.pad-who i {
  width: 1.4cqw;
  height: 1.4cqw;
  border-radius: 50%;
  background: var(--kart-accent);
}

.pad-wheel {
  width: 9cqw;
  color: #f4f6fb;
  animation: steer 3.2s ease-in-out infinite;
}

@keyframes steer {
  0%,
  100% {
    transform: rotate(-18deg);
  }
  50% {
    transform: rotate(22deg);
  }
}

/* the phone that belongs to the game on the TV comes forward */
.stage[data-scene="piscou"] .phone-kart,
.stage[data-scene="kart"] .phone-piscou {
  filter: saturate(0.5) brightness(0.65);
}

.stage[data-scene="piscou"] .phone-piscou {
  transform: rotate(-4deg) translateY(-1.5cqw) scale(1.04);
}

.stage[data-scene="kart"] .phone-kart {
  transform: rotate(2deg) translateY(-1.5cqw) scale(1.05);
}

/* ───────────────────────── Symbol cards (Piscou, Perdeu look) ───────────────────────── */

.sym-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    inset 0 0 0 max(2px, 0.012em) #ece7ff,
    0 14px 28px rgba(0, 0, 0, 0.4);
  user-select: none;
  -webkit-user-select: none;
}

.sym {
  position: absolute;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

.sym img {
  width: var(--size, 80%);
  height: var(--size, 80%);
  rotate: var(--rot, 0deg);
  pointer-events: none;
  -webkit-user-drag: none;
}

.sym::after {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 0 solid var(--yellow);
  opacity: 0;
}

.sym.match::after {
  animation: ring 1.8s ease-out infinite;
}

@keyframes ring {
  0% {
    opacity: 0;
    border-width: 0;
    transform: scale(0.7);
  }
  25% {
    opacity: 1;
    border-width: 4px;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    border-width: 2px;
    transform: scale(1.25);
  }
}

/* ───────────────────────── Sections ───────────────────────── */

.section {
  padding: 104px 0;
  position: relative;
}

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

.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.section-head > p:last-child:not(.eyebrow) {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--muted);
}

/* ── How it works ── */

.how {
  background: var(--ink-2);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, #34217a 0%, transparent 70%),
    var(--ink-2);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 36px 30px 32px;
}

.step-n {
  position: absolute;
  top: -18px;
  left: 30px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

.step:nth-child(1) .step-n { background: var(--pink); }
.step:nth-child(2) .step-n { background: var(--blue); color: #fff; }
.step:nth-child(3) .step-n { background: var(--green); }

.step-art {
  height: 72px;
  display: flex;
  align-items: center;
  font-size: 56px;
  line-height: 1;
  margin-bottom: 18px;
}

.qr {
  width: 60px;
  height: 60px;
  fill: #fff;
  background: transparent;
}

.qr .qr-in {
  fill: var(--ink-2);
}

.step h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

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

.how-note {
  margin: 36px auto 0;
  max-width: 720px;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Games ── */

.games {
  background: var(--ink);
}

.game {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px;
  border-radius: 36px;
  margin-bottom: 32px;
  overflow: hidden;
}

.game-copy > p:not(.status):not(.game-tagline) {
  color: var(--muted);
  margin-bottom: 26px;
}

.game-copy strong {
  color: var(--text);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.status-live {
  color: var(--green);
  background: rgba(6, 214, 160, 0.12);
}

.status-live i {
  box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.6);
  animation: live 1.8s ease-out infinite;
}

@keyframes live {
  to {
    box-shadow: 0 0 0 10px rgba(6, 214, 160, 0);
  }
}

.status-soon {
  color: var(--kart-accent);
  background: rgba(255, 210, 61, 0.12);
}

.game-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 10px 0 16px;
}

.game-facts {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.game-facts li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.3;
}

.game-facts b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
}

.checks {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
}

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

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  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.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%231b1340' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 100% no-repeat,
    var(--check, var(--yellow));
}

.checks b {
  color: var(--text);
}

/* Piscou, Perdeu card */
.game-piscou {
  background:
    radial-gradient(circle at 0% 0%, #4a2db0 0%, transparent 55%),
    radial-gradient(circle at 100% 100%, #6a2380 0%, transparent 55%),
    var(--ink-2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 30px 60px rgba(0, 0, 0, 0.3);
}

.pp-wordmark {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

.pp-wordmark span {
  color: var(--yellow);
}

.pp-art {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  width: 100%;
  justify-self: center;
}

.fan {
  position: absolute;
  width: 62%;
  transition: transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.fan-1 {
  left: 0;
  top: 4%;
  transform: rotate(-14deg);
}

.fan-2 {
  right: 0;
  top: 0;
  transform: rotate(9deg);
}

.fan-3 {
  left: 19%;
  bottom: 0;
  transform: rotate(-2deg);
  z-index: 2;
}

.pp-art:hover .fan-1 {
  transform: rotate(-20deg) translate(-4%, -2%);
}

.pp-art:hover .fan-2 {
  transform: rotate(15deg) translate(4%, -2%);
}

.pp-art:hover .fan-3 {
  transform: rotate(0deg) translateY(-3%);
}

/* Family Kart card */
.game-kart {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 210, 61, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(61, 165, 255, 0.12) 0%, transparent 50%),
    var(--kart-bg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 30px 60px rgba(0, 0, 0, 0.35);
  grid-template-columns: 1.05fr 1fr;
}

.game-kart .game-art {
  order: -1;
}

.game-kart .game-copy > p:not(.status):not(.game-tagline),
.game-kart .checks li,
.game-kart .game-facts li {
  color: #9aa3b2;
}

.game-kart .checks li::before {
  --check: var(--kart-accent);
}

.fk-wordmark {
  font-family: "Exo 2", var(--font-display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  letter-spacing: 0.01em;
}

.fk-wordmark span {
  color: var(--kart-accent);
}

.soon-note {
  color: #9aa3b2;
  font-weight: 700;
}

.fk-art {
  position: relative;
  padding-bottom: 22%;
}

.shot {
  margin: 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 24px 48px rgba(0, 0, 0, 0.5);
  background: #000;
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1460 / 812;
  object-fit: cover;
}

.shot figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(14, 16, 21, 0.82);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 800;
}

.shot-main {
  transform: rotate(-1.5deg);
}

.shot-side {
  position: absolute;
  width: 62%;
  right: -4%;
  bottom: 0;
  transform: rotate(3deg);
}

/* coming next */
.game-next {
  grid-template-columns: auto 1fr;
  gap: 28px;
  padding: 36px 40px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0;
}

.game-next h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

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

.next-icon {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.8rem;
  color: var(--ink);
  background: conic-gradient(from 45deg, var(--pink), var(--yellow), var(--green), var(--blue), var(--purple), var(--pink));
  animation: wobble 4s ease-in-out infinite;
}

@keyframes wobble {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
}

/* ── Demo ── */

.demo {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, #3d2596 0%, transparent 70%),
    var(--ink-3);
}

.demo .section-head {
  margin-bottom: 40px;
}

.demo-box {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 36px;
  padding: 28px 32px 40px;
  overflow: hidden;
}

.demo-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.demo-hud b {
  color: var(--text);
}

.demo-clock {
  font-variant-numeric: tabular-nums;
  font-size: 1.6rem;
  color: var(--yellow);
  min-width: 4.5em;
  text-align: center;
}

.demo-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 4vw, 48px);
}

.demo-slot {
  margin: 0;
  text-align: center;
}

.demo-slot figcaption {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--muted);
}

.demo-card {
  width: 100%;
  max-width: 310px;
  margin: 0 auto;
}

.demo-card.enter {
  animation: card-in 0.32s cubic-bezier(0.2, 1.5, 0.4, 1);
}

@keyframes card-in {
  from {
    transform: scale(0.6) rotate(-20deg);
    opacity: 0;
  }
}

.demo-card .sym {
  cursor: pointer;
  transition: transform 0.08s;
}

.demo-card .sym:hover {
  transform: scale(1.08);
}

.demo-card .sym:active {
  transform: scale(0.92);
}

.demo-card .sym.hit::after {
  opacity: 1;
  border: 5px solid var(--green);
  animation: none;
  transform: scale(1.05);
}

.demo-card .sym.hit {
  animation: pop 0.35s cubic-bezier(0.3, 1.8, 0.5, 1);
}

@keyframes pop {
  50% {
    transform: scale(1.3);
  }
}

.demo-board.locked .demo-card {
  filter: grayscale(0.9) brightness(0.75);
  animation: shake 0.35s;
}

.demo-board.locked .sym {
  cursor: not-allowed;
}

@keyframes shake {
  20%,
  60% {
    translate: -8px 0;
  }
  40%,
  80% {
    translate: 8px 0;
  }
}

.demo-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  background: var(--ink);
  border-radius: 999px;
  padding: 10px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  scale: 0.8;
  transition:
    opacity 0.2s,
    scale 0.2s;
  pointer-events: none;
  z-index: 3;
}

.demo-toast.show {
  opacity: 1;
  scale: 1;
}

.demo-toast.good {
  background: var(--green);
  color: #053326;
}

.demo-toast.bad {
  background: var(--pink);
  color: #fff;
}

.demo-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 14, 48, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
  transition: opacity 0.25s;
}

.demo-overlay[hidden] {
  display: none;
}

.demo-panel {
  text-align: center;
  padding: 24px;
  max-width: 460px;
}

.demo-panel[hidden] {
  display: none;
}

.demo-big {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 12px;
}

.demo-panel h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.demo-panel p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* ── Families (light section) ── */

.families {
  background: var(--cream);
  color: var(--ink);
}

.families .eyebrow {
  color: #c2410c;
}

.families .section-head > p:last-child {
  color: #5a5280;
}

.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.promise {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow:
    0 1px 0 rgba(27, 19, 64, 0.06),
    0 14px 32px rgba(27, 19, 64, 0.08);
  transition: transform 0.2s;
}

.promise:hover {
  transform: translateY(-4px);
}

.promise-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  font-size: 30px;
  margin-bottom: 18px;
}

.promise:nth-child(1) .promise-icon { background: #ffe3ea; }
.promise:nth-child(2) .promise-icon { background: #e1ecff; }
.promise:nth-child(3) .promise-icon { background: #dcfaf1; }
.promise:nth-child(4) .promise-icon { background: #fff0c7; }
.promise:nth-child(5) .promise-icon { background: #efe4ff; }
.promise:nth-child(6) .promise-icon { background: #ffe6d8; }

.promise h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.promise p {
  color: #5a5280;
}

/* ── Free ── */

.free {
  background: var(--cream);
  padding-top: 0;
}

.free-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 40px 48px;
  border-radius: 36px;
  background: linear-gradient(120deg, var(--ink) 0%, #3d2596 100%);
  color: var(--text);
  box-shadow: 0 30px 60px rgba(27, 19, 64, 0.25);
}

.free-badge {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  rotate: -8deg;
  box-shadow: 0 6px 0 var(--yellow-shadow);
}

.free-box h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin-bottom: 8px;
}

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

/* ── FAQ ── */

.faq {
  background: var(--ink);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  transition: background 0.2s;
}

.faq details[open] {
  background: rgba(255, 255, 255, 0.1);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 64px 22px 26px;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  translate: 0 -50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.4rem;
  line-height: 1;
  transition:
    rotate 0.25s,
    background 0.2s;
}

.faq details[open] summary::after {
  rotate: 45deg;
  background: var(--yellow);
  color: var(--ink);
}

.faq details p {
  padding: 0 26px 24px;
  color: var(--muted);
}

.faq details b {
  color: var(--text);
}

/* ── Footer ── */

.footer {
  background: var(--ink-3);
  padding: 56px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand p {
  color: var(--muted);
  margin-top: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: #8f86bd;
  font-size: 0.9rem;
}

/* ───────────────────────── Reveal on scroll ───────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ───────────────────────── Responsive ───────────────────────── */

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy .lead {
    margin-inline: auto;
  }

  .hero-copy .cta-row,
  .hero-facts {
    justify-content: center;
  }

  .game,
  .game-kart {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
  }

  .game-kart .game-art {
    order: 0;
  }

  .pp-art {
    max-width: 380px;
  }

  .steps,
  .promises {
    grid-template-columns: 1fr 1fr;
  }

  .free-box {
    grid-template-columns: auto 1fr;
  }

  .free-box .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .hero {
    padding: 36px 0 72px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .steps,
  .promises {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .promises {
    gap: 16px;
  }

  .game,
  .game-kart {
    padding: 28px 22px;
    border-radius: 28px;
  }

  .game-facts {
    gap: 8px;
  }

  .game-facts li {
    padding: 10px;
    font-size: 0.82rem;
  }

  .game-facts b {
    font-size: 1.15rem;
  }

  .game-next {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .demo-box {
    padding: 20px 16px 28px;
    border-radius: 28px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
  }

  /* stacked like the game's phones-only room: table card on top, yours below */
  .demo-board {
    flex: 1;
    align-content: center;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .demo-card {
    max-width: min(250px, 68vw);
  }

  .demo-slot figcaption {
    margin-top: 8px;
  }

  .demo-panel {
    padding: 16px;
  }

  .demo-big {
    font-size: 48px;
  }

  .demo-panel h3 {
    font-size: 1.6rem;
  }

  .demo-panel p {
    margin-bottom: 18px;
  }

  .demo-hud {
    font-size: 0.95rem;
  }

  .demo-clock {
    font-size: 1.3rem;
  }

  .free-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 24px;
    justify-items: center;
  }

  .free-box .button {
    justify-self: center;
  }

  .cta-row .button {
    flex: 1 1 auto;
  }

  .faq summary {
    font-size: 1.08rem;
    padding: 18px 58px 18px 20px;
  }

  .faq details p {
    padding: 0 20px 20px;
  }
}

/* ───────────────────────── Reduced motion ───────────────────────── */

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
