/*
 * playrankit.com, hand-written. Colours, gradients and shadows come from the
 * app (client/src/ui/tokens.ts); the look follows direction A of
 * docs/superpowers/specs/2026-11-20-maquettes-site/. Phone width first, one
 * break at 900px. Nothing is loaded from another domain.
 */

/* Fonts: Baloo 2 and Nunito, SIL Open Font License (fonts/OFL.txt), latin subset. */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/baloo-2-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/nunito-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2");
}

:root {
  /* Colours (tokens.ts › colors) */
  --ground: #F6922A;
  --ink: #132A4A;
  --ink-deep: #0B1C35;
  --ink-muted: #5A4A3A;
  --cream: #FFF4DF;
  --cream-light: #FFF9EE;
  --cream-deep: #FBE6C2;
  --white: #FFFFFF;
  --sun: #FFD43B;
  --sun-deep: #F6B10C;
  --sun-edge: #D98E04;
  --red: #E9543A;
  --red-text: #B43B25;
  --teal: #2BB7C0;
  --gold: #F6B139;
  --plum: #7C5CC4;
  --caramel: #7A4A12;
  --track: #EED9B4;

  /* Gradients (tokens.ts › gradients) */
  --gradient-ground: radial-gradient(120% 55% at 50% 22%, #FFC766 0%, rgba(255, 199, 102, 0) 70%),
    radial-gradient(90% 40% at 50% 100%, #FFB347 0%, rgba(255, 179, 71, 0) 80%),
    linear-gradient(180deg, #FBA43A 0%, #F6922A 45%, #F5A23A 100%);
  --gradient-surface: linear-gradient(180deg, #FFF9EE 0%, #FFF4DF 55%, #FBE6C2 100%);
  --gradient-sun: linear-gradient(180deg, #FFF07A 0%, #FFD93B 38%, #FFC61A 70%, #F6B10C 100%);
  --gradient-plus: linear-gradient(180deg, #7C5CC4 0%, #6E45C9 100%);

  /* Shadows (tokens.ts › elevation) */
  --shadow-card: 0 10px 22px -8px rgba(130, 55, 0, 0.5), 0 2px 4px rgba(130, 55, 0, 0.18), inset 0 -3px 0 rgba(222, 160, 80, 0.28);
  --shadow-button: inset 0 -4px 0 rgba(200, 120, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 5px 0 #D98E04, 0 14px 22px -6px rgba(140, 60, 0, 0.55);
  --shadow-button-pressed: inset 0 -2px 0 rgba(200, 120, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 2px 0 #D98E04, 0 6px 10px -4px rgba(140, 60, 0, 0.55);
  --shadow-quiet: 0 6px 14px -6px rgba(130, 55, 0, 0.5), inset 0 -2px 0 rgba(222, 160, 80, 0.3);

  /* Radii and spacing (tokens.ts › radius, space) */
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 18px;
  --radius-xl: 22px;
  --radius-pill: 999px;
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 12px;
  --space-l: 16px;
  --space-xl: 20px;
  --space-xxl: 28px;

  --font-display: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page-width: 1080px;
  --text-width: 720px;
}

/* Base */
*,
*::before,
*::after {
  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;
  color: var(--ink);
  background-color: var(--ground);
  background-image: var(--gradient-ground);
  background-attachment: fixed;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.45;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-m);
}
h1 {
  font-size: 34px;
}
h2 {
  font-size: 23px;
}
h3 {
  font-size: 19px;
}
p {
  margin: 0 0 var(--space-m);
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Layout */
.page {
  flex: 1;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--space-l) var(--space-l) var(--space-xxl);
}
.page--narrow {
  max-width: 560px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--space-m) var(--space-l) 0;
}
.site-header__brand {
  display: block;
  line-height: 0;
  border-radius: var(--radius-m);
}
.site-header__brand img {
  width: 56px;
  height: 56px;
}
.site-header__lang {
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.55);
}
.site-header__lang:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  padding: var(--space-xl) var(--space-l) var(--space-xxl);
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-s) var(--space-xl);
  margin-bottom: var(--space-m);
}
.site-footer__links a {
  text-decoration: none;
  padding: var(--space-xs) 0;
}
.site-footer__links a:hover {
  text-decoration: underline;
}
/* The ink focus ring would vanish on the ink footer. */
.site-footer :focus-visible {
  outline-color: var(--cream);
}
.site-footer__copy {
  margin: 0;
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  min-height: 52px;
  padding: 13px 22px;
  border: 0;
  border-radius: var(--radius-l);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn--sun {
  background-color: var(--sun);
  background-image: var(--gradient-sun);
  box-shadow: var(--shadow-button);
}
.btn--sun:active {
  transform: translateY(3px);
  box-shadow: var(--shadow-button-pressed);
}
.btn--quiet {
  background-color: var(--cream);
  background-image: var(--gradient-surface);
  box-shadow: var(--shadow-quiet);
  font-size: 17px;
}
.btn--block {
  display: flex;
  width: 100%;
}

/* Cards */
.card {
  background-color: var(--cream);
  background-image: var(--gradient-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-xl);
}
.card--white {
  background: var(--white);
}

/* Legal and support pages */
.legal {
  max-width: var(--text-width);
  margin: 0 auto;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
}
.legal h1 {
  font-size: 30px;
}
.legal h2 {
  font-size: 20px;
  margin-top: var(--space-xxl);
  margin-bottom: var(--space-s);
}
.legal__updated {
  color: var(--caramel);
  font-size: 14px;
  font-weight: 700;
}
.legal ul {
  margin: 0 0 var(--space-m);
  padding-left: 1.2em;
}
.legal li {
  margin-bottom: var(--space-xs);
}
.legal p,
.legal li {
  overflow-wrap: anywhere;
}

/* Error page */
.error {
  text-align: center;
  margin-top: var(--space-xl);
}
.error__art {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto var(--space-m);
}
.error p {
  color: var(--ink-muted);
  margin-bottom: var(--space-xl);
}
/* Back home, then the store: stacked, apart, so the 3D buttons never touch. */
.error__actions {
  display: grid;
  justify-items: center;
  gap: var(--space-l);
}
.error__actions .store-soon {
  margin: 0;
}

@media (min-width: 900px) {
  body {
    font-size: 18px;
  }
  h1 {
    font-size: 52px;
  }
  h2 {
    font-size: 30px;
  }
  .page {
    padding: var(--space-xxl) var(--space-xxl) 56px;
  }
  .site-header {
    padding: var(--space-xl) var(--space-xxl) 0;
  }
  .site-header__brand img {
    width: 72px;
    height: 72px;
  }
  .card {
    padding: var(--space-xxl) 40px;
  }
  .legal h1 {
    font-size: 40px;
  }
  .legal h2 {
    font-size: 22px;
  }
  .error {
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* Placeholder shown instead of the store button until the app is published. */
.store-soon {
  display: inline-block;
  margin: 0;
  padding: 12px 20px;
  border: 1px dashed currentColor;
  border-radius: 999px;
  opacity: .75;
  font-weight: 700;
}

/* Home page (direction A). Phone first; two columns at the top from 900px. */
.home {
  flex: 1;
  width: 100%;
}
.home-hero {
  padding: var(--space-s) var(--space-xl) 0;
}
.home-hero__inner,
.home-band__inner {
  max-width: var(--page-width);
  margin: 0 auto;
}
.home-hero h1 {
  margin: var(--space-s) 0 var(--space-m);
  letter-spacing: -0.3px;
}
.home-hero__lead {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: var(--space-l);
}
.home-cta .btn {
  display: flex;
  width: 100%;
  font-size: 21px;
}
.home-cta .store-soon {
  display: block;
  text-align: center;
}
.home-note {
  text-align: center;
  font-size: 14px;
  margin: var(--space-m) 0 0;
  opacity: 0.85;
}
.home-hero__shot {
  position: relative;
  z-index: 1;
}
.home-shot {
  display: block;
  width: 230px;
  margin: 22px auto -64px;
  border: 6px solid var(--ink);
  border-radius: 30px;
  box-shadow: 0 16px 30px rgba(80, 35, 0, 0.35);
}

.home-band {
  padding: var(--space-xxl) var(--space-xl);
}
.home-band--cream {
  background-color: var(--cream);
  background-image: var(--gradient-surface);
}
.home-band h2 {
  margin-bottom: var(--space-l);
}
.home-games {
  padding-top: 92px;
}

.home-games__list,
.home-packs__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-games__list {
  display: grid;
  gap: 10px;
}
.home-game {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-m);
  background: var(--white);
  border-radius: var(--radius-l);
  padding: var(--space-m) 14px;
  box-shadow: 0 3px 0 var(--track);
}
.home-game img {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  object-fit: contain;
}
/* Text beside the picture; under it when the screen is very narrow (zoomed to 200%). */
.home-game > div {
  flex: 1 1 7em;
  min-width: 0;
}
.home-games__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-l);
}
.home-games__more {
  display: inline-block;
  margin-top: var(--space-m);
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
}
.home-game h3 {
  font-size: 18px;
  line-height: 1.1;
  margin: 0 0 2px;
}
.home-game p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--ink-muted);
}

.home-packs__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.home-pack {
  background: var(--white);
  border-radius: 16px;
  padding: 10px var(--space-s) var(--space-m);
  text-align: center;
  font-size: 14px;
  line-height: 1.25;
  box-shadow: 0 3px 0 var(--track);
  overflow-wrap: anywhere;
}
.home-pack img {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  object-fit: contain;
}

.home-plus-band {
  padding-top: var(--space-s);
}
.home-plus {
  max-width: var(--text-width);
  color: var(--white);
  background-color: var(--plum);
  background-image: var(--gradient-plus);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: 0 10px 22px -8px rgba(60, 30, 110, 0.55), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}
.home-plus h2 {
  margin-bottom: var(--space-s);
}
.home-plus p {
  margin: 0;
}

.home-faq__list {
  display: grid;
  gap: var(--space-l);
}
.home-faq__item {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: var(--space-l) 18px;
  box-shadow: 0 3px 0 var(--track);
}
.home-faq__item h3 {
  font-size: 18px;
  margin-bottom: var(--space-s);
}
.home-faq__item p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-muted);
}
.home-faq__item a {
  color: var(--ink);
  font-weight: 800;
}

