/* Playable Ads, a Scenario exploration. Dark stage: the seven games bring the colour. */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-vf.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-normal-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c0d10;
  --bg-2: #121419;
  --card: #16181e;
  --card-2: #1c1f27;
  --line: #2a2e38;
  --line-2: #3a3f4c;
  --ink: #f2f0ea;
  --ink-2: #c9c7c0;
  --mute: #9298a3;
  --sig: #d6ff3d; /* the tap, the pass */
  --sig-ink: #10130a;
  --warn: #ffb547; /* not proven here */
  --g: var(--sig); /* per-game accent, set on each block */
  --wrap: min(1280px, calc(100% - 32px));
  --r: 14px;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* the shared footer's links (gallery, cookie settings, tools) take the page's dark theme */
  --exploration-footer-bg: var(--bg);
  --exploration-footer-ink: var(--ink-2);
  --exploration-footer-border: var(--line);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  overflow-x: hidden;
}
img,
video,
iframe {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--sig);
  outline-offset: 3px;
  border-radius: 6px;
}
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--sig);
  color: var(--sig-ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: var(--wrap);
  margin-inline: auto;
}
.m {
  font-family: var(--mono);
  font-size: 0.86em;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.05em 0.4em;
  white-space: nowrap;
}
.mono {
  font-family: var(--mono);
  font-size: 0.82em;
}
.eyebrow,
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 14px;
}
.kicker .n {
  color: var(--sig);
  margin-right: 10px;
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.btn:active {
  transform: translateY(1px);
}
.btn-sig {
  background: var(--sig);
  color: var(--sig-ink);
}
.btn-sig:hover {
  background: #e5ff7a;
}
.btn-line {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.03);
}
.btn-line:hover {
  border-color: var(--ink-2);
  background: rgba(255, 255, 255, 0.07);
}
.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

