:root {
  color-scheme: dark;
  --bg: #0e0e0c;
  --surface: #161614;
  --surface-2: #1d1c19;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ecebe6;
  --muted: #a3a199;
  --faint: #8a887f;
  --screen: #b1afa8;
  --screen-ink: #312f28;
  --error: #f2a58e;
  --focus: #ecebe6;
  --radius: 10px;
  --lift: #201f1b;
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

main { overflow-x: clip; }

a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }

p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 10;
  background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.pixel { image-rendering: crisp-edges; image-rendering: pixelated; }

.site-header { background: var(--lift); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }

.brand { display: inline-flex; align-items: center; padding: 8px 0; border-radius: 6px; }
.brand img { width: 99px; height: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px;
  border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease;
}
.nav a[aria-current="page"] { color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
}
.nav .nav-cta { color: var(--bg); background: var(--text); font-weight: 600; margin-left: 6px; transition: transform 120ms var(--ease-out), background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) {
  .nav .nav-cta:hover { color: var(--bg); background: #ffffff; }
}
.nav .nav-cta:active { transform: scale(0.96); }

.badge-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0; }
.badge { width: auto; height: 40px; }
.badge-row span { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.hero {
  position: relative; isolation: isolate;
  padding: 88px 0 176px; text-align: center; image-rendering: pixelated;
  background:
    url("dither/ramp-down.png") left bottom / 16px 64px repeat-x,
    linear-gradient(var(--lift), var(--lift)) left top / 100% calc(100% - 64px) no-repeat;
}
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; margin-top: 20px; }
.hero .lede { max-width: 620px; margin: 22px auto 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.55; }
.get-row { display: flex; justify-content: center; margin: 36px 0 0; }
.cta .get-row { margin-top: 32px; }
.itch-badge { display: block; border-radius: 5.6px; outline: 1px solid transparent; outline-offset: 3px; transition: transform 120ms var(--ease-out), outline-color 150ms ease; }
.itch-badge img { display: block; width: auto; height: 56px; }
@media (hover: hover) and (pointer: fine) {
  .itch-badge:hover { outline-color: var(--line-strong); }
}
.itch-badge:active { transform: scale(0.97); }
.itch-badge:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.device-wrap { position: relative; max-width: 828px; margin: 64px auto 0; }
.device-wrap::before {
  content: ""; position: absolute; z-index: -1; left: 4%; right: 2%; top: calc(100% + 6px); height: 40px;
  background: url("dither/shadow-lg.png") center top / 100% 100% no-repeat; image-rendering: pixelated;
}
.device {
  position: relative; margin: 0; padding: 14px; border-radius: 18px;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line);
}
.wc-screen { position: relative; width: 100%; line-height: 0; border-radius: 4px; }
.wc-screen canvas { display: none; margin: 0 auto; border-radius: 4px; outline: 1px solid rgba(255, 255, 255, 0.1); outline-offset: -1px; }
.wc-fallback { width: 100%; border-radius: 4px; }
.device.is-live canvas { display: block; }
.device.is-live .wc-fallback { display: none; }

.wc-stage { position: relative; }
.trailer-open {
  position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 16px; border: 0; border-radius: 4px; background: rgba(14, 14, 12, 0); color: var(--text); font: inherit; cursor: pointer;
  transition: background-color 180ms ease;
}
.trailer-open .play-chip { box-shadow: 0 0 0 1px var(--line-strong), 0 10px 30px -12px rgba(0, 0, 0, 0.8); }
@media (hover: hover) and (pointer: fine) {
  .trailer-open:hover { background: rgba(14, 14, 12, 0.14); }
  .trailer-open:hover .play-chip { background: rgba(30, 30, 27, 0.95); transform: scale(1.03); }
}
.trailer-open:active .play-chip { transform: scale(0.96); }
.trailer-open:focus-visible { outline: none; }
.trailer-open:focus-visible .play-chip { outline: 2px solid var(--focus); outline-offset: 3px; }
.trailer-open .dur:empty { display: none; }

html.has-modal { overflow: hidden; }
.trailer {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--text); overflow: hidden;
}
.trailer[open] { display: flex; align-items: center; justify-content: center; }
.trailer::backdrop { background: rgba(8, 8, 7, 0.88); }
.trailer-box {
  position: relative; width: min(1120px, calc(100vw - 2 * var(--gutter)), calc((100vh - 120px) * 16 / 9));
  aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line-strong), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  transform-origin: 0 0; will-change: transform;
}
.trailer-box video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.trailer-box video:focus-visible { outline: none; }
.trailer-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: rgba(14, 14, 12, 0.78); color: var(--text); cursor: pointer;
  box-shadow: 0 0 0 1px var(--line-strong); transition: transform 120ms var(--ease-out), background-color 150ms ease;
}
.trailer-close::after { content: ""; position: absolute; inset: -6px; }
.trailer-close svg { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) { .trailer-close:hover { background: rgba(30, 30, 27, 0.95); } }
.trailer-close:active { transform: scale(0.94); }
.trailer-close:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.wc-caption { margin-top: 12px; font-size: 13px; color: var(--faint); text-align: center; }

