@font-face {
  font-family: Barlow;
  src: url(/art/barlow-400.woff2) format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url(/art/barlow-600.woff2) format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url(/art/barlow-700.woff2) format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url(/art/barlow-common-400.woff2) format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0020-007E, U+00A0, U+00B7, U+00D7, U+2010-2022, U+2026, U+2032-2033,
    U+2605;
}
@font-face {
  font-family: Barlow;
  src: url(/art/barlow-common-600.woff2) format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range:
    U+0020-007E, U+00A0, U+00B7, U+00D7, U+2010-2022, U+2026, U+2032-2033,
    U+2605;
}
@font-face {
  font-family: Barlow;
  src: url(/art/barlow-common-700.woff2) format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range:
    U+0020-007E, U+00A0, U+00B7, U+00D7, U+2010-2022, U+2026, U+2032-2033,
    U+2605;
}
:root {
  color-scheme: dark;
  --ground: #141513;
  --surface: #20211e;
  --raised: #292a26;
  --ink: #f8f6ed;
  --muted: #b4b4a8;
  --accent: #dfbb73;
  --line: #3a3b35;
  --dark-ink: #1b1b16;
  --edge: 48px;
  --width: 1440px;
  --feature-size: 72px;
  --title: 40px;
  --heading: 28px;
  --body: 16px;
  --caption: 14px;
  --control: 44px;
  --r: 8px;
  --poster-radius: 6px;
  --feature-radius: 16px;
  --float: 0 20px 72px #090a0880;
  font:
    400 var(--body)/1.5 Barlow,
    Arial,
    sans-serif;
  background: var(--ground);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:not(:disabled):active,
.btn:active {
  transform: translateY(1px);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:focus:not(:focus-visible),
main:focus {
  outline: none;
}
button,
a {
  touch-action: manipulation;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 {
  font-size: var(--title);
}
h2 {
  font-size: var(--heading);
}
h3 {
  font-size: 20px;
}
p {
  line-height: 1.55;
}
.muted,
small,
.footnote {
  color: var(--muted);
}
.glyph {
  flex: none;
  vertical-align: middle;
}
.visually-hidden,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 5;
  padding: 8px 16px;
  background: var(--raised);
}
.top {
  background: var(--ground);
}
.top-inner,
main,
.footer-inner {
  width: 100%;
  max-width: var(--width);
  padding-inline: var(--edge);
  margin: auto;
}
.top-inner {
  height: 84px;
  display: flex;
  align-items: center;
  gap: 56px;
}
.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.brand img {
  width: 32px;
  height: 36px;
}
.nav,
.utilities,
.feature-meta,
.hero-actions,
.feature-controls,
.card-meta,
.detail-format,
.section-link,
.text-button,
.btn,
.chip,
.slide-button,
.account-button,
.icon-button,
.result-head,
.pager,
.row-type,
.result-head label,
.detail-source a {
  display: inline-flex;
  align-items: center;
}
.nav {
  gap: 8px;
}
.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control);
  padding: 8px 16px;
  border-radius: var(--r);
  color: var(--muted);
  font-weight: 600;
}
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--raised);
}
.nav a[aria-current="page"] .glyph {
  color: var(--accent);
}
.nav a:hover,
.icon-button:hover,
.account-button:hover {
  background: var(--surface);
  color: var(--ink);
}
.utilities {
  gap: 12px;
  margin-left: auto;
}
.icon-button,
.slide-button {
  width: var(--control);
  height: var(--control);
  justify-content: center;
  border-radius: var(--r);
}
.account-button {
  gap: 8px;
  padding: 0 12px;
  min-height: var(--control);
  border-radius: var(--r);
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
}
main {
  min-height: calc(100dvh - 190px);
}
.initial {
  min-height: 440px;
  display: grid;
  place-content: center;
  color: var(--muted);
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 388px;
  display: flex;
  align-items: center;
  background: #171c1b;
  border-radius: var(--feature-radius);
  color: #f8f6ed;
}
.scene,
.scene-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.scene {
  object-fit: cover;
  object-position: 50% 40%;
  width: 79%;
  left: auto;
}
.rogue .scene {
  object-position: 50% 12%;
}
.mando .scene,
.hope .scene {
  width: 100%;
  object-position: 62% center;
}
.scene-shade {
  background:
    linear-gradient(
      90deg,
      #111714 1%,
      #111714 21%,
      rgba(17, 23, 20, 0.87) 33%,
      rgba(17, 23, 20, 0.19) 58%,
      transparent 78%
    ),
    linear-gradient(0deg, rgba(13, 17, 15, 0.56), transparent 36%);
}
.hero-content {
  width: 51%;
  padding: 48px 0 48px 56px;
}
.hero h1 {
  font-size: var(--feature-size);
  max-width: 470px;
  letter-spacing: -0.04em;
}
.film-logo {
  width: 392px;
  max-width: 100%;
  height: auto;
}
.feature-meta {
  gap: 14px;
  margin-top: 20px;
  font-size: var(--caption);
  font-weight: 600;
  color: #e4e4d9;
}
.feature-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.feature-meta span + span {
  border-left: 1px solid #757970;
  padding-left: 14px;
}
.hero-content p {
  max-width: 400px;
  color: #e4e5db;
  font-size: 18px;
  line-height: 1.5;
  margin-top: 16px;
}
.hero-actions {
  gap: 12px;
  margin-top: 24px;
}
.btn,
.chip,
.text-button,
.section-link {
  gap: 8px;
  justify-content: center;
  min-height: var(--control);
  font-weight: 600;
}
.btn {
  border-radius: var(--r);
  padding: 0 20px;
}
.primary {
  background: var(--accent);
  color: var(--dark-ink);
}
.primary:hover {
  filter: brightness(1.08);
}
.secondary,
.hero-save {
  background: var(--raised);
  color: var(--ink);
}
.secondary:hover,
.hero-save:hover,
.chip:hover {
  background: #353630;
}
.hero-save {
  background: #323632;
}
.feature-controls {
  position: absolute;
  bottom: 20px;
  right: 24px;
  gap: 4px;
  background: rgba(18, 21, 18, 0.86);
  color: #f8f6ed;
  border-radius: var(--r);
}
.feature-controls span {
  font-size: var(--caption);
  font-variant-numeric: tabular-nums;
}
.slide-button:hover {
  background: #ffffff17;
}
.shelf {
  margin-top: 36px;
}
.section-head,
.detail-bottom,
.account-strip,
.tools,
.range-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.section-link,
.text-button {
  color: var(--accent);
  font-size: var(--caption);
}
.section-link:hover,
.text-button:hover,
.detail-source a:hover {
  text-decoration: underline;
}
.chips {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: auto;
  scrollbar-width: thin;
  padding: 4px 2px;
  margin: 8px -2px 16px;
}
.chip {
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--r);
  padding: 0 16px;
  flex: none;
  font-size: var(--caption);
}
.chip[aria-pressed="true"] {
  background: #e2d8c3;
  color: var(--dark-ink);
}
.cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.card {
  min-width: 0;
}
.poster,
.row-cover,
.detail-poster {
  background: var(--raised);
  position: relative;
  overflow: hidden;
  border-radius: var(--poster-radius);
}
.poster {
  aspect-ratio: 2/3;
}
.cover-open,
.cover-img,
.art-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cover-open {
  border-radius: var(--poster-radius);
}
.cover-open:focus-visible {
  outline-offset: -4px;
  z-index: 1;
}
.cover-img {
  object-fit: cover;
  transition: transform 0.2s ease-out;
}
.cover-open:hover .cover-img {
  transform: scale(1.025);
}
.art-fallback {
  display: grid;
  place-content: center;
  color: var(--muted);
}
.save-mark {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  z-index: 2;
  color: #fff;
}
.save-mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: #141513ce;
  border-radius: 6px;
  z-index: -1;
}
.save-mark:hover::before,
.save-mark.tracked::before {
  background: var(--surface);
}
.save-mark.tracked,
.hero-save.tracked {
  color: var(--accent);
}
.save-mark.tracked .glyph {
  fill: #dfbb732d;
}
.card-title {
  display: block;
  text-align: left;
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}
.card-title:hover {
  text-decoration: underline;
}
.card-meta {
  gap: 6px;
  color: var(--muted);
  font-size: var(--caption);
  margin-top: 5px;
}
.card-meta .year {
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.pager {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: var(--caption);
}
.shelf .pager {
  justify-content: flex-end;
}
.footer-inner {
  margin-top: 48px;
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: var(--caption);
}
.footer-brand {
  font-size: 18px;
  color: var(--ink);
}
footer .text-button {
  margin-left: auto;
  color: var(--muted);
}
.page {
  max-width: 1100px;
  margin: 32px auto 0;
}
.privacy {
  max-width: 66ch;
  padding-bottom: 32px;
}
.privacy h2 {
  margin-top: 24px;
}
.privacy p {
  margin-top: 8px;
  color: var(--muted);
}
.page-head {
  margin: 0 0 28px;
}
.page-head p {
  margin-top: 8px;
  color: var(--muted);
}
.tools {
  align-items: flex-end;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--surface);
  border-radius: var(--r);
  flex: 1;
  color: var(--muted);
  height: 48px;
}
.searchbox input {
  border: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  height: 100%;
  outline: none;
}
.searchbox:focus-within {
  outline: 2px solid var(--accent);
}
.searchbox input::placeholder {
  color: var(--muted);
}
select {
  background: var(--surface);
  padding: 0 12px;
  border: 0;
  border-radius: var(--r);
  min-height: var(--control);
}
.filter-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--caption);
  color: var(--muted);
}
.tools + .chips {
  margin-top: 16px;
}
.result-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: var(--caption);
  margin: 20px 0 8px;
}
.result-head select {
  background: transparent;
}
.rows {
  display: grid;
}
.story-row {
  width: 100%;
  display: flex;
  gap: 16px;
  align-items: center;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--r);
}
.story-row:nth-child(odd) {
  background: var(--surface);
}
.story-row:hover {
  background: var(--raised);
}
.row-cover {
  width: 40px;
  height: 56px;
  flex: none;
}
.row-text {
  min-width: 0;
  flex: 1;
}
.row-text strong,
.row-text small {
  display: block;
}
.row-text strong {
  font-weight: 600;
  line-height: 1.25;
}
.row-text small {
  margin-top: 4px;
  line-height: 1.25;
  font-size: var(--caption);
}
.row-type,
.row-date,
.row-state {
  font-size: var(--caption);
  color: var(--muted);
}
.row-type {
  width: 110px;
  gap: 8px;
}
.row-date {
  width: 140px;
  font-variant-numeric: tabular-nums;
}
.row-state {
  color: var(--accent);
}
.footnote {
  font-size: var(--caption);
  margin: 24px 0;
}
.empty {
  padding: 56px 20px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--feature-radius);
}
.empty > .glyph {
  color: var(--accent);
  margin-bottom: 16px;
}
.empty p {
  margin: 8px 0 20px;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat {
  padding: 20px;
  background: var(--surface);
  border-radius: var(--r);
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 12px;
}
.stat strong {
  font-size: var(--heading);
  line-height: 1.2;
}
.stat .glyph,
.stat span {
  color: var(--muted);
}
.stat span {
  grid-column: 2;
  font-size: var(--caption);
}
.account-strip {
  padding: 12px 0;
  color: var(--muted);
  font-size: var(--body);
}
.stats + .chips {
  margin-top: 24px;
}
dialog {
  width: min(660px, calc(100% - 32px));
  position: fixed;
  max-height: calc(100dvh - 48px);
  background: var(--surface);
  color: var(--ink);
  border: 0;
  border-radius: var(--feature-radius);
  padding: 32px;
  box-shadow: var(--float);
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: rgba(8, 9, 8, 0.78);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-x {
  position: absolute;
  right: 12px;
  top: 12px;
  background: var(--raised);
  z-index: 2;
}
.detail-top {
  display: flex;
  gap: 24px;
  align-items: center;
  padding-right: 20px;
}
.detail-poster {
  flex: none;
  width: 144px;
  aspect-ratio: 2/3;
}
.detail-copy {
  min-width: 0;
}
.detail-copy h2 {
  margin: 8px 0;
  font-size: 32px;
}
.detail-copy p,
.detail-format {
  color: var(--muted);
  font-size: var(--caption);
}
.detail-format {
  gap: 8px;
}
.detail-copy .synopsis {
  margin-top: 8px;
}
.detail-copy .btn {
  margin-top: 16px;
}
.facts {
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 12px;
}
.facts dt {
  font-size: var(--caption);
  color: var(--muted);
}
.facts dd {
  margin: 2px 0 0;
  line-height: 1.3;
}
.tracker {
  background: var(--ground);
  padding: 20px;
  border-radius: var(--r);
}
.progress-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}
.detail-bottom {
  font-size: var(--caption);
  color: var(--muted);
  min-height: 40px;
}
.detail-bottom .text-button {
  color: var(--muted);
}
.detail-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: var(--caption);
  margin-top: 16px;
}
.detail-source a {
  gap: 6px;
  min-height: 32px;
}
.range-label {
  margin-top: 16px;
  font-size: var(--caption);
}
input[type="range"] {
  accent-color: var(--accent);
  width: 100%;
  min-height: var(--control);
}
.account-modal {
  width: min(440px, calc(100% - 32px));
}
.account-form {
  padding: 12px 0 0;
}
.form-mark {
  margin: 0 0 20px;
}
.account-form > p {
  margin: 12px 0 20px;
  color: var(--muted);
}
.account-form a {
  color: var(--accent);
  text-decoration: underline;
}
.account-form form {
  display: grid;
  gap: 12px;
}
.google-button {
  display: grid;
  place-items: center;
  width: fit-content;
  min-height: var(--control);
  padding: 0;
  border: 0;
  border-radius: var(--r);
  background: transparent;
}
.google-button:hover:not(:disabled) {
  opacity: 0.88;
}
.google-busy,
.google-button[aria-busy="true"] img {
  display: none;
}
.google-button[aria-busy="true"] .google-busy {
  display: block;
}
.google-divider {
  margin: 12px 0;
  color: var(--muted);
  font-size: var(--caption);
}
.account-form form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.account-form form input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--ground);
  height: 48px;
  padding: 0 12px;
  border-radius: var(--r);
}
.account-form small {
  font-size: var(--caption);
}
.form-error {
  color: var(--ink);
  font-size: var(--caption);
}
.form-error:empty {
  display: none;
}
.auth-switch {
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--caption);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--dark-ink);
  font-weight: 600;
  font-size: var(--caption);
  padding: 10px 16px;
  box-shadow: var(--float);
  transition: transform 0.15s ease-out;
}
#toast.shown {
  opacity: 1;
  transform: translate(-50%, 0);
}
.ds.light {
  --ground: #f7f6f0;
  --surface: #eae9e1;
  --raised: #dcdcd2;
  --ink: #191a17;
  --muted: #55574c;
  --accent: #72551a;
  color-scheme: light;
}
.ds {
  padding: 32px;
  background: var(--ground);
  color: var(--ink);
}
.ds main {
  padding: 0;
  max-width: 640px;
}
@media (min-width: 1550px) {
  .hero {
    min-height: 428px;
  }
}
@media (max-width: 1100px) {
  :root {
    --edge: 32px;
  }
  .top-inner {
    gap: 24px;
  }
  .nav a {
    padding-inline: 12px;
  }
  .hero {
    min-height: 360px;
  }
  .hero-content {
    padding-left: 36px;
  }
  .cards {
    gap: 14px;
  }
  .card-title {
    font-size: 16px;
  }
  .film-logo {
    width: 345px;
  }
  .feature-meta {
    gap: 8px;
  }
  .feature-meta span + span {
    padding-left: 8px;
  }
}
@media (max-width: 850px) {
  :root {
    --edge: 24px;
  }
  .top-inner {
    height: 76px;
    gap: 16px;
  }
  .brand {
    gap: 8px;
    font-size: 24px;
  }
  .nav {
    gap: 0;
  }
  .utilities {
    gap: 4px;
  }
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 16px;
  }
  .hero-content {
    width: 57%;
    padding: 32px 0 32px 32px;
  }
  .hero-content p {
    font-size: 16px;
  }
  .hero h1 {
    font-size: 52px;
  }
  .row-type {
    width: 86px;
  }
  .row-date {
    width: 96px;
  }
  .hero-actions {
    gap: 8px;
  }
}
@media (max-width: 640px) {
  :root {
    --edge: 16px;
    --title: 32px;
    --heading: 24px;
  }
  .top-inner {
    height: 64px;
  }
  .brand img {
    width: 28px;
    height: 32px;
  }
  .brand {
    font-size: 26px;
  }
  .utilities {
    gap: 8px;
  }
  .nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 4;
    background: var(--surface);
    justify-content: space-around;
    padding: 4px 12px calc(4px + env(safe-area-inset-bottom));
    box-shadow: 0 -1px 0 var(--line);
  }
  .nav a {
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-height: 48px;
    padding: 5px 8px;
    font-size: 12px;
  }
  .nav a[aria-current="page"] {
    background: transparent;
    color: var(--accent);
  }
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }
  .hero {
    min-height: 420px;
    align-items: flex-end;
  }
  .scene,
  .mando .scene,
  .hope .scene {
    inset: 0;
    width: 100%;
    height: 68%;
    object-position: 58% 34%;
  }
  .scene-shade {
    background: linear-gradient(
      0deg,
      #121815 3%,
      rgba(18, 24, 21, 0.98) 24%,
      rgba(18, 24, 21, 0.88) 40%,
      rgba(18, 24, 21, 0.25) 64%,
      transparent 82%
    );
  }
  .hero-content {
    padding: 168px 20px 24px;
    width: 100%;
  }
  .hero h1 {
    font-size: 44px;
  }
  .film-logo {
    width: 285px;
  }
  .hero-content p {
    margin-top: 12px;
    max-width: 360px;
  }
  .feature-meta {
    margin-top: 14px;
  }
  .hero-actions {
    margin-top: 16px;
  }
  .btn {
    padding: 0 16px;
  }
  .feature-controls {
    top: 10px;
    right: 10px;
    bottom: auto;
  }
  .slide-button {
    width: 38px;
    height: 44px;
  }
  .shelf {
    margin-top: 24px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }
  .section-head {
    gap: 8px;
  }
  .section-link {
    gap: 4px;
  }
  .chips {
    margin: 4px -2px 12px;
  }
  .chip {
    padding: 0 12px;
    gap: 6px;
  }
  .shelf .pager {
    justify-content: center;
  }
  .page {
    margin-top: 20px;
  }
  .page-head {
    margin-bottom: 20px;
  }
  .tools {
    align-items: center;
    gap: 8px;
  }
  .filter-select span {
    display: none;
  }
  .row-type {
    display: none;
  }
  .row-date {
    width: auto;
    max-width: 68px;
    text-align: right;
    font-size: 12px;
  }
  .story-row {
    gap: 8px;
    padding: 8px;
  }
  .row-cover {
    width: 32px;
    height: 48px;
  }
  .row-text small {
    font-size: 12px;
  }
  .row-text strong {
    font-size: 15px;
  }
  .stats {
    gap: 6px;
  }
  .stat {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }
  .stat strong {
    font-size: 24px;
  }
  .account-strip {
    align-items: center;
    gap: 8px;
  }
  .account-strip span {
    max-width: 170px;
  }
  .footer-inner {
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 28px;
    padding-block: 20px;
  }
  .footer-inner span {
    font-size: 12px;
  }
  footer .text-button {
    margin-left: 0;
  }
  .footer-brand {
    font-size: 16px;
  }
  dialog {
    padding: 20px;
    max-height: calc(100dvh - 24px);
  }
  .detail-top {
    gap: 16px;
    align-items: flex-start;
    padding-right: 20px;
  }
  .detail-poster {
    width: 80px;
  }
  .detail-copy h2 {
    font-size: 24px;
  }
  .detail-copy .btn {
    min-height: 44px;
    padding: 8px 12px;
    line-height: 1.25;
  }
  .detail-format {
    padding-right: 8px;
  }
  .dialog-x {
    right: 4px;
    top: 4px;
    background: transparent;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 20px 0;
  }
  .tracker {
    padding: 12px;
  }
  .progress-options {
    gap: 4px;
  }
  .progress-options .chip {
    padding: 0 8px;
  }
  .detail-bottom {
    flex-wrap: wrap;
    gap: 0 8px;
  }
  .detail-source {
    flex-wrap: wrap;
    gap: 4px;
  }
  .account-form {
    padding-top: 20px;
  }
  #toast {
    bottom: calc(76px + env(safe-area-inset-bottom));
    max-width: 85%;
    width: max-content;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.row-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.next-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.neighbor {
  background: var(--raised);
  border-radius: var(--r);
  padding: 12px;
  text-align: left;
  min-height: var(--control);
}
.neighbor small,
.neighbor span {
  display: block;
}
.neighbor span {
  font-weight: 600;
}
.neighbor .glyph {
  margin-left: 4px;
}
@media (max-width: 640px) {
  .row-state {
    flex-direction: column;
    font-size: 12px;
    gap: 0;
  }
  .row-state span {
    max-width: 55px;
    text-align: center;
  }
  .detail .progress-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .detail .progress-options .chip {
    flex-direction: column;
    gap: 2px;
    min-height: 56px;
  }
  .neighbor {
    padding: 8px;
  }
  .neighbor small {
    font-size: 12px;
  }
}
.top {
  position: sticky;
  top: 0;
  z-index: 3;
}
.archive-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.archive-heading > span,
.wall-order select {
  font-size: var(--caption);
  color: var(--muted);
}
.wall-order select {
  padding: 0 8px;
  background: transparent;
}
#poster-wall {
  --columns: 6;
  --grid-gap: 20px;
  --caption-space: 76px;
  position: relative;
  overflow-anchor: none;
}
.wall-window {
  position: absolute;
  inset: 0 0 auto;
}
.wall-window .cards {
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: var(--grid-gap);
  grid-auto-rows: var(--card-height);
}
.wall-window .card-title,
.review-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.atlas-tile {
  display: block;
  position: absolute;
  inset: 0;
  background-size: 500% 400%;
  background-repeat: no-repeat;
}
.stars {
  color: var(--accent);
  font: inherit;
  white-space: nowrap;
  letter-spacing: 0;
}
.diary-summary {
  font-size: var(--caption);
  color: var(--muted);
}
.diary-summary > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.diary-summary p {
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.diary-list {
  display: grid;
  gap: 8px;
}
.diary-row {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 16px;
  background: var(--surface);
  padding: 12px;
  border-radius: var(--r);
}
.diary-art {
  width: 64px;
  height: 90px;
  flex: none;
  position: relative;
  overflow: hidden;
  border-radius: var(--poster-radius);
}
.diary-row strong,
.diary-row small {
  display: block;
}
.diary-row > .glyph {
  margin-left: auto;
}
.review-preview {
  color: var(--muted);
}
.log-modal {
  max-width: 460px;
}
.rating-field {
  margin: 0;
  padding: 0;
  border: 0;
}
.rating-field legend {
  font-weight: 600;
}
.rating-options {
  display: flex;
  gap: 0;
  align-items: center;
}
.rating-options label {
  cursor: pointer;
  position: relative;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
}
.rating-options input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  z-index: 1;
}
.rating-options label span {
  color: var(--muted);
  font-size: 28px;
}
.rating-options label:has(input:checked) span,
.rating-options label:has(~ label input:checked) span {
  color: var(--accent);
}
.rating-options label:focus-within {
  outline: 2px solid var(--accent);
  border-radius: var(--r);
}
.rating-options .text-button {
  margin-left: auto;
}
.account-form textarea {
  font: inherit;
  resize: vertical;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
}
.diary-summary .text-button {
  justify-content: start;
}
@media (max-width: 1100px) {
  #poster-wall {
    --columns: 5;
    --grid-gap: 16px;
  }
}
@media (max-width: 850px) {
  #poster-wall {
    --columns: 4;
    --grid-gap: 12px;
  }
}
@media (max-width: 640px) {
  #poster-wall {
    --columns: 3;
    --grid-gap: 8px;
    --caption-space: 68px;
  }
  .top {
    position: static;
  }
  .wall-window .card-title {
    font-size: 14px;
    margin-top: 6px;
  }
  .wall-window .card-meta {
    font-size: 12px;
    gap: 4px;
    flex-wrap: wrap;
    line-height: 1.1;
    margin-top: 2px;
  }
  .wall-window .card-meta .year {
    display: none;
  }
  .wall-window .card-meta .glyph {
    width: 12px;
  }
  .save-mark {
    right: 0;
    top: 0;
  }
  .archive-heading {
    display: block;
  }
  .archive-heading > span {
    font-size: 12px;
  }
  .wall-order select {
    max-width: 124px;
  }
}
.rating-options label span {
  font-size: 0;
}
.rating-options label span::after {
  content: "☆";
  font-size: 28px;
}
.rating-options label:has(input:checked) span::after,
.rating-options label:has(~ label input:checked) span::after {
  content: "★";
}
.offline-control {
  margin-top: 24px;
}