/* ------------------------------------------------------------ top bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
  padding: 0 max(16px, calc((100% - 1280px) / 2));
  background: rgba(12, 13, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bar-id {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.bar-home {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.bar-home img {
  width: 88px;
  height: auto;
}
.bar-slash {
  color: var(--line-2);
}
.bar-sec {
  font-size: 14px;
  color: var(--ink-2);
}
.bar-title {
  font-weight: 750;
  font-stretch: 112%;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-title i {
  font-style: normal;
  color: var(--sig);
}
.bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.bar-actions {
  display: flex;
  gap: 2px;
}
.bar-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  border: 0;
  background: none;
  cursor: pointer;
}
.bar-action:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}
.bar-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bar-action svg.solid {
  fill: currentColor;
  stroke: none;
}
.bar-make {
  background: var(--sig);
  color: var(--sig-ink);
  font-weight: 700;
  padding: 0 14px;
}
.bar-make:hover {
  background: #e5ff7a;
  color: var(--sig-ink);
}
@media (max-width: 1080px) {
  .bar-sec,
  .bar-slash {
    display: none;
  }
}
@media (max-width: 860px) {
  .bar-action span {
    display: none;
  }
  .bar-action {
    padding: 0 9px;
  }
  .bar-make span.l {
    display: inline;
  }
}
@media (max-width: 520px) {
  .bar-id {
    gap: 8px;
  }
  .bar-home img {
    width: 26px;
    height: 26px;
    object-fit: cover;
    object-position: 0 50%;
  }
  .bar-title {
    font-size: 13px;
    line-height: 1.05;
    white-space: normal;
    width: 5.6em;
  }
  .bar-right {
    gap: 2px;
  }
  .bar-actions {
    gap: 0;
  }
  .bar-action {
    min-width: 38px;
    min-height: 44px;
    padding: 0 7px;
    justify-content: center;
  }
  .bar-make {
    padding: 0 10px;
    font-size: 12.5px;
  }
}
/* the narrowest phones: the film and the PDF stay one tap away in the hero and the resource cards below it */
/* the film also opens from the hero's How it was made button */
@media (max-width: 420px) {
  .bar-action[data-film-open] {
    display: none;
  }
}
@media (max-width: 340px) {
  .bar-action[href$='.pdf'] {
    display: none;
  }
}

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(940px, calc(100svh - 60px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  grid-template-areas: 'head stage' 'more stage';
  align-items: end;
  gap: 0 40px;
  padding: 56px max(16px, calc((100% - 1280px) / 2)) 84px;
  overflow: hidden;
}
.hero-amb {
  position: absolute;
  inset: -8%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(56px) saturate(1.05) brightness(0.3);
  opacity: 0.85;
  transform: scale(1.1);
}
.hero-amb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 78% 40%, transparent 0 30%, rgba(12, 13, 16, 0.6) 70%),
    linear-gradient(180deg, rgba(12, 13, 16, 0.2), rgba(12, 13, 16, 0.25) 60%, var(--bg));
}
.hero-head {
  grid-area: head;
  max-width: 880px;
  min-width: 0;
}
.hero-more {
  grid-area: more;
  max-width: 720px;
  min-width: 0;
  padding-bottom: 8px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 0.88;
  font-weight: 820;
  font-stretch: 118%;
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-style: normal;
  color: var(--sig);
  display: block;
}
.hero-answer {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.3vw, 31px);
  line-height: 1.2;
  font-weight: 650;
  font-stretch: 104%;
  max-width: 24ch;
}
.hero-sub {
  margin: 0 0 26px;
  color: var(--ink-2);
  max-width: 54ch;
  font-size: 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-arc {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 600px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(12, 13, 16, 0.55);
}
.hero-arc li {
  flex: 1 1 0;
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-2);
}
.hero-arc li + li {
  border-left: 1px solid var(--line-2);
}
.hero-arc b {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sig);
  font-weight: 500;
  margin-bottom: 2px;
}
.hero-stage {
  grid-area: stage;
  position: relative;
  justify-self: end;
  align-self: center;
}
.hero-foot {
  position: absolute;
  left: max(16px, calc((100% - 1280px) / 2));
  right: max(16px, calc((100% - 1280px) / 2));
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.hero-foot span:last-child {
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: 'head' 'stage' 'more';
    align-items: start;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 72px;
  }
  .hero-stage {
    justify-self: center;
  }
  .hero h1 {
    margin-bottom: 12px;
  }
  .hero-answer {
    margin-bottom: 0;
  }
}
/* phones held sideways: two columns again, the phone as tall as the screen allows */
@media (max-height: 500px) and (min-width: 600px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    grid-template-areas: 'head stage' 'more stage';
    gap: 12px 28px;
    min-height: 0;
    padding-top: 20px;
  }
  .hero h1 {
    font-size: clamp(40px, 6vw, 60px);
  }
  .hero-answer {
    font-size: 19px;
  }
  .hero-stage {
    align-self: start;
  }
  .hero .phone-hero {
    --pw: calc((100svh - 150px) * 0.5625);
  }
  /* no room under a sideways phone: the animated hand alone says tap */
  .hand-label {
    display: none;
  }
}
@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(38px, 12.3vw, 48px);
  }
  .hero-arc {
    flex-direction: column;
  }
  .hero-arc li + li {
    border-left: 0;
    border-top: 1px solid var(--line-2);
  }
  .hero-foot span:first-child {
    display: none;
  }
}

/* ------------------------------------------------------------ the phone */
.phone {
  --pw: 340px;
  position: relative;
  width: var(--pw);
  aspect-ratio: 9 / 16;
  border-radius: calc(var(--pw) * 0.11);
  padding: calc(var(--pw) * 0.03);
  background: linear-gradient(160deg, #2b2f38, #0b0c0f 55%, #1d2027);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09) inset,
    0 30px 80px -20px rgba(0, 0, 0, 0.75),
    0 0 0 1px #000;
  flex: none;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--pw) * 0.085);
  overflow: hidden;
  background: #000;
}
.phone-screen > img,
.phone-screen > video,
.phone-screen > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.phone-hero {
  --pw: clamp(300px, 26vw, 400px);
}
@media (max-width: 900px) {
  .phone-hero {
    --pw: min(340px, calc(100vw - 72px));
  }
}
.phone-tools {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(12, 13, 16, 0.6);
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}
.tool:hover {
  color: var(--ink);
  border-color: var(--ink-2);
}
.tool svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.tool[aria-pressed='true'] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--ink-2);
}
.tool .i-off,
.tool[aria-pressed='true'] .i-on {
  display: none;
}
.tool[aria-pressed='true'] .i-off {
  display: block;
}

/* the hand that invites the first tap: it presses the pad the hero game hints (Moatline's first open pad,
   at 0.206 x 0.477 of the screen); the fingertip sits at 0.44 x 0.06 of the hand */