.home-bottom {
  text-align: center;
  padding-bottom: 40px;
}
.home-bottom__logo {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-m);
}
.home-bottom .home-band__inner {
  max-width: 420px;
}

@media (min-width: 900px) {
  .home-hero {
    padding: var(--space-xl) var(--space-xxl) 0;
  }
  .home-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }
  .home-hero h1 {
    font-size: 58px;
  }
  .home-hero__lead {
    font-size: 21px;
    max-width: 30em;
  }
  .home-cta {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
  }
  .home-cta .btn {
    display: inline-flex;
    width: auto;
    padding-left: 32px;
    padding-right: 32px;
  }
  .home-hero__text .home-note {
    text-align: left;
  }
  .home-shot {
    width: 300px;
    margin: var(--space-s) auto -110px;
  }
  .home-band {
    padding: 56px var(--space-xxl);
  }
  /* Line the content up with the header's logo. */
  .home-hero__inner,
  .home-band__inner {
    max-width: calc(var(--page-width) - 2 * var(--space-xxl));
  }
  .home-plus-band {
    padding-top: 0;
  }
  .home-games {
    padding-top: 150px;
  }
  .home-games__list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-l);
  }
  .home-game {
    padding: var(--space-l) 18px;
  }
  .home-game img {
    width: 76px;
    height: 76px;
  }
  .home-game h3 {
    font-size: 20px;
  }
  .home-packs__list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-l);
  }
  .home-pack {
    font-size: 16px;
    padding: var(--space-l) var(--space-m);
  }
  .home-pack img {
    width: 80px;
    height: 80px;
  }
  .home-plus {
    padding: var(--space-xxl) 40px;
  }
  .home-faq__list {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .home-bottom .home-cta {
    justify-content: center;
  }
}