.timeline-page {
  max-width: none;
  margin-top: 20px;
}
.timeline-page .page-head {
  margin-bottom: 20px;
}
.journey-overview {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(255px, 1fr);
  gap: 16px;
}
.next-feature {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 290px;
  display: flex;
  align-items: center;
  background: #19201b;
  border-radius: var(--feature-radius);
}
.next-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 56%;
  overflow: hidden;
  z-index: -2;
}
.next-art img {
  object-position: 50% 46%;
}
.next-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #19201b 32%,
    rgba(25, 32, 27, 0.98) 44%,
    rgba(25, 32, 27, 0.68) 58%,
    rgba(25, 32, 27, 0) 81%
  );
}
.next-copy {
  width: 72%;
  padding: 32px;
}
.journey-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #edd097;
  font-weight: 600;
  margin-bottom: 12px;
}
.next-feature h2 {
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}
.next-meta {
  color: #eeeae0;
  margin-top: 12px;
}
.next-position {
  margin-top: 4px;
  font-size: 14px;
  color: #d1d5c7;
}
.next-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.next-cta {
  display: inline-flex;
  gap: 14px;
  min-height: 56px;
  font-size: 18px;
  padding-inline: 24px;
}
.next-actions .text-button {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.caught-up .next-cta {
  margin-top: 20px;
}
.journey-progress {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--feature-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.journey-progress h2 {
  font-size: 21px;
}
.completion-number {
  font-size: clamp(44px, 4.3vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  margin: 10px 0 8px;
}
.journey-progress progress {
  width: 100%;
  height: 6px;
  border: none;
  border-radius: 4px;
  appearance: none;
  background: #43463e;
  overflow: hidden;
  color: var(--accent);
}
.journey-progress progress::-webkit-progress-bar {
  background: #43463e;
}
.journey-progress progress::-webkit-progress-value {
  background: var(--accent);
}
.journey-progress progress::-moz-progress-bar {
  background: var(--accent);
}
.journey-progress p,
.era-summary {
  color: var(--muted);
}
.journey-progress p {
  margin: 8px 0 20px;
}
.journey-progress b {
  color: var(--ink);
  font-weight: 600;
}
.era-summary {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
}
.era-summary svg {
  color: var(--accent);
}
.era-map {
  margin: 36px 0;
}
.journey-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.journey-section-head p {
  margin-top: 4px;
  color: var(--muted);
}
.journey-section-head h2 {
  scroll-margin-top: 100px;
}
.era-route {
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  list-style: none;
}
.era-route li {
  position: relative;
  min-width: 0;
}
.era-route li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: #535044;
  pointer-events: none;
}
.era-stop {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 5px 12px;
  gap: 4px;
  border-radius: var(--r);
}
.era-emblem {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  position: relative;
  z-index: 1;
  background: #22231f;
  border-radius: 50%;
  border: 1px solid #535044;
  margin-bottom: 6px;
}
.era-emblem img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.era-stop:hover .era-emblem,
.era-stop[aria-pressed="true"] .era-emblem,
.era-stop.finished .era-emblem {
  border-color: var(--accent);
  background: #333127;
}
.era-stop[aria-pressed="true"] .era-name,
.era-stop.finished .era-count {
  color: var(--accent);
}
.era-name {
  font-weight: 600;
  line-height: 1.18;
  flex: 1;
  text-wrap: balance;
}
.era-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.chronology {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.chronology .journey-section-head {
  margin-bottom: 14px;
}
.story-scope {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
#timeline-list {
  --columns: 1;
  --row-height: 80px;
  --grid-gap: 0px;
  position: relative;
  overflow-anchor: none;
}
#timeline-list .story-row {
  height: var(--row-height);
}
#timeline-list .row-text strong,
#timeline-list .row-text small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
#timeline-list .row-text small {
  -webkit-line-clamp: 1;
}
@media (max-width: 950px) {
  .journey-overview {
    grid-template-columns: minmax(0, 1.8fr) minmax(235px, 1fr);
    gap: 12px;
  }
  .next-copy {
    padding: 24px;
    width: 82%;
  }
  .journey-progress {
    padding: 20px;
  }
  .era-name {
    font-size: 14px;
  }
}
@media (max-width: 700px) {
  .timeline-page {
    margin-top: 14px;
  }
  .journey-overview {
    grid-template-columns: minmax(0, 1fr);
  }
  .next-feature {
    min-height: 248px;
  }
  .next-copy {
    padding: 22px 18px;
    width: 82%;
  }
  .next-feature h2 {
    font-size: 34px;
  }
  .next-feature::after {
    background: linear-gradient(
      90deg,
      #19201b 24%,
      rgba(25, 32, 27, 0.91) 53%,
      rgba(25, 32, 27, 0.22) 90%
    );
  }
  .next-actions {
    gap: 10px;
  }
  .next-cta {
    padding-inline: 18px;
    font-size: 17px;
  }
  .next-position {
    max-width: 210px;
  }
  .journey-progress {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 8px;
    padding: 16px 18px;
  }
  .completion-number {
    font-size: 36px;
    margin: 0;
    grid-column: 2;
    grid-row: 1;
  }
  .journey-progress progress,
  .journey-progress p,
  .era-summary {
    grid-column: 1/-1;
  }
  .journey-progress progress {
    margin-top: 8px;
  }
  .journey-progress p {
    margin-bottom: 10px;
  }
  .era-summary {
    padding-top: 10px;
  }
  .era-map {
    margin: 28px 0;
  }
  .era-route {
    display: block;
    margin-top: 14px;
  }
  .era-stop {
    flex-direction: row;
    gap: 14px;
    min-height: 56px;
    padding: 4px;
    text-align: left;
  }
  .era-emblem {
    width: 44px;
    height: 44px;
    flex: none;
    margin: 0;
  }
  .era-emblem img {
    width: 27px;
    height: 27px;
  }
  .era-name {
    font-size: 16px;
  }
  .era-count {
    padding-right: 4px;
  }
  .era-route li:not(:last-child)::after {
    top: 50%;
    left: 25px;
    height: 100%;
    width: 1px;
  }
  .journey-section-head {
    align-items: flex-start;
  }
  .journey-section-head .text-button {
    font-size: 14px;
    white-space: nowrap;
  }
  .chronology .journey-section-head {
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
  }
  .story-scope {
    gap: 12px;
  }
  .journey-section-head h2 {
    scroll-margin-top: 80px;
  }
  #timeline-list {
    --row-height: 72px;
  }
}
@media (max-width: 390px) {
  .next-copy {
    width: 94%;
  }
  .era-map .journey-section-head {
    flex-wrap: wrap;
    gap: 0 8px;
  }
}
.era-description {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.era-range {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.era-stop.next-era .era-emblem {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #dfbb7314;
}
.era-stop.next-era .era-count {
  color: var(--accent);
}
.row-state.upcoming {
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 700px) {
  .era-description {
    gap: 2px;
  }
  .era-count {
    flex-shrink: 0;
  }
  .next-feature::after {
    background: linear-gradient(
      90deg,
      #19201b 30%,
      #19201b 43%,
      rgba(25, 32, 27, 0.84) 60%,
      rgba(25, 32, 27, 0.22) 90%
    );
  }
}