.hand {
  position: absolute;
  z-index: 3;
  /* on the pad the game hints, just right of and below the game's own cursor so the two do not stack */
  left: calc(var(--pw) * 0.175);
  top: calc(47.8% + var(--pw) * 0.03);
  width: calc(var(--pw) * 0.22);
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
  transform-origin: 44% 6%;
  animation: press 1.5s ease-in-out infinite;
  transition: opacity 0.3s ease;
}
.hand-label {
  width: max-content;
  margin: 14px auto 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sig);
  color: var(--sig-ink);
  font-weight: 700;
  font-size: 13px;
  transition: opacity 0.3s ease;
}
.played .hand,
.played .hand-label {
  opacity: 0;
}
@keyframes press {
  0%,
  100% {
    transform: translate(10%, 14%) rotate(-6deg);
  }
  45% {
    transform: translate(0, 0) rotate(-6deg);
  }
  55% {
    transform: translate(0, 0) rotate(-6deg) scale(0.9);
  }
}

/* ------------------------------------------------------------ intro strip, resources */
.intro {
  border-bottom: 1px solid var(--line);
  padding: 34px 0 30px;
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.intro-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
}
.intro-cols p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}
.label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}
.res {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.res a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r);
  background: var(--card);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.res a:hover {
  border-color: var(--sig);
  background: var(--card-2);
}
.res .ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(214, 255, 61, 0.12);
  color: var(--sig);
}
.res .ic svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.res b {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}
.res small {
  display: block;
  color: var(--mute);
  font-size: 13.5px;
  line-height: 1.35;
}
.res .go {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
}
.chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.chapters a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.chapters a span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sig);
  margin-right: 6px;
}
.chapters a:hover {
  color: var(--ink);
}
@media (max-width: 1000px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .intro-cols {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ------------------------------------------------------------ sections */
.sec {
  padding: 96px 0 40px;
}
.sec-head {
  max-width: 860px;
  margin-bottom: 40px;
}
.sec-head h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1;
  font-weight: 800;
  font-stretch: 114%;
  letter-spacing: -0.03em;
}
.sec-head h2 em {
  font-style: normal;
  color: var(--sig);
}
.lead {
  margin: 0;
  font-size: 19px;
  color: var(--ink-2);
  max-width: 64ch;
}
@media (max-width: 600px) {
  .sec {
    padding-top: 72px;
  }
  .lead {
    font-size: 17px;
  }
}

/* ------------------------------------------------------------ the wall of seven */
.wall {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wall li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.wall .phone {
  --pw: 100%;
  border-radius: 22px;
  padding: 6px;
}
.wall .phone-screen {
  border-radius: 17px;
}
.wall-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: end center;
  padding-bottom: 14%;
  border: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
  cursor: pointer;
  border-radius: 17px;
}
.wall-play span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sig);
  color: var(--sig-ink);
  font-weight: 750;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}
.wall-play span svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.wall-play:hover span,
.wall-play:focus-visible span {
  transform: scale(1.06);
}
.wall-cap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wall-cap b {
  font-size: 16px;
  font-stretch: 108%;
  line-height: 1.2;
}
.wall-cap a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  text-decoration: none;
}
.wall-cap a:hover {
  color: var(--ink);
}
.clip-ctl {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 5px;
}
.clip-ctl button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  padding: 0;
}
.clip-ctl button:hover {
  background: rgba(0, 0, 0, 0.8);
}
.clip-ctl svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.clip-ctl .i-play {
  display: none;
}
.paused .clip-ctl .i-pause {
  display: none;
}
.paused .clip-ctl .i-play {
  display: block;
}
@media (max-width: 1100px) {
  .wall {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin-inline: -16px;
    padding-inline: 16px;
    scrollbar-width: thin;
  }
  .wall li {
    flex: 0 0 min(210px, 46vw);
    scroll-snap-align: start;
  }
}

/* ------------------------------------------------------------ method */
.method {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: m;
}
.method li {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}
.method .n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sig);
  color: var(--sig-ink);
  font-weight: 800;
  margin-bottom: 14px;
}
.method h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-stretch: 108%;
  line-height: 1.15;
}
.method p {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 16px;
}
.method p:last-child {
  margin-bottom: 0;
}
.method .out {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--mute);
  border-top: 1px dashed var(--line-2);
  padding-top: 10px;
}
.method .out b {
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 860px) {
  .method {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ game picker (sticky) */
.picker {
  position: sticky;
  top: 60px;
  z-index: 30;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0;
  margin-bottom: 26px;
  background: linear-gradient(180deg, var(--bg) 70%, rgba(12, 13, 16, 0));
  scrollbar-width: none;
}
.picker::-webkit-scrollbar {
  display: none;
}
.picker a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 13px 0 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-2);
  background: var(--bg-2);
}
.picker a img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.picker a:hover,
.picker a[aria-current='true'] {
  color: var(--ink);
  border-color: var(--ink-2);
}

