/* Seymour Goes to Hollywood, an unofficial fan-game remake: the website's one stylesheet.
   The game's 16-colour VGA palette, its 8x8 font (static/seymour.woff2), the port's film-strip frame. */

@font-face {
  font-family: "Seymour Pixel";
  src: url(seymour.woff2) format("woff2");
  font-display: swap;
}

:root {
  /* the game's palette (ds:38AB) */
  --c-sky: #00beff; --c-white: #fff; --c-grey1: #cecece; --c-grey2: #9e9e9e; --c-grey3: #6d6d6d;
  --c-red: #ff0000; --c-maroon: #9e0000; --c-green: #00be00; --c-dkgreen: #008e00; --c-yellow: #ffce00;
  --c-amber: #ffae00; --c-rust: #ce5d00; --c-lilac: #7d9eff; --c-blue: #4d6dff; --c-navy: #3d4dbe; --c-black: #000;

  --px: "Seymour Pixel", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;

  --bg: #07091a;
  --bg-2: #0d1130;
  --surface: #121741;
  --surface-2: #1a2056;
  --line: #2c3478;
  --edge: #000;
  --text: #eef0ff;
  --muted: #a8b0dc;
  --link: #8fd8ff;
  --link-hover: var(--c-yellow);
  --accent: var(--c-yellow);
  --accent-ink: #1a1000;
  --warn: #ff5a4a;
  --shadow: 0 0 0 3px var(--edge), 6px 6px 0 3px var(--edge);
  --shadow-sm: 0 0 0 2px var(--edge), 4px 4px 0 2px var(--edge);
  --radius: 0;
  --wrap: 1120px;
  --narrow: 780px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbf3df; --bg-2: #f3e7c6; --surface: #fffdf6; --surface-2: #fff2c2; --line: #1b1f45;
    --edge: #1b1f45; --text: #15183a; --muted: #4f557f; --link: #1d3fd8; --link-hover: #9e0000;
    --accent-ink: #1a1000; --warn: #c21c0e; --accent: #b04a00;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #fbf3df; --bg-2: #f3e7c6; --surface: #fffdf6; --surface-2: #fff2c2; --line: #1b1f45;
  --edge: #1b1f45; --text: #15183a; --muted: #4f557f; --link: #1d3fd8; --link-hover: #9e0000;
  --warn: #c21c0e; --accent: #b04a00; color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.62 var(--sans); overflow-x: hidden;
}
img, video, svg { max-width: 100%; height: auto; }
img { image-rendering: pixelated; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 3px; }
code { font: .9em var(--mono); background: var(--surface-2); padding: .1em .35em; border-radius: 2px; overflow-wrap: anywhere; }
h1, h2, h3, h4 { line-height: 1.2; margin: 1.6em 0 .6em; }
p, ul, ol { margin: 0 0 1em; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--c-yellow); color: #000; padding: 8px 12px; font-family: var(--px); }
.skip:focus { top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: var(--narrow); }
[hidden] { display: none !important; }

