/* Raiju: The Director's Cut. Site styles. No outside fonts or scripts. */
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }

:root {
  --ink: #0b0907;          /* near black, warm */
  --ink-2: #13100c;        /* raised panel */
  --ink-3: #1c1711;        /* line, table rows */
  --line: #2e261c;
  --cream: #ece3d2;        /* body text */
  --muted: #b3a791;        /* secondary text */
  --bronze: #c9a066;       /* headings, the title metal */
  --bronze-dk: #8a6a3e;
  --amber: #f0a33a;        /* sodium light: links, glow */
  --stamp: #c4362c;        /* the red stamp: the one accent (fills, borders) */
  --stamp-text: #e05a4a;   /* the same red, lifted for small text on black */
  --label: "Barlow Condensed", "Bahnschrift SemiCondensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font: 17px/1.6 var(--body);
  background-image: radial-gradient(1200px 600px at 78% -120px, rgba(240,163,58,.10), transparent 70%);
  background-repeat: no-repeat;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #ffc46e; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Labels and headings: condensed, uppercase, like the game's HUD */
.label, h2, h3, .btn, nav, th, .stamp, .kicker {
  font-family: var(--label); text-transform: uppercase; letter-spacing: .06em;
}
h1, h2, h3 { color: var(--bronze); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: .04em; }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.kicker { color: var(--amber); font-weight: 600; font-size: 15px; letter-spacing: .18em; margin-bottom: .6em; display: block; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(11,9,7,.88); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; }
.topbar .name { font-family: var(--label); font-weight: 700; color: var(--bronze); text-decoration: none; letter-spacing: .1em; text-transform: uppercase; font-size: 18px; white-space: nowrap; }
.topbar nav { display: flex; gap: clamp(12px, 2.5vw, 28px); font-size: 16px; font-weight: 600; }
.topbar nav a { color: var(--cream); text-decoration: none; }
.topbar nav a:hover, .topbar nav a[aria-current] { color: var(--amber); }
@media (max-width: 560px) { .topbar .name .long { display: none; } .topbar nav .opt { display: none; } }

/* Pitch lines (used in the hero) */
.pitch { font-family: var(--label); font-weight: 600; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; color: var(--cream); margin: 0 0 18px; text-transform: none; letter-spacing: .01em; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 10px 22px; font-size: 20px; font-weight: 700; text-decoration: none; border-radius: 3px; border: 2px solid var(--bronze-dk); color: var(--cream); background: transparent; letter-spacing: .08em; }
.btn:hover { border-color: var(--amber); color: #fff; }
.btn.primary { background: var(--stamp); border-color: var(--stamp); color: #fff6ea; box-shadow: 0 0 0 1px rgba(0,0,0,.4) inset, 0 6px 30px rgba(196,54,44,.25); }
.btn.primary:hover { background: #d8443a; border-color: #d8443a; }
.btn small { font-size: .72em; font-weight: 600; opacity: .85; }
@media (max-width: 480px) { .btn { width: 100%; } }
.pending-note { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Video */
.film { position: relative; background: #000; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 80px rgba(240,163,58,.06); }
.film video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.film figcaption, figure figcaption { font-size: 14px; color: var(--muted); padding: 8px 2px 0; }

/* Sections */
section { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }

/* The five blocks */
.block { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; margin: 0 0 clamp(40px, 6vw, 72px); }
.block:last-child { margin-bottom: 0; }
.block:nth-child(even) .media { order: 2; }
.block .media { position: relative; }
.block .media img, .block .media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); background: #000; }
.block .num { font-family: var(--label); font-weight: 700; color: var(--stamp-text); font-size: 15px; letter-spacing: .2em; display: block; margin-bottom: 4px; }
.block p { color: var(--cream); }
@media (max-width: 760px) {
  .block { grid-template-columns: 1fr; }
  .block:nth-child(even) .media { order: 0; }
}

/* Controls */
.controls { width: 100%; border-collapse: collapse; font-size: 16px; }
.controls th, .controls td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.controls th { color: var(--bronze); font-weight: 600; font-size: 15px; letter-spacing: .1em; }
.controls td:first-child { color: var(--cream); }
.controls kbd { font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: .05em; color: var(--cream); background: var(--ink-3); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; padding: 1px 7px; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
@media (max-width: 560px) {
  .controls thead { display: none; }
  .controls tr { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .controls td { border: 0; padding: 2px 4px; }
  .controls td:first-child { grid-column: 1 / -1; font-weight: 600; color: var(--bronze); }
  .controls td:nth-child(2)::before { content: "Keys: "; color: var(--muted); }
  .controls td:nth-child(3)::before { content: "Pad: "; color: var(--muted); }
}
.two-col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.paylist { padding-left: 1.2em; }
.paylist li { margin-bottom: .5em; }
.ratings { font-family: var(--label); font-weight: 600; letter-spacing: .06em; color: var(--bronze); }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.shots a { display: block; border: 1px solid var(--line); overflow: hidden; background: #000; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease, opacity .3s; opacity: .92; }
.shots a:hover img { transform: scale(1.04); opacity: 1; }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Lists for notes, disclosure, credits */
.notes ul, .credits ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.notes li, .credits li { margin-bottom: .45em; }
.credits h3 { font-size: 20px; margin-top: 1.4em; }
.credits table { border-collapse: collapse; font-size: 14px; width: 100%; }
.credits td, .credits th { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.credits th { color: var(--bronze); font-size: 14px; }
.small { font-size: 15px; }

/* Stamp */
.stamp { display: inline-block; color: var(--stamp-text); border: 2px solid var(--stamp); padding: 1px 10px; font-weight: 700; letter-spacing: .14em; font-size: 15px; transform: rotate(-3deg); border-radius: 2px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer .mark { font-family: var(--label); font-weight: 700; letter-spacing: .14em; color: var(--bronze); text-transform: uppercase; }
footer a { color: var(--muted); }

/* ---------- Build log ---------- */
.log-hero { position: relative; padding-top: clamp(40px, 7vw, 80px); padding-bottom: 32px; }
.log-hero h1 { font-family: var(--label); text-transform: uppercase; font-size: clamp(40px, 7vw, 84px); letter-spacing: .03em; margin-bottom: 10px; }
.log-hero .lede { font-size: clamp(18px, 1.6vw, 20px); max-width: 760px; color: var(--cream); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 28px 0 0; }
.stats div { background: var(--ink-2); padding: 16px 18px; }
.stats b { display: block; font-family: var(--label); font-size: clamp(28px, 3.4vw, 40px); color: var(--bronze); line-height: 1; margin-bottom: 6px; }
.stats span { font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.daynav { position: sticky; top: 52px; z-index: 10; background: rgba(11,9,7,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.daynav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.daynav a { font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; color: var(--cream); text-decoration: none; padding: 4px 12px; border: 1px solid var(--line); border-radius: 2px; white-space: nowrap; }
.daynav a:hover { border-color: var(--amber); color: var(--amber); }

.prejam { border: 1px dashed var(--bronze-dk); background: var(--ink-2); padding: clamp(18px, 3vw, 32px); margin: 8px 0 0; }
.prejam .flag { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; }
.prejam blockquote { margin: 0; padding: 0 0 0 16px; border-left: 3px solid var(--bronze-dk); color: var(--cream); font-size: 16px; }
.prejam blockquote h4 { font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; color: var(--bronze); margin: 1em 0 .3em; font-size: 17px; }
.prejam blockquote h4:first-child { margin-top: 0; }
.prejam blockquote ul { margin: .3em 0 .8em; padding-left: 1.2em; }

.day { padding-top: 40px; border-top: 0; }
.day-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--bronze-dk); padding-bottom: 10px; margin-bottom: 28px; }
.day-head h2 { margin: 0; }
.day-head .muted { font-size: 15px; }

.entry { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 28px; padding: 0 0 44px; }
.entry .when { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--stamp-text); font-size: 17px; line-height: 1.2; padding-top: 4px; border-top: 2px solid var(--stamp); }
.entry .when span { display: block; color: var(--muted); font-weight: 500; font-size: 14px; }
.entry h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: .4em; text-transform: none; letter-spacing: .01em; }
.entry .body { max-width: 860px; }
.entry figure { margin: 14px 0 12px; }
.entry figure img, .entry figure video { width: 100%; max-height: 640px; object-fit: contain; border: 1px solid var(--line); background: #000; }
.entry .pair img { aspect-ratio: 16 / 9; object-fit: contain; }
.entry .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.entry .pair.three { grid-template-columns: 1fr 1fr 1fr; }
.entry .pair figure { margin: 0; }
.entry .pair figcaption { font-size: 13px; }
.figrow { margin: 14px 0 12px; }
.number { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; border-left: 3px solid var(--amber); background: var(--ink-2); padding: 8px 14px; margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.number b { font-family: var(--label); font-size: 24px; color: var(--amber); letter-spacing: .02em; font-weight: 700; }
.src { font-size: 13px; color: #8e826c; margin-top: 8px; }
.quote { font-family: var(--label); font-weight: 500; font-size: 22px; line-height: 1.3; color: var(--bronze); border-left: 3px solid var(--bronze-dk); padding-left: 14px; margin: 6px 0 14px; }
@media (max-width: 700px) {
  .entry { grid-template-columns: 1fr; }
  .entry .when { border-top: 0; border-left: 3px solid var(--stamp); padding: 0 0 0 10px; margin-bottom: 10px; display: flex; gap: 10px; align-items: baseline; }
  .entry .when span { display: inline; }
  .entry .pair.three { grid-template-columns: 1fr; }
}
.lessons li { margin-bottom: .6em; }
.subpitch { color: var(--muted); font-size: 17px; margin: -6px 0 18px; }

/* Lightbox */
.lb-open, .lb-open body { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,5,4,.94); display: flex; align-items: center; justify-content: center; padding: 48px 56px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 130px); width: auto; height: auto; border: 1px solid var(--line); background: #000; }
.lightbox figcaption { color: var(--muted); font-size: 15px; padding-top: 10px; text-align: center; max-width: 900px; }
.lightbox button { position: absolute; background: transparent; border: 0; color: var(--cream); font-size: 44px; line-height: 1; cursor: pointer; padding: 8px 14px; }
.lightbox button:hover { color: var(--amber); }
.lb-close { top: 6px; right: 10px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lightbox { padding: 52px 8px 24px; } .lb-prev, .lb-next { top: auto; bottom: 6px; transform: none; } }

/* Contact sheets folded on phones */
figure.sheet.folded { display: none; }
.unfold { display: block; margin: 12px 0; font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; color: var(--amber); background: var(--ink-2); border: 1px solid var(--line); border-radius: 2px; padding: 8px 14px; cursor: pointer; }
.unfold:hover { border-color: var(--amber); }

/* Before / after clips */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 12px; }
.ba figure { margin: 0; }
.ba video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); background: #000; }
.ba .tag { font-family: var(--label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: var(--amber); }
@media (max-width: 560px) { .ba { grid-template-columns: 1fr; } }

/* Phones: plain day nav (saves height), the read-more fold */
@media (max-width: 700px) { .daynav .wrap { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 40px; } }
.more[hidden] { display: none; }
.readmore { margin: 6px 0 12px; }

/* ================= Full-height hero (home) ================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-full { position: relative; height: calc(100vh - 52px); height: calc(100svh - 52px); min-height: 540px; overflow: hidden; background: #050403; border-top: 0; padding: 0; isolation: isolate; }
.hero-full .slides { position: absolute; inset: 0; animation: h-fade 1.4s ease-out both; }
.hero-full .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2.6s ease-in-out; }
.hero-full .slide.is-on { opacity: 1; }
.hero-full .slide img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scale(1.06); will-change: transform; }
.hero-full .slide.is-on img { animation: h-drift 11s ease-out both; }
.hero-full .slide:nth-child(even).is-on img { animation-name: h-drift2; }
@keyframes h-drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.13) translate3d(-1.6%, -1%, 0); } }
@keyframes h-drift2 { from { transform: scale(1.13) translate3d(-1.2%, 0, 0); } to { transform: scale(1.04) translate3d(0.8%, -0.6%, 0); } }
@keyframes h-fade { from { opacity: 0; } to { opacity: 1; } }

.hero-full .haze { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .5; overflow: hidden; }
.hero-full .haze::before, .hero-full .haze::after { content: ""; position: absolute; left: 0; bottom: -8%; width: 200%; height: 75%; background: url("../hero/fog.webp") repeat-x left bottom / 50% 100%; will-change: transform; }
.hero-full .haze::before { animation: h-haze 70s linear infinite, h-rise 16s ease-in-out infinite alternate; }
.hero-full .haze::after { opacity: .55; height: 60%; animation: h-haze 46s linear infinite reverse, h-rise 11s ease-in-out infinite alternate-reverse; }
@keyframes h-haze { from { translate: 0 0; } to { translate: -50% 0; } }
@keyframes h-rise { from { transform: translateY(6%); } to { transform: translateY(-7%); } }

.hero-full .shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,4,3,.72) 0%, rgba(5,4,3,.35) 38%, rgba(5,4,3,0) 62%),
              linear-gradient(180deg, rgba(5,4,3,0) 55%, rgba(11,9,7,.85) 92%, var(--ink) 100%); }

.hero-full .hero-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-bottom: 64px; }
.hero-full .mark { position: relative; width: clamp(280px, 50vw, 860px); aspect-ratio: 1044 / 390; margin: 6px 0 4px -1.2%; }
.hero-full .mark img { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
@keyframes h-word { from { opacity: 0; transform: translateY(16px) scale(.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes h-stamp { 0% { opacity: 0; transform: scale(2.3) rotate(-7deg); } 62% { opacity: 1; transform: scale(.93) rotate(.5deg); } 82% { transform: scale(1.03) rotate(0); } 100% { opacity: 1; transform: scale(1); } }
@keyframes h-jolt { 0%, 100% { transform: none; } 30% { transform: translate(1px, 3px); } 65% { transform: translate(-1px, -1px); } }
.hero-full .pitch { max-width: 780px; margin-top: 10px; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.hero-full .subpitch { max-width: 560px; color: #cbbfa9; }
.hero-full .kicker { margin-bottom: 0; }
.k-in { animation: h-in .8s ease-out .1s both; }
@keyframes h-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.btn.ghost { border-color: rgba(236,227,210,.28); background: rgba(5,4,3,.35); }
.btn .play { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-right: 2px; }

.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-family: var(--label); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; font-size: 12px; animation: h-in .8s ease-out 2.8s both; }
.scroll-cue i { display: block; width: 1px; height: 34px; background: linear-gradient(var(--amber), transparent); animation: h-cue 2.2s ease-in-out 3.2s infinite; transform-origin: top; }
.scroll-cue:hover { color: var(--amber); }
@keyframes h-cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.watch { padding-top: 8px; border-top: 0; }
.watch .film { max-width: 1100px; margin: 0 auto !important; }

@media (max-width: 700px) {
  .hero-full { min-height: 600px; }
  .hero-full .slides { bottom: 36%; }
  .hero-full .slide img { object-position: 50% 35%; }
  .hero-full .haze { bottom: 30%; }
  .hero-full .shade { background: linear-gradient(180deg, rgba(5,4,3,0) 0%, rgba(5,4,3,0) 34%, rgba(5,4,3,.75) 56%, var(--ink) 66%, var(--ink) 100%); }
  .hero-full .hero-inner { justify-content: flex-end; padding-bottom: 92px; }
  .hero-full .mark { width: 92vw; margin-left: -2vw; }
  .hero-full .pitch { font-size: 25px; }
  .hero-full .subpitch { font-size: 15px; }
  .hero-full .btn { min-height: 46px; font-size: 18px; }
  .hero-full .pending-note { display: none; }
}
@media (max-height: 640px) and (min-width: 701px) { .hero-full .mark { width: clamp(260px, 36vw, 560px); } .hero-full .subpitch { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-full *, .hero-full *::before, .hero-full *::after, .hero-full .slides { animation: none !important; transition: none !important; }
  .hero-full .slide img { transform: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 700px) {
  .hero-full .slides { bottom: 40%; }
  .hero-full .slide img { object-position: 50% 26%; }
  .hero-full .shade { background: linear-gradient(180deg, rgba(5,4,3,0) 0%, rgba(5,4,3,0) 30%, rgba(5,4,3,.8) 52%, var(--ink) 61%, var(--ink) 100%); }
  .hero-full .hero-inner { padding-bottom: 26px; }
  .hero-full .kicker { font-size: 12px; letter-spacing: .14em; }
  .hero-full .mark { width: 80vw; margin-left: -1.5vw; }
  .hero-full .pitch { font-size: 23px; margin-top: 6px; margin-bottom: 8px; }
  .hero-full .subpitch { font-size: 14.5px; margin: 0 0 14px; }
  .hero-full .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-full .btns .btn { width: auto; min-height: 44px; font-size: 16px; padding: 8px 10px; }
  .hero-full .btns .btn.primary { grid-column: 1 / -1; }
  .hero-full .btn small { display: none; }
  .hero-full .btn.primary small { display: inline; }
  .scroll-cue { display: none; }
}

/* Log: then and now, the five-moment index, the score chart */
.thennow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0 0; max-width: 1000px; }
.thennow figure { margin: 0; }
.thennow img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); background: #000; }
.thennow figcaption, .ba figcaption { font-size: 14px; color: var(--muted); padding-top: 6px; }
.thennow .tag { display: block; font-family: var(--label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: var(--amber); }
.toc { list-style: none; counter-reset: m; margin: 26px 0 0; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.toc li { counter-increment: m; background: var(--ink-2); padding: 12px 14px; }
.toc li::before { content: counter(m, decimal-leading-zero); display: block; font-family: var(--label); font-weight: 700; color: var(--stamp-text); letter-spacing: .14em; font-size: 13px; }
.toc a { font-family: var(--label); font-weight: 600; font-size: 18px; line-height: 1.2; color: var(--cream); text-decoration: none; display: block; }
.toc a:hover { color: var(--amber); }
.toc span { display: block; margin-top: 4px; font-size: 13px; color: var(--amber); font-family: var(--label); letter-spacing: .04em; }
.chart { margin: 14px 0 12px; background: var(--ink-2); border: 1px solid var(--line); padding: 10px 8px 6px; max-width: 760px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .ylab text { fill: #7d725f; font: 600 13px var(--label); text-anchor: end; }
.chart .xlab text { fill: var(--muted); font: 600 13px var(--label); text-anchor: middle; letter-spacing: .04em; }
.chart .val text { fill: var(--amber); font: 700 18px var(--label); text-anchor: middle; }
.chart .line { fill: none; stroke: var(--bronze); stroke-width: 2.5; }
.chart .pts circle { fill: var(--ink); stroke: var(--amber); stroke-width: 2.5; }
.chart .pts .last { fill: var(--amber); }
@media (max-width: 560px) { .thennow { grid-template-columns: 1fr; } .chart .xlab text { font-size: 15px; } }

/* Round 1 fixes */
.hero-full { background: var(--ink); }
.hero-full .subpitch { max-width: 680px; }
.watch { padding-top: 40px; }
.btn.is-pending { background: transparent; border: 2px dashed var(--bronze-dk); color: var(--muted); box-shadow: none; cursor: default; }
.controls th { white-space: nowrap; }
.hooks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.hooks a { display: flex; gap: 12px; align-items: baseline; text-decoration: none; color: var(--cream); background: var(--ink-2); border: 1px solid var(--line); padding: 10px 14px; }
.hooks a:hover { border-color: var(--amber); }
.hooks b { font-family: var(--label); font-size: 20px; color: var(--amber); white-space: nowrap; min-width: 118px; }
.hero-thumbs { display: flex; gap: 10px; margin-top: 18px; }
.hero-thumbs a { position: relative; display: block; width: 168px; border: 1px solid rgba(236,227,210,.18); text-decoration: none; background: #000; }
.hero-thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .9; transition: opacity .2s; }
.hero-thumbs a:hover { border-color: var(--amber); }
.hero-thumbs a:hover img { opacity: 1; }
.hero-thumbs span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--cream); background: linear-gradient(transparent, rgba(0,0,0,.85)); }
@media (max-width: 700px) { .hero-thumbs { gap: 6px; margin-top: 10px; } .hero-thumbs a { width: auto; flex: 1; } .hero-thumbs span { font-size: 10px; padding: 10px 4px 3px; letter-spacing: .03em; } }
@media (max-height: 760px) and (min-width: 701px) { .hero-thumbs { margin-top: 12px; } .hero-thumbs a { width: 132px; } }
/* the hero arrives faster: word 0.15 s, stamp 0.75 s, pitch 0.95 s, buttons 1.1 s */
.hero-full .word { animation: h-word .8s cubic-bezier(.2,.7,.2,1) .15s both, h-jolt .28s ease-out 1.06s; }
.hero-full .stamp-img { transform-origin: 76.5% 77.8%; animation: h-stamp .5s cubic-bezier(.3,0,.2,1) .75s both; }
.t-in { animation: h-in .7s ease-out .95s both; }
.t-in2 { animation: h-in .7s ease-out 1.05s both; }
.b-in { animation: h-in .7s ease-out 1.15s both; }
.n-in { animation: h-in .7s ease-out 1.35s both; }
.scroll-cue { animation: h-in .8s ease-out 1.8s both; }
.scroll-cue i { animation: h-cue 2.2s ease-in-out 2.2s infinite; }
.hero-full .slides { animation: h-fade .9s ease-out both; }

.lessons a { font-family: var(--label); font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.lessons a::before { content: "\2192\00a0"; }
.money { list-style: none; counter-reset: p; padding: 0; margin: 24px 0 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.money li { counter-increment: p; background: var(--ink-2); border: 1px solid var(--line); border-top: 3px solid var(--bronze-dk); padding: 16px 18px; color: var(--cream); font-size: 16px; }
.money b { display: block; font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; color: var(--amber); font-size: 20px; margin-bottom: 6px; }
.money b::before { content: counter(p, decimal-leading-zero) "  "; color: var(--stamp-text); font-size: 15px; }
.controls-h { margin-top: 8px; }
#controls .table-wrap { max-width: 860px; }
@media (max-width: 760px) { .money { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .toc { grid-template-columns: 1fr 1fr; } .toc li:last-child { grid-column: 1 / -1; } .toc a { font-size: 16px; } }
.inside-h { margin-top: 34px; font-size: clamp(20px, 2.2vw, 26px); }
.inside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.paper { margin: 0; background: var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--bronze-dk); padding: 14px 16px; }
.paper figcaption { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.paper .tag { display: block; font-family: var(--label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: var(--amber); }
.paper blockquote { margin: 0; font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; font-size: 13.5px; line-height: 1.55; color: var(--cream); }
.byline { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 860px; }
@media (max-width: 700px) { .inside { grid-template-columns: 1fr; } }
.toc li::before { color: var(--stamp-text); }
.chart .ylab text { fill: #8e826c; }
/* the score chart on phones: plain bars from zero */
.chart-bars { display: none; list-style: none; margin: 0; padding: 4px 2px; }
.chart-bars li { display: grid; grid-template-columns: 96px 1fr 30px; align-items: center; gap: 8px; padding: 3px 0; }
.chart-bars span { font-family: var(--label); font-weight: 600; font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.chart-bars i { display: block; height: 12px; width: calc(var(--v) / 35 * 100%); background: var(--bronze-dk); border-right: 3px solid var(--amber); }
.chart-bars li:last-child i { background: var(--amber); }
.chart-bars b { font-family: var(--label); color: var(--amber); font-size: 17px; text-align: right; }
@media (max-width: 560px) { .chart svg { display: none; } .chart-bars { display: block; } }
.made { border-top: 0; padding-top: 24px; }
.made .hooks { margin-top: 6px; }
/* Round 3: the hero is lit from the first paint; phones lose the kicker; bigger thumb labels */
.hero-full .slides { animation: none; }
@media (max-width: 700px) { .hero-full .kicker { display: none; } .hero-thumbs span { font-size: 12px; } }
.small-pair { margin: 0 0 14px; }
.small-pair img { aspect-ratio: 16 / 9; }
.small-pair figcaption { font-size: 13px; }
.thennow, .toc { max-width: none; }
.hooks b { min-width: 150px; }
@media (max-width: 560px) { .hooks a { flex-direction: column; gap: 2px; } }
#crew.crew-folded .two-col > div > *:not(p:first-of-type):not(.readmore):not(.kicker):not(h2),
#crew.crew-folded .two-col > div:last-child,
#crew.crew-folded .inside-h, #crew.crew-folded .inside, #crew.crew-folded .byline { display: none; }

/* ===== Round 5 ===== */
/* log: a sodium band over the opening */
.log-band { position: absolute; left: 0; right: 0; top: 52px; height: 420px; z-index: -1; background:
  linear-gradient(90deg, var(--ink) 0%, rgba(11,9,7,.92) 38%, rgba(11,9,7,.35) 70%, rgba(11,9,7,.6) 100%),
  linear-gradient(180deg, rgba(11,9,7,0) 55%, var(--ink) 100%),
  url("../img/key.jpg") right 20% / cover no-repeat; opacity: .9; }
.log-hero h1 { position: relative; }
.log-hero h1::after { content: "BUILD LOG"; position: relative; top: -.55em; margin-left: 18px; display: inline-block; font-size: 15px; letter-spacing: .16em; color: var(--stamp-text); border: 2px solid var(--stamp-text); padding: 2px 10px; transform: rotate(-4deg); vertical-align: middle; }
@media (max-width: 700px) { .log-band { height: 300px; background-position: 70% 20%, 0 0, 70% 20%; opacity: .55; } .log-hero h1::after { display: none; } }
/* log: entry titles in the house style, a wider column, pictures without bars */
.entry h3 { text-transform: uppercase; letter-spacing: .03em; }
.entry .body { max-width: none; }
.entry figure img { width: auto; max-width: 100%; max-height: 640px; background: none; border: 1px solid var(--line); }
.entry .pair img, .entry .pair.three img { width: 100%; }
.entry .ba video { width: 100%; }
/* home: the hooks as a two-column grid */
.hooks a { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: baseline; }
.hooks b { min-width: 0; white-space: nowrap; }
.hooks span { color: var(--cream); }
@media (max-width: 560px) { .hooks a { grid-template-columns: 1fr; gap: 2px; } }
/* home: the gameplay loop in the hero (wide screens); thumbs on phones */
.hero-full .hero-thumbs { display: none; }
/* ===== Round 6 ===== */
.nw { white-space: nowrap; }
.log-band { background:
  linear-gradient(90deg, var(--ink) 0%, rgba(11,9,7,.9) 40%, rgba(11,9,7,.25) 72%, rgba(11,9,7,.55) 100%),
  linear-gradient(180deg, rgba(11,9,7,0) 55%, var(--ink) 100%),
  url("../hero/t2.webp") right 30% / cover no-repeat; }
@media (max-width: 700px) { .log-band { background-position: 0 0, 0 0, 65% 25%; opacity: .5; } }
.entry .body { max-width: 900px; }
.entry .body > p, .entry .body > ul, .entry .body .quote, .entry .more > p, .entry .more > ul { max-width: 72ch; }
.entry figure img { width: 100%; max-height: none; }
.entry figure.narrow img { width: auto; max-width: min(100%, 560px); }
.l-in { animation: h-in .7s ease-out .6s both; }
@media (max-width: 700px) { .hero-full .kicker { font-size: 13px; } }
.hooks.cards { grid-template-columns: 1fr; gap: 10px; }
.hooks.cards a { display: grid; grid-template-columns: 132px 1fr; grid-template-rows: auto 1fr; gap: 2px 14px; align-items: start; padding: 10px; }
.hooks.cards img { grid-row: 1 / 3; width: 132px; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.hooks.cards b { font-size: 20px; white-space: normal; }
.hooks.cards span { font-size: 15px; color: var(--muted); }
@media (max-width: 560px) { .hooks.cards a { grid-template-columns: 110px 1fr; } .hooks.cards img { width: 110px; } }
@media (max-width: 700px) { .hero-full .mark { order: 0; } .hero-full .kicker { order: 1; margin: 4px 0 0; } .hero-full .pitch, .hero-full .subpitch, .hero-full .btns, .hero-full .hero-thumbs { order: 2; } }
/* ===== Round 7 ===== */
/* the hero loop as a monitor in the lower right, over the dark of the suit */

/* log: the five turning points stand out; small technical fixes stay compact */
.entry.turn .body { background: linear-gradient(90deg, rgba(201,160,102,.07), rgba(201,160,102,0) 70%); border-left: 3px solid var(--bronze); padding: 4px 0 6px 20px; }
.entry.turn h3 { font-size: clamp(26px, 3vw, 38px); }
.entry.turn h3::before { content: "Turning point"; display: block; font-size: 13px; letter-spacing: .2em; color: var(--stamp-text); margin-bottom: 4px; }
.entry.turn .when { border-top-width: 4px; }
.entry.minor { padding-bottom: 28px; }
.entry.minor h3 { font-size: clamp(18px, 1.8vw, 22px); color: var(--cream); }
.entry.minor h3::before { content: "Fix"; display: inline-block; font-size: 12px; letter-spacing: .16em; color: var(--muted); border: 1px solid var(--line); padding: 0 6px; margin-right: 10px; vertical-align: middle; }
.entry.minor .when { border-top-color: var(--line); color: var(--muted); }
.entry.minor p { font-size: 16px; color: #d8cfbe; }
/* one change, end to end */
.cycle { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: c; }
.cycle li { counter-increment: c; background: var(--ink-2); border: 1px solid var(--line); border-top: 3px solid var(--amber); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.cycle .step { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--amber); }
.cycle .step::before { content: counter(c) " \00b7 "; color: var(--stamp-text); }
.cycle q { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; line-height: 1.5; color: var(--cream); quotes: "\201C" "\201D"; }
.cycle img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.cycle em { font-style: normal; font-size: 13px; color: var(--muted); margin-top: auto; }
@media (max-width: 860px) { .cycle { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cycle { grid-template-columns: 1fr; } }
.paper .tag { text-decoration: none; }
.paper a.tag:hover { color: #ffc46e; }
/* the monitor only where it has room: wide screens; the text sits higher to clear it */
@media (min-width: 1280px) and (min-height: 760px) {
  .hero-full .hero-inner { padding-bottom: 190px; }
}


/* ===== Round 8 ===== */
/* the hero's gameplay loop: one block. Inline under the buttons up to 1279 px; a monitor in the lower right from 1280 px */
.hero-loop { margin: 16px 0 0; width: 300px; max-width: 100%; }
.hero-loop video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid rgba(240,163,58,.35); background: #000; }
.hero-loop figcaption { font-family: var(--label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: var(--muted); padding-top: 6px; }
@media (max-width: 700px) { .hero-loop { display: none; } }
@media (min-width: 701px) and (max-height: 700px) { .hero-loop { width: 220px; margin-top: 10px; } }
@media (min-width: 1280px) and (min-height: 700px) {
  .hero-loop { position: absolute; right: var(--gutter); bottom: 56px; width: 260px; margin: 0; box-shadow: 0 18px 50px rgba(0,0,0,.7); }
  .hero-loop figcaption { text-align: right; }
}
@media (min-width: 1600px) and (min-height: 860px) { .hero-loop { width: 380px; } }
@media (min-width: 2200px) and (min-height: 1100px) { .hero-loop { width: 480px; } }
/* words arrive with the stamp */
.t-in { animation: h-in .6s ease-out .7s both; }
.t-in2 { animation: h-in .6s ease-out .8s both; }
.b-in { animation: h-in .6s ease-out .9s both; }
.l-in { animation: h-in .6s ease-out 1s both; }
@media (max-width: 700px) { .log-band { display: none; } }
@media (max-width: 700px) { .hero-full .hero-thumbs { display: flex; } .hero-full .kicker { display: block; } }
.tp-switch { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; color: var(--ink); background: var(--amber); border: 1px solid var(--amber); border-radius: 2px; padding: 4px 12px; cursor: pointer; white-space: nowrap; }
.tp-switch[aria-pressed="true"] { background: transparent; color: var(--amber); }
body.tp-only .entry:not(.turn) { display: none; }
body.tp-only .day > p { display: none; }
.gloss { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 18px 0 0; max-width: 860px; font-size: 15px; }
.gloss dt { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); }
.gloss dd { margin: 0; color: var(--cream); }
.entry.minor .readmore { margin-top: 0; }
@media (max-width: 700px) { .gloss { grid-template-columns: 1fr; gap: 0 0; } .gloss dd { margin-bottom: 8px; } }
#crew.crew-folded .cycle-h { display: block; }
/* ===== Round 9 ===== */
/* desktop hero: the three gameplay thumbs under the buttons too; a bigger monitor on wide screens */
@media (min-width: 701px) { .hero-full .hero-thumbs { display: flex; margin-top: 18px; } .hero-full .hero-thumbs a { width: 200px; } }
@media (min-width: 701px) and (max-height: 760px) { .hero-full .hero-thumbs a { width: 150px; } }
@media (min-width: 701px) and (max-width: 1279px) { .hero-loop { display: none; } }
@media (min-width: 1280px) and (min-height: 760px) { .hero-loop { width: 360px; } }
@media (min-width: 1280px) and (max-height: 759px) { .hero-loop { display: none; } }
/* How it was made: the change, wide; three cards in a row */
.made-lede { max-width: 860px; }
.wide-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 18px; }
.wide-pair img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.wide-pair figure { margin: 0; }
.wide-pair figcaption { font-size: 14px; color: var(--muted); padding-top: 6px; }
.wide-pair .tag { display: block; font-family: var(--label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: var(--amber); }
.hooks.cards.row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hooks.cards.row a { grid-template-columns: 1fr; grid-template-rows: auto; }
.hooks.cards.row img { grid-row: auto; width: 100%; }
@media (max-width: 760px) { .hooks.cards.row { grid-template-columns: 1fr; } .hooks.cards.row a { grid-template-columns: 110px 1fr; } .hooks.cards.row img { grid-row: 1 / 3; width: 110px; } .wide-pair { grid-template-columns: 1fr; } }
/* the switch: outlined when off, filled when on */
.tp-switch { background: transparent; color: var(--amber); }
.tp-switch[aria-pressed="true"] { background: var(--amber); color: var(--ink); }
/* the firewall picture stays small */
.entry figure.narrow img { max-width: min(100%, 420px); }
/* ===== Round 10 ===== */
.made { border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 88px); }
#crew.crew-folded .gloss { display: none; }
/* numbers as callouts in a right column on wide screens */
@media (min-width: 1200px) {
  .entry .body { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 230px; column-gap: 32px; align-items: start; }
  .entry .body > * { grid-column: 1; }
  .entry .body > .number { grid-column: 2; grid-row: 1 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 4px; }
  .entry .body > .number b { font-size: 30px; line-height: 1.05; }
  .entry.turn .body > .number b { font-size: 40px; }
  .entry.minor .body > .number b { font-size: 22px; }
}
/* turning points: bigger title and picture; others quieter */
.entry.turn h3 { font-size: clamp(28px, 3.4vw, 44px); }
.entry:not(.turn):not(.minor) h3 { font-size: clamp(20px, 2vw, 26px); }
/* captions readable */
figure figcaption, .entry figure figcaption, .wide-pair figcaption, .thennow figcaption, .chart figcaption { font-size: 14px; color: #b3a791; }
/* phones: the day bar wraps instead of scrolling */
@media (max-width: 700px) { .daynav { position: static; } .daynav .wrap { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; padding-right: var(--gutter); } .daynav a, .tp-switch { font-size: 14px; padding: 3px 9px; } }
/* ===== Round 11: Made with, hero, folds ===== */
.made-with { border-top: 1px solid var(--line); }
.mw-lede { max-width: 72ch; color: var(--muted); }
.mw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.mw-card { background: var(--ink-2); border: 1px solid var(--line); border-top: 3px solid var(--bronze); padding: 16px 18px 18px; display: flex; flex-direction: column; }
.mw-card h3 { font-size: clamp(20px, 2vw, 26px); margin: 2px 0 12px; }
.mw-tag { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 13px; color: var(--stamp-text); margin: 0; }
.mw-card figure { margin: 0 0 8px; }
.mw-card figure img { width: 100%; height: auto; border: 1px solid var(--line); }
.mw-card p { font-size: 15.5px; }
.mw-how { color: #d8cfbe; }
.mw-state { margin-top: auto; font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--amber); border-top: 1px solid var(--line); padding-top: 10px; }
.mw-state.is-in { color: var(--bronze); }
.mw-thumbs { display: grid; gap: 6px; margin: 0 0 10px; }
.mw-thumbs.three { grid-template-columns: 1fr 1fr; }
.mw-thumbs.three img:last-child { grid-column: 1 / -1; }
.mw-thumbs img { width: 100%; height: auto; border: 1px solid var(--line); }
.mw-items { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.mw-items li { background: #8d8d8d; border: 1px solid var(--line); display: flex; flex-direction: column; }
.mw-items img { width: 100%; aspect-ratio: 7 / 8; object-fit: cover; }
.mw-items span { background: var(--ink-2); font-size: 12px; line-height: 1.25; padding: 4px 5px; color: var(--cream); flex: 1; }
.mw-also-h { margin-top: 30px; font-size: 20px; }
.mw-also { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; max-width: 1100px; font-size: 15px; }
.mw-also li { border-left: 2px solid var(--line); padding-left: 10px; }
.mw-also b { color: var(--bronze); }
@media (max-width: 980px) { .mw-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .mw-grid, .mw-also { grid-template-columns: 1fr; } }
/* home band */
.mw-band { padding: 40px 0 44px; }
.mw-names { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mw-names li { background: var(--ink-2); padding: 14px 16px; }
.mw-names b { display: block; font-family: var(--label); font-size: 20px; color: var(--bronze); letter-spacing: .02em; }
.mw-names span { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .mw-names { grid-template-columns: 1fr 1fr; } }
.made-stats { margin: 18px 0 4px; }
/* hero: bigger thumbs on desktop, words sooner */
@media (min-width: 701px) { .hero-full .hero-thumbs a { width: 260px; } }
@media (min-width: 1280px) and (min-height: 820px) { .hero-full .hero-thumbs a { width: 300px; } }
.hero-full .word { animation: h-word .6s cubic-bezier(.2,.7,.2,1) .05s both, h-jolt .28s ease-out .86s; }
.hero-full .stamp-img { animation: h-stamp .45s cubic-bezier(.3,0,.2,1) .5s both; }
.t-in { animation: h-in .5s ease-out .45s both; }
.t-in2 { animation: h-in .5s ease-out .5s both; }
.b-in { animation: h-in .5s ease-out .55s both; }
.n-in { animation: h-in .5s ease-out .6s both; }
.scroll-cue { animation: h-in .8s ease-out 1.2s both; }
/* fold buttons as small text buttons */
.unfold { display: inline-block; font-size: 13px; padding: 4px 10px; background: transparent; border-color: var(--line); }
/* phones: one sticky scrolling day row with a fade */
@media (max-width: 700px) {
  .daynav { position: sticky; top: 52px; }
  .daynav .wrap { flex-wrap: nowrap; overflow-x: auto; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 48px; }
}
body.tp-only .day:not(:has(.turn)) { display: none; }
body.tp-only #made-with { display: block; }
@media (min-width: 701px) { .hero-full .hero-inner { padding-bottom: 80px; padding-top: 24px; } }
/* ===== Round 12 ===== */
/* the big play button */
[data-film] { position: relative; }
.bigplay { position: absolute; left: 50%; top: calc(50% - 20px); transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 50%; border: 2px solid rgba(255,246,234,.85); background: rgba(196,54,44,.9); cursor: pointer; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.bigplay span { display: block; width: 0; height: 0; margin-left: 38px; border-left: 30px solid #fff6ea; border-top: 19px solid transparent; border-bottom: 19px solid transparent; }
.bigplay:hover { background: #d8443a; }
[data-film].is-playing .bigplay { display: none; }
@media (max-width: 560px) { .bigplay { width: 68px; height: 68px; } .bigplay span { margin-left: 26px; border-left-width: 22px; border-top-width: 14px; border-bottom-width: 14px; } }
/* Made with inside How it was made */
.mw-h { margin-top: 30px; font-size: 22px; }
.mw-names span { font-size: 15px; color: #cbbfa9; }
/* real buttons for the folds */
.unfold { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; padding: 6px 14px; color: var(--amber); background: var(--ink-2); border: 1px solid var(--bronze-dk); border-radius: 2px; }
.unfold::after { content: " \25BE"; margin-left: 6px; }
.unfold[aria-expanded="true"]::after { content: " \25B4"; }
/* the prompt, quoted */
.mw-prompt { margin: 0 0 12px; padding: 8px 10px; border-left: 3px solid var(--bronze-dk); background: rgba(0,0,0,.25); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; line-height: 1.5; color: var(--cream); }
/* commits per day */
.commits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 10px; height: 200px; margin: 28px 0 8px; max-width: 640px; padding-bottom: 46px; position: relative; }
.cbar { height: calc(var(--n) / 757 * 100%); min-height: 26px; background: var(--bronze-dk); border-top: 3px solid var(--amber); position: relative; }
.cbar b { position: absolute; top: -26px; left: 0; right: 0; text-align: center; font-family: var(--label); color: var(--amber); font-size: 18px; }
.cbar span { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.commits figcaption { position: absolute; left: 0; right: 0; bottom: 0; }
/* one rule set for the phone day bar */
@media (max-width: 700px) { .daynav { position: sticky; top: 52px; } }
/* ===== Round 13: phone first ===== */
.made-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hooks.cards.row li { display: flex; }
.hooks.cards.row a { height: 100%; width: 100%; }
.mw-also-line { font-size: 15px; color: #cbbfa9; margin: 10px 0 18px; }
.compact { margin: 18px 0 14px; }
.crew-sum { max-width: 72ch; }
.commits { padding-bottom: 0; height: auto; display: block; }
.commits .cbars { display: none; }
/* commits: bars in a fixed-height row, caption below */
.commits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 170px auto auto; column-gap: 10px; align-items: end; }
.commits .cbar { grid-row: 1; height: calc(var(--n) / 757 * 150px); align-self: end; }
.commits .cbar span { bottom: -24px; }
.commits figcaption { position: static; grid-column: 1 / -1; grid-row: 3; padding-top: 30px; }
/* loops are tappable */
video[data-autoplay] { cursor: pointer; }
@media (max-width: 700px) {
  body { font-size: 16px; }
  /* the hero ends on its buttons */
  .hero-full .hero-thumbs { display: none; }
  /* tap targets */
  .topbar nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .daynav a, .tp-switch { display: inline-flex; align-items: center; min-height: 44px; }
  footer a { display: inline-block; padding: 12px 4px; }
  .lessons a { display: inline-block; padding: 8px 0; }
  /* type: captions 14 px or more */
  figure figcaption, .entry figure figcaption, .wide-pair figcaption, .thennow figcaption, .chart figcaption, .ba figcaption,
  .mw-items span, .mw-tag, .mw-state, .cycle q, .cycle em, .cycle .step, .paper blockquote, .paper figcaption, .toc span,
  .stats span, .entry .when span, .src, .mw-prompt, .cbar span, .chart-bars span, .unfold, .hooks.cards span, .mw-names span { font-size: 14px; }
  .toc a { font-size: 17px; }
  /* three pictures in a row become a swipe row */
  .entry .pair.three { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 6px; }
  .entry .pair.three figure { flex: 0 0 82%; scroll-snap-align: start; }
  .ba { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; }
  .ba figure { flex: 0 0 86%; scroll-snap-align: start; }
  .made-stats { grid-template-columns: 1fr 1fr 1fr; }
  .made-stats b { font-size: 24px; }
  .commits { grid-template-rows: 150px auto auto; }
  .commits .cbar { height: calc(var(--n) / 757 * 130px); }
}
/* ===== Phone round 2 ===== */
.topbar .name { display: inline-flex; align-items: center; min-height: 44px; }
.to-top { position: fixed; right: 14px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; background: rgba(19,16,12,.94); border: 1px solid var(--bronze-dk); color: var(--amber); font-family: var(--label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 6px 20px rgba(0,0,0,.6); }
.to-top.on { opacity: 1; pointer-events: auto; }
.daynav a.here { border-color: var(--amber); color: var(--amber); }
.tap-play { position: relative; }
.tap-play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(196,54,44,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23fff6ea'/%3E%3C/svg%3E") center / 30px no-repeat; pointer-events: none; }
.ba .tap-play::after, figure.tap-play::after { top: 40%; }
.cycle .step::before { content: counter(c) "\00a0\00b7\00a0"; }
@media (max-width: 700px) {
  /* one sticky bar on the log: the site bar scrolls away, the day bar sticks at the top */
  body:has(.daynav) .topbar { position: static; }
  .daynav { position: sticky; top: 0; background: var(--ink); backdrop-filter: none; z-index: 25; }
  .daynav .wrap { gap: 6px; padding-top: 6px; padding-bottom: 6px; -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); padding-right: 64px; }
  .daynav a, .tp-switch { min-height: 44px; padding: 0 12px; font-size: 15px; }
  .tp-switch { color: var(--cream); border: 1px solid var(--line); background: transparent; }
  .tp-switch[aria-pressed="true"] { background: var(--amber); color: var(--ink); }
  .topbar { background: var(--ink); backdrop-filter: none; }
  /* entries: solid cards, no second indent, full-width numbers */
  .entry.turn .body { background: var(--ink-2); border-left-width: 3px; padding: 10px 12px 12px; }
  .entry .number { display: flex; width: 100%; box-sizing: border-box; }
  .entry .readmore { margin: 8px 0 0; }
  .prejam { padding: 14px 12px; }
  .prejam blockquote { border-left: 0; padding-left: 0; }
  .lessons a { font-family: var(--body); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 16px; }
  /* home: shorter middle */
  section { padding-top: 56px; padding-bottom: 56px; }
  .made-stats { grid-template-columns: 1fr; }
  .made-stats div { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; gap: 10px; padding: 10px 14px; }
  .made-stats b { font-size: 26px; margin: 0; }
  .mw-names { grid-template-columns: 1fr; }
  .mw-names li { padding: 10px 14px; }
  .hero-full .kicker { font-size: 14px; letter-spacing: .1em; }
  .hero-full .btns .btn { font-size: 15px; letter-spacing: .05em; }
  .film figcaption { padding: 10px 12px 12px; }
  .mw-items { grid-template-columns: 1fr 1fr; }
  .mw-thumbs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) { .hero-full .btns .btn { font-size: 14px; padding: 6px 8px; } .hero-full .kicker { letter-spacing: .06em; } }
.mw-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 10px; }
.mw-thumbs figure { margin: 0; }
.mw-thumbs figcaption { font-size: 13px; padding-top: 3px; }
@media (max-width: 700px) {
  .thennow { grid-template-columns: 1fr 1fr; gap: 8px; }
  .thennow figcaption { font-size: 14px; }
}
/* ===== Phone round 3 ===== */
.send-pc { display: none; }
.chip-phone { display: none !important; }
.mw-state { margin: 0 0 10px; border-top: 0; padding-top: 0; }
.mw-card .mw-state { order: 0; }
.toggle-h { cursor: pointer; }
@media (max-width: 700px) {
  .send-pc { display: block; margin: 10px 0 0; font-size: 15px; }
  .send-pc a { display: inline-flex; align-items: center; min-height: 44px; color: var(--amber); }
  .chip-phone { display: inline-flex !important; }
  .toggle-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 44px; margin-bottom: 4px; }
  .toggle-h::after { content: "\25BE"; color: var(--amber); font-size: 18px; line-height: 1.2; flex: 0 0 auto; }
  .toggle-h[aria-expanded="true"]::after { content: "\25B4"; }
  .entry { padding-bottom: 22px; }
  .entry .number { margin-top: 2px; padding: 6px 12px; }
  .day { padding-top: 12px; }
  .day-head { margin-bottom: 18px; }
  section { padding-top: 40px; padding-bottom: 40px; }
  .watch { padding-top: 8px; padding-bottom: 24px; }
  .mw-thumbs figcaption, figure figcaption { font-size: 14px; }
  #download .btn.primary { justify-content: center; text-align: center; font-size: 15px; }
  .entry .more > p:first-child { margin-top: 6px; }
}
.hero-thumbs span { background: linear-gradient(transparent, rgba(0,0,0,.92) 45%); padding-top: 22px; }
@media (max-width: 700px) { .hero-full .send-pc { order: 3; margin: 6px 0 0; } }
/* ===== Phone round 4 ===== */
@media (max-width: 700px) {
  .daynav .pin { position: sticky; left: 0; z-index: 3; display: inline-flex; gap: 6px; background: var(--ink); padding-right: 6px; box-shadow: 8px 0 10px -6px rgba(0,0,0,.9); margin-left: -2px; }
  .toggle-h { justify-content: flex-start; text-align: left; }
  .toggle-h::after { margin-left: auto; }
  .entry.minor h3.toggle-h::before { flex: 0 0 auto; margin-top: 3px; }
  .entry:not(:has(.number)) { padding-bottom: 12px; }
  .mw-card .readmore { align-self: flex-start; }
  /* hero: words in the first paint, the robot higher, a shade behind the word */
  .t-in, .t-in2, .b-in, .n-in, .k-in { animation: none; }
  .hero-full .slide img { object-position: 50% 8%; }
}
/* ===== Phone round 5 ===== */
@media (max-width: 700px) {
  .entry.minor h3.toggle-h::before { content: none; }
  .entry.minor .when::after { content: "Fix"; font-size: 12px; letter-spacing: .14em; color: var(--muted); border: 1px solid var(--line); padding: 0 6px; margin-left: 8px; }
  .toggle-h::after { font-size: 24px; line-height: 1; padding: 0 2px 0 10px; }
  .entry:has(.toggle-h) { padding-bottom: 14px; }
  .lessons li a { display: block; margin-top: 2px; }
  #lessons .btns { flex-direction: column; }
  #lessons .btn { justify-content: center; text-align: center; width: 100%; }
  .tap-play::after { width: 44px; height: 44px; margin: -22px 0 0 -22px; background-size: 24px; }
  footer .wrap > span:last-child a { padding: 12px 8px; }
  [data-fold-phone] + * {}
}
.mw-sub { font-size: 14px; color: var(--muted); margin: 4px 0 6px; }
.mw-items li { background: #8d8d8d; }

/* ===== Phone round 5 ===== */
@media (max-width: 700px) {
  /* the word sits on the picture again (screen blend, no box); a soft shade behind it lives in the hero's shade layer */
  .hero-full .shade { background:
    radial-gradient(60% 18% at 40% 52%, rgba(5,4,3,.62), rgba(5,4,3,0)),
    linear-gradient(180deg, rgba(5,4,3,0) 0%, rgba(5,4,3,0) 30%, rgba(5,4,3,.8) 52%, var(--ink) 61%, var(--ink) 100%); }
  .hero-full .word { animation: none; }
  .hero-full .stamp-img { animation: h-stamp .45s cubic-bezier(.3,0,.2,1) .15s both; }
  /* the day bar: nothing shows to the left of the pinned arrows */
  .daynav .wrap { padding-left: 0; }
  .daynav .pin { left: 0; margin-left: 0; padding-left: var(--gutter); padding-right: 8px; }
  .daynav .chip-phone { min-width: 44px; justify-content: center; font-size: 18px; padding: 0 10px; }
  /* closed rows: tighter */
  .entry:has(.toggle-h) { padding-bottom: 6px; }
  .entry:has(.toggle-h) .when { margin-bottom: 2px; }
  .toggle-h { margin-bottom: 0; }
  /* state lines in sentence case */
  .mw-state { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; }
  /* fold buttons for whole blocks: full width */
  .unfold.wide { display: flex; width: 100%; justify-content: center; }
  /* home: How it was made, shorter */
  #made .thennow { display: none; }
  #made .btns .btn.ghost { display: none; }
  .mw-h a { color: inherit; text-decoration: none; }
}
/* ===== Phone round 6 ===== */
@media (max-width: 700px) {
  .daynav .chip-phone { background: var(--ink); font-size: 15px; min-width: 44px; }
  .daynav .pin { gap: 6px; }
  /* closed rows on one line: time at the left, heading beside it */
  .entry:has(.toggle-h) { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: start; column-gap: 8px; padding-bottom: 4px; }
  .entry:has(.toggle-h) .when { border-left: 2px solid var(--stamp); padding: 4px 0 0 8px; margin: 0; display: block; font-size: 15px; }
  .entry:has(.toggle-h) .when span { display: block; font-size: 12px; }
  .entry.minor:has(.toggle-h) .when::after { display: block; margin: 2px 0 0; width: max-content; }
  .entry:has(.toggle-h) .body { min-width: 0; }
  .entry:has(.toggle-h) h3 { font-size: 18px; line-height: 1.2; padding: 6px 0; }
  .entry.minor .when { color: var(--stamp-text); }
  /* turning points: the first picture is a band, not a page */
  .entry.turn .body > figure img, .entry.turn .body > figure picture img { max-height: 210px; object-fit: cover; }
  /* hero: the head closer to the bar */
  .hero-full .slides { top: -64px; }
  .mw-h a { display: inline-flex; align-items: center; min-height: 44px; }
  .unfold.readmore:not(.wide) { border-style: dashed; }
}
@media (max-width: 700px) {
  /* log opening: a picture before the numbers */
  .log-hero { display: flex; flex-direction: column; }
  .log-hero .thennow { order: 3; margin-top: 16px; }
  .log-hero .stats { order: 4; margin-top: 16px; }
  .log-hero .toc { order: 5; }
  .entry.turn + .entry, .entry + .entry.turn { margin-top: 14px; }
  .mw-card > p:not(.mw-tag):not(.mw-state) { margin-bottom: 8px; }
}
.mw-items li { background: #2a241c; }
/* ===== Round P7 ===== */
@media (max-width: 700px) {
  section { padding-top: 28px; padding-bottom: 28px; }
  #made .hooks.cards { display: none; }
  .entry:has(.toggle-h) .when span { display: none; }
  .entry.minor:has(.toggle-h) .when::after { font-size: 13px; color: var(--cream); border-color: var(--bronze-dk); }
  .entry.turn .body > figure picture img { max-height: none; }
  .entry.turn .body > figure:has(picture) img { max-height: none; object-fit: contain; }
}
@media (max-width: 700px) { .entry.turn .body > figure img.strip { max-height: none; object-fit: contain; } }
/* ===== Round P8 ===== */
.tp-switch { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.tp-switch:hover { border-color: var(--amber); color: var(--amber); }
.tp-switch[aria-pressed="true"] { background: var(--amber); color: var(--ink); border-color: var(--amber); }
@media (max-width: 700px) {
  /* loops: a small corner tag, not a big play disc */
  .tap-play::after { left: auto; top: auto; right: 8px; bottom: 8px; margin: 0; width: auto; height: auto; border-radius: 3px; padding: 3px 8px 3px 22px; background: rgba(11,9,7,.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 6l10 6-10 6z' fill='%23f0a33a'/%3E%3C/svg%3E") 4px 50% / 16px no-repeat; content: "Loop"; font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
  .ba .tap-play::after, figure.tap-play::after { top: auto; }
  /* the log reaches Thursday sooner */
  .log-hero .stats { display: none; }
  /* closed rows read as sentences */
  .entry:has(.toggle-h) h3 { text-transform: none; letter-spacing: 0; font-size: 18px; }
  /* chips slide under a fade, not a hard edge */
  .daynav .pin { box-shadow: none; }
  .daynav .pin::after { content: ""; position: absolute; top: 0; bottom: 0; right: -22px; width: 22px; background: linear-gradient(90deg, var(--ink), rgba(11,9,7,0)); pointer-events: none; }
  .daynav .pin { position: sticky; }
}
.mw-names { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .mw-names { grid-template-columns: 1fr; } }
/* ===== Round P9 ===== */
@media (max-width: 700px) {
  .hero-full .stamp-img { animation: none; }
  /* the lens strip and the two endings swipe sideways at full size */
  figure.swipe3, figure.swipe2 { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  figure.swipe3 img.strip { width: 300%; max-width: none; }
  figure.swipe2 img.strip { width: 200%; max-width: none; }
  figure.swipe3 figcaption, figure.swipe2 figcaption { position: sticky; left: 0; width: calc(100vw - 2 * var(--gutter) - 40px); }
  figure.swipe3::before, figure.swipe2::before { content: "Swipe \2192"; position: sticky; left: 0; display: block; font-family: var(--label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--amber); margin-bottom: 4px; }
  /* turning points: four lines until "Read more" */
  .entry.turn .body:not(.is-open) > p:not(.quote):first-of-type { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .daynav .pin::after { right: -36px; width: 36px; background: linear-gradient(90deg, var(--ink) 40%, rgba(11,9,7,0)); }
}
.short { margin: 26px 0 0; max-width: 860px; background: var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--amber); padding: 14px 18px 6px; }
.short-h { font-size: 20px; margin: 0 0 8px; }
.short ul { margin: 0; padding-left: 1.1em; }
.short li { margin-bottom: 8px; }
@media (max-width: 700px) { .log-hero .short { order: 2; } }
/* ===== Round P10 ===== */
@media (min-width: 701px) { .hero-full .hero-thumbs { display: none; } }
.src { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; color: #9d917b; margin: 6px 0 0; }
@media (min-width: 1200px) { .entry .body > .src { grid-column: 1; } }
/* ===== Phone round P10 ===== */
section[id], .entry[id] { scroll-margin-top: 64px; }
@media (max-width: 700px) {
  /* day bar: no fade over the chips; chips snap so none sits half under the pinned one */
  .daynav .pin::after { content: none; }
  .daynav .wrap { -webkit-mask-image: none; mask-image: none; scroll-snap-type: x proximity; scroll-padding-left: 110px; }
  .daynav .wrap > a:not(.chip-phone), .daynav .wrap > .tp-switch { scroll-snap-align: start; }
  .daynav .pin { box-shadow: 6px 0 0 var(--ink); }
  /* turning points: heading, picture, teaser, number; a solid full-width Read more */
  .entry.turn .teaser { margin: 0 0 8px; }
  .entry.turn .body:not(.is-open) > p:not(.quote):first-of-type { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .entry.turn.is-open-x .teaser { display: none; }
  .entry .readmore:not(.wide), .mw-card .readmore { display: flex; width: 100%; justify-content: center; border-style: solid; background: var(--ink-3); color: var(--cream); }
  /* the log opening: pictures first */
  .log-hero .thennow { order: 2; }
  .log-hero .short { order: 3; }
  /* home: the five beats and the screenshots swipe sideways */
  .blocks[data-swipe-phone], .shots[data-swipe-phone] { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .blocks[data-swipe-phone] > .block { flex: 0 0 86%; scroll-snap-align: start; display: block; margin: 0; }
  .blocks[data-swipe-phone] > .block .media { margin-bottom: 10px; }
  .shots[data-swipe-phone] > a { flex: 0 0 86%; scroll-snap-align: start; }
  .swipe-hint { font-family: var(--label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--amber); margin: 0 0 8px; }
  #made .btns .btn.ghost { display: flex; }
}
/* ===== Phone round P10 ===== */
section[id], .entry[id] { scroll-margin-top: 64px; }
@media (max-width: 700px) {
  .daynav .pin::after { content: none; }
  .daynav .wrap { -webkit-mask-image: none; mask-image: none; scroll-snap-type: x proximity; scroll-padding-left: 110px; }
  .daynav .wrap > a:not(.chip-phone), .daynav .wrap > .tp-switch { scroll-snap-align: start; }
  .daynav .pin { box-shadow: 6px 0 0 var(--ink); }
  .entry.turn .teaser { margin: 0 0 8px; }
  .entry.turn .body:not(.is-open) > p:not(.quote):first-of-type { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .entry.turn .body.is-open > .teaser { display: none; }
  .entry .readmore:not(.wide), .mw-card .readmore { display: flex; width: 100%; justify-content: center; border-style: solid; background: var(--ink-3); color: var(--cream); }
  .log-hero .thennow { order: 2; }
  .log-hero .short { order: 3; }
  .blocks[data-swipe-phone], .shots[data-swipe-phone] { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .blocks[data-swipe-phone] > .block { flex: 0 0 86%; scroll-snap-align: start; display: block; margin: 0; }
  .blocks[data-swipe-phone] > .block .media { margin-bottom: 10px; }
  .shots[data-swipe-phone] > a { flex: 0 0 86%; scroll-snap-align: start; }
  .swipe-hint { font-family: var(--label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--amber); margin: 0 0 8px; }
  #made .btns .btn.ghost { display: flex; }
}
/* ===== Round P11 ===== */
.daynav .wrap { overflow: visible; align-items: center; }
.daynav .chips { display: flex; gap: 6px; overflow-x: auto; flex: 1 1 auto; min-width: 0; scrollbar-width: none; }
.daynav .chips::-webkit-scrollbar { display: none; }
.hooks.cards.row img { object-fit: cover; }
@media (max-width: 700px) {
  .daynav .wrap { padding-top: 2px; padding-bottom: 2px; padding-right: var(--gutter); -webkit-mask-image: none; mask-image: none; }
  .daynav .pin { position: static; padding-left: 0; padding-right: 0; box-shadow: none; flex: 0 0 auto; }
  .daynav .chips { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 24px; scroll-snap-type: none; }
  /* swipe rows: the next card fades in at the edge, no clipped words */
  .blocks[data-swipe-phone], .shots[data-swipe-phone] { -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent 99%); mask-image: linear-gradient(90deg, #000 84%, transparent 99%); }
  .swipe-hint { font-size: 14px; }
  figure.swipe3 img.strip { width: 270%; }
  figure.swipe2 img.strip { width: 180%; }
  figure.swipe3::before { content: "Swipe \2192  (3)"; }
  figure.swipe2::before { content: "Swipe \2192  (2)"; }
  .prejam { border: 0; padding: 0; background: none; }
  .made-stats div { display: block; }
  .made-stats b { display: block; margin-bottom: 2px; }
  .made-stats span { color: #cbbfa9; }
}

/* ===== Round P12 ===== */
@media (max-width: 700px) {
  /* day bar: the active chip sits at the left edge, and chips snap whole (no cut labels) */
  .daynav .chips { scroll-snap-type: x mandatory; }
  .daynav .chips > * { scroll-snap-align: start; }
  /* home swipe rows: the peeking card shows its picture, not cut words */
  .blocks[data-swipe-phone] > .block > .text { transition: opacity .2s; }
  .blocks[data-swipe-phone] > .block.peek > .text { opacity: 0; }
  /* the log's closing download button on one line */
  #lessons .btns .btn { font-size: 15px; letter-spacing: .05em; padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 380px) { #lessons .btns .btn { font-size: 14px; } }

/* ===== Round P13 ===== */
.mw-grid { align-items: start; }
.records details.doc { border: 1px solid var(--line); background: #100d0a; margin: 12px 0; max-width: 900px; }
.records details.doc summary { cursor: pointer; list-style: none; padding: 12px 16px; min-height: 44px; font-size: 17px; line-height: 1.4; }
.records details.doc summary::-webkit-details-marker { display: none; }
.records details.doc summary::after { content: "  \25BE"; color: var(--amber); }
.records details.doc[open] summary::after { content: "  \25B4"; }
.records pre { margin: 0; padding: 4px 16px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: 14px; line-height: 1.55; color: #e6dccb; }
.prejam-note { max-width: 860px; margin-top: 14px; }
@media (max-width: 700px) {
  /* day bar: any chip can sit whole at the left edge; the partial chip at the right fades out */
  .daynav .chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent calc(100% - 6px)); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent calc(100% - 6px)); }
  .daynav .chips::after { content: ""; flex: 0 0 calc(100% - 56px); }
}
@media (max-width: 700px) and (max-height: 760px) {
  /* short phones: the monster's face above the wordmark */
  .hero-full .slides { top: -60px; bottom: 40%; }
  .hero-full .mark { width: 66vw; }
  .hero-full .kicker { display: none; }
}

/* ===== Round P14 ===== */
@media (max-width: 700px) {
  /* until the download is live, it reads as a status and the gameplay video is the main action */
  .itch-pending .hero-full .btns .btn.primary[data-itch] { background: transparent; border-color: var(--line); color: var(--muted); box-shadow: none; font-size: 14px; min-height: 44px; }
  .itch-pending .hero-full .btns .btn[data-watch] { background: var(--stamp); border-color: var(--stamp); color: #fff6ea; }
}

/* ===== Round P14b ===== */
@media (max-width: 700px) {
  /* every pending download button reads as a status on phones, never a dead red button */
  .itch-pending .btn.primary[data-itch] { background: transparent; border-color: var(--line); color: var(--muted); box-shadow: none; font-size: 14px; min-height: 44px; }
  /* the log's top line: the dates start their own line, with no stray dot */
  .kicker .k-sep { display: block; font-size: 0; line-height: 0; height: 0; overflow: hidden; }
  /* the pinned "<- Game" chip keeps a margin from the screen edge */
  .daynav .wrap { padding-left: 10px; }
}