/* Store QR code next to the hero button: computers only. */
.home-qr {
  display: none;
}

/* The `hidden` attribute wins over any display set by a class. */
[hidden] {
  display: none !important;
}

/* Invitation page /join/{code}: centred on the orange ground, like the app. */
.invite {
  text-align: center;
}
.invite__card {
  max-width: 400px;
  margin: 0 auto;
}
.invite__heading {
  font-size: 30px;
  margin: var(--space-s) 0 var(--space-l);
}
.invite-code {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 0 6px;
}
.invite-code span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 54px;
  border-radius: var(--radius-m);
  background-image: linear-gradient(180deg, var(--cream-light), var(--cream-deep));
  box-shadow: 0 3px 0 rgba(120, 60, 0, 0.25);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
}
.invite__hint {
  font-size: 14px;
  opacity: 0.85;
  margin: 0 0 var(--space-l);
}
.invite__actions {
  display: grid;
  gap: var(--space-m);
  margin-bottom: var(--space-m);
}
.invite__actions .store-soon {
  display: block;
}
.invite__steps,
.invite__shared {
  text-align: left;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: var(--space-m) 14px;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 var(--space-m);
}
.invite__steps b {
  font-family: var(--font-display);
  font-weight: 800;
}
.invite__shared p {
  margin: 0 0 var(--space-xs);
}
.invite__message {
  font-weight: 800;
  user-select: all;
  -webkit-user-select: all;
}
.invite__note {
  font-size: 13px;
  opacity: 0.8;
  margin: var(--space-l) 0 0;
}
.invite__qr {
  width: 220px;
  margin: 0 auto var(--space-m);
  line-height: 0;
}
.invite__qr svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-quiet);
}
[data-device="desktop"] .invite-code {
  margin-bottom: 0;
}
[data-device="desktop"] .invite__actions {
  margin-top: var(--space-m);
  justify-items: center;
}

