@font-face { font-family: "Outfit"; src: url("fonts/outfit-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-extrabold.woff") format("woff"); font-weight: 800; font-display: swap; }

/* Colours from the app (PuzzleTheme.kt) plus pastel fields taken from its pictures. */
:root {
  --paper: #fff9f5;
  --slab: #f3e7db;
  --ink: #24211f;
  --muted: #6b605a;
  --accent: #ec6408;
  --accent-dark: #a84400;
  --accent-button: #c45003;
  --accent-deep: #b84a00;
  --accent-ink: #ffffff;
  --peach: #fde4d3;
  --sky: #ddeaf6;
  --mint: #dcefe5;
  --butter: #fbefc8;
  --lilac: #ece5f5;

  --font: "Outfit", "Segoe UI", system-ui, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
  --step-hero: clamp(3.5rem, 2rem + 6vw, 7.5rem);

  --m: clamp(16px, 3vw, 40px);
  --gap: clamp(96px, 12vw, 184px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--font);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: .98; overflow-wrap: break-word; hyphens: auto; }
p, figcaption, .q { overflow-wrap: break-word; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { padding-inline: var(--m); }
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 16px; }
.piece-mask { -webkit-clip-path: url(#piece); clip-path: url(#piece); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-button);
  color: var(--accent-ink);
  font: 800 1.1875rem/1 var(--font);
  text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--paper); overflow: hidden; }
.bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.02em; text-decoration: none; }
.wordmark svg { width: 34px; height: 34px; fill: var(--accent); transition: transform .5s var(--ease); }
.wordmark:hover svg { transform: rotate(90deg); }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav-links a { font-weight: 600; text-decoration: none; padding: 10px 0; transition: color .2s; }
.nav-links a:hover { color: var(--accent-deep); }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 80px); min-height: calc(100svh - 80px);
  padding-block: 24px 72px;
}
.hero h1 { font-size: var(--step-hero); line-height: .92; letter-spacing: -0.045em; max-width: 7ch; }
.hero-sub { margin-top: 36px; max-width: 30ch; font-size: var(--step-lead); line-height: 1.4; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 40px; }
.soon { font-weight: 600; color: var(--muted); }

.hero-play { position: relative; padding: 0 0 0 8%; }
.chips { display: flex; gap: 8px; margin: 0 0 12px 4%; width: 92%; }
.chip {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 18px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid var(--slab);
  font-weight: 600;
  transition: transform .3s var(--ease);
}
.chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { min-width: 0; gap: 8px; }
.chip b { font-size: 1.75rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.chip.on { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; transform: translateY(-3px); }
.hero-board { width: 100%; overflow: visible; }
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0 4%;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--slab);
  color: var(--ink);
  font: 600 var(--step-small)/1 var(--font);
  min-height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 3;
  transition: background-color .2s;
}
.motion-toggle:hover { background: var(--peach); }
.motion-toggle::before { content: ""; width: 10px; height: 12px; border-inline: 3px solid currentColor; box-sizing: border-box; }
.motion-toggle[aria-pressed="true"]::before { border: 0; border-left: 10px solid currentColor; border-block: 6px solid transparent; width: 0; height: 0; }
.hero.paused .fl, .hero.paused .hero-phone { animation-play-state: paused; }
.fallback { border-radius: 12px; }
.js .fallback { display: none; }
/* Without script the drawings stay empty: show the fallback pictures and drop the pinned run. */
html:not(.js) .step-svg, html:not(.js) .hero-board, html:not(.js) .board, html:not(.js) .chips { display: none; }
html:not(.js) .match-track { height: auto; }
html:not(.js) .match-stage { position: static; height: auto; padding-block: var(--gap); }
.hero-board .pc { transition: transform 1s var(--ease), opacity .5s; }
.hero-board .pc.out { opacity: 0; }
.hero-phone {
  position: absolute;
  left: -6%;
  bottom: -8%;
  width: 28%;
  border-radius: 18px;
  transform: translateY(var(--py, 0px)) rotate(-7deg);
  z-index: 2;
}
.js .hero-phone { animation: slide-in 1.2s 1.8s var(--ease) both; }
@keyframes slide-in { from { opacity: 0; translate: -80px 60px; } to { opacity: 1; translate: 0 0; } }

