/* not just review — light editorial theme: every title is an "issue cover" in its own ink.
   Paper, inks and fonts are the variables at the top. */
:root {
  --bg: #F2ECDF;          /* paper */
  --paper: #FAF6EC;       /* lighter sheet for panels */
  --panel: var(--paper);
  --ink: #18181D;         /* text */
  --mute: #6B6456;
  --faint: #A9A08C;
  --line: #DED4BF;
  /* Per-title inks (set by render.js): cover ground, text on the cover, accent for text/lines on paper */
  --cover: #E5492B; --on: #F7F2E8; --accent: #D4401F;
  --accent2: #EBB12E;     /* mustard: the fixed second ink */
  --navy: #23306B; --emerald: #0E7A57; --forest: var(--emerald); --pink: #E3708A; --teal: #2A55D9; --cobalt: #2A55D9;
  --mast: "Young Serif", "Cooper", Georgia, serif;   /* warm poster serif: mastheads and big numbers */
  --serif: "Literata", Georgia, "Times New Roman", serif;   /* headlines and reading text */
  --display: var(--mast);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .13 0 0 0 0 .09 0 0 0 .38 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  --stipple: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -6 3.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  --star8: polygon(50% 0, 57% 36%, 85% 15%, 64% 43%, 100% 50%, 64% 57%, 85% 85%, 57% 64%, 50% 100%, 43% 64%, 15% 85%, 36% 57%, 0 50%, 36% 43%, 15% 15%, 43% 36%);
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* Light by design, whatever theme the viewer uses */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #F2ECDF; --paper: #FAF6EC; --ink: #18181D; } }
:root[data-theme="dark"] { --bg: #F2ECDF; --paper: #FAF6EC; --ink: #18181D; }
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body { overflow-x: clip; margin: 0; background: var(--bg) var(--grain); color: var(--ink); font-family: var(--serif); font-size: 17.5px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; border-radius: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }

/* A full-bleed coloured sheet that breaks out of the column */
.bleed { position: relative; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: max(clamp(18px, 4vw, 48px), calc(50vw - 560px + clamp(18px, 4vw, 48px))); padding-right: max(clamp(18px, 4vw, 48px), calc(50vw - 560px + clamp(18px, 4vw, 48px))); }
/* Checked band, like the tablecloth and the pavement tiles */
.checks { height: 56px; margin-top: 40px; background-color: var(--emerald); background-image: linear-gradient(var(--on) 1.5px, transparent 1.5px), linear-gradient(90deg, var(--on) 1.5px, transparent 1.5px); background-size: 34px 28px; background-position: -1px -1px; opacity: .95; }
/* Irregular eight-point star */
.star8 { display: inline-block; width: 28px; height: 28px; background: var(--accent2); clip-path: var(--star8); }

/* ---------- Home cover ---------- */
.hero { --cover: #E5492B; --on: #F7F2E8; background: var(--cover) var(--grain); color: var(--on); padding-top: 18px; padding-bottom: 0; overflow: hidden; }
.issue-line { display: flex; justify-content: space-between; gap: 16px; font-family: var(--serif); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.home { text-decoration: none; }
.masthead { font-family: var(--mast); font-weight: 400; font-size: clamp(56px, 11vw, 150px); line-height: .95; letter-spacing: -.01em; text-align: center; margin: 14px 0 0; }
.hero h1 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(28px, 4vw, 46px); line-height: 1.12; text-align: center; margin: 22px auto 34px; max-width: 22ch; }
.hero-mark { position: absolute; pointer-events: none; }
.hero-mark.m1 { left: max(18px, calc(50vw - 600px)); top: 250px; width: clamp(54px, 7vw, 86px); }
.hero-mark.m2 { right: max(18px, calc(50vw - 600px)); top: 270px; width: clamp(60px, 8vw, 100px); }
.lede { max-width: 56ch; margin: 0 auto 34px; text-align: center; opacity: .9; }
.searchbox { position: relative; max-width: 860px; margin: 0 auto; }
#q { width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--on); color: var(--on); font-family: var(--mast); font-weight: 400; font-size: clamp(32px, 5vw, 60px); line-height: 1.1; padding: 6px 0 10px; outline: none; border-radius: 0; text-align: center; -webkit-appearance: none; }
#q::placeholder { color: color-mix(in srgb, var(--on) 55%, transparent); }
#q:focus { border-bottom-color: var(--accent2); }
#q::-webkit-search-cancel-button { display: none; }
#suggest { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 10px); list-style: none; margin: 0; padding: 8px; background: var(--paper); color: var(--ink); border-radius: 6px; box-shadow: 0 18px 40px rgba(40, 25, 10, .25); max-height: 70vh; overflow: auto; text-align: left; }
#suggest li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; padding: 10px; border-radius: 4px; cursor: pointer; font-size: 16px; line-height: 1.35; }
#suggest li.on, #suggest li:hover { background: color-mix(in srgb, var(--accent2) 28%, var(--paper)); }
#suggest li.empty { display: block; color: var(--mute); cursor: default; }
#suggest img, .noposter { width: 46px; height: 69px; border-radius: 2px; object-fit: cover; background: var(--line); display: block; }
#suggest b { font-weight: 600; }
#suggest small { display: block; color: var(--mute); font-size: 14px; }
.yr { color: var(--mute); }
.kind { font-family: var(--serif); font-weight: 600; font-size: 12px; border: 1px solid currentColor; border-radius: 999px; padding: 0 8px; margin-left: 4px; vertical-align: 2px; }
.hint { font-size: 15px; margin: 14px 0 0; text-align: center; opacity: .85; }
/* Once a title is open, the home cover shrinks to a slim masthead with the search */
body.viewing .hero h1, body.viewing .lede, body.viewing .hint, body.viewing .hero-mark, body.viewing .hero .checks { display: none; }
body.viewing .masthead { font-size: clamp(34px, 5vw, 52px); margin-top: 6px; }
body.viewing #q { font-size: clamp(24px, 3.4vw, 34px); }
body.viewing .hero { padding-bottom: 22px; }

/* ---------- Status, notices, buttons ---------- */
#status { margin-top: 28px; }
#status:empty { margin: 0; }
.loading, .notice { background: var(--paper); border-radius: 6px; padding: 22px 26px; }
.loading { display: flex; gap: 18px; align-items: center; }
.reel { width: 34px; height: 34px; background: var(--accent2); clip-path: var(--star8); animation: spin 2.4s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .reel { animation: none; } }
.loading b { font-family: var(--serif); font-size: 24px; font-weight: 600; display: block; line-height: 1.15; }
.loading span { color: var(--mute); font-size: 15px; }
.notice h3 { font-family: var(--serif); font-size: 26px; margin: 0 0 6px; font-weight: 600; }
.btn { background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 11px 22px; font-family: var(--serif); font-weight: 600; font-size: 17px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

/* Season picker */
.seasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px; margin-top: 16px; }
.seasonbtn { background: transparent; color: var(--ink); border: 0; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.seasonbtn img, .seasonbtn .noposter { width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: 3px; object-fit: cover; margin-bottom: 8px; transition: transform .15s; }
.seasonbtn:hover img { transform: translateY(-4px); }
.seasonbtn small { color: var(--mute); font-size: 13px; }

/* ---------- Title cover ---------- */
.cover { background: var(--cover) var(--grain); color: var(--on); padding-top: 22px; margin-top: 0; overflow: hidden; }
.cover .issue-line { opacity: .95; }
.cover .mast { font-family: var(--mast); font-weight: 400; line-height: .95; text-align: center; margin: 18px 0 6px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.cover .cover-sub { text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 28px); margin: 6px 0 0; }
.cover-art { margin: 30px auto 0; max-width: 980px; }
.cover-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.cover-art figcaption { font-size: 14px; font-style: italic; margin-top: 10px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; opacity: .9; }
/* Without an illustration, the backdrop is printed in the cover's ink (duotone) */
.cover-photo { margin: 30px auto 0; max-width: 980px; aspect-ratio: 16 / 7; border-radius: 4px; background-color: var(--cover); background-size: cover; background-position: center 30%; background-blend-mode: multiply; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; opacity: .9; }
.cover .deco { position: absolute; pointer-events: none; }
.drawing { display: flex; gap: 12px; align-items: center; justify-content: center; font-style: italic; font-size: 16px; margin: 22px 0 0; }
.drawing[hidden] { display: none; }
.drawing .reel { width: 22px; height: 22px; }
.cover .checks { --on: #F7F2E8; background-color: var(--emerald); }

.film { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; padding: 40px 0 0; }
@media (max-width: 600px) { .film { grid-template-columns: 1fr; } }
.poster { width: clamp(110px, 16vw, 180px); height: auto; border-radius: 3px; display: block; }
.meta, .ratings { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--mute); font-size: 16px; }
.meta { margin: 0 0 8px; }
.meta b, .ratings b { color: var(--ink); font-weight: 600; }
.thesis { font-size: clamp(22px, 2.5vw, 30px); line-height: 1.32; max-width: 32ch; font-style: italic; margin: 18px 0 0; }
.basis { font-size: 15px; color: var(--mute); max-width: 72ch; margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.basis b { color: var(--ink); }

/* ---------- Key moments ---------- */
.moments { padding: 64px 0 0; }
.moments h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; margin: 0 0 24px; }
.moment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.moment { margin: 0; }
.moment img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.moment figcaption { margin-top: 12px; display: grid; gap: 2px; }
.moment figcaption b { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.15; }
.moments .kicker.note.wide { margin-top: 20px; }

/* ---------- Graph sections ---------- */
section.g { padding: 80px 0 8px; }
.ghead { display: grid; grid-template-columns: auto 1fr; gap: 2px 22px; align-items: end; margin-bottom: 22px; }
.num { position: relative; font-family: var(--mast); font-weight: 400; font-size: 76px; line-height: .78; color: var(--accent); grid-row: span 2; }
.num::after { content: ""; position: absolute; left: -4px; top: -26px; width: 22px; height: 22px; background: var(--accent2); clip-path: var(--star8); }
.num.dna { font-size: 64px; }
.kicker { color: var(--mute); font-size: 15px; font-style: italic; }
.kicker.note { margin: 0; max-width: 36ch; }
.kicker.note.wide { max-width: 70ch; margin: 10px 0 36px; }
.ghead h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; margin: 0; max-width: 26ch; letter-spacing: -.005em; }
.panel { background: var(--paper); border-radius: 6px; padding: clamp(16px, 2.6vw, 32px); overflow-x: auto; }
.panel svg { display: block; width: 100%; height: auto; min-width: 560px; }
.below { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; margin-top: 26px; align-items: start; }
@media (max-width: 720px) { .hero-mark, .cover .deco { display: none; } }
@media (max-width: 760px) { .below { grid-template-columns: 1fr; } }
.insight { margin: 0; max-width: 62ch; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tag { font-size: 13px; color: var(--mute); border: 1px solid var(--faint); border-radius: 999px; padding: 2px 10px; }
.tag.hi { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.stats { display: flex; flex-wrap: wrap; gap: 18px 32px; }
.stat .v { font-family: var(--mast); font-weight: 400; font-size: 54px; line-height: .85; }
.stat .v small { font-size: 24px; font-weight: 400; color: var(--mute); }
.stat .l { color: var(--mute); font-size: 14px; max-width: 20ch; line-height: 1.3; margin-top: 8px; }
.stat.word .v { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.15; max-width: 16ch; }

/* SVG text */
.ax { font-family: var(--serif); font-style: italic; fill: var(--mute); font-size: 15px; }
.axn { font-family: var(--serif); font-weight: 600; fill: var(--mute); font-size: 16px; }
.lab { font-family: var(--serif); font-weight: 600; fill: var(--ink); font-size: 18px; }
.labs { font-family: var(--serif); fill: var(--ink); font-size: 15px; }

/* ---------- Allocation ---------- */
h4 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 0 0 16px; }
h4.sub { font-weight: 400; font-style: italic; font-size: 16px; color: var(--mute); margin: 0 0 12px; }
.alloc + h4.sub { margin-top: 36px; }
.stack { display: flex; height: 64px; gap: 4px; }
.stack div { min-width: 3px; border-radius: 2px; }
.alloc { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px 24px; margin-top: 20px; }
.alloc .v { font-family: var(--mast); font-weight: 400; font-size: 40px; line-height: 1; }
.alloc .k { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.alloc .sw { width: 13px; height: 13px; flex: none; clip-path: var(--star8); }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
@media (max-width: 640px) { .versus { grid-template-columns: 1fr; } }
.versus div { border-top: 1px solid var(--ink); padding-top: 12px; }
.versus b { display: block; color: var(--mute); font-weight: 400; font-size: 14px; font-style: italic; }

/* Setups list */
.setups { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.setups li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; font-size: 16px; line-height: 1.4; }
.setups .s { font-family: var(--mast); font-weight: 400; font-size: 22px; text-align: center; }
.muted { color: var(--mute); }

/* ---------- Profile + scorecard ---------- */
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: minmax(110px, 180px) 1fr 52px; gap: 14px; align-items: center; font-size: 16px; }
.bar .t { height: 12px; border-radius: 99px; overflow: hidden; background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 7px); }
.bar .t i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.bar .n { font-family: var(--serif); font-weight: 600; font-size: 20px; text-align: right; }
.bar .w { color: var(--mute); font-size: 13px; }
.overall { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; margin-bottom: 30px; }
.overall .v { font-family: var(--mast); font-weight: 400; font-size: clamp(100px, 15vw, 180px); line-height: .85; color: var(--accent); }
.overall p { margin: 0; color: var(--mute); max-width: 40ch; font-size: 15px; }
.overall p.ratings { margin-top: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Sequences ---------- */
details.seqs { margin-top: 80px; border-top: 1px solid var(--ink); padding-top: 24px; }
details.seqs summary { font-family: var(--serif); font-weight: 600; font-size: 28px; cursor: pointer; }
.seq { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.seq.with-still { grid-template-columns: 56px minmax(120px, 220px) 1fr; }
.seq .still { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; display: block; }
@media (max-width: 640px) { .seq.with-still { grid-template-columns: 44px 1fr; } .seq .still { grid-column: 2; } }
.seq .n { font-family: var(--mast); font-weight: 400; font-size: 32px; color: var(--accent); line-height: .9; }
.seq .t { font-weight: 600; }
.seq .m { color: var(--mute); font-size: 14px; font-weight: 400; }
.foot { color: var(--mute); font-size: 14px; margin-top: 32px; max-width: 70ch; }

/* ---------- Already analysed ---------- */
#recent { padding: 72px 0 0; }
#recent h2 { font-family: var(--serif); font-weight: 600; font-size: 30px; margin: 0 0 20px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 22px; }
.tile { text-decoration: none; font-size: 15px; line-height: 1.3; }
.tile img, .tile .noposter { width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: 3px; object-fit: cover; margin-bottom: 10px; transition: transform .15s; }
.tile:hover img { transform: translateY(-4px); }

footer.site { color: var(--mute); font-size: 13px; padding: 40px 0; max-width: 80ch; border-top: 1px solid var(--line); margin-top: 80px; }
footer.site a { color: var(--ink); }

/* ---------- Explore / Play ---------- */
.modes { display: flex; gap: 6px; }
.modes a { text-decoration: none; padding: 2px 12px; border-radius: 999px; border: 1px solid transparent; }
.modes a[aria-current] { border-color: currentColor; }
body.playing .searchbox, body.playing .hint, body.playing #recent, body.playing #status, body.playing #result,
body.journaling .searchbox, body.journaling .hint, body.journaling #recent, body.journaling #status, body.journaling #result { display: none; }
body.viewing .three { display: none; }

/* ---------- Game ---------- */
#game { padding: 40px 0 0; }
.g-sheet { background: var(--paper); border-radius: 6px; padding: clamp(22px, 4vw, 44px); margin-bottom: 32px; }
.g-title { font-family: var(--mast); font-weight: 400; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; margin: 6px 0 18px; letter-spacing: -.01em; }
.g-title.big { font-size: clamp(42px, 7vw, 88px); }
.g-lede { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; font-style: italic; margin: 0 0 26px; }
.g-facts { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--mute); }
.g-facts b { color: var(--ink); font-family: var(--mast); font-weight: 400; font-size: 22px; }
.btn.big { font-size: 20px; padding: 15px 34px; }
.btn:disabled { opacity: .45; cursor: default; }
.g-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.g-input { flex: 1 1 280px; min-width: 0; font: inherit; font-size: 20px; padding: 12px 16px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--bg); color: var(--ink); }
.g-input:focus { outline: 3px solid var(--accent2); outline-offset: 1px; }
.g-note { background: color-mix(in srgb, var(--accent2) 22%, var(--paper)); padding: 12px 16px; border-radius: 6px; }
.small { font-size: 14px; }
.linkish { background: none; border: 0; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; padding: 8px; }

.g-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 4; background: var(--bg); padding: 12px 0 10px; margin-bottom: 18px; }
.g-progress { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.g-progress span { height: 6px; border-radius: 3px; background: var(--line); }
.g-progress .done { background: var(--ink); }
.g-progress .now { background: var(--accent); }
.g-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; margin-top: 10px; font-size: 15px; color: var(--mute); }
.g-meta b { color: var(--ink); font-family: var(--mast); font-weight: 400; font-size: 20px; }
.g-chip { font-size: 13px; font-weight: 600; padding: 1px 10px; border-radius: 999px; color: var(--ink); background: var(--line); }
.g-chip.easy { background: #CFE6D8; } .g-chip.medium { background: #F3DFA6; } .g-chip.hard { background: #F2C0B3; } .g-chip.veryhard { background: var(--ink); color: var(--paper); }
.g-time { font-variant-numeric: tabular-nums; }
.g-graph { margin-bottom: 14px; }
.g-guide { color: var(--mute); font-size: 15px; margin: 0 0 22px; max-width: 72ch; }
.g-guide summary { cursor: pointer; }
.g-ac { position: relative; flex: 1 1 280px; display: flex; }
.g-ac .g-input { width: 100%; }
#g-acl { position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: var(--paper); border-radius: 6px; box-shadow: 0 14px 30px rgba(40, 25, 10, .2); }
#g-acl li { padding: 8px 10px; border-radius: 4px; cursor: pointer; }
#g-acl li.on, #g-acl li:hover { background: color-mix(in srgb, var(--accent2) 28%, var(--paper)); }
.g-alt { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.g-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.g-opt { text-align: left; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; padding: 14px 16px; font: inherit; color: var(--ink); }
.g-opt:hover { background: color-mix(in srgb, var(--accent2) 28%, var(--paper)); }

.g-verdict { margin: 6px 0 18px; }
.g-verdict.yes .g-title { color: var(--emerald); }
.g-verdict.no .g-title { color: var(--accent); }
.g-points { font-family: var(--mast); font-size: 30px; }
.g-points .muted { font-family: var(--serif); font-size: 17px; }
.g-answer-card { display: flex; gap: 22px; align-items: center; background: var(--paper); border-radius: 6px; padding: 18px; margin-bottom: 30px; }
.g-answer-card img { width: 110px; height: auto; border-radius: 3px; }
.g-film { font-family: var(--mast); font-weight: 400; font-size: clamp(30px, 4vw, 48px); line-height: 1; margin: 2px 0 6px; }
.g-explore { display: inline-block; margin-top: 10px; font-weight: 600; }
.g-why { max-width: 70ch; margin: 18px 0 26px; }
.g-why h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 0 0 6px; }
.g-why-h { font-weight: 600; margin: 0 0 6px; }
.g-tell { background: var(--paper); border-left: 4px solid var(--accent2); padding: 10px 14px; }
.g-continue { margin: 26px 0 10px; }

.g-results { padding-bottom: 20px; }
.g-final { display: flex; flex-wrap: wrap; gap: 20px 56px; align-items: flex-end; margin: 6px 0 18px; }
.g-big { display: flex; flex-direction: column; }
.g-big span { font-family: var(--mast); font-size: clamp(80px, 12vw, 150px); line-height: .85; color: var(--accent); }
.g-big span small { font-size: .35em; color: var(--mute); }
.g-big > small { color: var(--mute); font-size: 15px; margin-top: 6px; }
.g-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 18px 0 30px; }
.g-stats dt { color: var(--mute); font-size: 14px; }
.g-stats dd { margin: 0; font-family: var(--mast); font-size: 34px; }
.g-h { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 34px 0 14px; }
.g-rank { display: flex; gap: 22px; align-items: center; margin: 34px 0 10px; }
.g-rank-n { font-family: var(--mast); font-size: clamp(70px, 10vw, 120px); line-height: .85; color: var(--accent); margin: 0; }
.g-rank p { margin: 0 0 4px; }
.lb { background: var(--paper); border-radius: 6px; padding: 22px 26px; margin: 22px 0; }
.lb h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 12px; }
.lb ol { list-style: none; margin: 0 0 10px; padding: 0; }
.lb li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
.lb .rk { font-family: var(--mast); font-size: 20px; color: var(--mute); }
.lb .podium .rk { color: var(--accent); }
.lb .sc { font-family: var(--mast); font-size: 20px; }
.lb .me { background: color-mix(in srgb, var(--accent2) 26%, transparent); border-radius: 4px; padding-left: 8px; padding-right: 8px; }
.lb .gap { display: block; text-align: center; color: var(--mute); border: 0; }
.g-recap { list-style: none; padding: 0; margin: 0; }
.g-recap li { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.g-recap .mk { font-weight: 700; }
.g-recap .yes .mk { color: var(--emerald); } .g-recap .no .mk { color: var(--accent); }
.g-recap .pt { font-family: var(--mast); }
/* In the game the whole shape matters more than label size: scale graphs to fit instead of scrolling */
.g-graph svg { min-width: 0; }

/* ---------- Home: three ways in ---------- */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0 0; }
@media (max-width: 820px) { .three { grid-template-columns: 1fr; } }
.three-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 6px; text-decoration: none; color: var(--paper); min-height: 190px; transition: transform .15s; }
.three-card:hover { transform: translateY(-4px); }
.three-card .kicker { color: inherit; opacity: .85; font-style: normal; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.three-card b { font-family: var(--mast); font-weight: 400; font-size: 28px; line-height: 1.1; }
.three-card span:last-child { opacity: .9; font-size: 15px; }
.three-card.c1 { background: #2A55D9; } .three-card.c2 { background: #0E7A57; } .three-card.c3 { background: #EBB12E; color: var(--ink); }

/* ---------- My Movies ---------- */
#journal { padding: 0 0 20px; }
.j-cover { margin-bottom: 0; }
.j-hero { display: flex; flex-wrap: wrap; gap: 18px 46px; justify-content: center; align-items: center; margin: 22px 0 0; text-align: center; }
.j-hero b { display: block; font-family: var(--mast); font-weight: 400; font-size: clamp(44px, 6vw, 70px); line-height: 1; }
.j-hero span { font-size: 15px; opacity: .9; }
.j-add { background: var(--on); color: var(--cover); font-size: 18px; }
.j-tabs { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 26px 0 8px; border-bottom: 1px solid var(--line); }
.j-tabs a { text-decoration: none; padding: 10px 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--mute); font-weight: 600; }
.j-tabs a[aria-current] { color: var(--ink); border-color: var(--accent); }
.j-sec { padding: 30px 0 4px; }
.j-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.j-two.tight { gap: 20px; }
@media (max-width: 820px) { .j-two { grid-template-columns: 1fr; } }
.j-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 30px 22px; }
.j-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.j-poster { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 3px; overflow: hidden; background: var(--line); margin-bottom: 8px; }
.j-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.j-poster .noposter { display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 12px; font-family: var(--mast); font-size: 20px; border-radius: 0; }
.j-hover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px; background: linear-gradient(to top, rgba(20, 16, 12, .88), rgba(20, 16, 12, .1) 70%); color: #F7F2E8; opacity: 0; transition: opacity .25s; font-size: 14px; line-height: 1.35; }
.j-hover .j-view { font-weight: 600; }
.j-card:hover .j-poster img, .j-card:focus-visible .j-poster img { transform: scale(1.05); }
.j-card:hover .j-hover, .j-card:focus-visible .j-hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .j-poster img, .j-hover { transition: none; } }
.j-title { font-weight: 600; line-height: 1.25; }
.j-rate { display: flex; align-items: center; gap: 6px; }
.j-rate b { font-family: var(--mast); font-weight: 400; }
.j-ex { font-size: 14px; color: var(--mute); font-style: italic; line-height: 1.4; }
.j-meta { font-size: 13px; color: var(--mute); }
.j-rw { font-size: 12px; font-weight: 600; padding: 0 8px; border-radius: 999px; background: var(--line); color: var(--ink); }
.stars { display: inline-block; vertical-align: middle; }
.j-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 22px; }
.j-search { flex: 1 1 320px; display: flex; }
.j-search input, .j-sel select { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--faint); border-radius: 6px; background: var(--paper); color: var(--ink); width: 100%; }
.j-sel { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.j-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.j-chip { background: var(--paper); border-radius: 999px; padding: 4px 12px; font-size: 15px; }
.j-chip b { font-family: var(--mast); font-weight: 400; color: var(--accent); }
.j-year { background: var(--paper); border-radius: 6px; padding: 22px 24px; }
.j-yn { margin: 4px 0 12px; font-size: 18px; }
.j-yn b { font-family: var(--mast); font-weight: 400; font-size: 52px; color: var(--accent); line-height: 1; margin-right: 6px; }
.j-year dl { display: grid; gap: 8px; margin: 0; }
.j-year dl div { display: grid; grid-template-columns: 170px 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.j-year dt { color: var(--mute); font-size: 15px; }
.j-year dd { margin: 0; font-weight: 600; }
.j-more { font-weight: 600; }
.j-reviews { list-style: none; padding: 0; margin: 0; }
.j-reviews li { border-bottom: 1px solid var(--line); }
.j-reviews a { display: grid; gap: 4px; padding: 22px 0; text-decoration: none; }
.j-rr { display: flex; align-items: center; gap: 8px; }
.j-rr b { font-family: var(--mast); font-weight: 400; font-size: 20px; }
.j-rt { font-family: var(--mast); font-size: 26px; line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; }
.j-rtext { font-size: 19px; line-height: 1.5; font-style: italic; max-width: 64ch; }
.j-rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.j-rcard { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border-radius: 6px; padding: 18px; text-decoration: none; }
.j-rcard b { font-family: var(--mast); font-weight: 400; font-size: 22px; }
.j-rcard .j-rtext { font-size: 16px; }
.j-mode { display: inline-flex; gap: 4px; margin: -8px 0 16px; }
.j-mode button { font: inherit; font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--faint); background: transparent; color: var(--ink); }
.j-mode button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.j-tl { padding: 26px 0 0; }
.j-tl-y { font-family: var(--mast); font-weight: 400; font-size: 64px; line-height: 1; margin: 0 0 6px; color: var(--accent); }
.j-tl-m h4 { font-family: var(--serif); font-size: 20px; margin: 18px 0 8px; }
.j-tl-m ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.j-tl-m a { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; text-decoration: none; }
.j-tl-m img, .j-tl-m .noposter { width: 46px; height: 69px; object-fit: cover; border-radius: 2px; }
.j-yearsel label { font-weight: 600; display: inline-flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.j-yearsel select { font: inherit; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--faint); background: var(--paper); }
.j-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 28px; }
.j-nums b { display: block; font-family: var(--mast); font-weight: 400; font-size: 46px; line-height: 1; }
.j-nums b.w { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; }
.j-nums span { color: var(--mute); font-size: 14px; }
.j-cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 190px; padding-top: 20px; }
.j-cols div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; }
.j-cols span { width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; }
.j-cols b { position: absolute; top: -2px; font-family: var(--mast); font-weight: 400; font-size: 14px; }
.j-cols i { font-style: normal; font-size: 12px; color: var(--mute); margin-top: 6px; }
.j-dist { display: grid; gap: 6px; }
.j-dist div { display: grid; grid-template-columns: 58px 1fr 28px; gap: 10px; align-items: center; font-size: 14px; }
.j-db { height: 14px; background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 7px); border-radius: 99px; overflow: hidden; }
.j-db i { display: block; height: 100%; background: var(--accent2); border-radius: 99px; }
.j-dn { font-family: var(--mast); }
.j-verdict { background: var(--paper); border-left: 4px solid var(--accent2); padding: 10px 14px; max-width: 70ch; }
.j-taste { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.j-taste b { font-weight: 600; }
.j-unlock { margin-top: 50px; }
.j-back { margin: 26px 0 0; }
.j-back a { font-weight: 600; text-decoration: none; }
.j-entry { display: grid; grid-template-columns: minmax(160px, 280px) 1fr; gap: clamp(22px, 4vw, 48px); margin-top: 18px; align-items: start; }
@media (max-width: 640px) { .j-entry { grid-template-columns: 1fr; } .j-ep { max-width: 220px; } }
.j-ep img, .j-ep .noposter { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; display: block; }
.j-sub { color: var(--mute); margin: -8px 0 16px; font-size: 18px; }
.j-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 24px; margin: 0; }
.j-facts .wide { grid-column: 1 / -1; }
.j-facts dt { color: var(--mute); font-size: 14px; }
.j-facts dd { margin: 0; font-weight: 600; }
.j-take { margin: 48px 0 0; padding: clamp(22px, 4vw, 44px); background: var(--paper); border-radius: 6px; }
.j-take > .kicker, .j-analysis > .kicker { font-style: normal; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: var(--accent); }
.j-bigstars { display: flex; align-items: center; gap: 16px; margin: 10px 0 18px; }
.j-bigstars b { font-family: var(--mast); font-weight: 400; font-size: 64px; line-height: 1; }
.j-review { margin: 0 0 18px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.42; font-style: italic; max-width: 40ch; border-left: 4px solid var(--accent); padding-left: 22px; }
.j-watched { margin: 0; color: var(--mute); }
.j-watched b { color: var(--ink); }
.j-rewatch { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.j-rewatch ol { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.j-rewatch li.cur a { font-weight: 700; }
.j-own { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.j-analysis { margin: 40px 0 0; padding: clamp(22px, 4vw, 44px); border: 1px dashed var(--faint); border-radius: 6px; }
.j-analysis .bars { max-width: 640px; }
.j-traits { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.j-traits b { font-weight: 600; }
.j-dialog { border: 0; border-radius: 8px; padding: clamp(20px, 4vw, 36px); width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(30, 20, 10, .35); }
.j-dialog::backdrop { background: rgba(24, 24, 29, .55); }
.j-dialog .g-input { width: 100%; }
.j-dialog textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.j-lab { display: block; font-weight: 600; margin: 18px 0 6px; }
.j-mres { list-style: none; padding: 0; margin: 8px 0 0; max-height: 300px; overflow: auto; }
.j-mres button { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 8px; border-radius: 6px; font: inherit; color: var(--ink); }
.j-mres button:hover, .j-mres button:focus-visible { background: var(--paper); }
.j-mres img, .j-mres .noposter { width: 38px; height: 57px; object-fit: cover; border-radius: 2px; }
.j-mres small { display: block; color: var(--mute); }
.j-picked { display: flex; gap: 14px; align-items: center; background: var(--paper); border-radius: 6px; padding: 10px; }
.j-picked img { border-radius: 2px; }
.j-picked .linkish { margin-left: auto; }
.star-in { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 16px; }
.star-row { position: relative; display: grid; grid-template-columns: repeat(10, 1fr); width: calc(34px * 4.9); height: 34px; }
.star-row .half { position: relative; z-index: 2; cursor: pointer; }
.star-row .half input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.star-row:focus-within { outline: 3px solid var(--accent2); outline-offset: 4px; border-radius: 4px; }
.star-show { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.star-num { font-family: var(--mast); font-size: 26px; }
.j-date { max-width: 220px; }
.j-fbtns { display: flex; gap: 10px; margin-top: 22px; }
.j-form { display: grid; gap: 14px; max-width: 520px; }
.j-form label { display: grid; gap: 6px; font-weight: 600; }
.j-addr { display: flex; align-items: center; gap: 6px; font-weight: 400; color: var(--mute); }
.j-inks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.j-inks legend { font-weight: 600; margin-bottom: 8px; }
.j-inks label { display: block; cursor: pointer; }
.j-inks input { position: absolute; opacity: 0; }
.j-inks span:first-of-type { display: block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; }
.j-inks input:checked + span { border-color: var(--ink); }
.j-inks input:focus-visible + span { outline: 3px solid var(--accent2); outline-offset: 2px; }
.j-key code { font-size: 18px; background: var(--paper); padding: 8px 12px; border-radius: 6px; word-break: break-all; }
.j-toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 0); z-index: 50; background: var(--ink); color: var(--paper); padding: 14px 22px; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
a.btn { display: inline-block; text-decoration: none; }
.j-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* Hint ladder */
.g-clue { background: var(--paper); border-radius: 6px; padding: 12px 16px; margin: 0 0 12px; border-left: 4px solid var(--accent2); }
.g-clue p { margin: 0; }
.g-clue-k { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px !important; }
.g-clue .g-options { margin-top: 8px; }
.g-worth { font-size: 14px; color: var(--mute); }

/* The story clue shown with every question */
.g-story { background: var(--paper); border-radius: 6px; padding: 16px 20px; margin: -4px 0 26px; display: grid; gap: 10px; font-size: 18px; line-height: 1.5; }
.g-story p { margin: 0; }
.g-story-k { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }

/* =====================================================================
   Light editorial theme, inspired by the cover series: cream grounds, the colour
   lives in the type, the art and a patterned floor band (tiles, checks, bricks).
   ===================================================================== */
:root { --bg: #F6EFE2; --paper: #FCF8F0; --accent2: #F3A81E; --emerald: #129A5B; --navy: #2B32A8; --pink: #EE6F9A; --teal: #2FA4E7; --sky: #2FA4E7; --cobalt: #2B32A8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #F6EFE2; --paper: #FCF8F0; } }
:root[data-theme="dark"] { --bg: #F6EFE2; --paper: #FCF8F0; }

/* Home cover */
.hero { --cover: #EE5338; --accent: #C9381C; --on: var(--ink); background: color-mix(in srgb, var(--cover) 8%, #F9F2E5) var(--grain); color: var(--ink); }
.hero .masthead { color: var(--accent); }
.hero h1 { color: var(--ink); font-style: normal; font-family: var(--mast); font-size: clamp(30px, 4.2vw, 50px); }
.lede, .hint { opacity: 1; color: var(--mute); }
#q { color: var(--ink); border-bottom-color: var(--ink); }
#q::placeholder { color: var(--faint); }
#q:focus { border-bottom-color: var(--accent); }
.modes a { color: var(--ink); }
.modes a:hover { border-color: var(--faint); }
.modes a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* The cinema still-life: objects pop up once on load and wobble on hover */
.still-life { display: block; width: 100%; max-width: 980px; height: auto; margin: 34px auto -6px; position: relative; z-index: 1; }
.still-life .obj { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); cursor: default; }
.still-life .obj:hover { transform: rotate(-7deg) translateY(-8px); }
.still-life .tw { transform-box: fill-box; transform-origin: center; transition: transform .6s ease; }
.hero:hover .still-life .tw { transform: rotate(45deg) scale(1.15); }
@keyframes pop { from { transform: translateY(30px) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.still-life .obj { animation: pop .55s cubic-bezier(.3, 1.4, .5, 1) both; }
.still-life .obj:nth-of-type(2) { animation-delay: .06s } .still-life .obj:nth-of-type(3) { animation-delay: .12s } .still-life .obj:nth-of-type(4) { animation-delay: .18s }
.still-life .obj:nth-of-type(5) { animation-delay: .24s } .still-life .obj:nth-of-type(6) { animation-delay: .3s } .still-life .obj:nth-of-type(7) { animation-delay: .36s } .still-life .obj:nth-of-type(8) { animation-delay: .42s }
body.viewing .still-life { display: none; }

/* Title and journal covers: cream tinted with the title's ink, masthead in the ink */
.cover { --on: var(--ink); background: color-mix(in srgb, var(--cover) 13%, #F9F2E5) var(--grain); color: var(--ink); }
.cover .mast { color: var(--accent); }
.cover .cover-sub, .cover .issue-line { color: var(--ink); }
.cover-art { transition: transform .2s ease-out; }
.cover-art img { box-shadow: 0 18px 40px -18px rgba(40, 25, 10, .45); }
.cover-art figcaption { color: var(--mute); }
.cover-photo { background-color: var(--cover); opacity: .95; }
.j-hero span { opacity: 1; color: var(--mute); }
.j-hero b { color: var(--accent); }
.j-add { background: var(--ink); color: var(--paper); }

/* Patterned floor bands */
.checks { height: 60px; margin-top: 40px; opacity: 1; border-top: 8px solid var(--cover);
  background-color: #FCF8F0;
  background-image: radial-gradient(circle, var(--ink) 2.2px, transparent 2.8px), linear-gradient(var(--ink) 1.2px, transparent 1.2px), linear-gradient(90deg, var(--ink) 1.2px, transparent 1.2px);
  background-size: 34px 34px; background-position: -17px -17px, 0 0, 0 0; }
.cover .checks.band-checker, .checks.band-checker { border-top: 0; background: repeating-conic-gradient(var(--cover) 0 25%, #FCF8F0 0 50%) 0 0 / 30px 30px; }
.checks.band-bricks { border-top: 0; background-color: var(--cover);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0 1H60M0 16H60M30 1V16M1 16V30M59 16V30' stroke='%23FCF8F0' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-size: 60px 30px; background-position: 0 0; }
@keyframes tiles-slide { to { background-position: 119px -17px, 136px 0, 136px 0; } }
@keyframes band-slide { to { background-position: 120px 0; } }
.hero:hover .checks { animation: tiles-slide 5s linear infinite; }
.cover:hover .checks.band-checker, .cover:hover .checks.band-bricks { animation: band-slide 5s linear infinite; }

/* Home: three ways in, each with its own pattern band */
.three-card { position: relative; background: var(--paper); color: var(--ink); padding: 0 0 24px; overflow: hidden; min-height: 0; transition: transform .2s ease-out, box-shadow .2s; }
.three-card::before { content: ""; display: block; height: 92px; margin-bottom: 18px; transition: background-position 1.2s ease; }
.three-card > * { padding: 0 24px; }
.three-card.c1, .three-card.c2, .three-card.c3 { background: var(--paper); color: var(--ink); }
.three-card.c1::before { background-color: #2B32A8; background-image: radial-gradient(circle, #FCF8F0 2.4px, transparent 3px), linear-gradient(#FCF8F0 1.2px, transparent 1.2px), linear-gradient(90deg, #FCF8F0 1.2px, transparent 1.2px); background-size: 30px 30px; background-position: -15px -15px, 0 0, 0 0; }
.three-card.c2::before { background: repeating-conic-gradient(#129A5B 0 25%, #FCF8F0 0 50%) 0 0 / 26px 26px; }
.three-card.c3::before { background-color: #F3A81E; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0 1H60M0 16H60M30 1V16M1 16V30M59 16V30' stroke='%23FCF8F0' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-size: 60px 30px; }
.three-card:hover { box-shadow: 0 22px 40px -22px rgba(40, 25, 10, .5); }
.three-card.c1:hover::before { background-position: 45px -15px, 60px 0, 60px 0; }
.three-card.c2:hover::before { background-position: 52px 0; }
.three-card.c3:hover::before { background-position: 60px 0; }
.three-card .kicker { opacity: 1; }
.three-card.c1 .kicker { color: #2B32A8; } .three-card.c2 .kicker { color: #0B7A47; } .three-card.c3 .kicker { color: #A15F00; }
.three-card b { color: var(--ink); }
.three-card span:last-child { color: var(--mute); opacity: 1; }
.three-card .star8 { position: absolute; top: 64px; right: 18px; width: 40px; height: 40px; padding: 0; background: #F3A81E; transition: transform .6s ease; }
.three-card.c3 .star8 { background: #EE5338; }
.three-card:hover .star8 { transform: rotate(90deg) scale(1.15); }

/* Interactive details */
[data-tilt] { transition: transform .2s ease-out; will-change: transform; }
.btn { transition: transform .15s ease, background-color .15s; }
.btn:hover:not(:disabled) { transform: translateY(-2px); background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .14) 0 6px, transparent 6px 12px); }
.btn.ghost:hover:not(:disabled) { background-color: var(--paper); background-image: none; }
.num::after { transition: transform .6s ease; }
section.g:hover .num::after { transform: rotate(90deg) scale(1.2); }
.j-tabs a { transition: color .15s, border-color .15s; }
.j-tabs a:hover { color: var(--ink); border-color: var(--line); }
.g-opt, .seasonbtn, .tile { transition: transform .15s ease, box-shadow .15s; }
.g-opt:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(40, 25, 10, .5); }
.g-progress span { transition: background-color .3s; }
.panel { transition: box-shadow .25s; }
.panel:hover { box-shadow: 0 16px 34px -24px rgba(40, 25, 10, .45); }
@media (prefers-reduced-motion: reduce) {
  .still-life .obj, .still-life .tw, [data-tilt], .btn, .three-card, .three-card::before, .three-card .star8, .num::after { animation: none !important; transition: none !important; }
  .hero:hover .checks, .cover:hover .checks { animation: none !important; }
}
/* Small screens: the nav gets the whole top line */
.modes a { white-space: nowrap; }
@media (max-width: 640px) {
  .hero .issue-line > span { display: none; }
  .hero .issue-line { justify-content: center; }
  .modes { gap: 4px; }
  .modes a { padding: 3px 10px; font-size: 13px; }
}

/* =====================================================================
   Structure: slim sticky header, editorial intro, ordered home sections,
   "On this page" index on title pages, and a proper footer.
   ===================================================================== */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--mast); font-size: 24px; line-height: 1; text-decoration: none; color: #C9381C; }
.topbar .modes { gap: 4px; }
.topbar .modes a { font-weight: 600; font-size: 15px; padding: 6px 14px; }

/* Home intro: left-aligned, one big statement */
.hero { padding-top: clamp(36px, 7vh, 84px); text-align: left; }
.hero-text { max-width: 780px; }
.hero-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-family: var(--mast); font-weight: 400; font-style: normal; font-size: clamp(56px, 9.5vw, 128px); line-height: .9; letter-spacing: -.015em; color: var(--accent); text-align: left; margin: 0 0 20px; max-width: 9ch; }
.hero .lede { text-align: left; margin: 0 0 32px; max-width: 44ch; font-size: clamp(18px, 1.8vw, 21px); color: var(--ink); }
.hero .searchbox { margin: 0; max-width: 720px; }
#q { text-align: left; font-size: clamp(30px, 4.4vw, 52px); }
.hero .hint { text-align: left; }
.still-life { margin: 44px 0 -6px auto; max-width: 900px; }
/* On a title page the intro shrinks to just the search */
body.viewing .hero { padding-top: 18px; }
body.viewing .hero-kicker, body.viewing .hero h1, body.viewing .hero .lede { display: none; }
body.viewing #q { font-size: clamp(22px, 3vw, 30px); }
body.viewing .checks { margin-top: 22px; height: 30px; }
body.playing .hero, body.journaling .hero { display: none; }
body.viewing .home-only { display: none; }

/* Home sections share one heading style */
.three { margin-top: 56px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin: 0 0 20px; border-top: 1px solid var(--ink); padding-top: 14px; }
.sec-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); margin: 0; }
.sec-head a { font-weight: 600; text-decoration: none; }
.sec-head a:hover { text-decoration: underline; }
#home-journal { padding: 72px 0 0; }
#home-journal:empty { display: none; }
.home-journal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .home-journal { grid-template-columns: repeat(2, 1fr); } }
.hj { display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border-radius: 6px; overflow: hidden; }
.hj img, .hj .noposter { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; border-radius: 0; }
.hj-body { display: grid; gap: 4px; padding: 12px 14px 16px; }
.hj-t { font-weight: 600; line-height: 1.25; }
.hj-s { color: #C98A00; letter-spacing: .05em; }
.hj-s b { color: var(--ink); font-family: var(--mast); font-weight: 400; margin-left: 4px; letter-spacing: 0; }
.hj-q { font-size: 14px; font-style: italic; color: var(--mute); line-height: 1.4; }
#recent { padding: 72px 0 0; }
#recent h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); margin: 0; }

/* Title pages: a sticky "On this page" index beside the graphs */
.t-layout { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 44px; align-items: start; }
.t-rail { position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); padding-top: 70px; }
.t-rail p { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.t-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.t-rail a { display: flex; align-items: baseline; gap: 10px; padding: 5px 10px; border-radius: 4px; text-decoration: none; color: var(--mute); font-size: 14.5px; line-height: 1.3; transition: background-color .15s, color .15s; }
.t-rail a b { font-family: var(--mast); font-weight: 400; color: var(--faint); min-width: 18px; }
.t-rail a:hover { color: var(--ink); background: var(--paper); }
.t-rail a[aria-current] { color: var(--ink); background: var(--paper); font-weight: 600; }
.t-rail a[aria-current] b { color: var(--accent); }
section.g, .moments, details.seqs { scroll-margin-top: 96px; }
@media (max-width: 1040px) {
  .t-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .t-rail { top: calc(56px + env(safe-area-inset-top, 0px)); z-index: 6; padding: 8px 0; margin-top: 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .t-rail p { display: none; }
  .t-rail ol { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .t-rail ol::-webkit-scrollbar { display: none; }
  .t-rail a { white-space: nowrap; background: var(--paper); border-radius: 999px; padding: 5px 12px; }
  section.g, .moments, details.seqs { scroll-margin-top: 120px; }
}

/* Game and journal sticky bars sit below the header */
.g-top { top: calc(58px + env(safe-area-inset-top, 0px)); }
.j-tabs { position: sticky; top: calc(58px + env(safe-area-inset-top, 0px)); z-index: 5; background: var(--bg); }

/* Footer: about, sections, colophon */
footer.site { max-width: none; margin-top: 100px; padding-top: 44px; padding-bottom: 36px; border-top: 0; background: color-mix(in srgb, var(--ink) 4%, var(--bg)); color: var(--ink); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px 48px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-about p { margin: 12px 0 0; max-width: 44ch; color: var(--mute); }
footer.site h2 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 4px 0 10px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.site ul a { font-weight: 600; }
footer.site ul span { display: block; color: var(--mute); font-size: 14px; }
footer.site .foot-grid p { color: var(--mute); }
.foot-credits { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mute); max-width: 90ch; }
footer.site a { color: var(--ink); }
.wordmark { white-space: nowrap; }
footer.site.bleed { padding-left: max(clamp(18px, 4vw, 48px), calc(50vw - 560px + clamp(18px, 4vw, 48px))); padding-right: max(clamp(18px, 4vw, 48px), calc(50vw - 560px + clamp(18px, 4vw, 48px))); }
@media (max-width: 640px) {
  .topbar { padding-top: 10px; padding-bottom: 10px; }
  .topbar .wordmark { font-size: 19px; }
  .topbar .modes a { font-size: 13px; padding: 5px 10px; }
}
@media (max-width: 420px) {
  .topbar { gap: 8px; }
  .topbar .wordmark { font-size: 17px; }
  .topbar .modes { gap: 0; }
  .topbar .modes a { padding: 5px 8px; font-size: 12.5px; }
}

/* =====================================================================
   not just review: homepage and global header/footer, following the mockup.
   ===================================================================== */
:root { --nj-green: #133423; --nj-green-2: #0F2E1F; --nj-cream: #F9EFDA; --nj-card: #FDF4E3; --nj-red: #EC6744; --nj-star: #E8522E; --nj-pink: #F7A2A3; --nj-blue: #1F4E9A; --nj-leaf: #2F6B45;
  --nj-display: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif; --nj-sans: "DM Sans", "Helvetica Neue", Arial, sans-serif; --nj-hand: "Patrick Hand", "Comic Neue", "Segoe Print", cursive; --bg: #F9EFDA; }
body { background: var(--nj-cream) var(--grain); }
.nj-in { max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }
.nj-star { width: .42em; height: .42em; fill: var(--nj-star); flex: none; }

/* Header */
.nj-header { position: sticky; top: 0; z-index: 30; background: var(--nj-green) var(--grain); color: var(--nj-cream); padding-top: env(safe-area-inset-top, 0px); }
.nj-header .nj-in { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding-top: 14px; padding-bottom: 14px; }
.nj-logo { display: inline-flex; align-items: flex-start; gap: 2px; text-decoration: none; color: var(--nj-cream); font-family: var(--nj-display); font-size: 32px; line-height: .86; letter-spacing: .01em; text-transform: uppercase; }
.nj-logo .nj-star { width: 26px; height: 26px; margin: 18px 0 0 2px; transition: transform .5s ease; }
.nj-logo:hover .nj-star { transform: rotate(90deg); }
.nj-nav { display: flex; gap: clamp(14px, 2.4vw, 34px); font-family: var(--nj-sans); font-size: 15px; font-weight: 500; }
.nj-nav a { position: relative; color: var(--nj-cream); text-decoration: none; padding: 6px 0; opacity: .9; }
.nj-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--nj-red); transform: scaleX(0); transition: transform .2s ease; }
.nj-nav a:hover { opacity: 1; }
.nj-nav a:hover::after, .nj-nav a[aria-current]::after { transform: scaleX(1); }
.nj-nav a[aria-current] { opacity: 1; }
.nj-search { position: relative; margin-left: auto; width: min(260px, 32vw); }
.nj-search #q { width: 100%; height: 40px; border: 0; border-radius: 999px; background: var(--nj-cream); color: var(--ink); font-family: var(--nj-sans); font-size: 14px; font-weight: 400; padding: 0 40px 0 18px; text-align: left; line-height: 40px; }
.nj-search #q::placeholder { color: #8C8576; }
.nj-search #q:focus { outline: 3px solid var(--nj-red); outline-offset: 2px; border: 0; }
.nj-mag { position: absolute; right: 14px; top: 11px; width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.nj-search #suggest { left: auto; right: 0; width: min(440px, 92vw); top: calc(100% + 10px); font-family: var(--nj-sans); }
.nj-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--nj-red); transition: transform .2s; }
.nj-avatar:hover { transform: scale(1.06); }
.nj-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hero */
.nj-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); align-items: end; gap: 0; background: var(--nj-green) var(--grain); color: var(--nj-cream); padding-top: clamp(28px, 4vw, 44px); padding-bottom: 0; overflow: hidden; }
.nj-hero-text { align-self: center; padding-bottom: clamp(28px, 4vw, 48px); }
.nj-hero h1 { font-family: var(--nj-display); font-weight: 400; font-size: clamp(64px, 10.5vw, 132px); line-height: .84; letter-spacing: .005em; text-transform: uppercase; margin: 0 0 22px; color: var(--nj-cream); }
.nj-hero h1 .nj-star { width: .32em; height: .32em; vertical-align: top; margin: -.1em 0 0 .06em; animation: nj-spin 12s linear infinite; }
@keyframes nj-spin { to { transform: rotate(360deg); } }
.nj-hand { font-family: var(--nj-hand); font-size: clamp(20px, 2vw, 25px); line-height: 1.3; letter-spacing: .02em; max-width: 21ch; margin: 0 0 28px; }
.nj-btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; background: var(--nj-red); color: var(--nj-cream); font-family: var(--nj-sans); font-weight: 600; font-size: 16px; padding: 13px 26px; transition: transform .15s, background-color .15s; }
.nj-btn span { transition: transform .2s; }
.nj-btn:hover { transform: translateY(-2px); background: #F07652; }
.nj-btn:hover span { transform: translateX(4px); }
.nj-hero-art { width: 100%; height: auto; display: block; margin-right: calc(-1 * clamp(18px, 4vw, 48px)); align-self: end; }

/* Category strip */
.nj-cats { display: grid; grid-template-columns: repeat(7, 1fr); margin: 0; padding: 18px 0 20px; border-bottom: 1px solid #E8DEC9; }
.nj-cats a { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--nj-sans); font-size: 14px; font-weight: 500; padding: 4px 6px; border-left: 1px solid #E8DEC9; }
.nj-cats a:first-child { border-left: 0; }
.nj-cats img { height: 58px; width: auto; max-width: 92px; object-fit: contain; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.nj-cats a:hover img { transform: translateY(-5px) rotate(-5deg); }
.nj-cats a:hover span { color: var(--nj-red); }

/* Section heads */
.nj-sec { padding: 34px 0 6px; }
.nj-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 20px; flex-wrap: wrap; margin: 0 0 16px; border: 0; padding: 0; }
.nj-head h2 { font-family: var(--nj-display); font-weight: 400; font-size: clamp(32px, 3.6vw, 42px); line-height: 1; letter-spacing: .01em; text-transform: uppercase; margin: 0; color: var(--ink); }
.nj-head a { font-family: var(--nj-sans); font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.nj-head a span { display: inline-block; margin-left: 4px; transition: transform .2s; }
.nj-head a:hover span { transform: translateX(4px); }

/* Start-here cards */
.nj-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nj-card { display: flex; flex-direction: column; background: var(--nj-card); border-radius: 4px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(60, 40, 10, .08); transition: transform .2s ease, box-shadow .2s ease; }
.nj-card img { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform .4s ease; }
.nj-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(60, 40, 10, .45); }
.nj-card:hover img { transform: scale(1.04); }
.nj-card-b { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 18px; flex: 1; font-family: var(--nj-sans); }
.nj-lab { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nj-lab.red { color: #D9452B; } .nj-lab.blue { color: var(--nj-blue); } .nj-lab.green { color: var(--nj-leaf); }
.nj-card b { font-size: 21px; line-height: 1.2; font-weight: 600; }
.nj-desc { font-size: 15px; line-height: 1.45; color: #5C5649; }
.nj-meta { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #5C5649; }
.nj-meta span { font-size: 18px; color: var(--ink); transition: transform .2s; }
.nj-card:hover .nj-meta span { transform: translateX(4px); color: var(--nj-red); }

/* From the journal */
#home-journal:empty { display: none; }
.nj-journal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.nj-j { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); font-family: var(--nj-sans); }
.nj-j-img { display: block; aspect-ratio: 1.15; overflow: hidden; border-radius: 2px; background: #E8DEC9; margin-bottom: 10px; }
.nj-j-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.nj-j:hover .nj-j-img img { transform: scale(1.06); }
.nj-j b { font-family: var(--nj-display); font-weight: 400; font-size: 25px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.nj-y { display: block; font-size: 13px; color: #5C5649; margin: 4px 0 4px; }
.nj-r { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #5C5649; }
.nj-stars { color: var(--nj-star); letter-spacing: 1px; font-size: 14px; }
.nj-stars .off { color: #D9CFBB; }
.nj-stars .half { background: linear-gradient(90deg, var(--nj-star) 50%, #D9CFBB 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Recently analysed: the pink band */
.nj-recent { position: relative; background: var(--nj-pink); margin-top: 34px; padding-top: 20px; padding-bottom: 22px; overflow: hidden; }
.nj-recent:empty { display: none; }
.nj-recent-in { position: relative; z-index: 1; padding: 0 clamp(0px, 2vw, 18px); }
.nj-leaf { position: absolute; bottom: 0; height: 100%; max-height: 130px; width: auto; z-index: 0; pointer-events: none; }
.nj-leaf.l { left: 0; } .nj-leaf.r { right: 0; }
.nj-rlist { display: grid; grid-template-columns: repeat(4, 1fr); }
.nj-ri { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); font-family: var(--nj-sans); padding: 4px 18px; border-left: 1px solid rgba(24, 24, 29, .18); }
.nj-ri:first-child { border-left: 0; padding-left: 0; }
.nj-ri-img { flex: none; width: 84px; height: 72px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.nj-ri-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.nj-ri:hover .nj-ri-img img { transform: scale(1.08); }
.nj-ri b { display: block; font-family: var(--nj-display); font-weight: 400; font-size: 22px; line-height: 1; text-transform: uppercase; }
.nj-ri .nj-y, .nj-ri .nj-r { color: #3F2F2F; }
.nj-ri .nj-stars .off { color: rgba(24, 24, 29, .2); }

/* Footer */
.nj-footer { background: var(--nj-green-2) var(--grain); color: var(--nj-cream); margin-top: 0; padding: 30px 0 calc(22px + env(safe-area-inset-bottom, 0px)); font-family: var(--nj-sans); }
.nj-foot { display: grid; grid-template-columns: auto 1.5fr 1fr 1fr auto; gap: 24px 48px; align-items: start; }
.nj-foot-about { margin: 6px 0 0; font-size: 14px; line-height: 1.55; max-width: 34ch; opacity: .9; }
.nj-footer h2 { font-family: var(--nj-sans); font-size: 14px; font-weight: 600; margin: 4px 0 8px; }
.nj-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 14px; }
.nj-footer a { color: var(--nj-cream); text-decoration: none; opacity: .88; }
.nj-footer a:hover { opacity: 1; text-decoration: underline; }
.nj-moon { width: 96px; height: auto; }
.nj-credits { margin-top: 22px !important; padding-top: 16px; border-top: 1px solid rgba(249, 239, 218, .14); font-size: 12px; line-height: 1.5; opacity: .7; }
.nj-credits a { text-decoration: underline; }

/* Pages other than home keep the new header and footer */
body.viewing .nj-recent, body.viewing #home-journal { display: none; }
footer.site { display: none; }
.g-top, .j-tabs { top: calc(70px + env(safe-area-inset-top, 0px)); }
.t-rail { top: calc(90px + env(safe-area-inset-top, 0px)); }
section.g, .moments, details.seqs { scroll-margin-top: 110px; }

/* Responsive */
@media (max-width: 960px) {
  .nj-header .nj-in { flex-wrap: wrap; row-gap: 10px; }
  .nj-nav { order: 3; width: 100%; justify-content: flex-start; }
  .nj-search { width: auto; flex: 1; }
  .nj-hero { grid-template-columns: 1fr; }
  .nj-hero-art { margin: 0 auto; max-width: 620px; }
  .nj-cats { grid-template-columns: repeat(4, 1fr); row-gap: 18px; }
  .nj-cats a:nth-child(5) { border-left: 0; }
  .nj-cards { grid-template-columns: 1fr; }
  .nj-card { flex-direction: row; } .nj-card img { width: 40%; height: auto; min-height: 160px; }
  .nj-journal { grid-template-columns: repeat(3, 1fr); }
  .nj-rlist { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .nj-ri:nth-child(3) { border-left: 0; padding-left: 0; }
  .nj-foot { grid-template-columns: 1fr 1fr; }
  .nj-moon { display: none; }
  .g-top, .j-tabs { top: calc(110px + env(safe-area-inset-top, 0px)); }
  .t-rail { top: calc(108px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 560px) {
  .nj-logo { font-size: 26px; } .nj-logo .nj-star { width: 20px; height: 20px; margin-top: 14px; }
  .nj-avatar { width: 36px; height: 36px; }
  .nj-nav { gap: 18px; font-size: 14px; }
  .nj-cats { grid-template-columns: repeat(4, 1fr); }
  .nj-cats img { height: 44px; }
  .nj-card { flex-direction: column; } .nj-card img { width: 100%; height: 150px; }
  .nj-journal { grid-template-columns: repeat(2, 1fr); }
  .nj-rlist { grid-template-columns: 1fr; }
  .nj-ri { border-left: 0; padding-left: 0; }
  .nj-foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .nj-hero h1 .nj-star { animation: none; }
  .nj-card, .nj-card img, .nj-cats img, .nj-j-img img, .nj-ri-img img, .nj-btn, .nj-btn span, .nj-logo .nj-star { transition: none !important; }
}
/* Hero: art fills the right side to the top and right edges, text sits beside it */
.nj-hero { position: relative; display: block; min-height: clamp(400px, 40vw, 480px); padding-top: clamp(30px, 4vw, 48px); }
.nj-hero-text { position: relative; z-index: 1; max-width: 46%; padding-bottom: 40px; }
.nj-hero h1 { font-size: clamp(72px, 10.6vw, 136px); }
.nj-hero h1 .nj-star { width: .3em; height: .3em; margin: .02em 0 0 .32em; }
.nj-hand { font-size: clamp(21px, 2.3vw, 27px); max-width: 24ch; }
.nj-hero-art { position: absolute; right: 0; bottom: 0; width: 58%; max-width: 720px; margin: 0; }
@media (max-width: 960px) {
  .nj-hero { min-height: 0; padding-bottom: 0; }
  .nj-hero-text { max-width: none; padding-bottom: 20px; }
  .nj-hero-art { position: static; width: 100%; max-width: 640px; margin: 0 0 0 auto; }
}
/* Spacing and fonts that older rules were overriding */
#home-journal { padding: 30px 0 6px; }
#recent.nj-recent { padding-top: 18px; padding-bottom: 20px; margin-top: 30px; }
#recent .nj-head h2 { font-family: var(--nj-display); font-weight: 400; font-size: clamp(32px, 3.6vw, 42px); }
.nj-recent-in { padding: 0 clamp(0px, 6vw, 70px); }
.nj-sec { padding-top: 30px; }
@media (min-width: 961px) {
  .nj-hero { min-height: min(calc(60vw * .666), 500px); padding-top: clamp(24px, 3vw, 40px); }
  .nj-hero-art { width: 60%; max-width: 750px; }
  .nj-hero h1 { font-size: clamp(72px, 9.6vw, 128px); margin-bottom: 16px; }
  .nj-hand { margin-bottom: 22px; }
  .nj-hero-text { padding-bottom: 30px; }
}
/* Feather the illustration's top and left edges into the green */
.nj-hero-art { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%), linear-gradient(to right, transparent 0, #000 6%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0, #000 7%), linear-gradient(to right, transparent 0, #000 6%); mask-composite: intersect; }
body .nj-search #q, body.viewing .nj-search #q { font-size: 14px; }

/* =====================================================================
   PLATFORM SKIN: the "not just review" visual language on every page.
   Dark green blocks, cream cards, red stars, the pink band;
   Bebas Neue for headings and numbers, DM Sans for text, Patrick Hand for personal touches.
   ===================================================================== */
:root {
  --bg: #F9EFDA; --paper: #FDF4E3; --panel: #FDF4E3; --ink: #1B1A17; --mute: #5C5649; --faint: #A39A86; --line: #E8DEC9;
  --accent: #D9452B; --accent2: #E8522E; --emerald: #2F6B45; --forest: #2F6B45; --navy: #1F4E9A; --teal: #1F4E9A; --pink: #F7A2A3; --cobalt: #1F4E9A; --sky: #1F4E9A;
  --mast: var(--nj-display); --display: var(--nj-display); --serif: var(--nj-sans);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #F9EFDA; --paper: #FDF4E3; --ink: #1B1A17; } }
:root[data-theme="dark"] { --bg: #F9EFDA; --paper: #FDF4E3; --ink: #1B1A17; }
body { font-family: var(--nj-sans); font-size: 17px; line-height: 1.6; background: var(--nj-cream) var(--grain); }
.nj-header .nj-in { justify-content: space-between; }

/* --- Home hero with the search (earlier structure, new look) --- */
.nj-hero .hero-kicker { color: #F2B33D; font-family: var(--nj-sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.nj-hero .lede { color: var(--nj-cream); margin: 0 0 24px; }
.nj-hero-search { position: relative; max-width: 520px; }
.nj-hero-search #q, body .nj-hero-search #q { width: 100%; height: 56px; border: 0; border-radius: 999px; background: var(--nj-cream); color: var(--ink); font-family: var(--nj-sans); font-size: 18px; padding: 0 52px 0 24px; line-height: 56px; text-align: left; }
.nj-hero-search #q::placeholder { color: #8C8576; }
.nj-hero-search #q:focus { outline: 3px solid var(--nj-red); outline-offset: 3px; }
.nj-hero-search .nj-mag { right: 20px; top: 17px; width: 22px; height: 22px; }
.nj-hero-search #suggest { left: 0; right: 0; width: auto; top: calc(100% + 10px); font-family: var(--nj-sans); }
.nj-hero .hint { color: var(--nj-cream); opacity: .7; font-size: 14px; margin: 12px 0 0; text-align: left; }
@media (min-width: 961px) { .nj-hero { min-height: min(calc(60vw * .72), 540px); } }
/* On title pages the hero shrinks to just the search */
body.viewing .nj-hero { min-height: 0; padding-top: 16px; padding-bottom: 16px; }
body.viewing .nj-hero .hero-kicker, body.viewing .nj-hero h1, body.viewing .nj-hero .lede, body.viewing .nj-hero .hint, body.viewing .nj-hero-art { display: none; }
body.viewing .nj-hero-text { max-width: none; padding: 0; }
body.viewing .nj-hero-search #q { height: 46px; font-size: 16px; }
body.viewing .nj-hero-search .nj-mag { top: 12px; }
body.playing .nj-hero, body.journaling .nj-hero { display: none; }

/* --- Home: three ways in, journal strip, recently analysed --- */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 0; }
.three .nj-card { min-height: 0; }
@media (max-width: 960px) { .three { grid-template-columns: 1fr; } }
.nj-journal { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .nj-journal { grid-template-columns: repeat(2, 1fr); } }
.nj-q { font-size: 14px; font-style: italic; color: var(--mute); line-height: 1.45; margin-top: 6px; }
.nj-note { font-family: var(--nj-sans); font-size: 14px; color: #3F2F2F; }
.nj-rlist { row-gap: 18px; }

/* --- Footer: about, sections, colophon --- */
.nj-foot { grid-template-columns: 1.4fr 1fr 1fr auto; }
.foot-about p { margin: 12px 0 0; font-size: 14px; line-height: 1.55; max-width: 38ch; opacity: .9; }
.nj-footer ul span { display: block; font-size: 13px; opacity: .65; }
.nj-footer .nj-foot p { font-size: 14px; line-height: 1.55; opacity: .85; }
@media (max-width: 960px) { .nj-foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .nj-foot { grid-template-columns: 1fr; } }

/* --- Type across the platform --- */
.g-title, .g-title.big, .g-h, h4, .moments h3, .sec-head h2, #recent h2, .lb h3, details.seqs summary, .notice h3, .loading b, .j-tl-y, #journal h2.g-title {
  font-family: var(--nj-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
.g-title { font-size: clamp(40px, 5.4vw, 64px); }
.g-title.big { font-size: clamp(52px, 8vw, 104px); }
.g-h, h4, .moments h3, .lb h3 { font-size: clamp(28px, 3vw, 36px); }
details.seqs summary { font-size: 34px; }
.ghead h3 { font-family: var(--nj-sans); font-weight: 600; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -.01em; }
.num { font-family: var(--nj-display); font-weight: 400; font-size: 92px; line-height: .8; color: var(--accent); }
.num.dna { font-size: 64px; }
.num::after { background: var(--nj-star); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.kicker:not(.note) { font-family: var(--nj-sans); font-style: normal; font-weight: 600; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.kicker.note { font-family: var(--nj-sans); font-style: normal; color: var(--mute); }
.stat .v, .overall .v, .alloc .v, .j-hero b, .j-yn b, .j-nums b:not(.w), .j-bigstars b, .g-big span, .g-rank-n, .g-stats dd, .star-num, .seq .n, .j-chip b, .lb .rk, .lb .sc, .g-points, .setups .s, .j-dn, .j-cols b, .g-facts b, .g-meta b, .j-rr b, .j-rate b {
  font-family: var(--nj-display); font-weight: 400; letter-spacing: .01em; }
.stat .v { font-size: 64px; } .stat .v small { font-family: var(--nj-display); font-size: 26px; }
.stat.word .v { font-family: var(--nj-sans); font-weight: 600; font-size: 21px; line-height: 1.2; }
.overall .v { font-size: clamp(130px, 17vw, 210px); line-height: .8; }
.j-nums b.w { font-family: var(--nj-sans); font-weight: 600; font-size: 20px; }
.insight, .j-rtext, .g-why p, .basis { font-family: var(--nj-sans); }
/* Patrick Hand for personal and narrative touches */
.thesis, .cover .cover-sub, .j-review, .g-lede, .j-verdict.hand { font-family: var(--nj-hand); font-style: normal; letter-spacing: .01em; }
.thesis { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; max-width: 34ch; }
.j-review { font-size: clamp(25px, 2.8vw, 33px); line-height: 1.35; border-left-color: var(--nj-red); }
.g-lede { font-size: clamp(24px, 2.6vw, 32px); font-style: normal; }
.j-rt, .j-rcard b, .hj-t, .j-title, .g-film, .j-sub { font-family: var(--nj-sans); }
.j-rt { font-family: var(--nj-display); font-size: 30px; letter-spacing: .01em; }
.j-rcard b { font-family: var(--nj-display); font-weight: 400; font-size: 26px; text-transform: uppercase; }
.g-film { font-family: var(--nj-display); font-weight: 400; font-size: clamp(40px, 5vw, 60px); text-transform: uppercase; }
/* Chart lettering */
.ax { font-family: var(--nj-sans); font-style: normal; font-size: 13px; fill: var(--mute); }
.axn { font-family: var(--nj-sans); font-weight: 600; font-size: 14px; }
.lab { font-family: var(--nj-sans); font-weight: 700; font-size: 16px; }
.labs { font-family: var(--nj-sans); font-size: 14px; }

/* --- Surfaces: cream cards, pills --- */
.panel, .g-sheet, .loading, .notice, .lb, .j-year, .j-take, .g-answer-card, .j-rcard, .g-clue, .g-story, .g-note, .j-verdict, .g-tell, .j-chip, .j-picked, .hj {
  background: var(--paper); border-radius: 4px; box-shadow: 0 1px 2px rgba(60, 40, 10, .08); }
.g-clue, .g-tell, .j-verdict { border-left: 4px solid var(--nj-red); }
.j-analysis { background: transparent; border: 1.5px dashed var(--faint); border-radius: 4px; }
.btn { background: var(--nj-red); color: var(--nj-cream); border-radius: 999px; font-family: var(--nj-sans); font-weight: 600; font-size: 16px; padding: 12px 24px; box-shadow: none; }
.btn:hover:not(:disabled) { background: #F07652; background-image: none; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.btn.ghost:hover:not(:disabled) { background: var(--paper); }
.btn.big { font-size: 18px; padding: 15px 32px; }
.tag { font-family: var(--nj-sans); font-size: 12.5px; border: 1px solid var(--faint); color: var(--mute); }
.tag.hi { background: var(--nj-green); border-color: var(--nj-green); color: var(--nj-cream); }
.g-input, .j-search input, .j-sel select, .j-dialog .g-input { font-family: var(--nj-sans); border-radius: 999px; border: 1.5px solid #D9CFBB; background: var(--paper); }
.j-dialog textarea.g-input { border-radius: 12px; }
.g-input:focus { outline: 3px solid var(--nj-red); outline-offset: 1px; }
.linkish { font-family: var(--nj-sans); }

/* --- Covers on every page: dark green, cream type, red star --- */
.cover { background: var(--nj-green) var(--grain); color: var(--nj-cream); --on: var(--nj-cream); padding-bottom: 44px; }
.cover .issue-line, .cover .cover-sub { color: var(--nj-cream); }
.cover .issue-line { font-family: var(--nj-sans); font-weight: 600; font-size: 13px; letter-spacing: .08em; opacity: .85; }
.cover .mast { font-family: var(--nj-display); font-weight: 400; text-transform: uppercase; color: var(--nj-cream); line-height: .86; letter-spacing: .005em; }
.cover .deco path { fill: var(--nj-star); }
.cover .checks { display: none; }
.cover-art img { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); }
.cover-art figcaption { color: var(--nj-cream); opacity: .75; }
.cover-photo { mix-blend-mode: luminosity; background-color: var(--nj-green); opacity: .9; filter: none; }
.j-hero b { color: var(--nj-cream); font-size: clamp(56px, 7vw, 84px); }
.j-hero span { color: var(--nj-cream); opacity: .8; }
.j-add { background: var(--nj-red); color: var(--nj-cream); }
.film { padding-top: 30px; }
.poster { border-radius: 4px; box-shadow: 0 14px 30px -18px rgba(60, 40, 10, .6); }
.basis { border-top-color: var(--line); }

/* --- Graph pages --- */
.t-rail a { font-family: var(--nj-sans); }
.t-rail a b { font-family: var(--nj-display); font-size: 17px; }
.t-rail a[aria-current] { background: var(--paper); }
.moment img { border-radius: 4px; }
.bar .t i { background: var(--accent); }
.bar .n { font-family: var(--nj-display); font-weight: 400; font-size: 24px; }
.versus div { border-top-color: var(--ink); }
.g-recap .yes .mk { color: var(--nj-leaf); } .g-recap .no .mk { color: var(--nj-red); }

/* --- Play --- */
.g-progress .done { background: var(--nj-green); }
.g-progress .now { background: var(--nj-red); }
.g-chip { font-family: var(--nj-sans); }
.g-chip.easy { background: #CFE3D2; } .g-chip.medium { background: #F6D58A; } .g-chip.hard { background: #F7B5A6; } .g-chip.veryhard { background: var(--nj-green); color: var(--nj-cream); }
.g-story-k, .g-clue-k { font-family: var(--nj-sans); color: var(--nj-red); }
.g-story { font-family: var(--nj-sans); }
.g-verdict.yes .g-title { color: var(--nj-leaf); }
.g-verdict.no .g-title { color: var(--nj-red); }
.g-opt { border-radius: 4px; border: 1.5px solid #D9CFBB; background: var(--paper); font-family: var(--nj-sans); }
.g-opt:hover { border-color: var(--nj-red); background: var(--paper); }
.lb .me { background: rgba(247, 162, 163, .45); }
.lb .podium .rk { color: var(--nj-red); }
.g-big span { color: var(--nj-red); }

/* --- My Movies --- */
.j-tabs a { font-family: var(--nj-sans); }
.j-tabs a[aria-current] { border-color: var(--nj-red); }
.j-card .j-title { font-family: var(--nj-display); font-weight: 400; font-size: 22px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.j-poster { border-radius: 4px; }
.j-rw { background: rgba(247, 162, 163, .6); }
.j-chip { border-radius: 999px; }
.j-chip b { color: var(--nj-red); }
.j-db i { background: var(--nj-red); }
.j-cols span { background: var(--accent); }
.j-dialog { background: var(--nj-cream); border-radius: 6px; font-family: var(--nj-sans); }
.j-toast { background: var(--nj-green); color: var(--nj-cream); font-family: var(--nj-sans); }
.j-inks span:first-of-type { border-radius: 50%; }
/* Sticky bars sit below the header, whatever its height (measured by app.js into --header-h) */
:root { --header-h: 84px; }
.g-top, .j-tabs { top: var(--header-h); }
.t-rail { top: calc(var(--header-h) + 20px); }
section.g, .moments, details.seqs { scroll-margin-top: calc(var(--header-h) + 30px); }
@media (max-width: 1040px) { .t-rail { top: var(--header-h); } section.g, .moments, details.seqs { scroll-margin-top: calc(var(--header-h) + 60px); } }
@media (max-width: 960px) { .g-top, .j-tabs { top: var(--header-h); } }
/* Home lede and footer text on green */
.nj-hero .lede { text-align: left; max-width: 26ch; }
.nj-footer .foot-about p { color: var(--nj-cream); opacity: .85; }
@media (max-width: 960px) {
  .nj-header .nj-in { flex-wrap: nowrap; }
  .nj-nav { order: 0; width: auto; }
}
@media (max-width: 420px) {
  .nj-logo { font-size: 22px; } .nj-logo .nj-star { width: 16px; height: 16px; margin-top: 10px; }
  .nj-nav { gap: 14px; font-size: 13.5px; }
}

/* =====================================================================
   BRAND SYSTEM (from the not just review brand guidelines)
   Palette: Navy #0D2A4A (text, illustration), Forest #0E4B3A (surfaces), Terracotta #E64B3D (actions,
   highlights), Mustard #F0B823, Cream #F7EBD6 (canvas), Cobalt #2563EB, Dusty Pink #F4A7B8, Ink #111111.
   Type: condensed display for the logo and big moments; Inter for everything else.
   ===================================================================== */
:root {
  --b-navy: #0D2A4A; --b-forest: #0E4B3A; --b-terra: #E64B3D; --b-mustard: #F0B823; --b-cream: #F7EBD6; --b-cobalt: #2563EB; --b-pink: #F4A7B8; --b-ink: #111111;
  --nj-sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; --nj-hand: var(--nj-sans);
  --nj-cream: #F7EBD6; --nj-red: #E64B3D; --nj-star: #E64B3D; --nj-green: #0E4B3A; --nj-green-2: #0E4B3A; --nj-blue: #2563EB; --nj-leaf: #0E4B3A; --nj-pink: #F4A7B8;
  --bg: #F7EBD6; --paper: #FCF4E6; --panel: #FCF4E6; --ink: #0D2A4A; --mute: #4D5B6B; --faint: #9AA3AC; --line: #E7D9BF;
  --accent: #E64B3D; --accent2: #E64B3D; --emerald: #0E4B3A; --forest: #0E4B3A; --navy: #0D2A4A; --teal: #2563EB; --cobalt: #2563EB; --sky: #2563EB; --pink: #F4A7B8;
  --stars-pink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='120'%3E%3Crect width='140' height='120' fill='%23F4A7B8'/%3E%3Cg fill='%230D2A4A'%3E%3Cpath d='M28 8 32 24 48 28 32 32 28 48 24 32 8 28 24 24Z'/%3E%3Cpath d='M104 54 106 64 116 66 106 68 104 78 102 68 92 66 102 64Z'/%3E%3Cpath d='M62 84 68 98 84 94 72 104 78 118 64 110 52 120 54 104 40 98 56 96Z'/%3E%3Cpath d='M118 6 120 13 127 15 120 17 118 24 116 17 109 15 116 13Z'/%3E%3C/g%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #F7EBD6; --paper: #FCF4E6; --ink: #0D2A4A; } }
:root[data-theme="dark"] { --bg: #F7EBD6; --paper: #FCF4E6; --ink: #0D2A4A; }
body { background: var(--b-cream) var(--grain); color: var(--b-navy); font-family: var(--nj-sans); font-size: 16.5px; line-height: 1.6; }

/* Metadata labels: Inter Medium, uppercase, spaced (the guideline slide headers) */
.nj-label { display: flex; justify-content: space-between; gap: 16px; margin: 44px 0 14px; font-family: var(--nj-sans); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--b-navy); }
.nj-label b { font-weight: 600; margin-right: 14px; text-decoration: underline; text-underline-offset: 4px; }
.nj-label span:last-child { opacity: .7; }
.nj-recent .nj-label { margin-top: 4px; }

/* Header on the cream canvas, with the single-line lockup */
.nj-header { background: color-mix(in srgb, var(--b-cream) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--b-navy); border-bottom: 1px solid rgba(13, 42, 74, .12); }
.nj-header .nj-in { padding-top: 16px; padding-bottom: 16px; }
.nj-logo { color: var(--b-navy); }
.nj-lockup { align-items: center; font-size: 30px; line-height: 1; }
.nj-lockup .nj-star { width: 20px; height: 20px; margin: -6px 10px 0 2px; }
.nj-lockup small { font-family: var(--nj-sans); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--b-navy); white-space: nowrap; }
.nj-nav a { color: var(--b-navy); font-family: var(--nj-sans); font-weight: 500; opacity: .85; }
.nj-nav a::after { background: var(--b-terra); }

/* Home hero: cream canvas, navy display type, the brand illustration */
.nj-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; background: transparent; color: var(--b-navy); min-height: 0; padding-top: clamp(30px, 5vw, 64px); padding-bottom: clamp(20px, 3vw, 40px); }
.nj-hero-text { max-width: none; padding: 0; }
.nj-hero .hero-kicker { color: var(--b-navy); font-family: var(--nj-sans); font-weight: 500; font-size: 12px; letter-spacing: .14em; }
.nj-hero h1 { color: var(--b-navy); font-size: clamp(76px, 10vw, 140px); line-height: .84; margin: 0 0 22px; }
.nj-hero h1 .nj-star { fill: var(--b-terra); animation: none; }
.nj-hero .lede { font-family: var(--nj-sans); color: var(--b-navy); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; max-width: 34ch; letter-spacing: 0; }
.nj-hero-search #q, body .nj-hero-search #q { background: var(--paper); border: 1.5px solid var(--b-navy); font-family: var(--nj-sans); font-size: 17px; }
.nj-hero-search #q:focus { outline: 3px solid var(--b-terra); }
.nj-hero-search .nj-mag { stroke: var(--b-navy); }
.nj-hero .hint { color: var(--mute); opacity: 1; }
.nj-hero-art, .nj-hero-art[src] { position: static; width: 100%; max-width: 520px; height: auto; justify-self: end; margin: 0; -webkit-mask-image: none; mask-image: none; border-radius: 4px; }
@media (min-width: 961px) { .nj-hero { min-height: 0; } }
@media (max-width: 960px) { .nj-hero { grid-template-columns: 1fr; } .nj-hero-art { justify-self: center; max-width: 460px; } }
body.viewing .nj-hero { background: transparent; border-bottom: 1px solid var(--line); }

/* Headlines: Inter Semibold; subheadings: Inter Medium */
.nj-head h2, #recent .nj-head h2, .g-title, .g-title.big, .g-h, h4, .moments h3, .lb h3, details.seqs summary, .notice h3, .loading b, .ghead h3, .sec-head h2 {
  font-family: var(--nj-sans); font-weight: 600; text-transform: none; letter-spacing: -.015em; line-height: 1.1; color: var(--b-navy); }
.nj-head h2, #recent .nj-head h2 { font-size: clamp(26px, 2.8vw, 34px); }
.g-title { font-size: clamp(34px, 4.4vw, 52px); }
.g-title.big { font-size: clamp(44px, 6.4vw, 80px); letter-spacing: -.025em; }
.g-h, h4, .moments h3, .lb h3 { font-size: clamp(22px, 2.4vw, 28px); }
details.seqs summary { font-size: 26px; }
.ghead h3 { font-size: clamp(24px, 2.8vw, 34px); }
.kicker:not(.note) { font-family: var(--nj-sans); font-weight: 500; font-size: 12px; letter-spacing: .14em; color: var(--b-terra); }
.thesis, .cover .cover-sub, .j-review, .g-lede { font-family: var(--nj-sans); }
.thesis { font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; letter-spacing: -.01em; }
.j-review { font-weight: 400; font-style: italic; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.5; border-left-color: var(--b-terra); }
.g-lede { font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); }
/* Big moments stay in the display face, in navy */
.num { color: var(--b-terra); }
.stat .v, .overall .v, .alloc .v, .j-yn b, .j-nums b:not(.w), .j-bigstars b, .g-big span, .g-rank-n, .g-stats dd, .seq .n { color: inherit; }
.overall .v, .g-big span, .g-rank-n, .seq .n, .j-yn b { color: var(--accent); }
/* Titles on cards and lists: Inter Semibold */
.nj-j b, .nj-ri b, .j-card .j-title, .j-rt, .j-rcard b, .g-film, .nj-card b { font-family: var(--nj-sans); font-weight: 600; text-transform: none; letter-spacing: -.01em; }
.nj-j b { font-size: 17px; line-height: 1.25; } .nj-ri b { font-size: 16px; } .j-card .j-title { font-size: 16px; line-height: 1.3; }
.j-rt { font-size: 24px; } .j-rcard b { font-size: 20px; } .g-film { font-size: clamp(30px, 4vw, 46px); }
.nj-card b { font-size: 20px; }
/* Chart lettering in Inter */
.ax, .axn, .lab, .labs { font-family: var(--nj-sans); }
.ax { fill: var(--mute); }

/* Surfaces and actions */
.panel, .g-sheet, .loading, .notice, .lb, .j-year, .j-take, .g-answer-card, .j-rcard, .g-clue, .g-story, .g-note, .j-verdict, .g-tell, .j-chip, .j-picked, .hj, .nj-card { background: var(--paper); box-shadow: 0 1px 2px rgba(13, 42, 74, .08); }
.g-clue, .g-tell, .j-verdict { border-left-color: var(--b-terra); }
.btn { background: var(--b-terra); color: #FFF8EE; font-family: var(--nj-sans); }
.btn:hover:not(:disabled) { background: #EF6152; }
.btn.ghost { color: var(--b-navy); border-color: var(--b-navy); background: transparent; }
.tag.hi { background: var(--b-navy); border-color: var(--b-navy); color: var(--b-cream); }
.nj-lab.red { color: var(--b-terra); } .nj-lab.blue { color: var(--b-cobalt); } .nj-lab.green { color: var(--b-forest); }
.nj-lab { font-weight: 500; letter-spacing: .14em; }
.nj-stars { color: var(--b-terra); } .nj-stars .off { color: #D9CBB0; }
.nj-stars .half { background: linear-gradient(90deg, var(--b-terra) 50%, #D9CBB0 50%); -webkit-background-clip: text; background-clip: text; }
.nj-card { border-radius: 6px; }

/* Covers: the cream canvas, navy masthead, terracotta star, a star-pattern band */
.cover { background: color-mix(in srgb, var(--b-pink) 10%, var(--b-cream)) var(--grain); color: var(--b-navy); --on: var(--b-navy); padding-bottom: 0; border-bottom: 1px solid var(--line); }
.cover .issue-line, .cover .cover-sub { color: var(--b-navy); }
.cover .issue-line { font-weight: 500; font-size: 12px; letter-spacing: .14em; opacity: 1; }
.cover .mast { color: var(--b-navy); }
.cover .cover-sub { font-weight: 500; }
.cover .deco path { fill: var(--b-terra); }
.cover .deco + .deco path { fill: var(--b-cobalt); }
.cover .checks, .cover .checks.band-checker, .cover .checks.band-bricks { display: block; height: 34px; margin-top: 40px; border: 0; background: var(--stars-pink) 0 0 / 140px 120px; animation: none; }
.cover-art img { box-shadow: 0 18px 40px -22px rgba(13, 42, 74, .55); }
.cover-art figcaption { color: var(--mute); opacity: 1; }
.cover-photo { mix-blend-mode: multiply; background-color: var(--b-cream); filter: grayscale(1) contrast(1.05); }
.j-hero b { color: var(--b-navy); }
.j-hero span { color: var(--mute); opacity: 1; }
.j-add { background: var(--b-terra); color: #FFF8EE; }

/* Recently analysed: the pink star-pattern band */
.nj-recent { background: var(--stars-pink) 0 0 / 140px 120px; }
.nj-recent-in { background: var(--paper); border-radius: 6px; padding: 18px 24px 22px; margin: 6px clamp(0px, 3vw, 30px); box-shadow: 0 1px 2px rgba(13, 42, 74, .1); }
.nj-ri { border-left-color: var(--line); }
.nj-ri .nj-y, .nj-ri .nj-r, .nj-note { color: var(--mute); }
.nj-leaf { display: none; }

/* Footer: the forest green surface with the primary logo */
.nj-footer { background: var(--b-forest) var(--grain); color: var(--b-cream); }
.nj-primary { flex-wrap: wrap; color: var(--b-cream); font-size: 38px; line-height: .86; max-width: 210px; }
.nj-primary .nj-star { width: 26px; height: 26px; margin: 22px 0 0 4px; }
.nj-primary small { flex-basis: 100%; margin-top: 10px; font-family: var(--nj-sans); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.nj-footer a, .nj-footer .foot-about p { color: var(--b-cream); }

/* Play and My Movies */
.g-progress .done { background: var(--b-navy); } .g-progress .now { background: var(--b-terra); }
.g-chip.easy { background: #CDE3D7; } .g-chip.medium { background: #F7DC94; } .g-chip.hard { background: #F7C2CC; } .g-chip.veryhard { background: var(--b-navy); color: var(--b-cream); }
.g-verdict.yes .g-title { color: var(--b-forest); } .g-verdict.no .g-title { color: var(--b-terra); }
.g-story-k, .g-clue-k { color: var(--b-terra); letter-spacing: .14em; font-weight: 500; }
.g-opt:hover { border-color: var(--b-terra); }
.lb .me { background: rgba(244, 167, 184, .4); } .lb .podium .rk { color: var(--b-terra); }
.j-tabs a[aria-current] { border-color: var(--b-terra); color: var(--b-navy); }
.j-chip b { color: var(--b-terra); } .j-db i { background: var(--b-terra); }
.j-toast { background: var(--b-navy); color: var(--b-cream); }
.j-dialog { background: var(--b-cream); }

@media (max-width: 640px) {
  .nj-lockup small { display: none; }
  .nj-lockup { font-size: 24px; }
  .nj-label span:last-child { display: none; }
}

/* =====================================================================
   BRAND GUIDELINES (final reference, 2026)
   Navy #173A67 · Green #176B50 · Terracotta #E65335 · Mustard #F3B51B · Cream #F8F0DF · Cobalt #2D5BD4 · Pink #E88AA3 · Ink #172027
   The wordmark is supplied artwork. Inter for all UI. Restrained palette: one dominant field,
   one structural colour, one accent at a time. A small magazine, not a streaming catalogue.
   ===================================================================== */
:root {
  --g-navy: #173A67; --g-green: #176B50; --g-terra: #E65335; --g-mustard: #F3B51B; --g-cream: #F8F0DF; --g-cobalt: #2D5BD4; --g-pink: #E88AA3; --g-ink: #172027;
  --g-card: #FFFCF5; --g-border: #DCCFBC; --g-radius: 16px;
  --nj-display: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; --nj-sans: var(--nj-display); --nj-hand: var(--nj-display); --mast: var(--nj-display); --serif: var(--nj-display); --display: var(--nj-display);
  --b-navy: #173A67; --b-forest: #176B50; --b-terra: #E65335; --b-mustard: #F3B51B; --b-cream: #F8F0DF; --b-cobalt: #2D5BD4; --b-pink: #E88AA3; --b-ink: #172027;
  --nj-cream: #F8F0DF; --nj-red: #E65335; --nj-star: #E65335; --nj-green: #176B50; --nj-blue: #2D5BD4; --nj-leaf: #176B50; --nj-pink: #E88AA3;
  --bg: #F8F0DF; --paper: #FFFCF5; --panel: #FFFCF5; --ink: #172027; --mute: #5E6670; --faint: #A7A194; --line: #DCCFBC;
  --accent: #E65335; --accent2: #E65335; --emerald: #176B50; --forest: #176B50; --navy: #173A67; --teal: #2D5BD4; --cobalt: #2D5BD4; --sky: #2D5BD4; --pink: #E88AA3;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #F8F0DF; --paper: #FFFCF5; --ink: #172027; } }
:root[data-theme="dark"] { --bg: #F8F0DF; --paper: #FFFCF5; --ink: #172027; }
body { background: var(--g-cream); color: var(--g-ink); font-family: var(--nj-display); font-size: 16px; line-height: 1.6; }

/* Section labels and kickers: "02 / IDENTITY" */
.nj-label, .nj-hero .hero-kicker, .kicker:not(.note), .nj-lab, .g-story-k, .g-clue-k, .t-rail p, .j-take > .kicker, .j-analysis > .kicker {
  font-family: var(--nj-display); font-weight: 700; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--g-terra); }
.nj-label { display: block; margin: 64px 0 8px; }
.nj-lab.red, .nj-lab.blue, .nj-lab.green { color: var(--g-terra); }

/* Headings: Inter Bold, tight */
.nj-head h2, #recent .nj-head h2, .g-title, .g-title.big, .g-h, h4, .moments h3, .lb h3, details.seqs summary, .notice h3, .loading b, .ghead h3, .j-rt, .nj-card b {
  font-family: var(--nj-display); font-weight: 700; letter-spacing: -.025em; text-transform: none; color: var(--g-ink); }
.nj-head { margin-bottom: 22px; }
.nj-head h2, #recent .nj-head h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; }
.nj-head a { color: var(--g-ink); font-weight: 600; }

/* Header: the wordmark artwork with room to breathe; quiet controls */
.nj-header { background: color-mix(in srgb, var(--g-cream) 94%, transparent); border-bottom: 1px solid var(--g-border); }
.nj-header .nj-in { padding-top: 12px; padding-bottom: 12px; }
.nj-mark { display: block; line-height: 0; }
.nj-mark img { height: 46px; width: auto; display: block; }
.nj-nav a { color: var(--g-ink); font-weight: 500; opacity: .8; }
.nj-nav a::after { background: var(--g-navy); }
.nj-nav a[aria-current] { opacity: 1; font-weight: 600; }

/* Home hero: asymmetric; the illustration has the loudest voice */
.nj-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(36px, 5vw, 72px); padding-bottom: 8px; }
.nj-hero h1 { font-family: var(--nj-display); font-weight: 800; color: var(--g-ink); font-size: clamp(46px, 6vw, 80px); line-height: 1; letter-spacing: -.045em; text-transform: none; margin: 10px 0 18px; }
.nj-hero .lede { color: #3D4650; font-size: 17px; line-height: 1.6; max-width: 40ch; font-weight: 400; }
.nj-hero-search #q, body .nj-hero-search #q { border: 1px solid var(--g-ink); background: var(--g-card); font-size: 16px; height: 52px; line-height: 52px; }
.nj-hero-search .nj-mag { top: 15px; stroke: var(--g-ink); }
.nj-hero-search #q:focus { outline: 3px solid var(--g-terra); }
.nj-hero-art, .nj-hero-art[src] { width: 100%; max-width: none; border-radius: var(--g-radius); justify-self: stretch; box-shadow: none; border: 1px solid var(--g-border); }
@media (max-width: 960px) { .nj-hero { grid-template-columns: 1fr; } .nj-hero-art { order: -1; } }
body.viewing .nj-hero { padding-top: 14px; padding-bottom: 14px; }

/* Cards: warm white, thin border, 16px radius, no shadow */
.panel, .g-sheet, .loading, .notice, .lb, .j-year, .j-take, .g-answer-card, .j-rcard, .g-clue, .g-story, .g-note, .j-verdict, .g-tell, .j-picked, .hj, .nj-card, .j-dialog {
  background: var(--g-card); border: 1px solid var(--g-border); border-radius: var(--g-radius); box-shadow: none; }
.g-clue, .g-tell, .j-verdict { border-left: 1px solid var(--g-border); }
.j-analysis { border-radius: var(--g-radius); border: 1px dashed var(--g-border); }
.panel:hover { box-shadow: none; }

/* Three ways in: one lead card, two quieter ones (no equal-weight grid) */
.three { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 20px; margin-top: 0; }
.three .nj-card { overflow: hidden; }
.three .nj-card:first-child { grid-row: span 2; }
.three .nj-card:first-child img { height: 280px; }
.three .nj-card:first-child b { font-size: 28px; line-height: 1.12; }
.three .nj-card:not(:first-child) { flex-direction: row; }
.three .nj-card:not(:first-child) img { width: 38%; height: auto; min-height: 170px; }
.three .nj-card:not(:first-child) b { font-size: 19px; }
.nj-card { transition: transform .2s ease, border-color .2s ease; }
.nj-card:hover { transform: translateY(-3px); border-color: var(--g-ink); box-shadow: none; }
.nj-card:hover .nj-meta span { color: var(--g-terra); }
@media (max-width: 960px) { .three { grid-template-columns: 1fr; } .three .nj-card:first-child { grid-row: auto; } }
@media (max-width: 560px) { .three .nj-card:not(:first-child) { flex-direction: column; } .three .nj-card:not(:first-child) img { width: 100%; min-height: 150px; } }

/* The journal: one featured entry with its whole review, the rest as a list */
.nj-journal-ed { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 40px; align-items: start; }
.nj-jfeat { grid-row: span 3; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 22px; text-decoration: none; color: var(--g-ink); background: var(--g-card); border: 1px solid var(--g-border); border-radius: var(--g-radius); padding: 16px; }
.nj-jfeat .nj-j-img { aspect-ratio: 3 / 4; border-radius: 10px; margin: 0; }
.nj-jfeat-b { display: flex; flex-direction: column; gap: 6px; padding: 8px 6px 4px 0; }
.nj-jfeat b { font-size: 26px; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.nj-jquote { margin-top: 12px; font-size: 19px; line-height: 1.5; font-style: italic; color: #2E3740; }
.nj-jrow { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; text-decoration: none; color: var(--g-ink); padding: 0 0 18px; border-bottom: 1px solid var(--g-border); }
.nj-jrow:last-child { border-bottom: 0; }
.nj-jrow-img { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #EDE2CC; }
.nj-jrow-img img, .nj-jfeat .nj-j-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.nj-jrow:hover img, .nj-jfeat:hover img { transform: scale(1.04); }
.nj-jrow b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.nj-jrow .nj-r { display: flex; margin: 2px 0; }
.nj-jrow .nj-y { display: inline; }
@media (max-width: 960px) { .nj-journal-ed { grid-template-columns: 1fr; } .nj-jfeat { grid-row: auto; } }
@media (max-width: 560px) { .nj-jfeat { grid-template-columns: 1fr; } }

/* Latest: one dominant navy field, quiet list */
.nj-recent { background: var(--g-navy); color: var(--g-cream); margin-top: 72px; padding-top: 8px; padding-bottom: 36px; }
.nj-recent-in { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; }
.nj-recent .nj-label { color: var(--g-mustard); margin-top: 40px; }
#recent .nj-head h2, .nj-recent .nj-note { color: var(--g-cream); }
.nj-recent .nj-note { opacity: .75; }
.nj-ri { color: var(--g-cream); border-left-color: rgba(248, 240, 223, .2); }
.nj-ri b { color: var(--g-cream); font-weight: 600; }
.nj-ri .nj-y, .nj-ri .nj-r { color: rgba(248, 240, 223, .75); }
.nj-ri .nj-stars { color: var(--g-mustard); } .nj-ri .nj-stars .off { color: rgba(248, 240, 223, .25); }
.nj-ri .nj-stars .half { background: linear-gradient(90deg, var(--g-mustard) 50%, rgba(248, 240, 223, .25) 50%); -webkit-background-clip: text; background-clip: text; }
.nj-ri-img { border-radius: 8px; }

/* Footer: cream, a rule, the primary lockup */
.nj-footer { background: var(--g-cream); color: var(--g-ink); border-top: 1px solid var(--g-border); margin-top: 0; padding-top: 48px; }
.nj-foot { grid-template-columns: 1.3fr 1fr 1fr; }
.nj-mark-primary img { height: auto; width: 190px; }
.nj-footer a, .nj-footer .foot-about p, .nj-footer .nj-foot p { color: var(--g-ink); }
.nj-footer .foot-about p { color: var(--mute); opacity: 1; }
.nj-footer h2 { font-weight: 700; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--g-terra); }
.nj-footer ul span { color: var(--mute); opacity: 1; }
.nj-moon { display: none; }
.nj-credits { border-top-color: var(--g-border); color: var(--mute); opacity: 1; }
.nj-credits a { color: var(--g-ink); }

/* Covers: cream, Inter Bold title in ink, one spark as punctuation */
.cover { background: var(--g-cream); color: var(--g-ink); border-bottom: 1px solid var(--g-border); padding-bottom: 36px; }
.cover .mast { font-family: var(--nj-display); font-weight: 800; color: var(--g-ink); text-transform: none; letter-spacing: -.045em; line-height: .95; }
.cover .issue-line { color: var(--g-terra); font-weight: 700; font-size: 11.5px; letter-spacing: .18em; }
.cover .cover-sub { color: #3D4650; font-weight: 500; }
.cover .deco + .deco { display: none; }
.cover .checks, .cover .checks.band-checker, .cover .checks.band-bricks { display: none; }
.cover-art img { border-radius: var(--g-radius); box-shadow: none; border: 1px solid var(--g-border); }
.j-hero b { font-family: var(--nj-display); font-weight: 800; letter-spacing: -.04em; color: var(--g-ink); }
.j-add { background: var(--g-terra); }

/* Big numbers in Inter; the spark stays the only decoration */
.num, .stat .v, .overall .v, .alloc .v, .j-yn b, .j-nums b:not(.w), .j-bigstars b, .g-big span, .g-rank-n, .g-stats dd, .seq .n, .star-num, .lb .rk, .lb .sc, .g-points, .setups .s, .bar .n, .j-dn, .j-cols b, .g-meta b, .t-rail a b {
  font-family: var(--nj-display); font-weight: 800; letter-spacing: -.03em; }
.num { color: var(--g-ink); font-size: 72px; line-height: .85; }
.num.dna { font-size: 48px; }
.stat .v { font-size: 52px; } .stat .v small { font-family: var(--nj-display); font-weight: 600; }
.overall .v { font-size: clamp(110px, 14vw, 170px); }
.bar .n { font-size: 18px; } .t-rail a b { font-size: 14px; font-weight: 700; }
.g-title.big { letter-spacing: -.04em; }

/* Controls: Inter, simple geometry, one accent at a time */
.btn { background: var(--g-terra); color: #FFFCF5; font-weight: 600; }
.btn:hover:not(:disabled) { background: #EF6649; }
.btn.ghost { background: transparent; color: var(--g-ink); border: 1px solid var(--g-ink); }
.tag { border-color: var(--g-border); }
.tag.hi { background: var(--g-ink); border-color: var(--g-ink); color: var(--g-cream); }
.g-input, .j-search input, .j-sel select { border: 1px solid var(--g-border); background: var(--g-card); }
.g-progress .done { background: var(--g-navy); } .g-progress .now { background: var(--g-terra); }
.j-tabs a[aria-current] { border-color: var(--g-navy); }
.t-rail a[aria-current] b { color: var(--g-terra); }
.nj-stars { color: var(--g-terra); }
.nj-stars .half { background: linear-gradient(90deg, var(--g-terra) 50%, #D9CBB0 50%); -webkit-background-clip: text; background-clip: text; }
.j-toast { background: var(--g-ink); }

@media (max-width: 640px) { .nj-mark img { height: 38px; } .nj-label { margin-top: 48px; } }
#recent.nj-recent.bleed { padding-left: max(clamp(18px, 4vw, 48px), calc(50vw - 560px + clamp(18px, 4vw, 48px))); padding-right: max(clamp(18px, 4vw, 48px), calc(50vw - 560px + clamp(18px, 4vw, 48px))); }
@media (max-width: 960px) { .nj-foot { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .nj-foot { grid-template-columns: 1fr; } }

/* =====================================================================
   Four pages: what shows where
   ===================================================================== */
body:not(.at-home) .only-home { display: none !important; }
body:not(.at-explore) .only-explore { display: none !important; }
body:not(.at-explore):not(.at-title) .only-search { display: none !important; }

.nj-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.nj-actions .btn { padding: 13px 26px; }

/* Explore page header: search on the left, the graph guide on the right */
.ex-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(24px, 4vw, 48px) 0 8px; }
.ex-hero .nj-label { margin-top: 0; }
.ex-hero h1 { font-family: var(--nj-display); font-weight: 800; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.04em; margin: 8px 0 16px; color: var(--g-ink); max-width: 14ch; }
.ex-lede { color: #3D4650; font-size: 17px; max-width: 46ch; margin: 0 0 26px; }
.ex-hero .nj-hero-search { max-width: 600px; }
.ex-hero .hint { color: var(--mute); font-size: 14px; margin: 12px 0 0; }
.ex-guide { background: var(--g-card); border: 1px solid var(--g-border); border-radius: var(--g-radius); padding: 22px 24px; }
.ex-guide h2 { font-family: var(--nj-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; margin: 0 0 12px; }
.ex-guide ol { margin: 0; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 8px; }
.ex-guide li { counter-increment: g; display: grid; grid-template-columns: 26px 1fr; gap: 2px 8px; font-size: 14px; line-height: 1.4; color: var(--mute); }
.ex-guide li::before { content: counter(g); grid-row: span 2; font-weight: 700; color: var(--g-terra); }
.ex-guide li b { color: var(--g-ink); font-weight: 600; }
@media (max-width: 960px) { .ex-hero { grid-template-columns: 1fr; } }
/* On a film or series page, the Explore header shrinks to just the search */
body.at-title .ex-hero { display: block; padding: 14px 0; border-bottom: 1px solid var(--g-border); }
body.at-title .ex-hero .nj-label, body.at-title .ex-hero h1, body.at-title .ex-lede, body.at-title .ex-hero .hint { display: none; }
body.at-title .ex-hero .nj-hero-search { max-width: 520px; }
body.at-title .ex-hero .nj-hero-search #q { height: 46px; line-height: 46px; }
body.at-title .ex-hero .nj-mag { top: 12px; }

/* The archive grid */
#explore-all { padding-bottom: 20px; }
#explore-all .nj-label { margin-top: 56px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 26px 20px; }
.ex-item { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--g-ink); }
.ex-img { display: block; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; border: 1px solid var(--g-border); background: #EDE2CC; margin-bottom: 8px; }
.ex-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.ex-item:hover .ex-img img { transform: scale(1.04); }
.ex-item b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.ex-item .nj-y { margin: 0; }

/* =====================================================================
   EDITORIAL HOMEPAGE (from the Not Just Review homepage design)
   ===================================================================== */
:root { --ed-bg: #F9F3E6; --ed-card: #FDF8EE; --ed-line: #ECE2D0; --ed-ink: #0F1B2A; --ed-mute: #5A6270; --ed-terra: #EF4A2C; --ed-navy: #0D283C; --ed-mustard: #F3B51B;
  --ed-serif: "DM Serif Display", "Libre Caslon Display", Georgia, "Times New Roman", serif; --bg: #F9F3E6; }
body { background: var(--ed-bg); color: var(--ed-ink); }
.ed-label { font-family: var(--nj-display); font-weight: 600; font-size: 13px; letter-spacing: .17em; text-transform: uppercase; color: var(--ed-terra); margin: 0; }
.ed-ar { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; margin-left: 6px; transition: transform .2s; }
a:hover > .ed-ar, a:hover .ed-go .ed-ar { transform: translateX(3px); }
.ed-bm { width: 18px; height: 18px; fill: none; stroke: var(--ed-ink); stroke-width: 1.8; stroke-linejoin: round; opacity: .75; }

/* Header */
.ed-header { background: color-mix(in srgb, var(--ed-bg) 94%, transparent); border-bottom: 0; }
.ed-header .nj-in { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.ed-header .nj-mark img { height: 54px; width: auto; }
.ed-header .nj-nav { justify-content: center; gap: 46px; font-size: 15px; }
.ed-header .nj-nav a { color: var(--ed-ink); opacity: .9; font-weight: 500; }
.ed-header .nj-nav a::after { background: var(--ed-terra); }
.ed-search { position: relative; width: 248px; }
.ed-search svg { position: absolute; left: 14px; top: 11px; width: 17px; height: 17px; fill: none; stroke: var(--ed-ink); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.ed-search input { width: 100%; height: 39px; border: 1px solid #DED3C1; border-radius: 999px; background: #FFFCF6; padding: 0 16px 0 40px; font: inherit; font-size: 13.5px; color: var(--ed-ink); }
.ed-search input::placeholder { color: #8A8579; }
.ed-search input:focus { outline: 3px solid var(--ed-terra); outline-offset: 2px; }
.ed-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: block; transition: transform .2s; }
.ed-avatar:hover { transform: scale(1.06); }
.ed-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hero: copy on the left, the illustration bleeding off the right edge */
.ed-hero { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: 0; padding-top: 0; padding-right: 0 !important; }
.ed-hero-text { padding: 36px 24px 60px 0; }
.ed-hero h1 { font-family: var(--ed-serif); font-weight: 400; font-size: clamp(58px, 7.6vw, 104px); line-height: .93; letter-spacing: -.02em; color: var(--ed-ink); margin: 16px 0 22px; }
.ed-lede { font-size: 17px; line-height: 1.5; color: var(--ed-ink); max-width: 36ch; margin: 0 0 28px; }
.ed-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ed-actions .btn { padding: 13px 26px; font-weight: 500; font-size: 15px; background: var(--ed-terra); }
.ed-actions .btn.ghost { background: transparent; color: var(--ed-ink); border: 1.5px solid var(--ed-ink); }
.ed-hero-art { width: 100%; height: auto; display: block; align-self: start; }

/* 6+ fresh ways in */
.ed-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin: 0 0 18px; }
.ed-head > a { font-size: 14px; font-weight: 500; color: var(--ed-ink); text-decoration: none; }
.ed-ways { padding: 44px 0 0; }
.ed-ways-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-rows: auto auto; gap: 14px; }
.ed-card { position: relative; display: flex; text-decoration: none; color: var(--ed-ink); background: var(--ed-card); border: 1px solid var(--ed-line); border-radius: 6px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.ed-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(15, 27, 42, .45); }
.ed-card img { display: block; object-fit: cover; }
.ed-card-b { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px; flex: 1; position: relative; }
.ed-card-b b { font-family: var(--ed-serif); font-weight: 400; font-size: 24px; line-height: 1.12; letter-spacing: -.01em; }
.ed-desc { font-size: 14.5px; line-height: 1.5; color: var(--ed-mute); }
.ed-go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 500; }
.ed-card .ed-bm { position: absolute; top: 18px; right: 18px; }
.ed-lead { grid-row: span 2; flex-direction: column; }
.ed-lead img { width: 100%; height: auto; aspect-ratio: 438 / 164; }
.ed-lead .ed-card-b { padding: 22px 24px 24px; }
.ed-lead .ed-card-b b { font-size: clamp(28px, 2.8vw, 34px); }
.ed-side { flex-direction: row; }
.ed-side img { width: 39%; min-height: 100%; aspect-ratio: auto; }
.ed-side .ed-card-b b { padding-right: 24px; }

/* From the journal */
#home-journal { padding: 48px 0 0; }
.ed-journal { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 22px; align-items: stretch; }
.ed-jfeat { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 28px; text-decoration: none; color: var(--ed-ink); background: var(--ed-card); border: 1px solid var(--ed-line); border-radius: 6px; padding: 14px; }
.ed-jfeat-img { display: block; aspect-ratio: 181 / 241; overflow: hidden; border-radius: 2px; }
.ed-jfeat-img img, .ed-jrow-img img, .ed-ri-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.ed-jfeat:hover img, .ed-jrow:hover img, .ed-ri:hover img { transform: scale(1.04); }
.ed-jfeat-b { display: flex; flex-direction: column; gap: 6px; padding: 14px 8px 8px 0; }
.ed-jfeat-b .ed-bm { position: absolute; top: 22px; right: 22px; }
.ed-jfeat-b b { font-family: var(--ed-serif); font-weight: 400; font-size: 30px; line-height: 1.05; margin-top: 4px; }
.ed-jquote { font-family: var(--ed-serif); font-size: 19px; line-height: 1.45; color: #2C3540; margin-top: 18px; }
.ed-jlist { background: var(--ed-card); border: 1px solid var(--ed-line); border-radius: 6px; padding: 6px 16px; display: flex; flex-direction: column; }
.ed-jrow { display: grid; grid-template-columns: 72px minmax(0, 1fr) 20px; gap: 18px; align-items: start; padding: 14px 0; text-decoration: none; color: var(--ed-ink); border-bottom: 1px solid var(--ed-line); }
.ed-jrow:last-child { border-bottom: 0; }
.ed-jrow-img { display: block; aspect-ratio: 1; border-radius: 2px; overflow: hidden; }
.ed-jrow-b { display: flex; flex-direction: column; gap: 2px; }
.ed-jt b { font-family: var(--ed-serif); font-weight: 400; font-size: 17px; }
.ed-jt .nj-y { display: inline; margin-left: 6px; font-size: 13px; }
.ed-jq { font-size: 13px; line-height: 1.45; color: var(--ed-mute); margin-top: 2px; }
.ed-journal .nj-stars, .ed-journal .nj-r { color: var(--ed-terra); }
.ed-journal .nj-r > span:last-child { color: var(--ed-mute); }

/* Discover: the navy band with a carousel */
#recent.nj-recent { background: var(--ed-navy); color: #F7EFE0; margin-top: 30px; padding: 26px 0 30px !important; }
.ed-recent-in .ed-head { margin-bottom: 18px; }
.ed-recent-in .ed-label { color: var(--ed-mustard); }
.ed-recent-in h2 { font-family: var(--ed-serif); font-weight: 400; font-size: clamp(30px, 3vw, 36px); margin: 4px 0 0; color: #F7EFE0; letter-spacing: -.01em; }
.ed-recent-in .ed-head > a { color: #F7EFE0; }
.ed-carousel { display: flex; align-items: center; gap: 18px; }
.ed-track { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; }
.ed-track::-webkit-scrollbar { display: none; }
.ed-ri { flex: 0 0 auto; display: flex; gap: 14px; align-items: flex-start; scroll-snap-align: start; text-decoration: none; color: #F7EFE0; width: 148px; }
.ed-ri-img { flex: none; width: 60px; height: 74px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.ed-ri-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 6px; }
.ed-ri b { font-weight: 500; font-size: 13.5px; line-height: 1.25; }
.ed-ri .nj-y { color: rgba(247, 239, 224, .7); font-size: 12px; margin: 0; }
.ed-ri .nj-r { color: rgba(247, 239, 224, .8); font-size: 12px; }
.ed-ri .nj-stars { color: var(--ed-mustard); font-size: 11px; }
.ed-ri .nj-stars .off { color: rgba(247, 239, 224, .25); }
.ed-ri .nj-stars .half { background: linear-gradient(90deg, var(--ed-mustard) 50%, rgba(247, 239, 224, .25) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ed-arrows { display: flex; gap: 10px; flex: none; }
.ed-arrows button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #F7EFE0; background: transparent; color: #F7EFE0; display: grid; place-items: center; padding: 0; }
.ed-arrows .ed-prev .ed-ar { transform: rotate(180deg); }
.ed-arrows .ed-ar { margin: 0; width: 17px; height: 17px; }
.ed-arrows .ed-next { background: #F7EFE0; color: var(--ed-navy); }
.ed-arrows button:hover { transform: scale(1.06); }

/* Footer */
.ed-footer { background: var(--ed-bg); color: var(--ed-ink); border-top: 0; padding: 40px 0 18px; }
.ed-foot { display: grid !important; grid-template-columns: 170px minmax(0, 1.25fr) minmax(0, .7fr) minmax(0, .7fr) minmax(0, 1.4fr); gap: 28px; align-items: start; }
.ed-foot .nj-mark-primary img { width: 150px; height: auto; }
.ed-foot-about { font-size: 13.5px; line-height: 1.55; color: var(--ed-mute); margin: 6px 0 0; padding-right: 24px; border-right: 1px solid var(--ed-line); }
.ed-foot-col { padding-left: 4px; }
.ed-foot-col h2 { font-family: var(--nj-display); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: none; color: var(--ed-terra); margin: 6px 0 8px; }
.ed-foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13px; }
.ed-foot-col a { color: var(--ed-ink); text-decoration: none; opacity: .85; }
.ed-foot-col a:hover { opacity: 1; text-decoration: underline; }
.ed-foot-art { width: 100%; max-width: 250px; height: auto; justify-self: end; align-self: end; }
.ed-foot-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px !important; padding-top: 14px; border-top: 1px solid var(--ed-line); font-size: 12.5px; color: var(--ed-mute); }
.ed-foot-bar nav { display: flex; gap: 28px; }
.ed-foot-bar a { color: var(--ed-mute); text-decoration: none; }
.ed-foot-bar a:hover { color: var(--ed-ink); }
.ed-footer .nj-credits { border-top: 0; font-size: 11.5px; margin-top: 10px !important; padding-top: 0; }

/* Responsive */
@media (max-width: 1080px) { .ed-search { width: 200px; } .ed-header .nj-nav { gap: 28px; } }
@media (max-width: 960px) {
  .ed-header .nj-in { grid-template-columns: auto 1fr auto; }
  .ed-search { display: none; }
  .ed-hero { grid-template-columns: 1fr; padding-right: clamp(18px, 4vw, 48px) !important; }
  .ed-hero-text { padding: 24px 0 18px; }
  .ed-ways-grid, .ed-journal { grid-template-columns: 1fr; }
  .ed-lead { grid-row: auto; }
  .ed-foot { grid-template-columns: 1fr 1fr !important; }
  .ed-foot-about { border-right: 0; padding-right: 0; }
  .ed-foot-art { justify-self: start; }
}
@media (max-width: 560px) {
  .ed-header .nj-in { grid-template-columns: auto 1fr; gap: 12px; }
  .ed-header .nj-mark img { height: 44px; }
  .ed-header .nj-nav { gap: 14px; font-size: 13.5px; justify-content: flex-end; }
  .ed-avatar { display: none; }
  .ed-side { flex-direction: column; } .ed-side img { width: 100%; height: 160px; }
  .ed-jfeat { grid-template-columns: 1fr; }
  .ed-carousel { flex-direction: column; align-items: stretch; }
  .ed-arrows { justify-content: flex-end; }
  .ed-foot { grid-template-columns: 1fr !important; }
}
/* Side cards: the image fills the left column at the card's own height */
.ed-side { display: block; min-height: 168px; }
.ed-side img { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; height: 100%; }
.ed-side .ed-card-b { margin-left: 38%; min-height: 168px; }
/* Discover heading in the serif, not the older uppercase rule */
#recent .ed-recent-in h2 { font-family: var(--ed-serif); font-weight: 400; text-transform: none; letter-spacing: -.01em; font-size: clamp(30px, 3vw, 36px); color: #F7EFE0; line-height: 1.1; }
@media (max-width: 560px) {
  .ed-side img { position: static; width: 100%; height: 160px; }
  .ed-side .ed-card-b { margin-left: 0; min-height: 0; }
}
/* Refinements to match the design */
.ed-jquote { font-family: "Source Serif 4", Georgia, serif; font-weight: 400; font-size: 19px; line-height: 1.45; color: #2C3540; }
.ed-ri { width: 172px; }
.ed-track { gap: 22px; }
.ed-hero-text { padding-bottom: 40px; }
.ed-ways { padding-top: 26px; }
@media (max-width: 560px) { .ed-side img { min-height: 0; aspect-ratio: auto; } }

/* =====================================================================
   EXPLORE PAGE (from the Explore page design)
   ===================================================================== */
.ex-hero { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, .62fr) minmax(0, .58fr); gap: 0 26px; align-items: stretch; padding-top: 0 !important; padding-bottom: 0 !important; border-bottom: 1px solid var(--ed-line); min-height: 500px; }
.ex-text { align-self: center; padding: 40px 0 70px; }
.ex-hero h1 { font-family: var(--ed-serif); font-weight: 400; font-size: clamp(46px, 5.6vw, 72px); line-height: 1; letter-spacing: -.02em; color: var(--ed-ink); margin: 18px 0 22px; max-width: none; }
.ex-lede { font-size: 17px; line-height: 1.5; color: var(--ed-ink); max-width: 46ch; margin: 0 0 34px; }
.ex-search { max-width: 360px; }
.ex-search #q, body .ex-search #q { height: 44px; line-height: 44px; border-radius: 999px; border: 1px solid #CFC4B2; background: transparent; padding: 0 20px 0 50px; font-size: 14.5px; }
.ex-search .nj-mag { left: 18px; right: auto; top: 12px; width: 19px; height: 19px; }
.ex-art { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; align-self: end; display: block; margin-top: calc(-1 * var(--header-h, 84px)); max-height: calc(100% + var(--header-h, 84px)); }
.ex-guide { align-self: start; background: #FCF5E7; border: 1px solid var(--ed-line); border-radius: 8px; padding: 18px 18px 10px; margin: -6px 0 -22px; position: relative; z-index: 2; }
.ex-guide h2 { font-family: var(--ed-serif); font-weight: 400; font-size: 21px; letter-spacing: -.01em; margin: 0 0 6px; color: var(--ed-ink); }
.ex-guide > p { font-size: 13px; line-height: 1.45; color: var(--ed-mute); margin: 0 0 14px; }
.ex-guide ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: none; }
.ex-guide li { display: grid; grid-template-columns: 28px 30px minmax(0, 1fr); align-items: center; gap: 0 12px; padding: 3px 0; font-size: 12px; color: var(--ed-ink); }
.ex-guide li::before { content: none; }
.ex-guide li img { width: 26px; height: 26px; }
.ex-n { font-size: 12px; color: var(--ed-ink); }
.ex-guide li b { display: block; font-weight: 500; font-size: 13px; line-height: 1.2; color: var(--ed-ink); }
.ex-guide li small { display: block; font-size: 11.5px; color: var(--ed-mute); line-height: 1.3; }

/* Archive */
#explore-all { padding: 32px 0 40px; }
#explore-all .ed-label { margin: 0; }
.ex-h2 { font-family: var(--ed-serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 38px); letter-spacing: -.015em; margin: 6px 0 0; color: var(--ed-ink); }
.ex-seeall { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 15px; font-weight: 500; color: var(--ed-ink); cursor: pointer; }
.ex-seeall:hover .ed-ar { transform: translateX(3px); }
.ex-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px 24px; margin-top: 4px; }
.ex-item { gap: 0; }
.ex-img { aspect-ratio: 125 / 165; border-radius: 2px; border: 0; margin-bottom: 10px; }
.ex-item b { font-family: var(--ed-serif); font-weight: 400; font-size: 15px; line-height: 1.25; color: var(--ed-ink); }
.ex-item .nj-y { font-size: 12px; color: var(--ed-mute); }

/* Each page's footer illustration */
body.at-explore .not-explore { display: none !important; }

/* Film pages: the Explore header becomes just the search */
body.at-title .ex-hero { display: block !important; min-height: 0; border-bottom: 1px solid var(--ed-line); padding: 14px 0 !important; }
body.at-title .ex-text { padding: 0; }
body.at-title .ex-hero .ed-label, body.at-title .ex-hero h1, body.at-title .ex-lede { display: none; }

@media (max-width: 1100px) { .ex-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .5fr) minmax(0, .66fr); } .ex-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .ex-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ex-text { padding: 26px 0 24px; }
  .ex-art { display: none; }
  .ex-guide { margin: 0 0 26px; }
  .ex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
}
@media (max-width: 480px) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ex-search { max-width: none; } }
.ex-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .ex-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ex-hero.bleed { padding-left: max(clamp(18px, 4vw, 48px), calc(50vw - 560px + clamp(18px, 4vw, 48px))) !important; padding-right: max(clamp(18px, 4vw, 48px), calc(50vw - 560px + clamp(18px, 4vw, 48px))) !important; }
.ex-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .72fr) minmax(0, .62fr); min-height: 0; }
.ex-art { height: auto; max-height: none; object-fit: contain; margin-top: 0; align-self: end; }
body.at-title .ex-hero.bleed { padding-top: 14px !important; padding-bottom: 14px !important; }
.ex-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .56fr) minmax(0, .74fr); }
.ex-hero h1 { font-size: clamp(42px, 5.2vw, 66px); }
.ex-art { height: 100%; min-height: 100%; object-fit: cover; object-position: 30% 100%; align-self: stretch; }
.ex-guide li { gap: 0 10px; grid-template-columns: 24px 26px minmax(0, 1fr); }
.ex-guide li small { font-size: 11px; }
@media (max-width: 860px) { .ex-art { display: none; } }
/* The doorway art keeps its proportions; its top edge (the wall) extends up to fill the column */
.ex-art-wrap { display: flex; align-items: flex-end; align-self: stretch; background-repeat: repeat-y; background-size: 100% 1px; background-position: top left; min-height: 100%; }
.ex-art-wrap .ex-art { width: 100%; height: auto; min-height: 0; object-fit: fill; align-self: auto; display: block; }
.ex-hero h1 { font-size: clamp(40px, 4.8vw, 64px); }
@media (max-width: 860px) { .ex-art-wrap { display: none; } }
.ex-hero h1 { font-size: clamp(40px, 4.8vw, 58px); }
@media (min-width: 861px) { .ex-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .52fr) minmax(0, .72fr); } }
.ex-hero h1 { font-size: clamp(40px, 4.6vw, 56px); }
/* Proportions from the design: art column wide enough to fill the header's height; a compact graph card */
@media (min-width: 861px) { .ex-hero { grid-template-columns: minmax(0, 1.18fr) minmax(0, .66fr) minmax(0, .6fr); gap: 0 22px; } }
.ex-guide { padding: 16px 16px 8px; }
.ex-guide h2 { font-size: 19px; margin-bottom: 4px; }
.ex-guide > p { font-size: 12px; margin-bottom: 10px; }
.ex-guide ol { gap: 1px; }
.ex-guide li { padding: 2px 0; grid-template-columns: 22px 24px minmax(0, 1fr); gap: 0 9px; }
.ex-guide li img { width: 22px; height: 22px; }
.ex-guide li b { font-size: 12.5px; }
.ex-guide li small { font-size: 10.5px; }
.ex-n { font-size: 11px; }
.ex-art-wrap { background-image: none !important; }
.ex-art-wrap .ex-art { height: 100%; width: 100%; object-fit: cover; object-position: 38% 100%; }
.ex-guide li { padding: 1px 0; }
.ex-guide li b { line-height: 1.15; }
.ex-guide li small { line-height: 1.2; }
.ex-guide > p { line-height: 1.4; }
@media (min-width: 861px) and (max-width: 1140px) { .ex-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .6fr) minmax(0, .72fr); } .ex-art-wrap .ex-art { object-position: 22% 100%; } }
@media (max-width: 860px) {
  .ex-hero { grid-template-columns: minmax(0, 1fr) !important; }
  .ex-art-wrap { display: none !important; }
  .ex-guide { margin: 0 0 26px; }
  .ex-search { max-width: none; }
}

/* =====================================================================
   PLAY PAGE (from the Play page design)
   ===================================================================== */
body.at-play #game { padding-top: 0; }
.pl-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: stretch; gap: 0; padding-top: 0 !important; padding-bottom: 0 !important; padding-right: 0 !important; min-height: 500px; margin-bottom: 8px; }
.pl-text { align-self: center; padding: 56px 32px 64px 0; }
.pl-h1 { font-family: var(--ed-serif); font-weight: 400; font-size: clamp(42px, 5.4vw, 70px); line-height: 1; letter-spacing: -.02em; color: var(--ed-ink); margin: 18px 0 20px; text-transform: none; }
.pl-lede { font-family: "Source Serif 4", Georgia, serif; font-size: 19px; line-height: 1.45; color: var(--ed-ink); max-width: 34ch; margin: 0 0 30px; }
.pl-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.pl-in { position: relative; flex: 1 1 260px; max-width: 360px; display: flex; }
.pl-person { position: absolute; left: 20px; top: 13px; width: 22px; height: 22px; fill: none; stroke: var(--ed-ink); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.pl-in input { width: 100%; height: 48px; border: 1px solid #D8CDBA; border-radius: 999px; background: #FFFCF6; padding: 0 18px 0 56px; font: inherit; font-size: 15px; color: var(--ed-ink); }
.pl-in input:focus { outline: 3px solid var(--ed-terra); outline-offset: 2px; }
.pl-form .btn, .pl-go .btn { height: 48px; padding: 0 28px; font-size: 16px; font-weight: 500; background: var(--ed-terra); display: inline-flex; align-items: center; }
.pl-note { margin: 18px 0 0; font-size: 14px; color: var(--ed-mute); }
.pl-facts { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--ed-mute); font-size: 15px; }
.pl-facts b { color: var(--ed-ink); font-weight: 600; }
.pl-go { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.pl-rename { color: var(--ed-mute); font-size: 14px; }
.pl-art { width: 100%; height: 100%; object-fit: cover; object-position: 0% 100%; display: block; }

/* The leaderboard card */
.pl-board-wrap { padding: 0 0 50px; }
.pl-board { background: #FBF5EC; border: 1px solid var(--ed-line); border-radius: 10px; padding: 30px 26px 22px; }
.pl-board-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 22px; }
.pl-board-head h3 { margin: 0; font-family: var(--ed-serif); font-weight: 400; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.01em; line-height: 1.1; color: var(--ed-ink); text-transform: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
.pl-month { font-family: var(--ed-serif); }
.pl-board-head h3 > span:last-child { font-family: "Source Serif 4", Georgia, serif; font-weight: 400; }
.pl-dot { font-family: var(--nj-display); font-size: .7em; }
.pl-sel select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 15px; color: var(--ed-ink); background: #FFFCF6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1B2A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 18px; border: 1px solid #D8CDBA; border-radius: 999px; padding: 10px 48px 10px 18px; }
.pl-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ed-line); border-radius: 8px; background: #FDF9F2; }
.pl-rows li { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto 50px; align-items: center; padding: 10px 0 10px 18px; border-bottom: 1px solid var(--ed-line); font-size: 16px; color: var(--ed-ink); margin-left: 0; }
.pl-rows li:last-child { border-bottom: 0; }
.pl-rows .rk { font-weight: 600; font-size: 15px; }
.pl-rows .top .rk { font-family: var(--ed-serif); font-weight: 400; font-size: 23px; color: var(--ed-terra); line-height: 1; }
.pl-rows li:first-child .nm { font-weight: 600; }
.pl-rows .sc { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.pl-rows .cr { display: grid; place-items: center; }
.pl-crown { width: 20px; height: 20px; fill: var(--ed-mustard); }
.pl-rows .me { background: rgba(232, 138, 163, .16); }
.pl-rows .me em { font-style: normal; color: var(--ed-mute); font-size: 14px; }
.pl-rows .gap { display: block; text-align: center; color: var(--ed-mute); padding: 4px; }
.pl-foot { margin: 18px 4px 0; font-size: 14px; color: var(--ed-mute); }
.pl-empty { color: var(--ed-mute); margin: 0; }

/* Each page's footer illustration */
body:not(.at-play) .only-play { display: none !important; }
body.at-play .not-play { display: none !important; }

@media (max-width: 860px) {
  .pl-hero { grid-template-columns: minmax(0, 1fr); padding-right: clamp(18px, 4vw, 48px) !important; min-height: 0; }
  .pl-text { padding: 26px 0 26px; }
  .pl-art { max-height: 300px; border-radius: 6px; }
  .pl-in { max-width: none; }
}
@media (max-width: 560px) {
  .pl-board { padding: 20px 14px 16px; }
  .pl-rows li { grid-template-columns: 44px minmax(0, 1fr) auto 34px; padding-left: 12px; font-size: 15px; }
  .pl-form .btn { width: 100%; justify-content: center; }
}
@media (min-width: 861px) { .pl-hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.pl-text { padding-right: 26px; }
.pl-lede { font-size: 18px; max-width: 38ch; }

/* =====================================================================
   TITLE PAGE TEMPLATE (from the Memento "cinematic data journey" design)
   Every film and series page uses this.
   ===================================================================== */
body.at-title .ex-hero { display: none !important; }
.mv-hero { display: grid; grid-template-columns: 190px minmax(0, 1fr) minmax(0, .8fr); gap: 34px; align-items: center; padding-top: 26px !important; padding-bottom: 0 !important; padding-right: 0 !important; border-bottom: 1px solid var(--ed-line); min-height: 320px; }
.mv-poster { align-self: center; padding: 10px; background: #F3E9D6; box-shadow: 0 10px 24px -14px rgba(15, 27, 42, .45); margin-bottom: 26px; }
.mv-poster img, .mv-poster .noposter { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.mv-info { padding: 10px 0 34px; }
.mv-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 8px; font-size: 14px; color: var(--ed-mute); }
.mv-meta span + span::before { content: "·"; margin: 0 10px; }
.mv-title { font-family: var(--ed-serif); font-weight: 400; font-size: clamp(46px, 6vw, 80px); line-height: .98; letter-spacing: -.025em; color: var(--ed-ink); margin: 0 0 14px; }
.mv-orig { margin: -6px 0 12px; color: var(--ed-mute); font-size: 15px; }
.mv-syn { font-size: 16px; line-height: 1.55; color: var(--ed-ink); max-width: 52ch; margin: 0 0 22px; }
.mv-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mv-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px; border-radius: 999px; font: inherit; font-size: 14.5px; font-weight: 500; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s; }
.mv-btn svg { width: 15px; height: 15px; }
.mv-btn.dark { background: #13283D; color: #F7EFE0; border: 0; }
.mv-btn.dark svg { fill: currentColor; }
.mv-btn.line { background: transparent; color: var(--ed-ink); border: 1px solid #CFC4B2; }
.mv-btn.line svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.mv-btn:hover { transform: translateY(-2px); }
.mv-more { position: relative; }
.mv-dots { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #CFC4B2; background: transparent; color: var(--ed-ink); font-size: 11px; letter-spacing: 1px; cursor: pointer; }
.mv-menu { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; min-width: 220px; background: #FFFCF6; border: 1px solid var(--ed-line); border-radius: 10px; box-shadow: 0 16px 34px -18px rgba(15, 27, 42, .5); padding: 6px; display: grid; }
.mv-menu[hidden] { display: none; }
.mv-menu a, .mv-menu button { text-align: left; background: none; border: 0; font: inherit; font-size: 14px; color: var(--ed-ink); padding: 10px 12px; border-radius: 6px; text-decoration: none; cursor: pointer; }
.mv-menu a:hover, .mv-menu button:hover { background: #F5ECDC; }
.mv-art { align-self: stretch; position: relative; min-height: 300px; }
.mv-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
.mv-art .drawing { position: absolute; bottom: 14px; right: 18px; margin: 0; font-size: 13px; color: var(--ed-mute); }

/* Tabs */
.mv-tabs { display: flex; gap: 34px; border-bottom: 1px solid var(--ed-line); padding-top: 0 !important; padding-bottom: 0 !important; position: sticky; top: var(--header-h, 84px); z-index: 7; background: var(--ed-bg); }
.mv-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 16px 2px 14px; font: inherit; font-size: 15px; color: var(--ed-mute); cursor: pointer; margin-bottom: -1px; }
.mv-tabs button[aria-selected="true"] { color: var(--ed-ink); font-weight: 600; border-bottom-color: var(--ed-terra); }
.mv-tabs button:hover { color: var(--ed-ink); }
.mv-panel { padding-top: 34px; }

/* The twelve graphs index */
.mv-rail { padding-top: 6px !important; top: calc(var(--header-h, 84px) + 70px) !important; }
.mv-rail p { font-size: 11.5px; letter-spacing: .16em; color: var(--ed-mute); margin-bottom: 14px; }
.mv-rail a { gap: 18px; padding: 8px 14px; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; font-size: 14px; color: var(--ed-ink); background: none; }
.mv-rail a b { font-family: var(--nj-display); font-weight: 400; font-size: 13px; color: var(--ed-mute); min-width: 20px; }
.mv-rail a:hover { background: #F4EADA; }
.mv-rail a[aria-current] { background: #F7E3D8; border-left-color: var(--ed-terra); color: var(--ed-ink); font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.mv-rail a[aria-current] b { color: var(--ed-terra); }
.t-layout { border-left: 0; }
.t-main { border-left: 1px solid var(--ed-line); padding-left: 34px; }

/* A graph, in the template */
.mv-g { padding: 6px 0 44px; margin-bottom: 40px; border-bottom: 1px solid var(--ed-line); }
.mv-g .ed-label { margin-bottom: 6px; }
.mv-ghead { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 270px); gap: 18px; align-items: center; margin-bottom: 18px; }
.mv-num { font-family: var(--ed-serif); font-size: 58px; line-height: 1; color: var(--ed-ink); letter-spacing: -.02em; }
.mv-ghead h3 { font-family: var(--ed-serif); font-weight: 400; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.15; letter-spacing: -.015em; margin: 0; color: var(--ed-ink); text-transform: none; }
.mv-gdesc { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ed-mute); }
.mv-card { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 18px; align-items: start; background: #FCF8F0; border: 1px solid var(--ed-line); border-radius: 8px; padding: 18px; box-shadow: none; --c1: #2D5BD4; --c2: #E65335; --c3: #2A8C82; --accent: #2D5BD4; }
.mv-chart { min-width: 0; overflow-x: auto; }
.mv-chart svg { min-width: 520px; }
.mv-means { background: #F9E6DA; border-radius: 6px; padding: 16px; align-self: stretch; }
.mv-means-k { margin: 0 0 8px; font-size: 13px; color: var(--ed-terra); font-weight: 500; }
.mv-means p:not(.mv-means-k) { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ed-ink); }
.mv-means .mv-means-n { margin-top: 10px; font-size: 12.5px; color: var(--ed-mute); }
.mv-take { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 14px; }
.mv-take-pill { background: #13283D; color: #F7EFE0; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 500; }
.mv-take-t { font-size: 13.5px; color: var(--ed-mute); }
.mv-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: #8B8579; }
.mv-tags span + span::before { content: "·"; margin-right: 14px; }
.mv-score { display: block; }
.mv-score .overall .v { color: #2D5BD4; }

/* Key insights and notable scenes */
.mv-ins { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; align-items: start; margin-top: 10px; }
.mv-ins-h { font-family: var(--ed-serif); font-weight: 400; font-size: 26px; letter-spacing: -.01em; margin: 0 0 10px; color: var(--ed-ink); }
.mv-thesis { font-family: "Source Serif 4", Georgia, serif; font-size: 21px; line-height: 1.45; color: var(--ed-ink); margin: 0 0 18px; }
.mv-ratings { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ed-mute); margin-bottom: 18px; }
.mv-ratings b { color: var(--ed-ink); }
.mv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.mv-facts dt { font-size: 12px; color: var(--ed-mute); }
.mv-facts dd { margin: 0; font-weight: 500; }
.mv-dna { grid-template-columns: minmax(0, 1fr) 200px; }
.mv-dna .mv-chart svg { min-width: 300px; }
.mv-panel .basis { margin-top: 28px; font-size: 13px; color: var(--ed-mute); max-width: 90ch; }
.mv-panel[data-panel="scenes"] .seqs { margin-top: 18px; }

@media (max-width: 1040px) {
  .mv-hero { grid-template-columns: 150px minmax(0, 1fr); padding-right: clamp(18px, 4vw, 48px) !important; }
  .mv-art { display: none; }
  .t-main { border-left: 0; padding-left: 0; }
  .mv-rail { top: calc(var(--header-h, 84px) + 52px) !important; }
  .mv-ghead { grid-template-columns: auto minmax(0, 1fr); }
  .mv-gdesc { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .mv-hero { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; }
  .mv-poster { padding: 6px; margin-bottom: 0; }
  .mv-title { font-size: clamp(36px, 10vw, 52px); }
  .mv-syn, .mv-actions { grid-column: 1 / -1; }
  .mv-info { display: contents; }
  .mv-meta, .mv-title, .mv-orig { grid-column: 2; }
  .mv-card, .mv-dna, .mv-ins { grid-template-columns: minmax(0, 1fr); }
  .mv-tabs { gap: 20px; overflow-x: auto; }
  .mv-num { font-size: 44px; }
}
/* Keep the side index and the hero art down to tablet width, as in the design */
@media (min-width: 861px) {
  .mv-panel .t-layout { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 0 30px; }
  .mv-panel .t-rail { position: sticky; top: calc(var(--header-h, 84px) + 70px); margin: 0; padding: 6px 0 0; border: 0; background: transparent; }
  .mv-panel .t-rail p { display: block; }
  .mv-panel .t-rail ol { display: grid; overflow: visible; gap: 2px; }
  .mv-panel .t-rail a { white-space: normal; background: none; border-radius: 0 6px 6px 0; padding: 8px 14px; }
  .mv-panel .t-rail a[aria-current] { background: #F7E3D8; }
  .mv-panel .t-main { border-left: 1px solid var(--ed-line); padding-left: 30px; }
  .mv-hero { grid-template-columns: 170px minmax(0, 1fr) minmax(0, .78fr); padding-right: 0 !important; }
  .mv-art { display: block; }
}
@media (max-width: 860px) {
  .mv-hero { grid-template-columns: 140px minmax(0, 1fr); padding-right: clamp(18px, 4vw, 48px) !important; }
  .mv-art { display: none; }
}
@media (max-width: 720px) { .mv-hero { grid-template-columns: 96px minmax(0, 1fr); } }
@media (min-width: 861px) {
  .mv-ghead { grid-template-columns: auto minmax(0, 1fr) minmax(0, 250px); }
  .mv-gdesc { grid-column: auto; }
  .mv-chart svg { min-width: 0; }
}

/* =====================================================================
   DESIGN SYSTEM: everything else (My Movies, the Play game screens, shared states).
   Same structure as before; the visual language of the Home / Explore / Play / title designs.
   ===================================================================== */
:root { --ds-card: #FCF8F0; --ds-tint: #F9E6DA; --ds-pill: #13283D; --ds-quote: "Source Serif 4", Georgia, serif; }

/* Shared type */
.g-title, .g-title.big, .g-h, .notice h3, .loading b, .lb h3, .j-dialog h2, details.seqs summary, #journal h2.g-title {
  font-family: var(--ed-serif); font-weight: 400; text-transform: none; letter-spacing: -.015em; line-height: 1.08; color: var(--ed-ink); }
.g-title { font-size: clamp(32px, 4vw, 48px); }
.g-title.big { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -.02em; }
.g-h { font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 16px; }
.kicker:not(.note), .j-take > .kicker, .j-analysis > .kicker, .g-story-k, .g-clue-k, .j-year .kicker { font-family: var(--nj-display); font-weight: 600; font-size: 12px; letter-spacing: .17em; text-transform: uppercase; color: var(--ed-terra); }
.kicker.note { font-family: var(--nj-display); font-style: normal; color: var(--ed-mute); }

/* Shared surfaces: cream cards with fine borders */
.g-sheet, .lb, .j-year, .j-take, .g-answer-card, .j-rcard, .j-picked, .loading, .notice, .panel, .j-empty { background: var(--ds-card); border: 1px solid var(--ed-line); border-radius: 10px; box-shadow: none; }
.g-note, .g-story, .g-clue, .g-tell, .j-verdict { background: var(--ds-tint); border: 0; border-radius: 8px; box-shadow: none; }
.g-clue, .g-tell, .j-verdict { border-left: 0; }
.j-analysis { background: transparent; border: 1px dashed #D9CDB8; border-radius: 10px; }

/* Shared controls: pills */
.btn { background: var(--ed-terra); color: #FFF8EE; border-radius: 999px; font-family: var(--nj-display); font-weight: 500; font-size: 15px; padding: 12px 24px; border: 0; box-shadow: none; }
.btn:hover:not(:disabled) { background: #F06042; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ed-ink); border: 1px solid #CFC4B2; }
.btn.ghost:hover:not(:disabled) { background: #F4EADA; }
.btn.big { font-size: 16px; padding: 14px 30px; }
.g-input, .j-search input, .j-sel select, .j-dialog .g-input, .j-yearsel select { font-family: var(--nj-display); border: 1px solid #D8CDBA; border-radius: 999px; background: #FFFCF6; color: var(--ed-ink); }
.j-dialog textarea.g-input { border-radius: 14px; }
.g-input:focus, .j-search input:focus, .j-dialog .g-input:focus { outline: 3px solid var(--ed-terra); outline-offset: 2px; }
.linkish { color: var(--ed-mute); font-family: var(--nj-display); }
.tag { border: 1px solid #D8CDBA; color: var(--ed-mute); border-radius: 999px; }
.tag.hi { background: var(--ds-pill); border-color: var(--ds-pill); color: #F7EFE0; }
.nj-stars, .stars path[fill="var(--accent2)"] { color: var(--ed-terra); }
:root { --accent2: #E65335; }

/* Serif numerals everywhere numbers are the point */
.g-big span, .g-rank-n, .j-hero b, .j-nums b:not(.w), .j-yn b, .j-bigstars b, .g-stats dd, .j-tl-y, .star-num, .g-points, .overall .v, .stat .v, .bar .n, .j-rate b, .j-rr b, .j-chip b, .j-cols b, .j-dn {
  font-family: var(--ed-serif); font-weight: 400; letter-spacing: -.02em; }

/* ---------- My Movies ---------- */
.jx-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: stretch; gap: 0; padding-top: 0 !important; padding-bottom: 0 !important; padding-right: 0 !important; border-bottom: 1px solid var(--ed-line); min-height: 380px; }
.jx-text { align-self: center; padding: 40px 30px 46px 0; }
.jx-h1 { font-family: var(--ed-serif); font-weight: 400; font-size: clamp(42px, 5.4vw, 70px); line-height: 1; letter-spacing: -.02em; color: var(--ed-ink); margin: 16px 0 16px; }
.jx-lede { font-family: var(--ds-quote); font-size: 19px; line-height: 1.45; color: var(--ed-ink); max-width: 40ch; margin: 0 0 22px; }
.jx-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0 0 24px; }
.jx-stats b { display: block; font-family: var(--ed-serif); font-weight: 400; font-size: 44px; line-height: 1; color: var(--ed-ink); }
.jx-stats span { font-size: 13px; color: var(--ed-mute); }
.jx-art { width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; display: block; }
.j-add { background: var(--ed-terra); color: #FFF8EE; }
.j-tabs { position: sticky; top: var(--header-h, 84px); z-index: 6; background: var(--ed-bg); border-bottom: 1px solid var(--ed-line); gap: 30px; margin: 0 0 6px; }
.j-tabs a { font-family: var(--nj-display); font-weight: 400; font-size: 15px; color: var(--ed-mute); padding: 16px 2px 14px; border-bottom: 2px solid transparent; }
.j-tabs a[aria-current] { color: var(--ed-ink); font-weight: 600; border-bottom-color: var(--ed-terra); }
.j-sec { padding: 34px 0 6px; }
.j-card .j-title { font-family: var(--ed-serif); font-weight: 400; font-size: 17px; line-height: 1.2; text-transform: none; letter-spacing: -.005em; }
.j-card .yr, .j-title .yr { font-family: var(--nj-display); font-size: 13px; color: var(--ed-mute); }
.j-poster { border-radius: 2px; }
.j-ex { font-family: var(--ds-quote); font-style: italic; color: var(--ed-mute); }
.j-meta { color: var(--ed-mute); }
.j-rw { background: var(--ds-tint); color: var(--ed-terra); }
.j-chip { background: var(--ds-card); border: 1px solid var(--ed-line); }
.j-chip b { color: var(--ed-terra); }
.j-year { padding: 24px 26px; }
.j-year dl div { border-top-color: var(--ed-line); }
.j-reviews li { border-bottom-color: var(--ed-line); }
.j-rt { font-family: var(--ed-serif); font-weight: 400; font-size: 26px; text-transform: none; letter-spacing: -.01em; }
.j-rtext { font-family: var(--ds-quote); font-style: italic; font-size: 18px; color: #2C3540; }
.j-rcard b { font-family: var(--ed-serif); font-weight: 400; font-size: 21px; text-transform: none; }
.j-mode button { border-color: #D8CDBA; }
.j-mode button[aria-pressed="true"] { background: var(--ds-pill); border-color: var(--ds-pill); color: #F7EFE0; }
.j-tl-y { font-size: 64px; color: var(--ed-ink); }
.j-tl-m h4 { font-family: var(--ed-serif); font-weight: 400; font-size: 22px; }
.j-nums b.w { font-family: var(--ed-serif); font-weight: 400; font-size: 22px; }
.j-cols span { background: #2D5BD4; border-radius: 3px 3px 0 0; }
.j-db i { background: var(--ed-terra); }
.j-taste b { font-weight: 500; }
.j-sec .panel { --c1: #2D5BD4; --c2: #E65335; --c3: #2A8C82; --accent: #2D5BD4; }
/* An entry: the same header pattern as a film page */
.j-entry { grid-template-columns: 170px minmax(0, 1fr); gap: 34px; margin-top: 26px; padding-bottom: 30px; border-bottom: 1px solid var(--ed-line); }
.j-ep { padding: 10px; background: #F3E9D6; box-shadow: 0 10px 24px -14px rgba(15, 27, 42, .45); }
.j-ep img, .j-ep .noposter { border-radius: 0; }
.j-entry .g-title.big { font-size: clamp(40px, 5.6vw, 72px); margin-bottom: 8px; }
.j-sub { color: var(--ed-mute); font-size: 15px; }
.j-facts dt { color: var(--ed-mute); font-size: 12px; }
.j-facts dd { font-weight: 500; }
.j-back a { font-family: var(--nj-display); color: var(--ed-ink); }
.j-take { margin-top: 34px; padding: clamp(22px, 4vw, 38px); }
.j-review { font-family: var(--ds-quote); font-style: italic; font-weight: 400; font-size: clamp(22px, 2.6vw, 29px); line-height: 1.45; border-left: 3px solid var(--ed-terra); color: var(--ed-ink); }
.j-bigstars b { font-size: 60px; }
.j-analysis { margin-top: 30px; }
.j-analysis .bars { --accent: #2D5BD4; }
.j-traits b { font-weight: 600; }
.j-dialog { background: var(--ed-bg); border-radius: 14px; }
.j-dialog .j-lab { font-family: var(--nj-display); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ed-terra); }
.j-toast { background: var(--ds-pill); color: #F7EFE0; }
@media (max-width: 860px) {
  .jx-hero { grid-template-columns: minmax(0, 1fr); padding-right: clamp(18px, 4vw, 48px) !important; min-height: 0; }
  .jx-text { padding: 26px 0 22px; }
  .jx-art { max-height: 240px; border-radius: 8px; margin-bottom: 22px; }
}
@media (max-width: 640px) { .j-entry { grid-template-columns: minmax(0, 1fr); } .j-ep { max-width: 200px; } .j-tabs { gap: 18px; overflow-x: auto; } }

/* ---------- Play: question, reveal, results ---------- */
.g-top { background: var(--ed-bg); border-bottom: 1px solid var(--ed-line); padding: 12px 0; }
.g-progress span { height: 5px; background: var(--ed-line); }
.g-progress .done { background: var(--ds-pill); } .g-progress .now { background: var(--ed-terra); }
.g-meta { font-family: var(--nj-display); color: var(--ed-mute); }
.g-meta b { font-family: var(--ed-serif); font-weight: 400; color: var(--ed-ink); }
.g-chip { font-weight: 500; border-radius: 999px; }
.g-chip.easy { background: #DDEBDF; color: #1F5E44; } .g-chip.medium { background: #F8E3B0; color: #7A5300; } .g-chip.hard { background: var(--ds-tint); color: #B3361F; } .g-chip.veryhard { background: var(--ds-pill); color: #F7EFE0; }
.g-story { font-family: var(--ds-quote); font-size: 18px; }
.g-story b { font-family: var(--nj-display); font-weight: 600; }
.g-play .g-graph { padding: 18px; --c1: #2D5BD4; --c2: #E65335; --c3: #2A8C82; --accent: #2D5BD4; }
.g-guide { color: var(--ed-mute); }
.g-opt { background: var(--ds-card); border: 1px solid #D8CDBA; border-radius: 10px; font-family: var(--nj-display); }
.g-opt b { font-family: var(--ed-serif); font-weight: 400; font-size: 18px; }
.g-opt:hover { border-color: var(--ed-terra); background: var(--ds-card); }
.g-verdict .g-title.big { font-size: clamp(44px, 6vw, 72px); }
.g-verdict.yes .g-title { color: #1F6E4D; } .g-verdict.no .g-title { color: var(--ed-terra); }
.g-points { font-size: 30px; color: var(--ed-ink); }
.g-answer-card { padding: 16px; }
.g-answer-card img { border-radius: 2px; }
.g-film { font-family: var(--ed-serif); font-weight: 400; font-size: clamp(32px, 4vw, 48px); text-transform: none; letter-spacing: -.015em; }
.g-explore { color: var(--ed-ink); }
.g-why h3 { font-family: var(--ed-serif); font-weight: 400; font-size: 26px; }
.g-why-h { font-family: var(--ds-quote); font-weight: 400; font-size: 19px; }
.g-tell { font-size: 15px; padding: 14px 16px; }
.g-big span { color: var(--ed-terra); }
.g-big span small { font-family: var(--ed-serif); color: var(--ed-mute); }
.g-stats dd { font-size: 34px; color: var(--ed-ink); }
.g-rank-n { color: var(--ed-terra); }
.g-results .bars { --accent: #2D5BD4; }
.g-recap li { border-bottom-color: var(--ed-line); }
.g-recap a { font-family: var(--ed-serif); font-size: 17px; color: var(--ed-ink); text-decoration: none; }
.g-recap a:hover { text-decoration: underline; }
.g-recap .yes .mk { color: #1F6E4D; } .g-recap .no .mk { color: var(--ed-terra); }

/* ---------- Shared states and search ---------- */
.loading .msg b { font-family: var(--ed-serif); font-weight: 400; font-size: 22px; }
.notice h3 { font-size: 26px; }
#suggest { background: #FFFCF6; border: 1px solid var(--ed-line); border-radius: 12px; box-shadow: 0 18px 40px -22px rgba(15, 27, 42, .45); }
#suggest li b { font-family: var(--ed-serif); font-weight: 400; font-size: 17px; }
#suggest .kind { background: var(--ds-tint); color: var(--ed-terra); border-radius: 999px; }
/* Screens that scroll into view stop below the sticky header */
#game, #journal, #result { scroll-margin-top: calc(var(--header-h, 84px) + 8px); }

/* Title page: one continuous page again (no tabs), in the new design */
.mv-basis { padding: 18px 0 0; }
.mv-basis .basis { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ed-mute); max-width: 95ch; }
.mv-basis .basis b { color: var(--ed-ink); }
.mv-body { padding-top: 34px; }
.mv-ratings { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--ed-mute); margin: 0 0 14px; }
.mv-ratings b { color: var(--ed-ink); font-weight: 600; }
.mv-syn { font-family: "Source Serif 4", Georgia, serif; font-size: 19px; line-height: 1.45; margin-bottom: 0; }
.mv-info { padding-bottom: 30px; }
.mv-num-w { font-size: 40px; color: var(--ed-terra); }
.mv-g.moments .moment-grid { margin-top: 6px; }
.mv-g.moments figcaption b { font-family: var(--ed-serif); font-weight: 400; font-size: 18px; }
.mv-seqs { border: 1px solid var(--ed-line); border-radius: 10px; background: #FCF8F0; padding: 6px 22px; margin: 0 0 40px; }
.mv-seqs > summary { font-family: var(--ed-serif); font-weight: 400; font-size: 24px; letter-spacing: -.01em; padding: 14px 0; cursor: pointer; color: var(--ed-ink); text-transform: none; }
.mv-seqs .seq .n { font-family: var(--ed-serif); font-weight: 400; color: var(--ed-terra); }
.mv-seqs .seq .t { font-family: var(--ed-serif); font-size: 18px; }
@media (min-width: 861px) { .mv-body .t-rail { top: calc(var(--header-h, 84px) + 20px) !important; } }
@media (max-width: 860px) { .mv-body .t-rail { top: var(--header-h, 84px) !important; } }

/* The graph is the hero: full-width chart, "What this means" underneath it */
.mv-card, .mv-dna { grid-template-columns: minmax(0, 1fr) !important; gap: 14px; padding: 22px 22px 18px; }
.mv-chart svg { min-width: 0; width: 100%; }
.mv-dna .mv-chart { max-width: 640px; margin: 0 auto; }
.mv-means { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 18px; align-items: start; padding: 14px 18px; background: #F9E9DE; }
.mv-means-k { margin: 2px 0 0 !important; }
.mv-means p:not(.mv-means-k) { font-size: 14.5px; max-width: 80ch; }
.mv-means .mv-means-n { grid-column: 2; }
@media (max-width: 640px) { .mv-means { grid-template-columns: minmax(0, 1fr); } .mv-means .mv-means-n { grid-column: auto; } }
/* Movie DNA radar: larger, so its labels are readable */
.mv-dna .mv-chart { max-width: 820px !important; width: 100%; margin: 0 auto; }
.mv-dna .mv-chart svg { width: 100%; height: auto; }
/* Phones: charts keep a readable size and scroll sideways inside their card */
@media (max-width: 640px) {
  .mv-chart { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mv-chart svg { min-width: 560px !important; }
  .mv-dna .mv-chart svg { min-width: 600px !important; }
}