.screen { position: relative; isolation: isolate; }
.screen img { position: relative; width: 100%; border-radius: 4px; outline: 1px solid rgba(255, 255, 255, 0.1); outline-offset: -1px; }
.screen::after {
  content: ""; position: absolute; z-index: -1; left: 5%; right: 1%; top: calc(100% + 4px); height: 32px;
  background: url("dither/shadow-sm.png") center top / 100% 100% no-repeat; image-rendering: pixelated;
}


.section, .cta { padding: 96px 0; }
.hero + .section { padding-top: 56px; }

.obvious { position: relative; padding: 72px 0 104px; text-align: center; }
.obvious + .section { padding-top: 72px; }
.ob-q, .ob-a { font-size: clamp(1.55rem, 4vw, 3.1rem); line-height: 1.15; letter-spacing: -0.032em; font-weight: 700; }
.ob-q { display: flex; flex-direction: column; justify-content: flex-end; color: var(--text); }
.ob-a { margin-top: 0.12em; color: var(--muted); isolation: isolate; }
.ob-drum {
  position: relative; display: inline-block; vertical-align: top; overflow: hidden; padding: 0.24em 0; margin: -0.24em 0;
  -webkit-mask: linear-gradient(#000 0 0) center / 100% calc(100% - 0.24em) no-repeat, repeating-conic-gradient(#000 0 25%, transparent 0 50%) 0 0 / 6px 6px;
  mask: linear-gradient(#000 0 0) center / 100% calc(100% - 0.24em) no-repeat, repeating-conic-gradient(#000 0 25%, transparent 0 50%) 0 0 / 6px 6px;
}
.ob-q .ob-drum { display: block; width: 100%; }
.ob-line { display: block; }
.ob-app { color: var(--text); }
.ob-app .ob-line { white-space: nowrap; }
.ob-drum .ob-line.is-out { position: absolute; left: 0; right: 0; bottom: 0.24em; }
.ob-word {
  position: relative; display: inline-block; padding: 0 0.18em; margin-right: 0.06em; border-radius: 0.14em;
  background: var(--screen); color: var(--screen-ink); font-weight: 800; transition: transform 110ms var(--ease-out);
}
.ob-word::after {
  content: ""; position: absolute; z-index: -1; inset: 0; transform: translate(0.05em, 0.13em); border-radius: 0.14em;
  background-image: repeating-conic-gradient(var(--screen) 0 25%, transparent 0 50%); background-size: 6px 6px; opacity: 0.6;
  transition: transform 110ms var(--ease-out);
}
.ob-word.is-press { transform: translateY(0.07em); }
.ob-word.is-press::after { transform: translate(0.03em, 0.06em); }
.ob-try { color: var(--muted); }
.ob-device {
  position: relative; width: min(100%, 680px); margin: clamp(32px, 5vw, 52px) auto 0; padding: 14px; border-radius: 18px;
  background: var(--surface-2); box-shadow: 0 0 0 1px var(--line);
}
.ob-device::after {
  content: ""; position: absolute; z-index: -1; left: 4%; right: 2%; top: calc(100% + 6px); height: 32px;
  background: url("dither/shadow-lg.png") center top / 100% 100% no-repeat; image-rendering: pixelated;
}
.ob-screen { position: relative; line-height: 0; }
.ob-screen img, .ob-screen canvas { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; border-radius: 4px; image-rendering: pixelated; }
.ob-screen canvas[hidden], .ob-screen img[hidden] { display: none; }
.ob-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 780px; margin: clamp(44px, 6vw, 64px) auto 0; }
.ob-tab {
  height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 120ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .ob-tab:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); } }
.ob-tab:active { transform: scale(0.96); }
.ob-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ob-tab[aria-selected="true"] { background: var(--screen); color: var(--screen-ink); box-shadow: none; }
@media (max-width: 600px) {
  .obvious { padding: 48px 0 80px; }
  .ob-device { padding: 8px; border-radius: 12px; }
  .ob-tabs { gap: 6px; }
  .ob-tab { height: 32px; padding: 0 12px; font-size: 13px; }
}
@media (max-width: 420px) { .ob-screen img, .ob-screen canvas { image-rendering: auto; } }

