/*
 * Move (motion party game for Apple TV and Mac): the game's "Candy Pop" look, shared by /move/, its support
 * page and its privacy policy. Light only: plum text on a bubblegum-pink, polka-dot background, with pastel
 * cards in thick white "sticker" outlines. No web fonts: Safari gets the rounded system font, other browsers
 * Arial Rounded for headings where it's installed, then their own system font.
 */
:root {
  color-scheme: light;
  --bubblegum: #ff5da2;
  --sky: #4fd6ff;
  --lemon: #ffd140;
  --mint: #7df29c;
  --grape: #b58cff;
  --plum: #8a0f4f;
  --pink: #ffb3d9;
  --paper: #fff8fc;
  --bubblegum-soft: #ffe2ef;
  --sky-soft: #e2f8ff;
  --lemon-soft: #fff4cf;
  --mint-soft: #e0fbe9;
  --grape-soft: #efe6ff;
  --lift: 0 6px 0 rgba(138, 15, 79, .13), 0 18px 40px rgba(138, 15, 79, .15);
  --lift-small: 0 4px 0 rgba(138, 15, 79, .14);
  /* White sticker outline around heavy text. */
  --outline: 3px 0 #fff, -3px 0 #fff, 0 3px #fff, 0 -3px #fff, 2px 2px #fff, -2px 2px #fff, 2px -2px #fff, -2px -2px #fff;
  --outline-thick:
    6px 0 #fff, 5.5px 2.3px #fff, 4.2px 4.2px #fff, 2.3px 5.5px #fff, 0 6px #fff, -2.3px 5.5px #fff,
    -4.2px 4.2px #fff, -5.5px 2.3px #fff, -6px 0 #fff, -5.5px -2.3px #fff, -4.2px -4.2px #fff,
    -2.3px -5.5px #fff, 0 -6px #fff, 2.3px -5.5px #fff, 4.2px -4.2px #fff, 5.5px -2.3px #fff;
  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--plum);
  background-color: var(--pink);
  /* Sprinkles over white polka dots, as on the game's buddy screen. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cg fill-opacity='.85'%3E%3Crect x='29' y='56' width='22' height='8' rx='4' fill='%234fd6ff' transform='rotate(-32 40 60)'/%3E%3Crect x='239' y='31' width='22' height='8' rx='4' fill='%23ffd140' transform='rotate(25 250 35)'/%3E%3Crect x='349' y='136' width='22' height='8' rx='4' fill='%237df29c' transform='rotate(-60 360 140)'/%3E%3Crect x='139' y='166' width='22' height='8' rx='4' fill='%23b58cff' transform='rotate(40 150 170)'/%3E%3Crect x='59' y='296' width='22' height='8' rx='4' fill='%23ff5da2' transform='rotate(-15 70 300)'/%3E%3Crect x='289' y='316' width='22' height='8' rx='4' fill='%234fd6ff' transform='rotate(70 300 320)'/%3E%3Crect x='189' y='381' width='22' height='8' rx='4' fill='%23ffd140' transform='rotate(-45 200 385)'/%3E%3Crect x='369' y='256' width='22' height='8' rx='4' fill='%23ff5da2' transform='rotate(15 380 260)'/%3E%3Crect x='19' y='186' width='22' height='8' rx='4' fill='%237df29c' transform='rotate(55 30 190)'/%3E%3Crect x='169' y='76' width='22' height='8' rx='4' fill='%23b58cff' transform='rotate(-20 180 80)'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle, rgba(255, 255, 255, .5) 0 4px, transparent 4.6px),
    radial-gradient(circle, rgba(255, 255, 255, .5) 0 4px, transparent 4.6px);
  background-size: 420px 420px, 40px 40px, 40px 40px;
  background-position: 0 0, 0 0, 20px 20px;
}

main {
  flex: 1 0 auto;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.12;
}

img { max-width: 100%; }

/* Keeps "Wi-Fi" and "2–3 m (7–10 ft)" on one line. */
.nw { white-space: nowrap; }

a {
  color: var(--plum);
  font-weight: 800;
  text-decoration-line: underline;
  text-decoration-color: var(--bubblegum);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: var(--plum); }

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