/* pixel type: the game's font at whole multiples of its 8 px */
.px, .px-title, .px-h, .kicker, .btn, .nav a, .chip, .reveal__tag, .panel-name, .where__label, .area__name,
.fig__step, .clip__len, .summary__label, .warning__title, .toc__title, .dl__name, .ch__n, .stat__n, .tab {
  font-family: var(--px); font-weight: 400; letter-spacing: 0; text-transform: uppercase;
  -webkit-font-smoothing: none; font-smooth: never;
}
.px-title { font-size: clamp(24px, 4.6vw, 40px); line-height: 1.25; margin: .2em 0 .45em; text-wrap: balance; }
.px-h { font-size: 24px; line-height: 1.3; margin: 2.2em 0 .8em; text-wrap: balance; }
.px-h--sm { font-size: 16px; }
.kicker { font-size: 16px; color: var(--accent); margin: 0; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.lede p { margin: 0; }

/* --- header ----------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 30; background: #000; color: #fff; }
.top::before { /* the clapperboard's stripes, as on the port's frame */
  content: ""; display: block; height: 8px;
  background: repeating-linear-gradient(-45deg, #fff 0 12px, #000 12px 24px);
}
.top__in { max-width: var(--wrap); margin: 0 auto; padding: 6px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.brand img { width: 96px; height: 48px; display: block; }
.brand__tag { font: 11px/1.2 var(--sans); color: var(--c-grey2); max-width: 7em; text-transform: uppercase; letter-spacing: .08em; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { display: block; color: #fff; text-decoration: none; font-size: 16px; padding: 10px 10px 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--c-yellow); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--c-yellow); }
.nav a.nav__dl { background: var(--c-yellow); color: #000; box-shadow: inset -3px -3px 0 var(--c-amber); margin-left: 6px; }
.nav a.nav__dl:hover { background: #fff; box-shadow: inset -3px -3px 0 var(--c-grey1); }
@media (max-width: 860px) {
  .brand__tag { display: none; }
  .top__in { flex-wrap: wrap; gap: 0; padding-bottom: 0; }
  .nav { width: 100%; margin: 0 -16px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav ul { flex-wrap: nowrap; justify-content: flex-start; padding: 0 10px 6px; width: max-content; }
  .nav a { font-size: 16px; padding: 8px 8px 6px; }
  .brand img { width: 72px; height: 36px; }
  html { scroll-padding-top: 110px; }
}

/* --- buttons and chips ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-size: 16px; line-height: 1;
  background: var(--c-yellow); color: #000; text-decoration: none; border: 0; cursor: pointer;
  padding: 14px 18px 12px; box-shadow: 0 0 0 3px #000, inset -4px -4px 0 var(--c-amber), inset 4px 4px 0 #fff3a8, 6px 6px 0 3px #000;
  transition: transform .06s, box-shadow .06s;
}
.btn:hover { color: #000; background: #ffe14d; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 3px #000, inset -4px -4px 0 var(--c-amber), inset 4px 4px 0 #fff3a8, 2px 2px 0 3px #000; }
.btn code { background: none; font-size: 13px; padding: 0; text-transform: none; font-family: var(--mono); }
.btn--off, .btn--off:hover { background: var(--surface-2); color: var(--muted); cursor: default; box-shadow: 0 0 0 3px var(--line); }
.btn--big { font-size: 24px; padding: 18px 26px 15px; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: 0 0 0 3px var(--line), 6px 6px 0 3px var(--edge); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn__icon { font-size: .8em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn__icon { animation: none; } * { scroll-behavior: auto !important; } }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 9px 12px 7px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 0; box-shadow: 0 0 0 2px var(--line);
}
.chip:hover { box-shadow: 0 0 0 2px var(--c-yellow); }
.chip--check input { accent-color: var(--c-green); width: 16px; height: 16px; margin: -3px 0 0; }

/* --- the home page's hero ---------------------------------------------------------------------- */
.hero { position: relative; background: var(--c-sky); color: #000; overflow: hidden; }
.hero__scene {
  position: relative; height: clamp(360px, 46vw, 620px);
  background: url(../media/ui/backdrop.webp) center bottom / auto 100% repeat-x, linear-gradient(var(--c-sky), var(--c-sky));
  image-rendering: pixelated;
}
.hero__inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: clamp(16px, 4vw, 44px) 16px 0; text-align: center; }
.hero__logo { width: clamp(288px, 44vw, 576px); height: auto; filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, .35)); }
.hero__tag { margin-top: clamp(4px, 1.5vw, 18px); }
.hero__band { background: #000; color: #fff; text-align: center; padding: 26px 16px 34px; position: relative; }
.hero__band::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; background: #000; }
.hero__line { font-family: var(--px); font-size: 16px; color: var(--c-yellow); margin: 0 0 20px; text-transform: uppercase; }
.hero__sub { color: #c9cfee; margin: 18px 0 0; font-size: 15px; }
.hero__sub a { color: #fff; }
.hero__alt { margin: 10px 0 0; font-size: 15px; }
.hero__alt a { color: var(--c-grey1); }
@media (max-width: 600px) { .btn--off, .btn--off:hover { background: var(--surface-2); color: var(--muted); cursor: default; box-shadow: 0 0 0 3px var(--line); }
.btn--big { font-size: 16px; padding: 16px 18px 13px; } .hero__scene { height: 330px; background-size: auto 100%; } }

/* --- the speech bubble: the game's own frame glyphs, as a 9-slice -------------------------------- */
.bubble {
  --s: 2px; position: relative; display: inline-block; margin: 0 0 calc(10 * var(--s)); max-width: 100%;
  border: calc(8 * var(--s)) solid transparent; border-image: url(../media/ui/bubble-2.webp) 24 fill / calc(8 * var(--s)) stretch;
  image-rendering: pixelated; color: #000; padding: 0 var(--s); text-align: center;
}
.bubble p { margin: 0; font: calc(8 * var(--s)) / calc(8 * var(--s)) var(--px); text-transform: uppercase; -webkit-font-smoothing: none; }
.bubble::after {
  content: ""; position: absolute; width: calc(16 * var(--s)); height: calc(8 * var(--s));
  left: calc(8 * var(--s)); bottom: calc(-15 * var(--s)); background: url(../media/ui/bubble-tail-2.webp) 0 0 / 100% 100%; image-rendering: pixelated;
}
.bubble--right::after { left: auto; right: calc(8 * var(--s)); transform: scaleX(-1); }
.bubble--big { --s: 3px; }
blockquote.bubble { margin-left: 0; }
.quote { margin: 2em 0; }
.quote .bubble { --s: 3px; }
@media (max-width: 600px) { .quote .bubble { --s: 2px; } }
.quote cite { display: block; font-style: normal; color: var(--muted); font-size: 14px; margin-top: -4px; }

/* --- sections and cards ------------------------------------------------------------------------ */
.band { padding: 56px 0; }
.band--alt { background: var(--bg-2); }
.band--film { position: relative; }
.filmstrip { /* sprocket holes */
  height: 28px; background:
    repeating-linear-gradient(90deg, transparent 0 10px, #d9d9d9 10px 22px, transparent 22px 32px) 0 6px / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 10px, #d9d9d9 10px 22px, transparent 22px 32px) 0 14px / 100% 0 no-repeat,
    #000;
  border-top: 2px solid #3a3a3a; border-bottom: 2px solid #3a3a3a;
}
.card { background: var(--surface); box-shadow: var(--shadow); padding: 22px; }
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.pitch p { font-size: 1.15rem; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.feature-list li:last-child { border-bottom: 0; }
.feature-list .ico { margin-top: 2px; }
.card h3 { font-family: var(--px); font-weight: 400; font-size: 16px; text-transform: uppercase; margin: 0 0 14px; color: var(--accent); }

/* doors: cards into the site */
.doors { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.doors--small { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 22px; }
.door { display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .08s; }
.door:hover { transform: translate(-2px, -2px); color: var(--text); box-shadow: 0 0 0 3px var(--c-yellow), 8px 8px 0 3px var(--edge); }
.door img { aspect-ratio: 2 / 1; object-fit: cover; width: 100%; display: block; border-bottom: 3px solid var(--edge); image-rendering: auto; }
.door__body { padding: 18px 20px 20px; }
.door__title { font: 16px/1.3 var(--px); text-transform: uppercase; margin: 0 0 8px; color: var(--accent); }
.door__text { margin: 0; color: var(--muted); }
.door--spoil .door__title { color: var(--warn); }

/* screens and figures */
.shot { display: block; background: #000; box-shadow: var(--shadow-sm); line-height: 0; }
.fig { margin: 1.6em 0; }
.fig .shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: fill; image-rendering: auto; }
.fig--port .shot img, .gallery .shot img { width: 100%; aspect-ratio: 348 / 240; object-fit: fill; image-rendering: auto; }
.fig figcaption, .clip figcaption { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 15px; margin-top: 10px; }
.fig__step, .clip__len { font-size: 11px; color: var(--muted); white-space: nowrap; flex: none; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gallery span { display: block; color: var(--muted); font-size: 14px; margin-top: 10px; }
.clip { margin: 1.6em 0; }
.clip__screen { background: #000; box-shadow: var(--shadow-sm); line-height: 0; }
.clip video { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: fill; background: #000; display: block; }
.room-img { display: block; width: 100%; height: auto; box-shadow: var(--shadow-sm); image-rendering: auto; }

/* object sprites (assets/graphics/objects.png, 16 per row) */
.ico {
  --x: 0; --y: 0; --k: 2; display: inline-block; vertical-align: middle; width: calc(16px * var(--k)); height: calc(16px * var(--k)); flex: none;
  background: url(../media/ui/objects.webp) calc(var(--x) * -16px * var(--k)) calc(var(--y) * -16px * var(--k)) / calc(256px * var(--k)) auto no-repeat;
  image-rendering: pixelated;
}
.ico--big { --k: 3; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; box-shadow: var(--shadow); background: #000; color: #fff; }
.stat { padding: 20px 18px; border-right: 2px dashed #333; }
.stat:last-child { border-right: 0; }
.stat__n { display: block; font-size: 24px; white-space: nowrap; color: var(--c-yellow); line-height: 1.1; }
.stat__l { font-size: 14px; color: #c3c8e8; }

/* --- page heads -------------------------------------------------------------------------------- */
.page-head { background: var(--bg-2); padding: 40px 0 34px; border-bottom: 3px solid var(--edge); position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 8px; background: repeating-linear-gradient(-45deg, var(--line) 0 8px, transparent 8px 16px); opacity: .7; }
.page-head--story { background: linear-gradient(rgba(7, 9, 26, .62), rgba(7, 9, 26, .92)), url(../media/ui/backdrop.webp) center 70% / cover; image-rendering: pixelated; color: #fff; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }

/* --- prose ------------------------------------------------------------------------------------- */
.prose { padding-top: 34px; padding-bottom: 60px; }
.prose h2 { font: 24px/1.3 var(--px); text-transform: uppercase; margin-top: 2.2em; -webkit-font-smoothing: none; }
.prose h3 { font-size: 1.15rem; }
.prose > p:first-child { margin-top: 0; }
.prose li { margin-bottom: .35em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--px); font-weight: 400; text-transform: uppercase; font-size: 13px; background: var(--surface-2); }
blockquote:not(.bubble) { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--c-yellow); color: var(--muted); }
.note { background: var(--surface); box-shadow: 0 0 0 2px var(--line); padding: 16px 18px; margin: 1.4em 0; }
.note > :last-child { margin-bottom: 0; }
.toc { background: var(--surface); box-shadow: 0 0 0 2px var(--line); padding: 16px 20px; margin-bottom: 2em; }
.toc__title { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 1.3em; }

/* warnings and gates */
.warning { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); box-shadow: 0 0 0 3px var(--warn), 6px 6px 0 3px var(--edge); padding: 18px 20px; margin: 0 0 2em; }
.warning__title { color: var(--warn); font-size: 16px; margin: 0 0 8px; }
.warning > :last-child { margin-bottom: 0; }
.warning--slim { padding: 10px 14px; box-shadow: 0 0 0 2px var(--warn); }
.js .gated:not(.is-open) { display: none; }
.js [data-gate].is-open { display: none; }

/* --- hints ------------------------------------------------------------------------------------- */
.search { position: relative; margin-top: 22px; max-width: 640px; }
.search input, .filter input {
  width: 100%; font: 17px var(--sans); padding: 14px 16px; background: var(--surface); color: var(--text);
  border: 0; box-shadow: 0 0 0 3px var(--edge), inset 3px 3px 0 rgba(0, 0, 0, .25); border-radius: 0;
}
.search input:focus, .filter input:focus { outline: none; box-shadow: 0 0 0 3px var(--c-yellow); }
.search__results { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 10; background: var(--surface); box-shadow: var(--shadow); max-height: 60vh; overflow-y: auto; }
.search__results:empty { display: none; }
.search__results a { display: block; padding: 10px 14px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.search__results a:hover, .search__results a:focus { background: var(--surface-2); }
.search__results small { display: block; color: var(--muted); }
.help__block { margin-bottom: 10px; }
.areas { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.area a { display: block; background: var(--surface); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text); transition: transform .08s; }
.area a:hover { transform: translate(-2px, -2px); box-shadow: 0 0 0 2px var(--c-yellow), 6px 6px 0 2px var(--edge); color: var(--text); }
.area img { display: block; width: 100%; aspect-ratio: 2 / 1; image-rendering: auto; border-bottom: 2px solid var(--edge); }
.area__name { display: block; font-size: 16px; padding: 12px 14px 2px; }
.area__n { display: block; font-size: 14px; color: var(--muted); padding: 0 14px 12px; }
.area[data-late] .area__name::after { content: " \2605"; color: var(--c-yellow); }
.symptoms { display: grid; gap: 12px; }
.symptom { background: var(--surface); box-shadow: 0 0 0 2px var(--line); }
.symptom summary { padding: 14px 18px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.symptom summary::-webkit-details-marker { display: none; }
.symptom summary::after { content: "+"; font-family: var(--px); color: var(--accent); }
.symptom[open] summary::after { content: "\2212"; }
.symptom__body { padding: 0 18px 14px; }
.hint-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hint-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--surface); box-shadow: 0 0 0 2px var(--line); color: var(--text); text-decoration: none; }
.hint-list a:hover { box-shadow: 0 0 0 2px var(--c-yellow); color: var(--text); }
.hl__where { font: 11px/1.8 var(--px); color: var(--muted); text-align: right; flex: none; max-width: 45%; }
.hint-list .is-solved a { opacity: .55; }
.hint-list .is-solved .hl__title::before { content: "\2713  "; color: var(--c-green); }
.panel-name { /* the room name as the game's panel prints it: black on white */
  display: inline-block; background: #fff; color: #000; font-size: 13px; padding: 4px 8px 2px; margin: 0;
  box-shadow: 0 0 0 2px #000;
}
.room-group { margin: 28px 0; }
.room-group h3 { margin: 0 0 12px; }

/* the area map */
.map-wrap { overflow-x: auto; margin: 26px -16px 6px; padding: 6px 16px 14px; }
.map { display: grid; grid-template-columns: repeat(var(--cols), 160px); grid-template-rows: repeat(var(--rows), 80px); gap: 4px; width: max-content; background: #000; padding: 4px; box-shadow: var(--shadow-sm); }
.map__room { position: relative; display: block; line-height: 0; }
.map__room img { width: 160px; height: 80px; image-rendering: auto; opacity: .8; }
.map__room.has-hints img { opacity: 1; }
.map__room:hover img { outline: 2px solid var(--c-yellow); }
.map__name { position: absolute; left: 3px; bottom: 3px; right: 3px; font: 8px/1.2 var(--px); color: #000; background: rgba(255, 255, 255, .88); padding: 2px 3px 1px; text-transform: uppercase; }
.map__n { position: absolute; top: 4px; right: 4px; font: 13px/1 var(--px); background: var(--c-yellow); color: #000; padding: 4px 5px 2px; box-shadow: 0 0 0 2px #000; }
.map-note { font-size: 14px; }

/* a hint page */
.hint { padding-top: 30px; padding-bottom: 60px; }
.hint__problem { display: grid; gap: 22px; margin-bottom: 18px; }
.where { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; }
.where img { width: 200px; height: 100px; box-shadow: var(--shadow-sm); image-rendering: auto; }
.where p { margin: 0 0 6px; }
.where__label { font-size: 11px; color: var(--muted); }
@media (max-width: 520px) { .where { grid-template-columns: 1fr; } .where img { width: 100%; height: auto; } }
.problem-text { font-size: 1.12rem; }
.hint__tools { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 22px; }
.reveals { display: grid; gap: 14px; }
.reveal { background: var(--surface); box-shadow: 0 0 0 3px var(--edge), 5px 5px 0 3px var(--edge); }
.reveal > summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.reveal > summary::-webkit-details-marker { display: none; }
.reveal > summary::after { content: "\25B6"; margin-left: auto; font-size: 12px; color: var(--accent); transition: transform .12s; }
.reveal[open] > summary::after { transform: rotate(90deg); }
.reveal__tag { font-size: 16px; color: var(--accent); }
.reveal__hint { color: var(--muted); font-size: 15px; }
.reveal__body { padding: 0 18px 4px; border-top: 2px dashed var(--line); padding-top: 14px; }
.reveal__body > :last-child { margin-bottom: 14px; }
.reveal.solution .reveal__tag { color: var(--warn); }
.js .nudge.is-locked { opacity: .5; }
.js .nudge.is-locked > summary { cursor: not-allowed; }
.why { font: 16px var(--px); text-transform: uppercase; color: var(--accent); margin: 1.6em 0 .6em; }
.related { margin-top: 44px; }
.back { margin-top: 40px; }
.hint-link { font-weight: 600; }

/* objects and people */
.filter { display: flex; gap: 14px; align-items: center; margin: 30px 0 22px; flex-wrap: wrap; }
.filter input { flex: 1 1 260px; }
.objects, .people { list-style: none; margin: 0 0 60px; padding: 0; display: grid; gap: 12px; }
.js [data-filter-list]:not(.is-all) [data-filter-item]:not(.is-match) { display: none; }
.reveal--obj > summary, .reveal--who > summary { padding: 10px 16px; }
.obj__said { font: 13px/1.5 var(--px); text-transform: uppercase; }
.who__pic { width: 72px; height: 72px; object-fit: cover; background: #000; box-shadow: 0 0 0 2px var(--edge); flex: none; }
.who__name { display: block; font: 16px/1.4 var(--px); text-transform: uppercase; }
.who__where { display: block; font-size: 14px; color: var(--muted); }
.oscar > summary { font-weight: 600; }

/* walkthrough */
.summary { background: var(--surface); box-shadow: 0 0 0 2px var(--line); padding: 14px 18px; margin-top: 18px; }
.summary__label { font-size: 11px; color: var(--accent); margin: 0 0 4px; }
.summary p:last-child { margin: 0; }
.chapters { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; counter-reset: ch; }
.chapters a { display: grid; grid-template-columns: 56px 1fr; gap: 2px 14px; padding: 14px 16px; background: var(--surface); box-shadow: 0 0 0 2px var(--line); text-decoration: none; color: var(--text); }
.chapters a:hover { box-shadow: 0 0 0 2px var(--c-yellow); color: var(--text); }
.ch__n { grid-row: span 2; font-size: 32px; color: var(--accent); line-height: 1; }
.ch__t { font-weight: 700; }
.ch__s { color: var(--muted); font-size: 15px; }
.walk .fig { margin: 2em 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a { display: block; padding: 14px 16px; background: var(--surface); box-shadow: 0 0 0 2px var(--line); text-decoration: none; color: var(--text); font-weight: 600; }
.pager a:hover { box-shadow: 0 0 0 2px var(--c-yellow); }
.pager span { display: block; font: 11px var(--px); text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pager__next { text-align: right; }

/* downloads */
.dl { background: var(--surface); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 30px; }
.dl.is-yours { box-shadow: 0 0 0 3px var(--c-yellow), 6px 6px 0 3px var(--edge); }
.dl__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.dl__name { font-size: 24px; margin: 0; }
.dl__badge { font-size: 13px; color: var(--muted); }
.dl.is-yours .dl__name::after { content: "  \2190 yours"; font-size: 13px; color: var(--c-yellow); }
.dl__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 20px; margin: 16px 0; }
.dl__facts dt { font: 11px var(--px); text-transform: uppercase; color: var(--muted); }
.dl__facts dd { margin: 2px 0 0; }
.dl__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.dl--manual { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start; box-shadow: 0 0 0 3px var(--c-yellow), 6px 6px 0 3px var(--edge); }
.dl__cover { display: block; line-height: 0; }
.dl__cover img { width: 150px; height: auto; box-shadow: 0 0 0 3px var(--edge), 5px 5px 0 3px var(--edge); transform: rotate(-2deg); transition: transform .15s; }
.dl__cover:hover img { transform: rotate(0deg) scale(1.03); }
.dl--manual .dl__body > p { margin: 12px 0 0; }
@media (max-width: 600px) { .dl--manual { grid-template-columns: 1fr; } .dl__cover img { width: 130px; } }
.sha summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.sha code { display: block; margin-top: 6px; font-size: 12px; }

/* how to play: input pictures and tabs */
.tabs { display: flex; gap: 0; margin: 0 0 18px; box-shadow: 0 0 0 3px var(--edge); width: max-content; max-width: 100%; }
.tab { font-size: 13px; padding: 10px 14px 8px; background: var(--surface); color: var(--text); border: 0; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--c-yellow); color: #000; }
.inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.js .inputs--tabs [data-panel]:not(.is-active) { display: none; }
@media (min-width: 900px) { .js .inputs--tabs [data-panel] { display: block !important; } .inputs--tabs .tabs { display: none; } }
@media (max-width: 899px) { .inputs { grid-template-columns: 1fr; } }
.input-art { background: var(--surface); box-shadow: var(--shadow); padding: 16px; }
.input-art svg { display: block; width: 100%; height: auto; }
.input-art h3 { font: 16px var(--px); text-transform: uppercase; margin: 0 0 10px; color: var(--accent); }
.svg-key { fill: var(--surface-2); stroke: var(--edge); stroke-width: 2; }
.svg-key--on { fill: var(--c-yellow); }
.svg-label { font: 11px var(--px); fill: var(--text); text-transform: uppercase; }
.svg-key--on + .svg-label, .svg-on-label { fill: #000; }
.svg-call { font: 12px var(--px); fill: var(--muted); }
.svg-line { stroke: var(--muted); stroke-width: 1.5; fill: none; stroke-dasharray: 3 3; }
.svg-body { fill: var(--surface-2); stroke: var(--edge); stroke-width: 3; }
.tune { margin: 0; background: var(--surface); box-shadow: 0 0 0 2px var(--line); padding: 12px 14px; }
.tune figcaption { font: 13px var(--px); text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.tune audio { width: 100%; }

/* film-set cards on the story page */
.sets { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.set { background: var(--surface); box-shadow: var(--shadow-sm); }
.set img { display: block; width: 100%; aspect-ratio: 2 / 1; image-rendering: auto; border-bottom: 2px solid var(--edge); }
.set h3 { font: 13px/1.4 var(--px); text-transform: uppercase; margin: 12px 14px 4px; color: var(--accent); }
.set p { margin: 0 14px 14px; font-size: 15px; color: var(--muted); }
.cast { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.cast__item { background: var(--surface); box-shadow: var(--shadow-sm); padding: 16px; display: flex; gap: 14px; align-items: center; }
.cast__item img { width: 80px; height: 80px; object-fit: cover; box-shadow: 0 0 0 2px var(--edge); background: #000; flex: none; }
.cast__item h3 { font: 13px/1.4 var(--px); text-transform: uppercase; margin: 0 0 4px; }
.cast__item p { margin: 0; color: var(--muted); font-size: 15px; }
.scores { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.scores li { background: #000; color: #fff; padding: 14px; box-shadow: var(--shadow-sm); }
.scores b { display: block; font: 24px var(--px); color: var(--c-yellow); }
.scores span { font-size: 14px; color: #c3c8e8; }

/* --- the lightbox ------------------------------------------------------------------------------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { display: block; max-height: 86vh; width: auto; image-rendering: auto; box-shadow: 0 0 0 3px #000; }
.lightbox p { color: #ddd; margin: 10px 0 0; text-align: center; }
.lightbox button { position: absolute; top: 8px; right: 8px; font: 16px var(--px); background: var(--c-yellow); border: 0; padding: 8px 10px 6px; cursor: pointer; }

/* --- footer -------------------------------------------------------------------------------------- */
.foot { background: #000; color: #c5c9e4; margin-top: 0; font-size: 15px; }
.foot::before { content: ""; display: block; height: 28px; background:
    repeating-linear-gradient(90deg, transparent 0 10px, #cfcfcf 10px 22px, transparent 22px 32px) 0 9px / 100% 10px no-repeat, #000;
  border-top: 2px solid #333; border-bottom: 2px solid #333; }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 32px 16px 44px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 36px; }
.foot__brand img { width: 96px; height: 48px; }
.foot__unofficial { margin: 14px 0 8px; color: #e8eaf8; }
.foot__credit { margin: 0; color: var(--c-yellow); font-family: var(--px); font-size: 11px; text-transform: uppercase; line-height: 1.6; }
.foot__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.foot__nav ul { list-style: none; margin: 0; padding: 0; }
.foot__nav li { margin-bottom: 8px; }
.foot__nav a { color: #e8eaf8; text-decoration: none; }
.foot__nav a:hover { color: var(--c-yellow); text-decoration: underline; }
@media (max-width: 760px) { .foot__in { grid-template-columns: 1fr; } .foot__nav { grid-template-columns: 1fr 1fr; } }

/* 404 */
.lost { text-align: center; padding: 70px 16px 90px; }
.lost .bubble { text-align: center; }
.room-group .hl__where { display: none; }