.wrap-wide { max-width: calc(1248px + var(--gutter) * 2); }
.shelves .section-head { margin-bottom: 8px; }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 24px; margin-top: 88px; }
.shelf-intro { align-self: start; padding-top: 4px; max-width: 30ch; }
.shelf-intro::before {
  content: ""; display: block; width: 48px; height: 8px; margin-bottom: 20px;
  background-image: repeating-conic-gradient(var(--screen) 0 25%, transparent 0 50%); background-size: 8px 8px;
}
.shelf-intro h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; }
.shelf-intro p { margin-top: 10px; color: var(--muted); }
.shelf-intro .count { display: block; margin-top: 14px; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.shelf-time .shelf-intro { grid-column: 3; grid-row: 1; justify-self: start; padding-left: 8px; }
.shelf-time .card:nth-child(1) { grid-column: 1; grid-row: 1; }
.shelf-time .card:nth-child(2) { grid-column: 2; grid-row: 1; }
.shelf-friends .shelf-intro { grid-row: span 2; align-self: center; }
.card h4 { margin: 40px 0 0; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.card p { margin-top: 4px; font-size: 14px; color: var(--muted); max-width: 42ch; }

html.js-reveal [data-reveal] { opacity: 0; transform: translateY(8px); }
html.js-reveal [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 360ms var(--ease-out) var(--d, 0ms), transform 360ms var(--ease-out) var(--d, 0ms);
}
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); line-height: 1.12; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--text); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--line-strong); transition: border-color 150ms ease;
}
.text-link svg { width: 16px; height: 16px; transition: transform 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { border-color: var(--text); }
  .text-link:hover svg { transform: translateX(3px); }
}