.button {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 12px 20px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-family: var(--display);
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--lift-small);
  transition: transform .15s ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); }

/* Cards: pastel stickers with a thick white outline. */
.card {
  position: relative;
  padding: 24px;
  border: 6px solid #fff;
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--lift);
}

.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

/* ---------- Landing page ---------- */

.hero { text-align: center; }

.pill-brand {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: var(--lift-small);
}

.logo {
  margin: 8px 0 0;
  font-size: clamp(96px, 24vw, 184px);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--bubblegum);
  text-shadow: var(--outline-thick), 0 13px 0 rgba(138, 15, 79, .22);
}

.tagline {
  display: inline-block;
  margin: 18px 0 0;
  padding: 10px 20px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: var(--lemon);
  font-family: var(--display);
  font-size: clamp(18px, 3.4vw, 24px);
  font-weight: 900;
  line-height: 1.2;
  transform: rotate(-1.5deg);
  box-shadow: var(--lift-small);
}

.hero .lead {
  max-width: 660px;
  margin: 24px auto 0;
  font-size: clamp(17px, 2.3vw, 20px);
  font-weight: 600;
  line-height: 1.55;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.stores.left { justify-content: flex-start; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  padding: 12px 22px 14px;
  border: 5px solid #fff;
  border-radius: 22px;
  background: var(--plum);
  color: #fff;
  line-height: 1.15;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(138, 15, 79, .22), 0 14px 30px rgba(138, 15, 79, .2);
  transition: transform .15s ease;
}

.store svg { display: block; flex: none; width: 34px; height: 34px; }
.store-text { display: flex; flex-direction: column; }
.store small { font-size: 13px; font-weight: 700; }
.store strong { font-family: var(--display); font-size: 24px; font-weight: 900; }
.store[aria-disabled="true"] { cursor: default; border-style: dashed; opacity: .85; }
.store.live:hover, .store.live:focus-visible { transform: translateY(-3px) rotate(-1deg); }

.free-note {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
}

.from-tv {
  max-width: 620px;
  margin: 26px auto 0;
  padding: 14px 18px;
  border: 4px dashed #fff;
  border-radius: 22px;
  background: var(--lemon-soft);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.from-tv strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
}

.from-tv strong span { margin-right: 6px; }

/* The big screenshot, in a TV. */
.tv { margin: 48px auto 0; max-width: 940px; }

.tv .screen {
  padding: 10px;
  border: 6px solid #fff;
  border-radius: 30px;
  background: #3a1230;
  box-shadow: var(--lift);
}

.tv img { display: block; width: 100%; height: auto; border-radius: 18px; }

.tv .stand {
  display: block;
  width: 30%;
  height: 14px;
  margin: 0 auto;
  border-radius: 0 0 14px 14px;
  background: #fff;
  box-shadow: var(--lift-small);
}

.tv figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.block { margin-top: 72px; }

.trailer {
  display: block;
  width: 100%;
  max-width: 940px;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border: 6px solid #fff;
  border-radius: 30px;
  background: #3a1230;
  box-shadow: var(--lift);
}

.trailer-note {
  max-width: 940px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.title {
  margin: 0 0 26px;
  text-align: center;
  font-size: clamp(30px, 5.4vw, 44px);
  text-shadow: var(--outline), 0 7px 0 rgba(138, 15, 79, .14);
}

/* How it works: three numbered stickers. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 30px 0 0;
  list-style: none;
  counter-reset: step;
}

.steps li { counter-increment: step; padding-top: 42px; text-align: center; }

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -32px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--mint);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--lift-small);
  transform: rotate(-6deg);
}

.steps li:nth-child(2)::before { background: var(--sky); transform: rotate(5deg); }
.steps li:nth-child(3)::before { background: var(--lemon); }
.steps h3 { margin-bottom: 6px; font-size: 21px; }
.steps p { margin: 0; }

.note {
  max-width: 780px;
  margin: 24px auto 0;
  background: var(--grape-soft);
  text-align: center;
}

/* The four games. */
.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.game h3 { margin: 2px 0 8px; font-size: 26px; }
.game p { margin: 0; }

.badge {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 14px;
  border: 5px solid #fff;
  border-radius: 22px;
  font-size: 32px;
  line-height: 1;
  box-shadow: var(--lift-small);
  transform: rotate(-6deg);
}

.dance { background: var(--bubblegum-soft); }
.dance .badge { background: var(--bubblegum); }
.tennis { background: var(--sky-soft); }
.tennis .badge { background: var(--sky); transform: rotate(5deg); }
.bowling { background: var(--lemon-soft); }
.bowling .badge { background: var(--lemon); }
.boxing { background: var(--grape-soft); }
.boxing .badge { background: var(--grape); transform: rotate(4deg); }

/* Buddies: text next to the screenshot. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 30px;
  align-items: center;
}

.buddy-card { background: var(--mint-soft); }
.buddy-card h2 { margin-bottom: 10px; font-size: clamp(28px, 4.4vw, 38px); }

.shot {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid #fff;
  border-radius: 30px;
  box-shadow: var(--lift);
  transform: rotate(1.5deg);
}

.ticks { margin: 16px 0 0; padding: 0; list-style: none; }

.ticks li {
  position: relative;
  margin-top: 10px;
  padding-left: 40px;
  font-weight: 700;
}

.ticks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--mint);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--lift-small);
}

/* Price and what you need, side by side. */
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.pair h2 { margin-bottom: 8px; font-size: clamp(26px, 4vw, 34px); }
.price { background: var(--lemon-soft); }
.need { background: var(--sky-soft); }
.need ul { margin: 10px 0 0; padding-left: 22px; }
.need li + li { margin-top: 6px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 14px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--mint);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--lift-small);
}