@media (min-width: 900px) {
  .home-qr {
    display: block;
    flex: 0 0 auto;
    width: 112px;
    line-height: 0;
  }
  .home-qr svg {
    width: 100%;
    height: auto;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-quiet);
  }
  .invite__card {
    max-width: 460px;
  }
  .invite__heading {
    font-size: 40px;
  }
}

/* Questions page « qui est le plus susceptible de ». Phone first; from 900px
   the card beside the title and the app screen beside its text. The
   card's buttons and the party panel stay hidden until the script runs. */
.q {
  flex: 1;
  width: 100%;
}
.q-band {
  padding: var(--space-xxl) var(--space-xl);
}
.q-band--cream {
  background-color: var(--cream);
  background-image: var(--gradient-surface);
}
.q-inner {
  max-width: calc(var(--page-width) - 2 * var(--space-xxl));
  margin: 0 auto;
}
.q-measure {
  max-width: var(--text-width);
}
/* Read by screen readers and search engines, not shown: each question stays a full sentence. */
.q-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Top of the page: title, then the party card. */
.q-hero {
  padding: var(--space-s) var(--space-xl) var(--space-xxl);
}
.q-hero h1 {
  margin: var(--space-s) 0;
}
.q-meta {
  font-size: 13px;
  font-weight: 800;
  color: var(--caramel);
  margin: 0 0 var(--space-s);
}
.q-hero__lead {
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: var(--space-l);
}
.q-chips {
  display: none;
}
/* The party card: one question at a time. */
.q-play {
  padding: var(--space-l);
}
.q-play__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  margin-bottom: var(--space-m);
}
.q-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 800;
}
.q-play__family {
  font-size: 13px;
  font-weight: 800;
  color: var(--red-text);
  text-align: right;
}
.q-play__prefix {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--caramel);
  margin: 0 0 2px;
}
.q-play__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 27px;
  line-height: 1.1;
  min-height: 3.3em;
  margin: 0 0 var(--space-m);
}
.q-btn-ink {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 5px 0 var(--ink-deep), 0 12px 18px -8px rgba(11, 28, 53, .6);
}
.q-btn-ink:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink-deep);
}
.q-play__more {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-s);
  margin-top: var(--space-l);
}
.q-link {
  min-height: 44px;
  padding: 0 var(--space-s);
  border: 0;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .7);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  cursor: pointer;
}
.q-link:hover {
  background: var(--white);
}
/* The same quiet button, as a link (the app screen of the full view). */
.q-link--a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
/* Under the card: a plain underlined text link, not a fourth button. */
.q-play__game {
  display: block;
  margin-top: var(--space-m);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
}
/* The app: what it adds to the page, with a real screen. */
.q-app h2 {
  margin-bottom: var(--space-s);
}
.q-app__lead {
  font-weight: 600;
  margin-bottom: var(--space-l);
}
.q-app__row {
  display: flex;
  gap: var(--space-l);
  align-items: center;
  margin-bottom: var(--space-xl);
}
.q-shot {
  flex: 0 0 auto;
  display: block;
  width: 128px;
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 12px 22px rgba(80, 35, 0, .3);
}
.q-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-m);
  font-size: 16px;
  line-height: 1.25;
}
.q-facts li {
  display: flex;
  gap: var(--space-s);
  align-items: baseline;
}
.q-facts li::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-1px);
}
.q-app .btn {
  display: flex;
  width: 100%;
}
.q-app__cta .store-soon {
  display: block;
  text-align: center;
}
.q-note {
  font-size: 14px;
  opacity: .85;
  margin: var(--space-m) 0 0;
  text-align: center;
}
/* Store QR code next to the app block's button: computers only. */
.q-qr {
  display: none;
}