/* ------------------------------------------------------------ one game, the same block each time */
.game {
  --g: var(--sig);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  padding: 44px 0 64px;
  border-top: 1px solid var(--line);
}
.game-side,
.game-main {
  min-width: 0;
}
.game-side {
  position: sticky;
  top: 124px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.game .phone {
  --pw: 300px;
}
.game-side .row {
  display: flex;
  gap: 8px;
}
.game-side .row .tool {
  flex: 1;
  justify-content: center;
}
.game-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}
.game-logo {
  width: 120px;
  height: 72px;
  object-fit: contain;
  flex: none;
}
.game-head h3 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  font-weight: 820;
  font-stretch: 116%;
  letter-spacing: -0.03em;
}
.game-kick {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g);
  margin: 0 0 10px;
}
.game-verb {
  margin: 0 0 26px;
  color: var(--ink-2);
  font-size: 18px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  padding: 20px 22px;
}
.panel + .panel,
.panel + .duo,
.duo + .panel,
.duo + .duo {
  margin-top: 14px;
}
.panel h4 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.panel h4 .step {
  color: var(--g);
  margin-right: 8px;
}
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.duo .panel {
  margin: 0;
}
.brief {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  border-left: 3px solid var(--g);
  padding-left: 16px;
}
.brief-meta {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--mute);
}

/* brief to ad: the timeline, its seven stages under the page's three steps */
.tl-m {
  display: grid;
  grid-template-columns: var(--cols, repeat(7, minmax(0, 1fr)));
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.tl-m li {
  grid-column: span var(--span);
  margin-right: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.tl-m li span {
  color: var(--g);
  margin-right: 6px;
}
.tl {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: var(--cols, repeat(7, minmax(0, 1fr)));
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}
.tl li {
  position: relative;
  padding: 18px 8px 0 0;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--ink-2);
}
.tl li::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line-2);
}
.tl li::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--g);
  box-shadow: 0 0 0 3px var(--card);
}
.tl li:last-child::before {
  right: auto;
  width: 0;
}
.tl b {
  display: block;
  color: var(--ink);
  font-weight: 650;
}
.tl .t {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
}
.tl-total {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--mute);
}
.tl-total b {
  color: var(--ink);
}
@media (max-width: 700px) {
  .tl-m {
    display: none;
  }
  .tl {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .tl li {
    padding: 0 0 12px 26px;
  }
  .tl li::before {
    top: 12px;
    bottom: 0;
    left: 5px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .tl li:last-child::before {
    display: none;
  }
  .tl li::after {
    top: 3px;
  }
  .tl b,
  .tl .t {
    display: inline;
    margin-right: 8px;
  }
}

/* numbers */
.nums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px 18px;
  margin: 0;
}
.nums div {
  min-width: 0;
}
.nums dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.nums dd {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
}
.knobs {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-2);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.knobs .cfg {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--mute);
}

/* assets */
.assets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.assets li {
  min-width: 0;
}
.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background:
    repeating-conic-gradient(#1b1e25 0 25%, #14161b 0 50%) 0 0 / 16px 16px;
  cursor: zoom-in;
  position: relative;
}
.zoom img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.zoom.tall img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.zoom:hover {
  border-color: var(--g);
}
.zoom .z {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
}
.zoom .z svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
}
.assets figcaption,
.cap {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-2);
}
.assets figcaption .m {
  display: inline-block;
  margin-top: 3px;
  font-size: 11px;
  white-space: normal;
}
.assets figure {
  margin: 0;
}
.sound {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.sound li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}

/* QA */
.qa-score {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
}
.qa-score b {
  font-size: 44px;
  font-weight: 820;
  font-stretch: 112%;
  line-height: 1;
  color: var(--sig);
}
.qa-score span {
  color: var(--ink-2);
  font-size: 15px;
}
.qa-lines {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-2);
  display: grid;
  gap: 4px;
}
.qa-lines li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sig);
  margin-right: 9px;
  vertical-align: 2px;
}
.board .zoom img {
  aspect-ratio: auto;
  max-height: 260px;
  object-fit: contain;
}

