/* Fieldkit: the page. A plain bar; a centred first screen whose one object is the wall of the
   22 app icons, with "I have a …" under it; the spotlight window; six kits; the shelf, one block
   per category; the rules and four questions; the closing block.
   The interface is black, greys and white. Colour comes from the icons and the pictures only. */

:root {
  --wide: 1192px;       /* the wall: 11 tiles of 92px and 10 gaps of 18px */
  --gutter: 24px;
  --r: 22px;            /* a card, a window */
  --panel-3: #2A2A2F;   /* a chip or a quiet button under the pointer */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.5 var(--sans); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, video { display: block; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Buttons: 46 tall, radius 12, white with black text. The quiet one is a grey tile. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
.btn:hover { background: var(--accent-up); }
.btn:focus-visible { border-radius: 12px; }
.btn--quiet { background: var(--panel-2); color: var(--text); }
.btn--quiet:hover { background: var(--panel-3); }
.btn--small { height: 40px; padding: 0 16px; font-size: 15px; }

/* ---------------------------------------------------------------- The bar */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 40px; border-bottom: 1px solid transparent; background: var(--bg); transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.logo img { width: 28px; height: 28px; flex: none; }
.nav__side { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; flex: 1; }
.nav__meta { font-size: 14px; color: var(--text-2); white-space: nowrap; }

/* The search: an icon that opens a small field. */
.find { display: flex; min-width: 0; }
.find__open { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: background-color .15s; }
.find__open:hover { background: var(--panel-2); }
.find__open:focus-visible { border-radius: 50%; outline-offset: 1px; }
.find svg { fill: none; stroke: var(--text-2); stroke-width: 1.7; stroke-linecap: round; }
.find__open svg { width: 18px; height: 18px; stroke: var(--text); }
.find__form { position: relative; display: flex; align-items: center; width: 264px; max-width: 100%; height: 40px; }
.find__glass { position: absolute; left: 13px; width: 16px; height: 16px; pointer-events: none; }
.find input { width: 100%; height: 100%; padding: 0 40px 0 38px; border: 0; border-radius: 999px; background: var(--panel-2); font-size: 15px; outline-offset: 2px; }
.find input::placeholder { color: var(--text-2); opacity: 1; }
.find input:focus-visible { outline: 2px solid var(--text); border-radius: 999px; }
.find input::-webkit-search-cancel-button { display: none; }
.find__close { position: absolute; right: 0; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.find__close svg { width: 12px; height: 12px; stroke-width: 1.8; }
.find__close:hover svg { stroke: var(--text); }
.find__close:focus-visible { border-radius: 50%; outline-offset: -4px; }

/* ---------------------------------------------------------------- The first screen */
.hero { display: grid; justify-items: center; padding: 34px var(--gutter) 0; text-align: center; overflow-x: clip; }
.kicker { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); }
h1 { margin-top: 22px; font-size: clamp(34px, 11.4vw, 96px); line-height: .98; font-weight: 700; letter-spacing: -.045em; }
.lede { margin-top: 22px; font-size: 21px; color: var(--text-2); text-wrap: balance; }

/* The wall: every tool as a tile. Two rows of eleven. */
.wall { display: grid; grid-template-columns: repeat(11, minmax(0, 92px)); justify-content: center; gap: 18px; width: 100%; max-width: var(--wide); margin-top: 46px; }
.tile { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 22.3%; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tile img { width: 100%; height: auto; aspect-ratio: 1; transition: opacity .25s, translate .25s cubic-bezier(.2, .7, .2, 1); }
.tile:focus-visible { outline-offset: 4px; border-radius: 26%; }
.tile:hover img { translate: 0 -3px; }
/* A clue or a kit is picked: its tools stay bright and lift, the rest fade. */
.tile.is-dim img { opacity: .2; }
.tile.is-up img { translate: 0 -6px; }
.tile.is-up:hover img { translate: 0 -8px; }
.tile.is-dim:hover img, .tile.is-dim:focus-visible img { opacity: .6; }
/* The tool in the spotlight has a dot under it, as a running app has in a dock. */
.tile[aria-current="true"]::after { content: ""; position: absolute; left: 50%; bottom: -11px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--text); }

/* The label card of a tile: its name and one line. Above the first row, below the second. */
.tip { position: absolute; left: 50%; bottom: calc(100% + 14px); z-index: 30; display: none; width: max-content; max-width: 252px; padding: 11px 14px 12px; border-radius: 14px; background: var(--panel-2); box-shadow: 0 0 0 6px var(--bg); text-align: left; translate: calc(-50% + var(--shift, 0px)) 0; pointer-events: none; }
.tip b { display: block; font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--text); }
.tip span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.tile:hover .tip, .tile:focus-visible .tip { display: block; }
.tile:nth-child(n + 12) .tip { top: calc(100% + 16px); bottom: auto; }