.privacy-line {
  max-width: 880px;
  margin: 56px auto 0;
  background: #fff;
  text-align: center;
  font-weight: 600;
}

/* ---------- Support and privacy pages ---------- */

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(800px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 18px;
}

.mini-logo {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  color: var(--bubblegum);
  text-decoration: none;
  text-shadow: var(--outline), 0 5px 0 rgba(138, 15, 79, .2);
}

.bar nav { display: flex; flex-wrap: wrap; gap: 8px; }

.bar nav a, .toc a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--lift-small);
}

.bar nav a[aria-current="page"] { background: var(--plum); color: #fff; }

main.doc { width: min(800px, calc(100% - 32px)); padding-top: 30px; }

.brand {
  display: inline-block;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: var(--lift-small);
}

.doc h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 6.6vw, 54px);
  line-height: 1.05;
  text-shadow: var(--outline), 0 7px 0 rgba(138, 15, 79, .14);
}

.doc .lead { max-width: 680px; margin: 0; font-size: 19px; font-weight: 600; line-height: 1.55; }
.updated { margin: 14px 0 0; font-size: 15px; font-weight: 700; }
.doc section { margin-top: 20px; scroll-margin-top: 16px; }
.doc h2 { margin: 0 0 10px; font-size: 23px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc section li + li { margin-top: 6px; }
.doc .short { margin-top: 28px; background: var(--mint-soft); }
.doc .help { background: var(--lemon-soft); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; padding: 0; list-style: none; }

/* ---------- Footer: green hills, like the game ---------- */

.site-footer {
  position: relative;
  margin-top: 40px;
  padding: 26px 16px 32px;
  background: var(--mint);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -23px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 14C20 4 40 4 60 14S100 24 120 14V24H0Z' fill='%237df29c'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 24px;
}

.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.site-footer p { margin: 10px 0 0; }
.site-footer .tm { font-size: 12px; font-weight: 600; }

/* ---------- Sizes ---------- */

@media (min-width: 1000px) {
  .games { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .game h3 { font-size: 22px; }
}

@media (max-width: 820px) {
  .steps, .split, .pair { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 50px; }
  .shot { transform: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  main { padding-top: 28px; }
  .block { margin-top: 56px; }
  .games { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 20px; border-width: 5px; border-radius: 24px; }
  .trailer { border-width: 5px; border-radius: 24px; }
  .store { width: 100%; justify-content: center; }
  .tv .screen { padding: 6px; border-width: 5px; border-radius: 22px; }
  .tv img { border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
