/* Pantouflard's homepage (docs/design/canape-homepage.dc.html). Self-hosted fonts, no external requests. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url(fonts/bricolage-grotesque-latin.woff2?v=85f55a58a3) format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url(fonts/caveat-latin.woff2?v=7a0049db01) format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url(fonts/dm-mono-400-latin.woff2?v=fd7521f353) format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url(fonts/dm-mono-500-latin.woff2?v=0e263db527) format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --plum: #25132f;
  --plum-2: #3a1f4a;
  --line: #553069;
  --ink: #fbf3ff;
  --muted: #c4aed4;
  --cream: #f3eee3;
  --dark-muted: #5a4a63;
  --rust: #b0562a;
  --teal: #4fd1c5;
  --apricot: #f6ad55;
  --coral: #fc8181;
  --night: #120914;
  --gutter: clamp(16px, 4vw, 56px);
  --band: clamp(56px, 8vw, 110px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plum);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  overflow-wrap: break-word;
}
a { color: var(--teal); }
a:hover { color: var(--apricot); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; }
.teal { color: var(--teal); }
.dot { color: var(--teal); }

/* --- nav --- */

.nav {
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px 20px;
  flex-wrap: wrap;
}
.nav-menu { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; }
.nav-toggle { display: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { width: 40px; height: 40px; flex: none; object-fit: contain; }
.brand-name { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.nav-spacer { flex: 1; }
.nav-links { display: flex; gap: 22px; font-size: 16px; flex-wrap: wrap; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--apricot); }
.lang {
  display: flex;
  background: var(--plum-2);
  border-radius: 20px;
  padding: 3px;
  font: 500 13px 'DM Mono', monospace;
}
.lang button {
  font: inherit;
  border: 0;
  padding: 6px 11px;
  border-radius: 16px;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
}
.lang button[aria-pressed='true'] { background: var(--teal); color: var(--plum); }
.nav-join, .nav-start {
  font-weight: 800;
  font-size: 16px;
  padding: 11px 18px;
  border-radius: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-join { color: var(--ink); border: 2px solid var(--line); padding: 9px 16px; }
.nav-join:hover { color: var(--ink); border-color: var(--teal); }
.nav-start { background: var(--apricot); color: var(--plum); }
.nav-start:hover { color: var(--plum); background: #f8bd73; }

@media (max-width: 760px) {
  /* Phones: the logo and a menu button. The button opens .nav-menu as a full-screen overlay under
     the header, with the section links, the language and both ways in (home.js toggles .open). */
  .nav { position: relative; z-index: 30; background: var(--plum); }
  .brand-name { font-size: 24px; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px;
    background: var(--plum-2); color: var(--ink); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .2s, background-color .2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav.open .nav-toggle-bars { background: transparent; }
  .nav.open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav.open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav-menu {
    display: none;
    position: fixed; top: 80px; right: 0; bottom: 0; left: 0; z-index: 29;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 28px;
    padding: 24px var(--gutter) max(32px, env(safe-area-inset-bottom));
    background: var(--plum); overflow-y: auto;
  }
  .nav.open .nav-menu { display: flex; }
  .nav-menu .nav-links { flex-direction: column; flex-wrap: nowrap; gap: 0; font-size: 26px; font-weight: 800; }
  .nav-menu .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-menu .lang { align-self: flex-start; font-size: 15px; }
  .nav-menu .lang button { padding: 9px 16px; }
  .nav-menu .nav-join, .nav-menu .nav-start { text-align: center; font-size: 19px; padding: 16px; }
  /* Both ways in sit at the bottom, within thumb reach. */
  .nav-menu .nav-join { margin-top: auto; }
  html.menu-open, html.menu-open body { overflow: hidden; }
}

/* --- shared --- */

.band { padding: var(--band) var(--gutter); }
.band-cream { background: var(--cream); color: var(--plum); }
.inner { max-width: 1280px; margin: 0 auto; }
.head { display: flex; flex-direction: column; gap: 8px; }
.head-center { align-items: center; }
.kicker { font-family: 'Caveat', cursive; font-size: 28px; line-height: 1.1; }
.kicker-rust { color: var(--rust); }
.kicker-apricot { color: var(--apricot); }
h2 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .95;
  text-wrap: balance;
}

/* Two calls to action: start (on the TV) and join (with a code, on a phone). */
.ctas { display: flex; flex-wrap: wrap; gap: 18px 20px; align-items: flex-start; }
.ctas-center { justify-content: center; }
.cta { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ctas-center .cta { align-items: center; }
.cta-hint { font-size: 14px; color: var(--muted); }
.cta-url { font: 500 14px 'DM Mono', monospace; color: var(--teal); }
.cta-url:empty { display: none; }
.btn {
  display: inline-block;
  font-weight: 800;
  font-size: 20px;
  padding: 17px 28px;
  border-radius: 16px;
  text-decoration: none;
  text-align: center;
}
.btn-start { background: var(--apricot); color: var(--plum); }
.btn-start:hover { color: var(--plum); background: #f8bd73; }
.btn-big { font-size: 22px; padding: 19px 34px; border-radius: 18px; }
.join-row {
  display: flex;
  border: 2px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  max-width: 100%;
}
.join-row:focus-within { border-color: var(--teal); }
.join-code {
  width: 6.2em;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 20px 'DM Mono', monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 0 14px;
}
.join-code::placeholder { color: #8f78a3; opacity: 1; }
.join-code:focus { outline: none; }
.btn-join {
  border: 0;
  border-left: 2px solid var(--line);
  background: var(--plum-2);
  color: var(--ink);
  font: 700 18px 'Bricolage Grotesque', system-ui, sans-serif;
  padding: 15px 18px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-join:hover { background: #4a2a5d; }
.join-row-big .join-code { font-size: 22px; }
.join-row-big .btn-join { font-size: 20px; padding: 17px 22px; }

/* --- hero --- */

.hero {
  padding: clamp(28px, 6vw, 80px) var(--gutter) clamp(56px, 8vw, 110px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.kicker-hero { font-size: 30px; color: var(--apricot); line-height: 1; }
h1 {
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero-lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 520px;
  text-wrap: pretty;
}
.checks { display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.see-games { color: var(--ink); font-weight: 600; font-size: 17px; align-self: flex-start; }

/*
 * The TV-and-phone illustration is sized in --u, one hundredth of its width (1cqw where container
 * units exist, an estimate from the viewport elsewhere), so it scales as one picture.
 */
.mock-wrap { --u: calc((min(100vw, 1440px) - 2 * clamp(16px, 4vw, 56px) - clamp(36px, 5vw, 72px)) / 200); min-width: 0; }
@media (max-width: 1000px) {
  .mock-wrap { --u: calc((100vw - 2 * clamp(16px, 4vw, 56px)) / 100); }
}
@supports (width: 1cqw) {
  .mock-wrap { container-type: inline-size; }
  .mock { --u: 1cqw; }
}
.mock { position: relative; padding-bottom: calc(var(--u) * 6); }
.mock-tv { background: var(--night); border-radius: calc(var(--u) * 2.2); padding: calc(var(--u) * 1.6); }
.mock-screen {
  height: calc(var(--u) * 54.45);
  background: var(--plum);
  display: flex;
  gap: calc(var(--u) * 4);
  align-items: center;
  padding: 0 calc(var(--u) * 4.5);
  overflow: hidden;
}
.mock-ticket {
  width: calc(var(--u) * 28);
  flex: none;
  background: var(--cream);
  color: var(--plum);
  border-radius: calc(var(--u) * 1.6);
  padding: calc(var(--u) * 1.6);
  text-align: center;
}
.mock-ticket-top {
  display: flex;
  justify-content: space-between;
  font: 500 calc(var(--u) * 1) 'DM Mono', monospace;
  letter-spacing: .1em;
  color: #6b6f80;
  margin-bottom: calc(var(--u) * 1);
}
.mock-qr {
  height: calc(var(--u) * 24.8);
  background-color: #fff;
  border-radius: calc(var(--u) * 1);
  border: 1px solid #e2dccd;
  background-image:
    repeating-linear-gradient(90deg, var(--plum) 0 calc(var(--u) * 1.2), transparent calc(var(--u) * 1.2) calc(var(--u) * 2)),
    repeating-linear-gradient(0deg, #fff 0 calc(var(--u) * 1.1), transparent calc(var(--u) * 1.1) calc(var(--u) * 2.1));
  opacity: .9;
}
.mock-scan { font-size: calc(var(--u) * 2.6); font-weight: 800; margin-top: calc(var(--u) * 1.4); }
.mock-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--u) * 2); }
.mock-brand { font-size: calc(var(--u) * 7); font-weight: 800; letter-spacing: -.04em; line-height: .85; }
.mock-tag { font-family: 'Caveat', cursive; font-size: calc(var(--u) * 2.6); color: var(--apricot); margin-top: calc(var(--u) * .6); }
.mock-seats { display: grid; grid-template-columns: repeat(5, 1fr); gap: calc(var(--u) * 1); }
.mock-seat {
  background: var(--plum-2);
  border-radius: calc(var(--u) * 1);
  height: calc(var(--u) * 10.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * .5);
  border-top: calc(var(--u) * .4) solid var(--c);
  min-width: 0;
}
.mock-seat i { width: calc(var(--u) * 4.4); height: calc(var(--u) * 4.4); border-radius: 50%; background: var(--c); }
.mock-seat b { font-size: calc(var(--u) * 1.4); font-weight: 600; }
.mock-seat-empty { background: none; border: calc(var(--u) * .2) dashed var(--line); }
.mock-next {
  background: var(--plum-2);
  border-radius: calc(var(--u) * 1);
  padding: calc(var(--u) * 1.2) calc(var(--u) * 1.4);
  border-left: calc(var(--u) * .5) solid var(--apricot);
}
.mock-next-label { font-size: calc(var(--u) * 1.1); letter-spacing: .12em; text-transform: uppercase; color: var(--apricot); }
.mock-next-game { font-size: calc(var(--u) * 2.6); font-weight: 800; }
.mock-stand {
  width: calc(var(--u) * 14);
  height: calc(var(--u) * 1.4);
  background: var(--night);
  margin: 0 auto;
  border-radius: 0 0 calc(var(--u) * .6) calc(var(--u) * .6);
}
.mock-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(var(--u) * 23);
  height: calc(var(--u) * 48.6);
  background: var(--night);
  border-radius: calc(var(--u) * 3.4);
  padding: calc(var(--u) * 1);
  transform: rotate(6deg);
}
.mock-phone-screen {
  width: 100%;
  height: 100%;
  background: var(--plum);
  border-radius: calc(var(--u) * 2.6);
  padding: calc(var(--u) * 3.4) calc(var(--u) * 1.6) calc(var(--u) * 2);
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 1);
}
.mock-wyr { font-family: 'Caveat', cursive; font-size: calc(var(--u) * 2.4); text-align: center; color: var(--apricot); }
.mock-opt {
  flex: 1;
  color: var(--plum);
  border-radius: calc(var(--u) * 2);
  padding: calc(var(--u) * 1.6);
  display: flex;
  align-items: flex-end;
  font-size: calc(var(--u) * 2.2);
  font-weight: 800;
  line-height: 1.05;
}
.mock-opt-a { background: var(--teal); }
.mock-opt-b { background: var(--apricot); }

/* --- how it works --- */

.how { display: flex; flex-direction: column; gap: 44px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.step { background: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
}
.step h3 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.step p { font-size: 17px; line-height: 1.5; color: var(--dark-muted); }

/* --- games --- */

.games { display: flex; flex-direction: column; gap: 40px; }
.games-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.chip { background: var(--plum-2); padding: 7px 13px; border-radius: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.card { background: var(--plum-2); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 16 / 10; background: #2e1839; }
.card-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 18px; border-top: 5px solid var(--c); display: flex; flex-direction: column; gap: 6px; }
.card h3 { font-size: 21px; font-weight: 800; }
.card p { font-size: 14.5px; line-height: 1.45; color: var(--muted); }

/* --- screens --- */

.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.screens-text { display: flex; flex-direction: column; gap: 16px; }
.screens-text p { font-size: 18px; line-height: 1.55; color: var(--dark-muted); max-width: 480px; text-wrap: pretty; }
.shots { position: relative; padding: 0 9% 12% 0; }
.shot-tv { position: relative; aspect-ratio: 16 / 9; background: var(--plum); border-radius: 16px; padding: 10px; }
.shot-tv img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.shot-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  aspect-ratio: 9 / 19;
  background: var(--plum);
  border-radius: 22px;
  padding: 6px;
  transform: rotate(5deg);
}
.shot-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; }

/* --- mascots --- */

.mascots { display: flex; flex-direction: column; gap: 40px; align-items: center; text-align: center; }
.mascots-lede { margin-top: 6px; font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 540px; }
/* All ten in one row on wide screens, two rows of five below (never nine and a straggler). */
.rings {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 1040px;
  padding-bottom: 14px;
}
@media (max-width: 900px) {
  .rings { grid-template-columns: repeat(5, 1fr); gap: 14px; max-width: 560px; }
}
.ring { position: relative; aspect-ratio: 1; border-radius: 50%; border: 5px solid var(--c); padding: 4px; }
.ring-low { transform: translateY(14px); }
.ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  background: var(--plum-2);
  padding: 9%;
}
@media (max-width: 420px) {
  .join-row-big .join-code { font-size: 20px; }
  .join-row-big .btn-join { font-size: 18px; padding: 15px 16px; }
  .rings { gap: 10px; }
  .ring { border-width: 4px; padding: 3px; }
}

/* --- for every crowd --- */

.crowds { display: flex; flex-direction: column; gap: 40px; }
.crowds-title { max-width: 780px; }
.crowd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.crowd { border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; }
.crowd h3 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.crowd p { font-size: 17px; line-height: 1.5; }
.crowd-quote { margin-top: auto; font-family: 'Caveat', cursive; font-size: 26px; }
/* Tablets in portrait (the steps above too): three narrower cards side by side rather than two and a straggler. */
@media (min-width: 700px) and (max-width: 959px) {
  .steps, .crowd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .step, .crowd { padding: 22px; }
  .step h3 { font-size: 24px; }
  .crowd h3 { font-size: 26px; }
  .step p, .crowd p { font-size: 16px; }
}

/* --- play --- */

.play {
  padding: clamp(64px, 10vw, 140px) var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.kicker-play { font-size: 32px; color: var(--apricot); }
.play-title { font-size: clamp(52px, 9vw, 128px); letter-spacing: -.045em; line-height: .88; }
.play-lede { font-size: 19px; color: var(--muted); max-width: 480px; line-height: 1.5; }
.play .ctas { margin-top: 6px; }

/* --- footer --- */

.footer {
  border-top: 1px solid var(--plum-2);
  padding: 24px var(--gutter);
  display: flex;
  gap: 16px 28px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.footer a { color: var(--muted); }
.footer-brand { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }

/* Older browsers without aspect-ratio (iOS 14): reserve the boxes' height the old way. */
@supports not (aspect-ratio: 1 / 1) {
  .card-img { height: 0; padding-top: 62.5%; }
  .shot-tv { height: 0; padding-top: 56.25%; }
  .shot-tv img { position: absolute; top: 10px; left: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .shot-phone { height: 0; padding-top: 63.3%; }
  .shot-phone img { position: absolute; top: 6px; left: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
  .ring { height: 0; padding-top: 100%; }
  .ring img { position: absolute; top: 4px; left: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
}

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

/* The beta: a pill in the hero and the launch-news form (news.js shows them until the beta ends). */
.beta-pill, .news { display: block; }
.beta-pill[hidden], .news[hidden], .nav-links a[hidden] { display: none; }
.beta-pill { width: fit-content; margin: 0 0 18px; padding: 6px 16px; border: 2px solid var(--teal); border-radius: 999px; color: var(--teal); font-weight: 700; text-decoration: none; }
.beta-pill:hover { background: rgba(79, 209, 197, 0.12); }
.kicker-teal { color: var(--teal); }
.news { padding: 72px 16px; background: var(--plum-2); }
.news-inner { max-width: 720px; }
.news-title { margin: 6px 0 12px; }
.news-lede { color: var(--muted); margin: 0 0 24px; }
.news-row { display: flex; gap: 10px; flex-wrap: wrap; }
.news-email { flex: 1 1 240px; min-width: 0; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--plum); color: var(--ink); font: inherit; }
.news-email:focus { outline: none; border-color: var(--teal); }
.btn-news { padding: 14px 22px; border: 0; border-radius: 14px; background: var(--teal); color: var(--plum); font: inherit; font-weight: 800; cursor: pointer; }
.btn-news:disabled { opacity: 0.6; cursor: default; }
.news-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.news-consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--teal); }
.news-privacy { margin: 12px 0 0 30px; color: var(--muted); font-size: 12px; line-height: 1.45; opacity: 0.85; }
.news-policy { display: inline-block; margin: 4px 0 0 30px; color: var(--muted); font-size: 12px; text-decoration: underline; }
.news-status { min-height: 1.4em; margin: 14px 0 0; font-weight: 700; color: var(--teal); }