.cinema {
  position: relative; isolation: isolate; padding: 160px 0 168px; image-rendering: pixelated;
  background:
    url("dither/ramp-up.png") left top / 16px 64px repeat-x,
    url("dither/ramp-down.png") left bottom / 16px 64px repeat-x,
    linear-gradient(var(--lift), var(--lift)) left 64px / 100% calc(100% - 128px) no-repeat;
}
.cinema video, .chapter .thumb img { image-rendering: auto; }
.chapter .thumb.thumb-cell img { image-rendering: pixelated; }
.cinema-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.cinema-stage { position: relative; }
.cinema-stage::after {
  content: ""; position: absolute; z-index: -1; left: 4%; right: 2%; top: calc(100% + 8px); height: 40px;
  background: url("dither/shadow-lg.png") center top / 100% 100% no-repeat; image-rendering: pixelated;
}
.player {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px;
  background: #000; box-shadow: 0 0 0 1px var(--line);
}
.stage { position: absolute; inset: 0; will-change: transform; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.play {
  position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 20px; background: transparent; border: 0; cursor: pointer; color: var(--text); font: inherit;
}
.play-chip {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 14px;
  background: rgba(14, 14, 12, 0.86); border-radius: 999px; font-weight: 600; font-size: 15px;
  box-shadow: 0 0 0 1px var(--line-strong);
  transition: transform 120ms var(--ease-out), background-color 150ms ease;
}
.play-chip svg { width: 18px; height: 18px; }
.play-chip .dur { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .play:hover .play-chip { background: rgba(30, 30, 27, 0.95); }
}
.play:active .play-chip { transform: scale(0.96); }
.play:focus-visible { outline: none; }
.play:focus-visible .play-chip { outline: 2px solid var(--focus); outline-offset: 3px; }
.player[data-state="playing"] .play,
.player[data-state="missing"] .play { display: none; }

.missing {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px; text-align: center; background: var(--surface);
}
.player[data-state="missing"] .missing { display: flex; }
.player[data-state="missing"] video { display: none; }
.missing img { width: 300px; max-width: 70%; border-radius: 4px; }
.missing p { color: var(--muted); font-size: 15px; max-width: 34ch; }
.missing strong { color: var(--text); font-weight: 600; }

.chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 72px; }
.chapter {
  position: relative; display: block; width: 100%; padding: 10px 10px 14px; overflow: hidden; text-align: left;
  font: inherit; color: var(--text); cursor: pointer; border: 0; border-radius: 12px;
  background: rgba(14, 14, 12, 0.55); box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 160ms ease, background-color 160ms ease, transform 120ms var(--ease-out);
}
.chapter .thumb { position: relative; display: block; aspect-ratio: 5 / 3; overflow: hidden; border-radius: 5px; background: #000; }
.chapter .thumb img { display: block; width: 160%; max-width: none; height: auto; margin: -8% 0 0 -30%; opacity: 0.5; transition: opacity 160ms ease; }
.chapter .thumb.thumb-cell { display: grid; place-items: center; background: var(--surface); }
.chapter .thumb.thumb-cell img { width: 150px; margin: 0; opacity: 0.6; }
.chapter .meta { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; padding: 0 2px; }
.chapter .n { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.chapter .t { flex: 1; font-weight: 600; font-size: 15px; }
.chapter .d { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chapter .prog { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.chapter .prog i { display: block; height: 100%; background: var(--text); transform: scaleX(0); transform-origin: left center; }
.chapter[aria-selected="true"] { background: var(--surface-2); box-shadow: 0 0 0 1.5px var(--text), 0 18px 40px -24px rgba(0, 0, 0, 0.9); }
.chapter[aria-selected="true"] .thumb img { opacity: 1; }
.chapter[aria-selected="true"] .n { color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .chapter[aria-selected="false"]:hover { box-shadow: 0 0 0 1px var(--line-strong); }
  .chapter[aria-selected="false"]:hover .thumb img { opacity: 0.75; }
}
.chapter:active { transform: scale(0.98); }
.watch-note { margin-top: 20px; font-size: 13px; color: var(--faint); text-align: center; }

.cta { padding: 112px 0 144px; text-align: center; }

.cta h2 { margin-top: 18px; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.05; letter-spacing: -0.03em; }
.cta p { margin: 16px auto 0; max-width: 480px; color: var(--muted); }

.site-footer {
  overflow: hidden; padding: 112px 0 0; font-size: 14px; color: var(--muted); image-rendering: pixelated;
  background:
    url("dither/ramp-up.png") left top / 16px 64px repeat-x,
    linear-gradient(var(--lift), var(--lift)) left bottom / 100% calc(100% - 64px) no-repeat;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 99px; }
.footer-brand p { margin-top: 14px; max-width: 34ch; }
.site-footer h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 34px; text-decoration: none; transition: color 150ms ease; }
.site-footer li a[aria-current="page"] { color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .site-footer li a:hover { color: var(--text); }
}
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 24px;
  color: var(--faint); font-size: 13px;
}
.giant {
  max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 56px auto 0; padding: 0 var(--gutter);
  line-height: 0; user-select: none; -webkit-user-select: none; pointer-events: none;
}
.giant svg { display: block; width: 100%; height: auto; overflow: hidden; }
.giant text { font-family: var(--font); font-size: 300px; font-weight: 700; letter-spacing: -12px; }
.giant .g-ink { fill: #44433d; }

.prose { max-width: 680px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; }
.prose .updated { margin-top: 12px; color: var(--faint); font-size: 14px; }
.prose h2 { margin-top: 44px; font-size: 1.3rem; scroll-margin-top: 24px; }
.prose p, .prose ul { margin-top: 14px; color: #d4d2cb; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-top: 6px; }
.prose a { text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.prose a:hover { text-decoration-color: var(--text); }
.prose .lead { margin-top: 20px; font-size: 1.1rem; color: var(--muted); }
.prose code { font-family: var(--mono); font-size: 0.9em; }
.ph { font-family: var(--mono); font-size: 0.92em; color: var(--text); background: rgba(255, 255, 255, 0.07); padding: 1px 6px; border-radius: 4px; }

.notfound { padding: 120px 0 140px; text-align: center; }
.notfound img { width: 400px; max-width: 100%; margin: 0 auto; border-radius: 4px; outline: 1px solid rgba(255, 255, 255, 0.1); outline-offset: -1px; }
.notfound h1 { margin-top: 40px; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; }
.notfound p { margin: 14px auto 0; color: var(--muted); max-width: 44ch; }
.notfound .actions { margin-top: 28px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .chapters { gap: 10px; margin-top: 64px; }
  .chapter .meta { flex-wrap: wrap; gap: 2px 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 72px; }
  .shelf .shelf-intro, .shelf-time .shelf-intro, .shelf-friends .shelf-intro { grid-column: 1 / -1; grid-row: auto; align-self: start; padding-left: 0; }
  .shelf-time .shelf-intro { order: -1; }
  .shelf-time .card:nth-child(1), .shelf-time .card:nth-child(2) { grid-column: auto; grid-row: auto; }
}

@media (max-width: 720px) {
  .hero { padding: 56px 0 144px; }
  .device-wrap { margin-top: 48px; }
  .device { padding: 8px; border-radius: 12px; }
  .section { padding: 72px 0; }
}

@media (min-width: 901px) and (max-width: 1290px) {
  .card .screen img { image-rendering: auto; }
}

@media (max-width: 600px) {
  .shelf { grid-template-columns: 1fr; gap: 44px; }
  .card .screen img { image-rendering: auto; }
  .badge { height: 34px; }
}

@media (max-width: 640px) {
  .nav .hide-md { display: none; }
  .nav .nav-cta .long { display: none; }
}

@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .cinema { padding: 128px 0 136px; }
  .chapters { grid-template-columns: 1fr; }
  .chapter { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; padding: 8px 8px 12px; }
  .chapter .meta { margin-top: 0; }
  .play { padding: 8px; }
  .play-chip { height: 34px; padding: 0 12px 0 10px; gap: 8px; font-size: 13px; }
  .play-chip svg { width: 14px; height: 14px; }
}

@media (max-width: 420px) {
  .device img { image-rendering: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html.js-reveal [data-reveal] { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