/* packages */
.pk {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0 0 14px;
}
.pk th,
.pk td {
  text-align: left;
  padding: 7px 8px 7px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.pk th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.pk td.num {
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}
.pk td.ok {
  color: var(--sig);
  font-family: var(--mono);
  font-size: 13px;
}
.pk-wrap {
  overflow-x: auto;
}
/* a game's three package rows stack on phones: networks, then file, size and cap */
@media (max-width: 600px) {
  .game .pk thead {
    display: none;
  }
  .game .pk,
  .game .pk tbody {
    display: block;
  }
  .game .pk tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 2px 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
  }
  .game .pk td {
    padding: 0;
    border: 0;
  }
  .game .pk td:first-child {
    grid-column: 1 / -1;
    color: var(--ink);
    font-weight: 650;
  }
  .game .pk td.num {
    white-space: normal;
  }
}
.get {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg-2);
  text-decoration: none;
}
.get:hover {
  border-color: var(--g);
}
.get svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: var(--g);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.get b {
  display: block;
  font-size: 15.5px;
}
.get small {
  display: block;
  color: var(--mute);
  font-size: 13px;
}
.simpl {
  margin: 18px 0 0;
  font-size: 14.5px;
  color: var(--ink-2);
}
.simpl-h {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.simpl ul {
  margin: 0;
  padding-left: 18px;
}
.simpl li + li {
  margin-top: 4px;
}
@media (max-width: 1000px) {
  .game {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .game-side {
    position: static;
    align-items: center;
  }
  .game-side .row {
    width: min(300px, 100%);
  }
  .duo {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .game .phone {
    --pw: min(280px, calc(100vw - 48px));
  }
  .panel {
    padding: 16px;
  }
  .game-logo {
    width: 84px;
    height: 54px;
  }
}

/* ------------------------------------------------------------ nine networks, one game */
.nets {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: 'side pick' 'side info';
  grid-template-rows: auto 1fr;
  gap: 0 40px;
  align-items: start;
}
.nets-info {
  grid-area: info;
  min-width: 0;
}
.nets .phone {
  --pw: 320px;
}
.nets-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.net-pick {
  grid-area: pick;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}
.net-pick button {
  text-align: left;
  padding: 12px 13px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  min-width: 0;
}
.net-pick button:hover {
  border-color: var(--ink-2);
}
.net-pick button[aria-pressed='true'] {
  border-color: var(--sig);
  background: #1d2212;
}
.net-pick b {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}
.net-pick code {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--mute);
  overflow-wrap: anywhere;
}
.net-pick button[aria-pressed='true'] code {
  color: var(--sig);
}
.console {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #08090b;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}
.console-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--mute);
  font-size: 12px;
}
.console-head b {
  color: var(--ink);
  font-weight: 500;
}
.console ol {
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  height: 230px;
  overflow-y: auto;
}
.console li {
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.console li .t {
  color: var(--mute);
  margin-right: 10px;
}
.console li.c {
  color: var(--mute);
}
.console li.cta {
  color: var(--sig);
}
.console li.hold {
  color: var(--warn);
}
.nets-note {
  margin: 14px 0 0;
  font-size: 14.5px;
  color: var(--mute);
}
.net-table {
  margin-top: 26px;
}
@media (max-width: 960px) {
  .nets {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: 'pick' 'side' 'info';
    gap: 14px;
  }
  /* all nine as name chips; the exact call is in the log and the table under the phone */
  .net-pick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
  }
  .net-pick button {
    flex: none;
    width: auto;
    min-height: 44px;
    padding: 0 14px;
  }
  .net-pick code {
    display: none;
  }
  .nets .phone {
    --pw: 220px;
  }
}

/* ------------------------------------------------------------ what the QA proves */
.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.proof .panel {
  margin: 0;
}
.proof .panel h3 {
  margin: 0 0 12px;
  font-size: 21px;
  font-stretch: 106%;
  line-height: 1.2;
}
.proof ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--ink-2);
  font-size: 15.5px;
  display: grid;
  gap: 7px;
}
.proof .yes {
  border-color: rgba(214, 255, 61, 0.35);
}
.proof .no {
  border-color: rgba(255, 181, 71, 0.35);
}
.proof .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.proof .yes .tag {
  background: rgba(214, 255, 61, 0.14);
  color: var(--sig);
}
.proof .real .tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}
.proof .no .tag {
  background: rgba(255, 181, 71, 0.14);
  color: var(--warn);
}
@media (max-width: 960px) {
  .proof {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ make yours */
.make-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.prompt {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #08090b;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.steps-mini {
  margin: 18px 0 0;
  padding: 0 0 0 20px;
  color: var(--ink-2);
  display: grid;
  gap: 8px;
}
.made {
  margin: 30px 0 0;
  font-size: 14.5px;
  color: var(--mute);
  max-width: 90ch;
}
@media (max-width: 900px) {
  .make-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ footer */
.foot {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
}
.foot-title {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--mute);
}
.foot [data-exploration-controls] {
  border-top: 0;
  background: none;
}

/* ------------------------------------------------------------ dialogs: player, film, lightbox */
.dlg {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}
.dlg[hidden] {
  display: none;
}
.dlg-back {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dlg-box {
  position: relative;
  width: min(1160px, 100%);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--bg-2);
  padding: 18px 20px 22px;
}
.dlg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.dlg-head h2 {
  margin: 0;
  font-size: 20px;
  font-stretch: 108%;
  line-height: 1.2;
}
.x {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--card);
  cursor: pointer;
}
.x svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.x:hover {
  border-color: var(--ink-2);
}

/* the player */
.player .dlg-box {
  width: min(980px, 100%);
}
.player-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.player .phone {
  --pw: min(380px, calc((100svh - 170px) * 0.5625));
}
.player-info h3 {
  margin: 0 0 6px;
  font-size: 34px;
  font-weight: 820;
  font-stretch: 114%;
  line-height: 1.05;
}
.player-info p {
  margin: 0 0 14px;
  color: var(--ink-2);
}
.player-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.player-nav {
  display: flex;
  gap: 8px;
}
.toast {
  min-height: 1.4em;
  font-size: 14px;
  color: var(--sig);
  margin: 0;
}
@media (max-width: 760px) {
  .player-body {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }
  .player .phone {
    --pw: min(calc(100vw - 64px), calc((100svh - 250px) * 0.5625));
  }
  .player-info {
    width: 100%;
  }
  .player-info h3 {
    font-size: 24px;
  }
  .player-info .pi-text {
    display: none;
  }
  .player-tools {
    margin: 8px 0;
  }
}

/* the film */
.film-v {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #000;
}
.film-credit {
  margin: 12px 0 18px;
  font-size: 14px;
  color: var(--mute);
}
.film-steps {
  margin: 0 0 18px;
  padding: 0 0 0 20px;
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-size: 15.5px;
}
.film-steps b {
  color: var(--ink);
  margin-right: 6px;
}

/* the lightbox */
.lb .dlg-box {
  width: min(1240px, 100%);
}
.lb-body {
  display: grid;
  place-items: center;
}
.lb-body img,
.lb-body video {
  max-width: 100%;
  max-height: calc(100svh - 190px);
  width: auto;
  border-radius: 10px;
  background: #000;
}
.lb-cap {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--ink-2);
  text-align: center;
}
.lb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  min-width: 52px;
  text-align: center;
}
.lb-step {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--card);
  cursor: pointer;
}
.lb-step svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.locked {
  overflow: hidden;
}