.q-how {
  margin-bottom: var(--space-xxl);
}
.q-how p {
  font-weight: 600;
}
.q-steps {
  list-style: none;
  margin: var(--space-l) 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: step;
}
.q-steps li {
  display: flex;
  gap: var(--space-m);
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-l);
  padding: var(--space-m) 14px;
  box-shadow: 0 3px 0 var(--track);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-muted);
}
.q-steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-image: var(--gradient-sun);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}
.q-steps b {
  color: var(--ink);
  font-weight: 800;
}
.q-jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  list-style: none;
  margin: 0 0 var(--space-xxl);
  padding: 0;
}
.q-jump a,
.q-chips a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .6);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.q-jump a:hover,
.q-chips a:hover {
  background: rgba(255, 255, 255, .85);
}
.q-set {
  margin-bottom: var(--space-xxl);
  scroll-margin-top: var(--space-l);
}
.q-set:last-child {
  margin-bottom: 0;
}
.q-set h2 {
  margin-bottom: var(--space-xs);
}
.q-set__intro {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: var(--space-l);
}
.q-prefix {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  margin: 0 0 var(--space-s);
}
.q-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-s);
}
.q-list li {
  display: flex;
  gap: var(--space-m);
  align-items: baseline;
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  box-shadow: 0 3px 0 var(--track);
  line-height: 1.3;
  scroll-margin-top: var(--space-l);
}
.q-list__n {
  flex: 0 0 auto;
  min-width: 1.8em;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--red-text);
}
.q-cta {
  margin: var(--space-xxl) 0;
  color: var(--white);
  background-color: var(--plum);
  background-image: var(--gradient-plus);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: 0 10px 22px -8px rgba(60, 30, 110, .55), inset 0 -3px 0 rgba(0, 0, 0, .12);
  display: grid;
  gap: var(--space-m);
}
.q-cta h2 {
  margin: 0;
}
.q-cta p {
  margin: 0;
  font-weight: 600;
}
.q-cta .btn,
.q-cta .store-soon {
  justify-self: start;
}
.q-faq {
  display: grid;
  gap: var(--space-l);
}
.q-faq div {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: var(--space-l) 18px;
  box-shadow: 0 3px 0 var(--track);
}
.q-faq h3 {
  font-size: 18px;
  margin-bottom: var(--space-s);
}
.q-faq p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-muted);
}
.q-bottom {
  text-align: center;
}
.q-bottom img {
  width: 96px;
  height: 96px;
}
.q-bottom h2 {
  margin-bottom: var(--space-xs);
}
.q-bottom p {
  font-weight: 600;
}
.q-bottom .btn {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
}
/* Party mode, over the whole page: one question, touch for the next. */
.q-party {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  padding: var(--space-l) var(--space-xl) var(--space-xl);
  overflow-y: auto;
  background-color: var(--ground);
  background-image: var(--gradient-ground);
}
.q-party__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.q-party__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}
.q-party__count {
  font-size: 14px;
  font-weight: 800;
}
.q-party__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-s);
}
.q-party__filters button {
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .55);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}
.q-party__filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cream);
}
.q-party__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border: 0;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.q-party__prefix {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 3.4vw, 28px);
  color: var(--caramel);
  margin: 0 0 var(--space-s);
}
.q-party__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 7.4vw, 64px);
  line-height: 1.05;
  margin: 0;
}
.q-party__hint {
  margin: var(--space-xl) 0 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--caramel);
}
.q-party__foot {
  display: grid;
  gap: var(--space-s);
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
/* The line to the app, with a small store button (or the « coming soon » mark). */
.q-party__app {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs) var(--space-s);
  text-align: center;
  font-size: 14px;
}
.q-party__app p {
  margin: 0;
}
.q-party__app .btn {
  min-height: 0;
  padding: 8px 14px;
  font-size: 14px;
}
.q-party__app .store-soon {
  padding: 6px 12px;
  font-size: 13px;
}
/* After a few questions, once: what the app does with the same game. */
.q-pitch {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-m);
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.q-pitch h2 {
  margin: 0;
  font-size: 28px;
}
.q-pitch p {
  margin: 0;
  font-weight: 600;
}
.q-pitch .q-shot {
  width: 120px;
}
.q-pitch .btn {
  display: flex;
  width: 100%;
}
.q-pitch .q-link {
  width: 100%;
}