.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fl { position: absolute; width: var(--s); translate: 0 var(--py, 0px); animation: bob var(--t, 7s) ease-in-out infinite alternate; }
.fl-1 { --s: 120px; left: 29%; top: 83%; --t: 8s; }
.fl-2 { --s: 92px; left: 3%; top: 87%; --t: 6s; }
.fl-3 { --s: 76px; left: 40%; top: 15%; --t: 9s; }
.fl-4 { --s: 110px; right: 1%; top: 74%; --t: 7s; }
.fl-5 { --s: 84px; left: 47%; top: 2%; --t: 8.5s; }
.fl-6 { --s: 64px; left: 22%; top: 10%; --t: 6.5s; }
@keyframes bob {
  from { transform: rotate(-14deg) translateY(0); }
  to { transform: rotate(12deg) translateY(-22px); }
}
.js .hero-copy > * { animation: rise .9s var(--ease) both; }
.js .hero-sub { animation-delay: .1s; }
.js .hero-act { animation-delay: .2s; }
.js .chips { animation: rise .9s .3s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Flow ---------- */
.flow { background: var(--peach); padding-block: var(--gap); }
.flow-head { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 48px; align-items: end; }
.flow-head p { max-width: 46ch; font-size: var(--step-lead); line-height: 1.4; }
.flow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 88px); }
.step { margin: 0; padding: 24px; border-radius: 28px; background: var(--paper); }
.step-svg { width: 100%; overflow: visible; }
.step figcaption { margin-top: 24px; }
.step p { margin-top: 10px; max-width: 34ch; }
.step-svg .flyin { animation: flyin 4.5s var(--ease) 3 both; }
@keyframes flyin {
  0%, 12% { transform: translate(1.4px, 3.2px) rotate(24deg); }
  48%, 100% { transform: none; }
}
.step-svg .glow { animation: glow 4.5s 3 both; }
@keyframes glow { 0%, 46% { opacity: 0; } 52% { opacity: 1; } 80%, 100% { opacity: 0; } }
.step-svg .loose { animation: loose 5s ease-in-out 4 alternate; }
@keyframes loose { to { transform: rotate(var(--r2)); } }