/* ------------------------------------------------------------ guide page */
.doc {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 20px;
}
.doc h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  font-weight: 820;
  font-stretch: 114%;
  letter-spacing: -0.03em;
}
.doc > .lead {
  margin-bottom: 26px;
}
.doc h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 46px 0 14px;
  font-size: 27px;
  font-stretch: 110%;
  line-height: 1.15;
}
.doc h2 .n {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--sig);
  color: var(--sig-ink);
  font-size: 16px;
  font-weight: 800;
}
.doc ol,
.doc ul:not(.res) {
  padding-left: 22px;
  color: var(--ink-2);
  display: grid;
  gap: 9px;
}
.doc b {
  color: var(--ink);
}
.doc code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}
.doc .pk {
  margin-top: 8px;
}
.doc .make-cta {
  margin-top: 34px;
}

/* ------------------------------------------------------------ touch targets on phones */
@media (max-width: 700px) {
  .tool {
    min-height: 44px;
  }
  .clip-ctl button {
    width: 44px;
    height: 44px;
  }
  .wall-cap a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 12.5px;
  }
  .picker a {
    height: 44px;
  }
}
@media (pointer: coarse) {
  .bar-action {
    min-width: 40px;
    min-height: 44px;
    justify-content: center;
  }
  .tool {
    min-height: 44px;
  }
  .clip-ctl button {
    width: 44px;
    height: 44px;
  }
}
@media (max-height: 500px) {
  .picker {
    display: none;
  }
}