@media (min-width: 900px) {
  .q-hero {
    padding: var(--space-xl) var(--space-xxl) 56px;
  }
  .q-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: 56px;
    align-items: center;
  }
  .q-hero h1 {
    font-size: 48px;
  }
  .q-hero__lead {
    font-size: 20px;
  }
  .q-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-s);
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .q-jump {
    display: none;
  }
  .q-play {
    padding: var(--space-xxl);
  }
  .q-play__text {
    font-size: 34px;
  }
  .q-band {
    padding: 56px var(--space-xxl);
  }
  /* Empty rows above and below keep the text together, centred beside the screen. */
  .q-app__grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto auto 1fr;
    column-gap: 56px;
  }
  .q-app__row {
    display: contents;
  }
  .q-app .q-shot {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 220px;
    border-width: 6px;
    border-radius: 30px;
  }
  .q-app h2 {
    grid-column: 2;
    grid-row: 2;
  }
  .q-app__lead {
    grid-column: 2;
    grid-row: 3;
  }
  .q-facts {
    grid-column: 2;
    grid-row: 4;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    font-size: 17px;
  }
  .q-app__cta {
    grid-column: 2;
    grid-row: 5;
  }
  .q-cta-row {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
  }
  .q-app .btn {
    display: inline-flex;
    width: auto;
    padding-left: 32px;
    padding-right: 32px;
  }
  .q-qr {
    display: block;
    flex: 0 0 auto;
    width: 104px;
    line-height: 0;
  }
  .q-qr svg {
    width: 100%;
    height: auto;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-quiet);
  }
  .q-app__cta .store-soon {
    display: inline-block;
  }
  .q-note {
    text-align: left;
  }
  .q-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-l);
  }
  .q-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px var(--space-l);
  }
  .q-faq {
    grid-template-columns: 1fr 1fr;
  }
  .q-bottom .q-note {
    text-align: center;
  }
  .q-party {
    padding: var(--space-xxl) 56px 40px;
  }
}

/* Play page: « most likely to » on one phone. Phone first; from 900px the
   stage beside the title. Only the page around the game here: the stage is
   a plain card holding the sentence shown without the script. */
.g {
  flex: 1;
  width: 100%;
}
.g-top {
  padding: var(--space-s) var(--space-xl) var(--space-xxl);
}
.g-inner {
  max-width: calc(var(--page-width) - 2 * var(--space-xxl));
  margin: 0 auto;
}
.g-top h1 {
  margin: var(--space-s) 0;
}
.g-lead {
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: var(--space-l);
}
.g-stage {
  max-width: 460px;
}
.g-fallback {
  margin: 0;
  font-weight: 600;
  line-height: 1.5;
}
.g-fallback a {
  font-weight: 800;
}
.g-band {
  padding: var(--space-xxl) var(--space-xl);
}
.g-band--cream {
  background-color: var(--cream);
  background-image: var(--gradient-surface);
}
.g-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: step;
}
.g-steps li {
  display: flex;
  gap: var(--space-m);
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-l);
  padding: var(--space-m) 14px;
  box-shadow: 0 3px 0 var(--track);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-muted);
}
.g-steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-image: var(--gradient-sun);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}
.g-steps b {
  color: var(--ink);
  font-weight: 800;
}
.g-more {
  display: inline-block;
  margin-top: var(--space-l);
  font-weight: 800;
}
/* The app: its name, what it adds, the store button. */
.g-app {
  text-align: center;
}
.g-app__text {
  max-width: var(--text-width);
  margin-left: auto;
  margin-right: auto;
  font-weight: 600;
}
.g-note {
  font-size: 14px;
  opacity: .85;
  margin: var(--space-m) 0 0;
}