/* ---------- Rules ---------- */
.rules { background: var(--sky); padding-block: var(--gap); }
.rules-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.index { margin-top: 48px; }
.row { position: relative; padding: 22px 0 22px 48px; outline-offset: 0; }
.row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 32px;
  height: 32px;
  background: var(--muted);
  -webkit-clip-path: url(#piece); clip-path: url(#piece);
  transition: background-color .24s, transform .3s var(--ease);
}
.row h3 { color: var(--muted); transition: color .24s; }
.row p { margin-top: 8px; max-width: 48ch; }
.row.is-on h3 { color: var(--ink); }
.row.is-on::before { background: var(--accent); transform: rotate(90deg) scale(1.15); }
.row-img { display: none; -webkit-clip-path: url(#piece); clip-path: url(#piece); }
.preview { position: sticky; top: 12vh; top: 12svh; }
.preview-frame { position: relative; aspect-ratio: 1; }
.preview-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-clip-path: url(#piece); clip-path: url(#piece);
  opacity: 0;
  transform: scale(.92) rotate(-8deg);
  transition: opacity .24s, transform .6s var(--ease);
}
.preview-frame img.is-on { opacity: 1; transform: none; }

/* ---------- Match: scroll scene ---------- */
.match { background: var(--slab); }
.match-track { height: 340vh; height: 340svh; }
.match-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.match-grid { width: 100%; display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.match-lead { margin-top: 24px; max-width: 40ch; }
.clocks { display: flex; gap: 8px; margin-top: 36px; }
.clock {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  background: #fff;
}
.clock { min-width: 0; }
.clock span { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clock b { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.clock.on { background: var(--accent-deep); color: #fff; }
.status { margin-top: 20px; min-height: 3.2em; font-size: var(--step-lead); line-height: 1.35; }
.match-skip { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--accent-deep); text-underline-offset: 4px; }
.share {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  align-items: center;
  max-width: 460px;
  margin-top: 40px;
  padding: 24px;
  border-radius: 28px;
  background: var(--paper);
}
.share-piece { grid-row: span 2; width: 52px; height: 52px; fill: var(--accent); transition: transform .5s var(--ease); }
.share:hover .share-piece { transform: rotate(90deg); }
.share-title { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.share-text { color: var(--muted); line-height: 1.4; }
.share-btn { grid-column: 1 / -1; gap: 12px; margin-top: 18px; width: 100%; }
.share-btn svg { width: 22px; height: 22px; flex: none; }
.share-btn:disabled { opacity: .7; cursor: progress; }
.share-status { grid-column: 1 / -1; margin-top: 12px; font-weight: 600; overflow-wrap: anywhere; }
.share-status:empty { margin: 0; }
.scene { width: 100%; }
.board { width: 100%; max-height: 90vh; max-height: 90svh; margin-inline: auto; }

/* ---------- Showcase ---------- */
.show { background: var(--butter); }
.show-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; min-height: 88vh; min-height: 88svh; padding-block: var(--gap); }
.plate { position: relative; aspect-ratio: 1; align-self: center; background: var(--peach); border-radius: 32px; }
.plate-img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46%;
  translate: -50% 0;
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .35s, transform .6s var(--ease);
}
.plate-img.is-on { opacity: 1; transform: translateY(-7%); }
.plate-piece { position: absolute; right: -6%; top: -8%; width: 30%; transform: translateY(var(--py, 0px)) rotate(14deg); }
.show-side { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button {
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  font: 600 1.0625rem/1 var(--font);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.tabs button:hover { background: #fff; transform: translateY(-2px); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.show-copy h2 { margin-bottom: 40px; }
.show-text p { margin-top: 16px; max-width: 40ch; }
.show-text:not([hidden]) { animation: rise .5s var(--ease); }
.cells { display: flex; flex-wrap: wrap; gap: 12px; }
.cell {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s;
}
.cell-ink { background: var(--accent-button); color: #fff; }
.cell-tone { background: #fff; }
.cell:hover { transform: translateY(-3px); }

/* ---------- Mosaic ---------- */
.board-tiles { background: var(--paper); padding: clamp(10px, 2vw, 24px); }
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 104px; grid-auto-flow: dense; gap: 10px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 22px; border-radius: 24px; }
.t-head { grid-column: span 6; grid-row: span 2; }
.t-6x4 { grid-column: span 6; grid-row: span 4; }
.t-6x2 { grid-column: span 6; grid-row: span 2; }
.t-3x4 { grid-column: span 3; grid-row: span 4; }
.t-3x2 { grid-column: span 3; grid-row: span 2; }
.s-sand { background: var(--peach); }
.s-sky { background: var(--sky); }
.s-yellow { background: var(--butter); }
.s-magenta { background: var(--mint); }
.s-ink { background: var(--lilac); }
.cap { position: relative; z-index: 1; font-size: var(--step-small); line-height: 1.35; }
.cap b { display: block; font-size: 1.1875rem; font-weight: 800; }
.ui-big { max-width: 100%; font-weight: 800; transform-origin: left top; transition: transform .5s var(--ease); }
.tile:hover .ui-big { transform: scale(1.04); }
.ui-clocks { display: flex; flex-wrap: wrap; gap: .2em; font-size: clamp(28px, 3.4vw, 50px); }
.ui-clock { display: flex; gap: .6em; align-items: baseline; padding: .35em .6em; border-radius: .4em; background: #fff; font-size: .7em; font-weight: 600; white-space: nowrap; }
.ui-clock b { font-size: 1.6em; font-weight: 800; font-variant-numeric: tabular-nums; }
.ui-clock.on { background: var(--accent-deep); color: #fff; }
.ui-sizes { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 0 .35em; font-size: clamp(40px, 4vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.ui-sizes span { color: #85703f; }
.ui-sizes .on { color: var(--accent-deep); }
.pics { position: absolute; inset: 20px 20px auto 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; transform: rotate(-6deg) translate(18%, -4%) scale(1.15); transition: transform .6s var(--ease); }
.tile-pics:hover .pics { transform: rotate(-3deg) translate(14%, -2%) scale(1.18); }
.pics img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 12px; }
.tile-pics { justify-content: flex-end; }
.tile-pics .cap { padding: 10px 12px; margin: -10px -12px; border-radius: 14px; background: var(--lilac); }
.ui-toast { align-self: flex-start; padding: .7em 1em; border-radius: .6em; background: var(--ink); color: #fff; font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; line-height: 1.25; }
.ui-level { font-size: clamp(40px, 4vw, 64px); letter-spacing: -0.04em; color: #24714f; }
.ui-code { display: flex; gap: .12em; font-size: clamp(30px, 3vw, 52px); }
.ui-code span { display: grid; place-items: center; width: 1.2em; height: 1.35em; border-radius: .2em; background: #fff; }
.ui-figure { font-size: clamp(56px, 5.5vw, 92px); line-height: .9; letter-spacing: -0.05em; color: var(--accent-deep); }
.ui-vote { display: flex; flex-wrap: wrap; gap: .3em; font-size: clamp(20px, 2vw, 28px); }
.ui-vote span { padding: .45em .8em; border-radius: 999px; background: #fff; white-space: nowrap; }
.ui-vote .on { background: var(--accent-deep); color: #fff; }

/* ---------- FAQ ---------- */
.faq { background: var(--mint); padding-block: var(--gap); }
.faq-inner { display: grid; grid-template-columns: 4fr 7fr; gap: 48px; align-items: start; }
.faq-inner h2 { position: sticky; top: 15vh; top: 15svh; }
.cards { display: grid; gap: 10px; }
.card { padding: 24px clamp(20px, 3vw, 32px); border-radius: 24px; background: #fff; transition: background-color .3s; }
.card[open] { background: var(--paper); }
.card summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; }
.card summary::-webkit-details-marker { display: none; }
.card summary::before {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  background: var(--muted);
  -webkit-clip-path: url(#piece); clip-path: url(#piece);
  transition: transform .4s var(--ease), background-color .3s;
}
.card[open] summary::before { background: var(--accent); transform: rotate(90deg); }
.q { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; transition: transform .2s var(--ease); }
.card summary:hover .q { transform: translateX(6px); }
.card p { max-width: 52ch; margin: 14px 0 4px 46px; }
.card[open] p { animation: rise .45s var(--ease); }

/* ---------- Closing ---------- */
.cta { background: var(--lilac); overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; min-height: 96vh; min-height: 96svh; padding-block: clamp(80px, 9vw, 140px) clamp(48px, 5vw, 80px); }
.cta-text { align-self: center; }
.cta h2 { font-size: clamp(3.5rem, 6.4vw, 6.5rem); line-height: .92; }
.cta-text p { margin-top: 28px; max-width: 34ch; font-size: var(--step-lead); line-height: 1.4; }
.collage { position: relative; min-height: 760px; }
.c { position: absolute; transform: translateY(var(--py, 0px)) rotate(var(--rot, 0deg)); will-change: transform; }
.c:not(.piece-mask) { border-radius: 18px; }
.c-a { --rot: -5deg; left: 0; top: 8%; width: 36%; }
.c-b { --rot: 2deg; left: 30%; top: 0; width: 40%; z-index: 2; }
.c-c { --rot: 6deg; left: 62%; top: 12%; width: 36%; }
.c-d { --rot: -8deg; left: 8%; top: 48%; width: 44%; z-index: 3; }

/* ---------- Footer ---------- */
.foot { background: var(--slab); padding-block: 64px 40px; }
.blocks { display: flex; gap: 24px; height: 30vh; height: 30svh; min-height: 200px; text-decoration: none; }
.w { display: flex; gap: 6px; align-items: flex-end; flex: 8; }
.w + .w { flex: 6; }
.w i {
  flex: 1;
  height: var(--h);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font: normal 800 clamp(28px, 4.4vw, 72px)/1 var(--font);
  color: var(--ink);
  transition: transform .4s var(--ease);
}
.w i:nth-child(5n+1) { background: var(--peach); }
.w i:nth-child(5n+2) { background: var(--sky); }
.w i:nth-child(5n+3) { background: var(--butter); }
.w i:nth-child(5n+4) { background: var(--mint); }
.w i:nth-child(5n) { background: var(--lilac); }
.blocks:hover i { transform: translateY(-8px); }
.blocks:hover i:nth-child(odd) { transform: translateY(-16px); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.foot-cols li + li { margin-top: 10px; }
.foot-cols a { text-decoration: none; font-weight: 600; transition: color .2s; }
.foot-cols a:hover { color: var(--accent-deep); }
.foot-note { grid-column: 4; max-width: 40ch; }
.foot-cols a { overflow-wrap: anywhere; }
.foot-last { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; }
.foot-last .btn { min-height: 48px; padding: 0 24px; font-size: 1.0625rem; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .t-head, .t-6x4, .t-6x2 { grid-column: span 12; }
  .t-3x4, .t-3x2 { grid-column: span 6; }
  .blocks { flex-direction: column; gap: 6px; height: auto; }
  .w { height: 14vh; height: 14svh; min-height: 84px; }
  .w i { font-size: clamp(28px, 7vw, 56px); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero h1 { max-width: none; }
  .hero-play { max-width: 620px; padding-left: 10%; }
  .fl-3, .fl-5, .fl-6 { display: none; }
  .faq-inner, .cta-grid, .match-grid { grid-template-columns: 1fr; }
  .match-grid { gap: 16px; }
  .match-lead { display: none; }
  .board { max-height: 58vh; max-height: 58svh; }
  .faq-inner h2 { position: static; }
  .cta-grid { min-height: 0; }
  .collage { min-height: 84vw; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  .bar { height: auto; flex-wrap: wrap; gap: 4px 16px; padding-block: 12px 0; }
  .nav-links { width: 100%; gap: 4px 18px; flex-wrap: wrap; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; }
  .hero-grid { gap: 40px; padding-block: 24px 64px; }
  .hero h1 { font-size: 16vw; }
  .hero-sub { margin-top: 20px; font-size: 1.125rem; }
  .hero-act { margin-top: 28px; }
  .hero-play { padding-left: 0; }
  .chips { margin-left: 0; width: 100%; }
  .motion-toggle { margin-left: 0; }
  .chip { padding: 10px 14px; }
  .chip b { font-size: 1.375rem; }
  .hero-phone { width: 30%; left: auto; right: -2%; bottom: -10%; transform: translateY(var(--py, 0px)) rotate(7deg); }
  .fl-1 { --s: 76px; left: auto; right: -2%; top: 62%; }
  .fl-2 { --s: 60px; left: -2%; top: 93%; }
  .fl-3, .fl-4, .fl-5 { display: none; }
  .fl-6 { --s: 52px; left: 44%; top: 96%; }

  .flow-head, .rules-grid, .match-grid, .show-grid, .cta-grid, .faq-inner { grid-template-columns: 1fr; }
  .faq-inner h2 { position: static; }
  .flow-steps { grid-template-columns: 1fr; }

  .preview { display: none; }
  /* The picture takes the bullet's place, so the text keeps most of the width. */
  .row { padding: 18px 0 18px 84px; min-height: 104px; }
  .row::before { display: none; }
  .row-img { display: block; position: absolute; left: -6px; top: 14px; width: 80px; height: 80px; }
  .row h3 { color: var(--ink); }

  .match-track { height: 300vh; height: 300svh; }
  .match-grid { gap: 12px; }
  .match-lead { display: none; }
  .clocks { margin-top: 16px; }
  .clock { padding: 10px 14px; }
  .status { margin-top: 10px; font-size: 1rem; min-height: 3em; }
  .board { max-height: 60vh; max-height: 60svh; }

  .tabs button { padding: 10px 16px; font-size: 1rem; }
  .plate { aspect-ratio: 4 / 5; }
  .plate-img { width: 66%; }
  .cell { flex: 1 1 100%; justify-content: center; }

  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 28vw; gap: 8px; }
  .tile { border-radius: 18px; padding: 16px; }
  .t-head { grid-column: span 2; grid-row: span 2; }
  .t-head h2 { font-size: 9vw; }
  .t-6x4, .t-6x2 { grid-column: span 2; grid-row: span 3; }
  .t-3x4, .t-3x2 { grid-column: span 1; grid-row: span 2; }
  .cap b { font-size: 1rem; }
  .ui-clocks { font-size: 28px; }
  .ui-toast { font-size: 18px; }
  .ui-sizes { font-size: 36px; }
  .ui-level { font-size: 32px; }
  .ui-code { font-size: 24px; }
  .ui-figure { font-size: 48px; }
  .ui-vote { font-size: 16px; }

  .card p { margin-left: 0; font-size: 1rem; }
  .q { font-size: 1.125rem; }

  .cta h2 { font-size: 13vw; }
  .cta-grid { min-height: 0; gap: 40px; }
  .collage { min-height: 112vw; }
  .c-a { width: 44%; top: 4%; }
  .c-b { width: 48%; left: 26%; }
  .c-c { width: 44%; left: 56%; top: 8%; }
  .c-d { width: 56%; left: 4%; top: 52%; }

  .w i { font-size: 9vw; border-radius: 10px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-note { grid-column: 1 / -1; }
}

/* Low or landscape screens: the pinned scene would not fit, so it scrolls as a normal section. */
@media (max-height: 560px) {
  .match-track { height: auto; }
  .match-stage { position: static; height: auto; padding-block: 64px; }
  .board { max-height: none; max-width: 420px; }
}

@media (max-width: 360px) {
  .chip, .clock { padding-inline: 10px; }
  .chip b { font-size: 1.125rem; }
  .clock b { font-size: 1.375rem; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-toggle { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .match-track { height: auto; }
  .match-stage { position: static; height: auto; padding-block: var(--gap); }
}

/* Large text settings (200% zoom, big system font): grid columns may shrink and the clock pair wraps. */
.hero-grid > *, .match-grid > *, .flow-head > *, .rules-grid > *, .show-grid > *, .faq-inner > *, .cta-grid > * { min-width: 0; }
.chips, .clocks { flex-wrap: wrap; }
.chip, .clock { flex: 1 1 9.5rem; }

/* ---------- Legal page ---------- */
.legal { max-width: 72ch; padding-block: 40px var(--gap); }
.legal h1 { font-size: var(--step-head); }
.legal .updated { margin-top: 16px; color: var(--muted); }
.legal h2 { margin-top: 56px; font-size: var(--step-lead); letter-spacing: -0.015em; line-height: 1.2; }
.legal p, .legal li { margin-top: 14px; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal a { color: var(--accent-deep); text-underline-offset: 3px; }
.legal-bar { border-bottom: 2px solid var(--slab); }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.back:hover { color: var(--accent-deep); }
.legal-foot { padding-block: 32px; background: var(--slab); }
.legal-foot .foot-last { margin-top: 0; }