/* "I have a" and the chips. */
.say { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; max-width: 100%; margin-top: 40px; }
.say__w { margin-right: 6px; font-size: 22px; line-height: 44px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.say__or { display: inline-flex; align-items: center; gap: 8px; }
.say__or > span { margin: 0 4px; font-size: 16px; font-weight: 500; color: var(--text-2); }
.clue { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--panel-2); font-size: 16px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
.clue:hover { background: var(--panel-3); }
.clue[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.clue:focus-visible { border-radius: 999px; }

/* The line under the chips. It opens when there is something to say, so the first screen
   is the same height as the mock both with and without a clue. */
.found { display: grid; grid-template-rows: 0fr; max-width: 100%; transition: grid-template-rows .25s; }
.found.is-on { grid-template-rows: 1fr; }
.found__in { min-height: 0; overflow: hidden; }
.found p { padding-top: 16px; font-size: 15px; line-height: 22px; color: var(--text-2); text-wrap: balance; }
.found b { font-weight: 600; color: var(--text); }
.found a { margin-left: 4px; color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; white-space: nowrap; }
.found a:hover { text-decoration-color: var(--text); }

/* ---------------------------------------------------------------- The spotlight */
.spot { width: min(1120px, 100% - 2 * var(--gutter)); margin: 52px auto 0; }
.spot__win { border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.spot__bar { display: flex; align-items: center; gap: 14px; height: 72px; padding: 0 14px 0 18px; }
.spot__icon { width: 40px; height: 40px; flex: none; }
.spot__bar b { flex: none; font-size: 19px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; }
.spot__line { flex: 1; min-width: 0; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot__pause { display: grid; place-items: center; width: 46px; height: 46px; flex: none; padding: 0; border: 0; border-radius: 12px; background: var(--panel-2); cursor: pointer; transition: background-color .15s; }
.spot__pause:hover { background: var(--panel-3); }
.spot__pause:focus-visible { border-radius: 12px; }
.spot__pause svg { width: 16px; height: 16px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spot__pause .i-play, .spot__pause[aria-pressed="true"] .i-pause { display: none; }
.spot__pause[aria-pressed="true"] .i-play { display: block; fill: var(--text); stroke-width: 1; }
.spot__bar .btn { flex: none; margin-left: -4px; }
/* The still sits under the clip, so nothing moves when a clip arrives. */
.spot__screen { position: relative; aspect-ratio: 16 / 10; background: #000; }
.spot__poster, .spot__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot__clip { opacity: 0; transition: opacity .2s; }
.spot__win.is-playing .spot__clip { opacity: 1; }

/* Under the window: a tab per tool of the picked clue or kit, then what the picture is. */
.spot__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 20px; }
.tab { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 8px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
.tab img { width: 28px; height: 28px; }
.tab:hover { background: var(--panel); color: var(--text); }
.tab[aria-current="true"] { background: var(--panel-2); color: var(--text); }
.tab:focus-visible { border-radius: 999px; outline-offset: 1px; }
.spot__note { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--text-3); text-align: center; text-wrap: balance; }

/* ---------------------------------------------------------------- A section and its heading */
.block { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 150px auto 0; padding: 0 var(--gutter); }
.block__head { text-align: center; }
.block__head h2 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.02; font-weight: 700; letter-spacing: -.04em; text-wrap: balance; outline: none; }
.block__head p { margin-top: 18px; font-size: 21px; color: var(--text-2); text-wrap: balance; }

/* ---------------------------------------------------------------- Kits */
.kits__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.kit { display: flex; flex-direction: column; align-items: center; padding: 34px 24px 30px; border-radius: var(--r); background: var(--panel); text-align: center; }
.kit h3 { display: flex; align-items: center; min-height: 58px; font-size: 25px; line-height: 1.15; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
/* The chain: the kit's tools in order, a thin arrow between two. */
.chain { display: flex; justify-content: center; margin-top: 28px; }
.chain li { display: flex; align-items: flex-start; }
.chain a { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 56px; font-size: 13px; line-height: 18px; color: var(--text-2); text-decoration: none; transition: color .15s; }
.chain a img { width: 56px; height: 56px; transition: translate .2s cubic-bezier(.2, .7, .2, 1); }
.chain a span { white-space: nowrap; }
.chain a:hover { color: var(--text); }
.chain a:hover img { translate: 0 -2px; }
.chain a:focus-visible { border-radius: 14px; outline-offset: 5px; }
.chain__arrow { width: 22px; height: 56px; margin: 0 6px; flex: none; fill: none; stroke: var(--text-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kit__line { max-width: 30ch; min-height: 48px; margin-top: 24px; font-size: 16px; line-height: 24px; color: var(--text-2); text-wrap: balance; }
.kit__go { margin-top: 22px; }
.kit__go[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------------------------------------------------------------- The shelf */
.block__head .shelf__state { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 22px; font-size: 17px; }
.shelf__state b { font-weight: 600; color: var(--text); }

/* A category: its heading on the left, its intro on the right, its cards under them. */
.pocket { margin-top: 104px; }
.pocket:first-child { margin-top: 88px; }
.pocket__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 12px 20px; }
.pocket h2 { font-size: 36px; line-height: 1.1; font-weight: 700; letter-spacing: -.035em; }
.pocket__intro { max-width: 54ch; color: var(--text-2); text-wrap: pretty; }
/* Three cards to a row, or two, or one across: whatever leaves no hole (Fieldkit.spans in site.js). */
.pocket__apps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }

/* An app card: a big picture, then the icon, the name, one sentence. The whole card opens the page. */
.app { position: relative; grid-column: span 2; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; transition: border-color .15s, background-color .15s; }
.app--half { grid-column: span 3; }
.app--wide { grid-column: span 6; flex-direction: row; }
.app__shot { position: relative; aspect-ratio: 16 / 10; background: var(--panel-2); overflow: hidden; }
.app--wide .app__shot { flex: 0 0 calc(50% - 10px); }
.app__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* The card's clip: laid over the still while the pointer or the focus is on the card. */
.app__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; pointer-events: none; transition: opacity .2s; }
.app.is-peeking .app__clip { opacity: 1; }
.app__body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 22px; }
.app--wide .app__body { justify-content: center; padding: 40px 56px; }
.app__head { display: flex; align-items: center; gap: 13px; }
.app__icon { width: 44px; height: 44px; flex: none; }
.app__title { min-width: 0; }
.app__name { font-size: 21px; line-height: 25px; font-weight: 600; letter-spacing: -.02em; }
.app__name a { text-decoration: none; outline: none; }
.app__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }   /* the whole card opens the page */
.app__kind { font-size: 14px; line-height: 19px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__say { margin-top: 14px; margin-bottom: 18px; font-size: 16px; line-height: 24px; color: var(--text-2); text-wrap: pretty; }
.app--wide .app__say { max-width: 38ch; font-size: 19px; line-height: 28px; }
.app--wide .app__icon { width: 56px; height: 56px; }
.app--wide .app__name { font-size: 28px; line-height: 32px; }
.app--wide .app__kind { font-size: 16px; line-height: 22px; }
.app__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; font-size: 15px; line-height: 20px; font-weight: 600; }
.app--wide .app__foot { margin-top: 0; }
.app__open { display: inline-flex; align-items: center; gap: 6px; }
.app__open svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: translate .15s; }
.app__repo { position: relative; z-index: 2; font-weight: 500; color: var(--text-2); text-underline-offset: 3px; }
.app:hover { border-color: var(--line-2); background: #17171B; }
.app:hover .app__open svg { translate: 3px 0; }
.app:has(.app__name a:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }

/* Nothing matches the search. */
.empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 56px; padding: 28px 32px; border-radius: var(--r); background: var(--panel); }
.empty b { display: block; font-size: 21px; font-weight: 600; letter-spacing: -.015em; overflow-wrap: anywhere; }
.empty p { color: var(--text-2); }

/* ---------------------------------------------------------------- The rules and the questions */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.duo + .duo { margin-top: 96px; }
.duo__head { padding-right: 24px; }
.duo h2 { font-size: 36px; line-height: 1.1; font-weight: 700; letter-spacing: -.035em; }
.duo__head p { margin-top: 14px; color: var(--text-2); text-wrap: pretty; }
.duo__head .duo__who { font-size: 15px; color: var(--text-3); }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rules li { padding: 20px 22px 22px; border-radius: 18px; background: var(--panel); font-size: 16px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.rules b { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 600; color: var(--text); }
.faq { display: grid; gap: 8px; }
.qa { border-radius: 18px; background: var(--panel); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 22px; list-style: none; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { border-radius: 18px; outline-offset: 0; }
.qa h3 { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
/* The plus turns into a minus when the answer is open. */
.qa__mark { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-linecap: round; }
.qa[open] .qa__mark path + path { display: none; }
.qa p { max-width: 68ch; padding: 0 22px 22px; font-size: 16px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }

/* ---------------------------------------------------------------- The closing block */
.end { display: grid; justify-items: center; margin-top: 150px; padding: 0 var(--gutter); text-align: center; }
.end__wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1100px; }
.end__wall img { width: 40px; height: 40px; }
.end h2 { margin-top: 40px; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.02; font-weight: 700; letter-spacing: -.04em; text-wrap: balance; }
.end p { margin-top: 18px; font-size: 21px; color: var(--text-2); }
.end .btn { margin-top: 32px; }

/* ---------------------------------------------------------------- Footer */
.foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: 16px 20px; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 120px auto 0; padding: 0 var(--gutter) 64px; }
.foot .logo { justify-self: start; font-size: 16px; }
.foot .logo img { width: 24px; height: 24px; }
.foot p { max-width: 80ch; font-size: 14px; line-height: 1.55; color: var(--text-3); }
.foot p + p { margin-top: 8px; }

/* ---------------------------------------------------------------- Narrower screens */
@media (max-width: 1099px) {
  .kits__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall { gap: 14px; }
  .app--wide .app__body { padding: 32px 36px; }
}
@media (max-width: 899px) {
  .nav { padding: 0 var(--gutter); }
  .block, .end { margin-top: 112px; }
  .pocket__head { grid-template-columns: minmax(0, 1fr); }
  .pocket__apps { grid-template-columns: minmax(0, 1fr); }
  .app, .app--half, .app--wide { grid-column: auto; flex-direction: column; }
  .app--wide .app__shot { flex: none; }
  .app--wide .app__body { padding: 22px 24px; }
  .app--wide .app__say { max-width: none; font-size: 16px; line-height: 24px; }
  .app--wide .app__icon { width: 44px; height: 44px; }
  .app--wide .app__name { font-size: 21px; line-height: 25px; }
  .app--wide .app__kind { font-size: 14px; line-height: 19px; }
  .app--wide .app__foot { margin-top: auto; }
  .duo, .foot { grid-template-columns: minmax(0, 1fr); }
  .duo__head { padding-right: 0; }
  .spot__line { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; font-size: 16px; }
}
@media (max-width: 759px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 76px; }
  .nav { height: 56px; }
  /* While the field is open it has the bar to itself, next to the logo. */
  .nav.is-searching .nav__meta, .nav.is-searching .logo span { display: none; }
  .find.is-open, .find__form { flex: 1; width: auto; }
  .hero { padding-top: 22px; }
  h1 { margin-top: 18px; }
  .lede { margin-top: 16px; font-size: 18px; line-height: 1.45; }
  /* The wall: six to a row, smaller tiles, the last row centred. */
  .wall { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
  .tile { flex: 0 0 calc((100% - 50px) / 6 - .01px); width: auto; }
  .tile[aria-current="true"]::after { bottom: -8px; width: 4px; height: 4px; margin-left: -2px; }
  .tile:nth-child(n + 12) .tip { top: auto; bottom: calc(100% + 12px); }
  .tip { bottom: calc(100% + 12px); max-width: 230px; }
  /* The chips are one row that scrolls sideways; "I have a" stays put at its start. */
  .say { flex-wrap: nowrap; justify-content: flex-start; width: calc(100% + 2 * var(--gutter)); max-width: none; margin: 22px calc(-1 * var(--gutter)) -6px; padding: 6px var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .say::-webkit-scrollbar, .spot__tabs::-webkit-scrollbar { display: none; }
  .say__w { position: sticky; left: calc(-1 * var(--gutter)); z-index: 1; margin: 0 0 0 calc(-1 * var(--gutter)); padding: 0 8px 0 var(--gutter); background: var(--bg); font-size: 20px; }
  .clue { flex: none; padding: 0 16px; }
  .say__or { flex: none; }
  .found p { padding-top: 12px; }
  .spot { margin-top: 32px; }
  .spot__win { border-radius: 18px; }
  /* The bar wraps: the icon, the name and the line, then the two buttons. */
  .spot__bar { flex-wrap: wrap; gap: 4px 12px; height: auto; padding: 14px; }
  .spot__bar b { order: 1; }
  .spot__icon { order: 0; }
  .spot__line { order: 2; flex: 1 0 100%; min-height: 42px; }
  .spot__bar .btn { order: 3; flex: 1; margin: 8px 0 0; }
  .spot__pause { order: 4; margin-top: 8px; }
  .spot__tabs { flex-wrap: nowrap; justify-content: flex-start; margin: 14px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .tab { flex: none; }
  .block, .end { margin-top: 88px; }
  .block__head p, .end p { margin-top: 14px; font-size: 18px; }
  .kits__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 36px; }
  .kit { padding: 28px 16px 24px; }
  .kit h3 { min-height: 0; font-size: 23px; }
  .chain { margin-top: 22px; }
  .chain a { width: 52px; }
  .chain a img { width: 52px; height: 52px; }
  .chain__arrow { width: 18px; height: 52px; margin: 0 5px; }
  .kit__line { min-height: 0; margin-top: 20px; }
  .kit__go { align-self: stretch; }
  .pocket { margin-top: 72px; }
  .pocket:first-child { margin-top: 56px; }
  .pocket h2, .duo h2 { font-size: 30px; }
  .pocket__apps { gap: 12px; margin-top: 22px; }
  .app__body, .app--wide .app__body { padding: 18px 18px 20px; }
  .empty { padding: 24px 20px; }
  .duo + .duo { margin-top: 72px; }
  .rules { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .end__wall { gap: 8px; max-width: 344px; }
  .end__wall img { width: 24px; height: 24px; }
  .end h2 { margin-top: 30px; }
  .end .btn { margin-top: 26px; }
  .foot { margin-top: 88px; padding-bottom: 48px; }
}
/* A touch screen has no hover: the label card shows while the tapped tile has the focus. */
@media (hover: none) {
  .tile:focus .tip { display: block; }
  .tile:hover img { translate: none; }
  .tile.is-up:hover img { translate: 0 -6px; }
}

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

/* ---------- every screen size (added 2026-11-13) ---------- */
/* Wide screens: the wall and the spotlight grow with the window instead of staying a 1192px island. */
@media (min-width: 1700px) {
  :root { --wide: min(1192px + (100vw - 1700px) * .62, 1520px); }
  .wall { grid-template-columns: repeat(11, minmax(0, 1fr)); gap: clamp(18px, 1.05vw, 24px); }
  .spot { width: min(var(--wide) - 40px, 100% - 2 * var(--gutter)); }
}
@media (min-width: 1600px) {
  h1 { font-size: clamp(96px, 38.4px + 3.6vw, 120px); }
  .lede { font-size: clamp(21px, 14.7px + 0.3937vw, 24.15px); }
}
/* ---------- end every screen size ---------- */