/* The game, drawn by site-game.js in the stage. From « Let's go » the stage
   is a full-screen panel over the page: the phone is being passed around. */
.g-card {
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.g-card > :last-child {
  margin-top: auto;
}
.g-stage--full {
  position: fixed;
  inset: 0;
  z-index: 10;
  max-width: none;
  display: flex;
  /* A column: the card grows with its content instead of being cut to the screen's height. */
  flex-direction: column;
  padding: var(--space-l);
  /* Names tapped quickly in the same spot must not zoom the page (iOS double-tap zoom). */
  touch-action: manipulation;
  background-color: var(--ground);
  background-image: var(--gradient-ground);
  overflow-y: auto;
}
.g-stage--full .g-card {
  flex: 1 0 auto;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
/* The main button of the ranking and the verdict, in a foot under the list.
   On the verdict only (nothing is tapped there) it stays at the bottom of the
   panel, the rows passing under it; its band is painted only behind a dense
   verdict, where rows can actually pass under it. */
.g-foot {
  margin-top: auto;
}
.g-stage--full .g-foot--stick {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-left: calc(-1 * var(--space-xl));
  margin-right: calc(-1 * var(--space-xl));
  margin-bottom: calc(-1 * var(--space-xl));
  padding: var(--space-m) var(--space-xl) var(--space-xl);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.g-stage--full .g-podium[data-dense] + .g-foot--stick {
  background: linear-gradient(180deg, rgba(251, 230, 194, 0) 0, var(--cream-deep) var(--space-m));
}
.g-stage--full .g-big {
  font-size: clamp(28px, 7vw, 40px);
}
/* A ranking of six names or more: the question gives up room to the rows. */
.g-stage--full .g-big--dense {
  font-size: 22px;
}
.g-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
}
.g-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.g-quit {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--caramel);
  text-decoration: underline;
  cursor: pointer;
}
.g-kicker {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--caramel);
  margin: 0 0 2px;
}
.g-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 var(--space-m);
  overflow-wrap: anywhere;
}
.g-hint {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  margin: 0 0 var(--space-l);
}
.g-error {
  font-size: 14px;
  font-weight: 800;
  color: var(--red-text);
  min-height: 1.4em;
  margin: var(--space-s) 0 0;
}
.g-btn-ink {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 5px 0 var(--ink-deep), 0 12px 18px -8px rgba(11, 28, 53, .6);
}
.g-btn-ink:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink-deep);
}
.g-btn-ink[disabled] {
  opacity: .45;
  cursor: default;
  transform: none;
}
.g-link {
  min-height: 44px;
  width: 100%;
  margin-top: var(--space-s);
  border: 0;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .7);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}
/* Who's playing: the field stays at the top of the card, under a phone's keyboard. */
.g-add {
  display: flex;
  gap: var(--space-s);
  scroll-margin-top: var(--space-l);
}
.g-add input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  border: 2px solid var(--track);
  border-radius: var(--radius-m);
  background: var(--white);
  font: inherit;
  font-size: 17px;
  color: var(--ink);
}
.g-add input:focus {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.g-add button {
  flex: 0 0 auto;
  min-width: 52px;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 26px;
  cursor: pointer;
}
.g-names {
  list-style: none;
  margin: var(--space-m) 0 var(--space-l);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
}
.g-names li {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 6px 5px 5px;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: 0 2px 0 var(--track);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.g-names button {
  flex: 0 0 auto;
  position: relative;
  z-index: 0;
  width: 44px;
  height: 44px;
  /* A 44 px target around a 32 px disc: the pill keeps its height. */
  margin: -6px -6px -6px -6px;
  border: 0;
  border-radius: 50%;
  background: none;
  font: inherit;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}
.g-names button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6px;
  border-radius: 50%;
  background: var(--cream-deep);
}
/* A player's disc: eight colours of the palette, each readable with a white
   initial (contrast 4.5:1 at least, checked by SiteStyleTest; the mixes darken
   red, teal and amber for that). Each mix comes after its plain fallback. */
.g-dot {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  color: var(--white);
}
.g-dot--1 { background: #BE4C3D; background: color-mix(in srgb, var(--red) 80%, var(--ink)); }
.g-dot--2 { background: #20788B; background: color-mix(in srgb, var(--teal) 55%, var(--ink)); }
.g-dot--3 { background: var(--plum); }
.g-dot--4 { background: #A0650C; background: color-mix(in srgb, var(--sun-edge) 40%, var(--caramel)); }
.g-dot--5 { background: var(--ink); }
.g-dot--6 { background: var(--red-text); }
.g-dot--7 { background: #567B60; background: color-mix(in srgb, var(--teal) 45%, var(--caramel)); }
.g-dot--8 { background: var(--caramel); }
/* Pass the phone */
.g-pass {
  text-align: center;
}
.g-pass .g-dot {
  width: 112px;
  height: 112px;
  font-size: 56px;
  margin: var(--space-l) auto;
  box-shadow: var(--shadow-card);
}
/* The ranking */
.g-rank {
  list-style: none;
  margin: 0 0 var(--space-m);
  padding: 0;
  display: grid;
  gap: var(--space-s);
}
.g-rank button {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: 0 3px 0 var(--track);
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.g-rank .g-pos {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 2px dashed var(--track);
  font-family: var(--font-display);
  font-weight: 800;
}
/* Six rows or more (set by the script): the hint shrinks first, then the rows
   get closer; a row stays a 44 px target. */
.g-hint:has(+ .g-rank[data-dense]) {
  font-size: 13px;
  margin-bottom: var(--space-s);
}
.g-rank[data-dense] {
  gap: var(--space-xs);
}
.g-rank[data-dense] button {
  min-height: 44px;
  padding: 4px 12px;
  font-size: 16px;
}
.g-rank [data-ranked] {
  background-image: var(--gradient-surface);
}
.g-rank [data-ranked] .g-pos {
  border: 0;
  background: var(--ink);
  color: var(--cream);
}
/* The verdict: shared ranks share a number; every first is put forward. */
.g-podium {
  list-style: none;
  margin: 0 0 var(--space-l);
  padding: 0;
  display: grid;
  gap: var(--space-s);
}
.g-podium li {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding: 10px 12px;
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: 0 3px 0 var(--track);
  overflow-wrap: anywhere;
  /* Not shown yet: invisible to screen readers too, not only transparent. */
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s;
}
.g-podium li[data-shown] {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.g-podium:focus {
  outline: none;
}
.g-podium .g-pos {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--cream-deep);
  font-family: var(--font-display);
  font-weight: 800;
}
.g-podium li[data-rank="1"] {
  padding: 16px 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
}
.g-podium li[data-rank="1"] .g-pos {
  background: var(--red);
  color: var(--white);
}
.g-podium[data-dense] {
  gap: var(--space-xs);
  margin-bottom: var(--space-m);
}
.g-podium[data-dense] li {
  padding: 6px 12px;
}
.g-podium[data-dense] li[data-rank="1"] {
  padding: 10px 12px;
  font-size: 20px;
}
.g-podium li[data-rank="2"] .g-pos {
  background: var(--gold);
}
.g-podium li[data-rank="3"] .g-pos {
  background: var(--teal);
}
/* After three questions: the app */
/* The only child of its card: centred in it rather than pushed to the bottom. */
.g-card > .g-end {
  margin: auto 0;
  text-align: center;
}
.g-shot {
  display: block;
  width: 110px;
  height: auto;
  margin: 0 auto var(--space-m);
  border: 4px solid var(--ink);
  border-radius: 18px;
}
.g-store {
  margin-bottom: var(--space-s);
}
.g-store .btn {
  display: flex;
  width: 100%;
}

@media (min-width: 900px) {
  .g-top {
    padding: var(--space-xl) var(--space-xxl) 56px;
  }
  .g-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: 56px;
    align-items: center;
  }
  .g-top h1 {
    font-size: 46px;
  }
  .g-lead {
    font-size: 20px;
  }
  .g-band {
    padding: 56px var(--space-xxl);
  }
  .g-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-l);
  }
}
@media (prefers-reduced-motion: reduce) {
  .g-podium li {
    transition: none;
  }
}
