@font-face {
  font-family: Golos;
  src: url('/assets/golos-la.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: Golos;
  src: url('/assets/golos-cy.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

:root {
  color-scheme: dark;
  --bg: #141410;
  --card: #21211b;
  --inset: #1a1a14;
  --line: #49483a;
  --ink: #f9f0e2;
  --muted: #c2bdb0;
  --accent: #ddfa64;
  --mint: #ddfa64;
  --heat0: #292b3e;
  --heat1: #43406a;
  --heat2: #6254a0;
  --heat3: #8a75dd;
  --heat4: #ddfa64;
  --page: min(1180px, 100% - 64px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.55 Golos, system-ui, sans-serif;
}
button, select, input { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 720; line-height: 1.04; letter-spacing: -.05em; }
h3 { font-size: 1rem; font-weight: 670; }
.wrap { width: var(--page); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 5;
  top: -8rem;
  left: 1rem;
  padding: .6rem 1rem;
  border-radius: .5rem;
  background: var(--mint);
  color: var(--bg);
}
.skip:focus { top: 1rem; }

.mast {
  min-height: 77px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.brand, .guide-link { display: inline-flex; align-items: center; gap: .66rem; text-decoration: none; }
.brand { font-size: .96rem; font-weight: 680; }
.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 33px;
  aspect-ratio: 1;
  background: var(--accent);
  color: #191a0c;
  border-radius: 10px;
  font-size: 1.17rem;
}
.guide-link, .footer a { color: var(--muted); font-size: .85rem; }
.guide-link:hover, .footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
.guide-link span { color: var(--accent); }

.spread {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 100px);
  align-items: center;
  padding: clamp(42px, 7vw, 95px) 0 clamp(48px, 8vw, 110px);
}
.cover-kicker { color: var(--accent); font-size: .85rem; font-weight: 660; letter-spacing: .045em; }
.cover-copy h1 { margin: .8rem 0 1.24rem; font-size: clamp(2.7rem, 5.8vw, 5.4rem); line-height: .99; }
.cover-copy h1 span { display: block; color: var(--accent); }
.lede { max-width: 29rem; color: var(--muted); font-size: clamp(.95rem, 1.4vw, 1.13rem); }
.cover-actions { display: flex; flex-wrap: wrap; gap: .62rem; margin: 1.7rem 0 1.24rem; }
.primary, .text-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  padding: .58rem .9rem;
  border: 1px solid transparent;
  border-radius: 100px;
  text-align: center;
  font-size: .85rem;
  font-weight: 670;
  line-height: 1.3;
  transition: background-color .18s, color .18s, border-color .18s;
}
.primary { background: var(--accent); color: #191a0c; }
.primary:hover { background: #eafb9a; }
.text-button { background: transparent; color: var(--muted); }
.text-button:hover { background: #ffffff0b; color: var(--ink); }
.secondary { border-color: var(--line); color: var(--ink); }
.secondary span { color: var(--accent); }
.primary:disabled, .text-button:disabled { opacity: .52; }

.import-strip { max-width: 28rem; }
.drop-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .65rem .75rem;
  border: 1px dashed #545342;
  border-radius: 13px;
  background: #1a1a16;
  text-align: left;
  transition: background-color .18s, border-color .18s;
}
.drop-label:hover, .is-over .drop-label { background: #29291c; border-color: var(--accent); }
.drop-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  aspect-ratio: 1;
  border-radius: 9px;
  background: #303020;
  color: var(--accent);
}
.drop-label strong, .drop-label small { display: block; }
.drop-label strong { font-size: .82rem; }
.drop-label small, .local-note { color: var(--muted); font-size: .73rem; }
.local-note { display: flex; align-items: center; gap: .55rem; margin-top: .7rem; }
.lock { position: relative; width: 11px; height: 8px; border: 1px solid var(--mint); border-radius: 2px; }
.lock::before { content: ''; position: absolute; inset: -5px 2px auto; height: 5px; border: 1px solid var(--mint); border-bottom: 0; border-radius: 4px 4px 0 0; }

#status:not(:empty), #error:not([hidden]) {
  margin-top: .85rem;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: .87rem;
  overflow-wrap: anywhere;
}
#error:not([hidden]) { border-color: #965165; background: #362332; color: #ffd5e0; }
.guide {
  scroll-margin-top: 1rem;
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 2rem;
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--inset);
}
.guide h2 { font-size: clamp(1.65rem, 3.2vw, 2.65rem); }
.guide ol { margin: 0; padding: 0; list-style: none; counter-reset: steps; display: grid; gap: 1rem; }
.guide li { position: relative; padding-left: 2.5rem; counter-increment: steps; color: var(--muted); font-size: .85rem; }
.guide li::before {
  content: counter(steps);
  display: grid;
  place-items: center;
  position: absolute;
  left: 0;
  width: 28px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #303020;
  color: var(--accent);
  font-weight: 700;
}
.guide li strong { display: block; }
.guide strong { color: var(--ink); }
.footer { display: flex; justify-content: space-between; gap: .8rem; margin-top: 2rem; padding: 1.2rem 0 1.8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .79rem; }
.footer a { text-decoration: none; font-size: inherit; }

.story-open { overflow: hidden; }
.story-open > :is(.mast, .footer), .story-open #guide { display: none; }
.report {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  height: 100dvh;
  width: min(100%, 1040px);
  margin-inline: auto;
  padding: max(8px, env(safe-area-inset-top)) clamp(.8rem, 3vw, 2rem) max(.45rem, env(safe-area-inset-bottom));
}
.filters { flex: none; display: flex; align-items: end; justify-content: space-between; gap: .55rem; }
.filter-actions { display: flex; align-items: center; gap: .35rem; }
.filter-set { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-set label { display: grid; justify-items: start; gap: .2rem; color: var(--muted); font-size: .72rem; font-weight: 620; }
.filter-set select {
  min-height: 40px;
  width: max-content;
  min-width: 77px;
  max-width: min(40vw, 255px);
  padding: .3rem .48rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-size: .82rem;
}
.report #notices:has(#status:empty):has(#error[hidden]) { display: none; }
.report #notices { flex: none; margin-bottom: .55rem; }
.report #notices > div { margin-top: 0; }

.story-progress {
  flex: none;
  display: flex;
  gap: .35rem;
  height: 25px;
  align-items: stretch;
}
.story-progress button { flex: 1; min-width: 0; border: 0; padding: 0; background: none; border-radius: 5px; }
.story-progress button::after {
  content: '';
  display: block;
  height: 4px;
  border-radius: 5px;
  background: #49473b;
  transition: background-color .18s;
}
.story-progress button.is-seen::after { background: #898778; }
.story-progress button[aria-current]::after, .story-progress button:hover::after { background: var(--accent); }
.story-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #49483a;
  border-radius: 23px;
  background: var(--card);
  scrollbar-width: thin;
}
#chapters { min-height: 100%; display: grid; }
.story-controls { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; padding-top: .48rem; }
.story-controls button:first-child { justify-self: start; }
.story-controls button:last-child { justify-self: end; }
.story-controls #story-position { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.report-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }

.month-chart { display: flex; flex-direction: column; }
.month-chart .eyeline { color: var(--ink); }
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2px, .65vw, 8px); margin-top: .8rem; }
.bar { display: grid; grid-template-rows: minmax(0, clamp(86px, 28vh, 220px)) 23px; align-items: end; min-width: 0; border: 0; background: none; color: var(--muted); padding: 0; }
.bar-shape { width: 100%; height: max(2px, var(--value)); background: linear-gradient(#a28aee, #6d5ac3); border-radius: 5px 5px 2px 2px; transform-origin: bottom; }
.bar:disabled .bar-shape { background: var(--line); }
.bar.is-top .bar-shape, .bar:hover:not(:disabled) .bar-shape, .bar:focus-visible .bar-shape { background: var(--mint); }
.bar-label { font-size: clamp(.53rem, 1vw, .7rem); }
.arrived .bar-shape { animation: grow .62s ease-out both; animation-delay: var(--delay); }
@keyframes grow { from { transform: scaleY(.03); } }
.chart-helper { color: var(--muted); min-height: 1.35em; margin-top: .5rem; font-size: .76rem; }
.month-focus { flex: 1; display: grid; justify-items: start; align-content: center; }
.month-focus > span { font-size: clamp(1.7rem, 4vw, 3.7rem); line-height: 1.2; font-weight: 710; color: var(--accent); }
.heat-scroll { max-width: 100%; overflow: auto; padding: 3px; }
.heat-grid { display: grid; grid-template-columns: 22px repeat(24, minmax(0, 1fr)); min-width: 410px; align-items: center; gap: 3px; }
.week-label, .hour-label { color: var(--muted); font-size: .65rem; line-height: 1; }
.heat-cell, .scale :where(i) { background: var(--heat0); border-radius: 3px; }
.heat-cell { display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 1; min-width: 0; touch-action: manipulation; }
.heat-cell:hover, .heat-cell[aria-current], .heat-cell:focus-visible { outline: 2px solid var(--mint); outline-offset: 0; z-index: 1; }
[data-level="1"] { background: var(--heat1); }
[data-level="2"] { background: var(--heat2); }
[data-level="3"] { background: var(--heat3); }
[data-level="4"] { background: var(--heat4); }
.legend { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .35rem .7rem; padding: .65rem 0 0; font-size: .72rem; color: var(--muted); }
.scale { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.scale i { width: .65rem; height: .65rem; border-radius: 2px; }
.scale span { margin-inline: 3px; }
.calendar-body { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .95rem; }
.cal-month h3 { margin-bottom: .43rem; font-size: .78rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-month:only-child { grid-column: span 2; }
.cal-month:only-child .cal-grid { max-width: 260px; }
.ranking { list-style: none; margin: .32rem 0 0; padding: 0; }
.rank-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .62rem; width: 100%; min-height: 43px; padding: .42rem .24rem .55rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
button.rank-row:hover { background: #232339; }
.rank-index { color: var(--muted); font-size: .69rem; font-variant-numeric: tabular-nums; }
.rank-name { overflow-wrap: anywhere; font-weight: 620; font-size: .84rem; }
.rank-name small { margin-left: .35rem; padding: .15em .4em; border-radius: 5px; background: #393150; color: #e6ddff; font-size: .65rem; }
.rank-row strong { white-space: nowrap; font-size: .79rem; }
.rank-row i { font-style: normal; color: var(--accent); }
.rank-line { position: absolute; left: 0; bottom: 0; width: var(--width); height: 2px; border-radius: 2px; background: var(--accent); transform-origin: left; }
.arrived .rank-line { animation: extend .5s ease-out both; animation-delay: var(--delay); }
@keyframes extend { from { transform: scaleX(0); } }
.tokens { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .72rem; }
.token { max-width: 100%; padding: .2rem .46rem; border: 1px solid #50496c; border-radius: 8px; background: #25223a; color: #ded3ff; font-size: var(--size); font-weight: 630; line-height: 1.35; overflow-wrap: anywhere; }
.token:hover, .token.active { background: var(--accent); color: #191a0c; }
.muted, .micro { color: var(--muted); font-size: .8rem; padding-top: .6rem; }
.emoji-list { display: flex; flex-wrap: wrap; gap: .55rem 1.04rem; margin-top: .64rem; }
.emoji-list span { display: grid; justify-items: center; min-width: 1.9rem; }
.emoji-list b { font-size: 1.43rem; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', system-ui, sans-serif; }
.emoji-list small { color: var(--muted); font-size: .72rem; }
@media (max-width: 760px) {
  :root { --page: min(570px, 100% - 36px); }
  body { background-position: center top; }
  .mast { min-height: 62px; gap: .45rem; }
  .brand { font-size: .82rem; }
  .brand-mark { width: 27px; border-radius: 8px; }
  .guide-link { font-size: .72rem; gap: .25rem; }
  .spread, .guide { grid-template-columns: minmax(0, 1fr); }
  .spread { gap: 1.8rem; padding: 2.15rem 0 2.6rem; }
  .cover-copy h1 { font-size: clamp(2.5rem, 10vw, 4.2rem); margin: .57rem 0 .87rem; }
  .cover-actions { margin: 1.23rem 0 .95rem; gap: .47rem; }
  .primary, .text-button { padding-inline: .65rem; font-size: .78rem; gap: .35rem; }
  .guide { gap: .9rem; }
  .report { padding-inline: .75rem; }
  .story-stage { border-radius: 17px; }
  .filter-actions { flex: none; }
  .filter-actions button { min-width: 39px; min-height: 40px; font-size: 1.05rem; }
  .filter-actions .action-label { display: none; }
  .filter-set select { min-width: 54px; max-width: 33vw; padding-inline: .3rem; font-size: .74rem; }
  .filter-set { gap: .35rem; }
  .bar { grid-template-rows: minmax(0, clamp(80px, 24vh, 170px)) 19px; }
  .heat-grid { min-width: 360px; gap: 2px; }
  .calendar-body { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .72rem .55rem; }
  .cal-grid { gap: 2px; }
  .ranking { margin-top: .1rem; }
  .rank-row { min-height: 35px; }
}

@media (max-width: 360px) {
  :root { --page: calc(100% - 28px); }
  .brand { gap: .42rem; }
  .cover-copy h1 { font-size: 2.35rem; }
  .cover-actions { column-gap: .32rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* The cover pairs an oversized title with a printed-poster treatment. */
.spread { gap: clamp(1.4rem, 5vw, 5rem); }
.cover-copy h1 { font-weight: 820; letter-spacing: -.039em; }
.lede { max-width: 32ch; }
.intro-art {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  aspect-ratio: 1.16;
  overflow: hidden;
  border: 1px solid #444536;
  border-radius: 46% 46% 5% 5%;
  background: radial-gradient(ellipse at 77% 63%, #3d410b, transparent 55%), #0a0a08;
}
.art-orbit {
  position: absolute;
  inset: 12% 7%;
  border: 1px solid #ddfa6470;
  border-radius: 50%;
  transform: rotate(-26deg);
}
.art-orbit + .art-orbit { transform: rotate(26deg); }
.art-stamp {
  display: grid;
  place-items: center;
  position: absolute;
  right: 5%;
  bottom: 6%;
  width: 16%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ff704f;
  color: #21160f;
  font-size: clamp(1.1rem, 4vw, 3.5rem);
  line-height: 1;
}

.report { width: min(100%, 1170px); }
.story-progress { gap: clamp(2px, .5vw, 7px); }
.story-stage { border-radius: clamp(12px, 2.2vw, 28px); touch-action: pan-y pinch-zoom; }
.story-slide {
  --paper: #f9f0e2;
  --ink: #1a1913;
  --muted: color-mix(in srgb, var(--ink) 78%, var(--paper));
  --accent: var(--ink);
  --mint: var(--ink);
  --line: color-mix(in srgb, var(--ink) 30%, transparent);
  --heat0: color-mix(in srgb, var(--ink) 9%, var(--paper));
  --heat1: color-mix(in srgb, var(--ink) 26%, var(--paper));
  --heat2: color-mix(in srgb, var(--ink) 48%, var(--paper));
  --heat3: color-mix(in srgb, var(--ink) 71%, var(--paper));
  --heat4: var(--ink);
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-width: 0;
  display: grid;
  align-items: center;
  padding: clamp(1.1rem, 5vw, 4.5rem);
  background: var(--paper);
  color: var(--ink);
}
.story-slide.arrived .slide-content { animation: enter .38s cubic-bezier(.2,.65,.35,1) both; }
.story-slide.arrived .slide-art { animation: art-in .6s cubic-bezier(.2,.65,.35,1) both; }
@keyframes enter { from { opacity: .45; transform: translateX(12px); } }
@keyframes art-in { from { opacity: .25; transform: translateX(3%); } }
.slide-content { position: relative; min-width: 0; }
.chapter-head { margin-bottom: clamp(.65rem, 3vh, 1.55rem); }
.chapter-label {
  width: fit-content;
  margin-bottom: clamp(.65rem, 2.7vh, 1.4rem);
  padding-bottom: .2rem;
  border-bottom: 1px solid currentColor;
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.chapter-head h2 {
  max-width: 15ch;
  font-size: clamp(2.35rem, 6.4vw, 6.1rem);
  font-weight: 830;
  line-height: .98;
  overflow-wrap: anywhere;
}
.chapter-head p { max-width: 47ch; margin-top: .75rem; font-weight: 570; overflow-wrap: anywhere; }
.chapter-head h2:focus { outline: none; }
.poster .chapter-head h2 { max-width: 19ch; font-size: clamp(1.9rem, 5.1vw, 4.65rem); }
.hero-number {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(3.9rem, 13vw, 12.25rem);
  font-weight: 865;
  line-height: .92;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.compact-number { font-size: clamp(2.65rem, 10vw, 9.65rem); }
.word-size { font-size: clamp(3.4rem, 10vw, 9.4rem); }
.hero-description { margin-top: .55rem; font-size: clamp(1rem, 2.25vw, 1.65rem); font-weight: 650; }
.record-date { max-width: 33ch; margin-top: 1.35rem; font-weight: 670; }
.poster-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  max-width: 100%;
  margin-top: clamp(1rem, 5vh, 2.45rem);
}
.poster-fact {
  display: grid;
  align-content: start;
  gap: .25rem;
  width: max-content;
  max-width: min(100%, 17rem);
  min-width: min(100%, 7.1rem);
  padding-top: .5rem;
  border-top: 1px solid currentColor;
  overflow-wrap: anywhere;
}
.poster-fact strong { font-size: clamp(1.05rem, 2.25vw, 1.72rem); line-height: 1.13; }
.poster-fact span { font-size: .79rem; }
.slide-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.slide-art > * { position: absolute; display: block; }
.slide-art > b {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(13rem, 48vw, 44rem);
  font-weight: 850;
  line-height: .85;
  user-select: none;
}
.slide-details { max-width: 35rem; margin-top: 1rem; }
.slide-details summary { width: fit-content; padding: .5rem .75rem; border: 1px solid currentColor; border-radius: 2rem; font-weight: 650; font-size: .85rem; cursor: pointer; }
.slide-details[open] summary { margin-bottom: 1rem; }
.rank-row { border-color: var(--line); }
.rank-name small { background: var(--ink); color: var(--paper); }
button.rank-row:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.rank-line { height: 1px; opacity: .72; }
.story-slide .text-button { border-color: currentColor; color: var(--ink); }
.story-slide .primary { background: var(--ink); color: var(--paper); }

#overview { --paper: #090909; --ink: #f9f0e2; padding-bottom: clamp(1.1rem, 5vw, 4.5rem); align-items: end; }
#overview .chapter-head h2 { font-size: clamp(4.65rem, 14vw, 13rem); letter-spacing: -.05em; }
#overview .chapter-label, .cover-prompt span { color: #ddfa64; }
#overview .chapter-head p, .cover-prompt { width: fit-content; padding: .25rem .5rem; padding-left: 0; background: #090909d6; box-shadow: -.45rem 0 #090909d6; }
.cover-prompt { font-size: .82rem; font-weight: 660; }
.cover-prompt span { margin-right: .4rem; }

#volume { --paper: #ddfa64; }
#volume .slide-art i {
  top: 50%;
  right: -9%;
  width: 51%;
  aspect-ratio: 1.5;
  border: clamp(2px, .6vw, 6px) solid #292e16;
  border-radius: 54% 50% 48% 13%;
  opacity: .22;
  transform: translateY(-58%) rotate(-17deg);
}
#volume .slide-art i:nth-child(2) { transform: translate(-12%, -30%) rotate(-17deg); }
#volume .slide-art i:nth-child(3) { transform: translate(-24%, -2%) rotate(-17deg); }

#monthly { --paper: #24246d; --ink: #f8f0e6; }
#monthly .chapter-head h2 { color: #dad5ff; }
.month-chart { max-width: 56rem; }
.bars { background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), #ffffff24 calc(25% - 1px) 25%); }
.bar-shape { border-radius: 3px 3px 0 0; background: #a49df8; }
.bar.is-top .bar-shape, .bar:hover:not(:disabled) .bar-shape, .bar:focus-visible .bar-shape { background: #ddfa64; }
.month-focus { gap: .8rem; }
#record { --paper: #ff744f; }
#record .slide-art b { right: 1%; color: #b12e14; opacity: .32; }
#streak { --paper: #ebdbfe; }
#streak .slide-art i {
  right: -12%; top: 7%;
  width: 43%; height: 6%;
  background: #946ad7;
  transform: rotate(-32deg);
  opacity: .35;
}
#streak .slide-art i:nth-child(2) { top: 25%; width: 49%; }
#streak .slide-art i:nth-child(3) { top: 43%; width: 55%; }
#streak .slide-art i:nth-child(4) { top: 61%; width: 61%; }
#streak .slide-art i:nth-child(5) { top: 79%; width: 67%; }

#rhythm { --paper: #20221a; --ink: #e5f087; }
#rhythm .chapter-head h2 { font-size: clamp(3.7rem, 10vw, 9.75rem); }
#rhythm .slide-art i {
  right: -16%; top: -69%;
  width: 69%; aspect-ratio: 1;
  border: 1px solid #e5f0874f;
  border-radius: 50%;
}
#rhythm .slide-art i + i { right: -12%; top: -59%; }
.rhythm-chart { width: min(100%, 48rem); }
.heat-scroll { touch-action: pan-x pan-y; }
#calendar { --paper: #f9f0e2; --ink: #2d3d24; }
#calendar .chapter-head h2 { max-width: none; font-size: clamp(1.75rem, 5vw, 4.25rem); }
.calendar-body { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .65rem .8rem; width: min(100%, 46rem); }
#calendar .legend { max-width: 46rem; }
#reply { --paper: #fcdbed; --ink: #401c33; }
#reply .slide-art b { color: #e3a9cf; }

#chats { --paper: #aaceff; --ink: #18294a; }
#people { --paper: #f7cc50; --ink: #312417; }
#chats .chapter-head h2, #people .chapter-head h2 { max-width: 20ch; font-size: clamp(1.8rem, 5.75vw, 5.4rem); }
#chats .slide-art i {
  width: 43%; aspect-ratio: 1.8; right: -12%; top: 39%;
  border-radius: 50% 50% 8% 50%;
  background: #477fc1;
  opacity: .22;
  transform: rotate(22deg);
}
#chats .slide-art i:nth-child(2) { right: -3%; top: 21%; }
#chats .slide-art i:nth-child(3) { right: 6%; top: 3%; }
#people .slide-art i {
  width: min(35%, 20rem); aspect-ratio: 1; right: 5%; top: 12%;
  border: 1px solid #765c31;
  border-radius: 50%;
  opacity: .6;
}
#people .slide-art i:nth-child(2) { right: -8%; top: 30%; }
#people .slide-art i:nth-child(3) { right: -1%; top: 58%; }

#words { --paper: #bafccd; --ink: #142b24; }
#words .slide-art b { color: #47a677; opacity: .32; top: 34%; }
#words .chapter-head h2 { font-size: clamp(2rem, 8.5vw, 7rem); }
.tokens { max-width: 50rem; }
.token { border-color: var(--ink); border-radius: 2rem; background: var(--paper); color: var(--ink); }
.token:hover, .token.active { color: var(--paper); }

#expression { --paper: #ffcae4; --ink: #522847; }
#expression .slide-art i {
  width: 46%; aspect-ratio: 1; right: -21%; top: 13%;
  border: clamp(1px, 1vw, 8px) dotted #ad578b;
  border-radius: 50%;
  opacity: .35;
}
#expression .slide-art i:nth-child(2) { right: -12%; top: 23%; }
.expression-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.7rem, 3vw, 2.5rem); max-width: 50rem; }
.expression-grid > div { padding-top: .65rem; border-top: 1px solid var(--ink); }
.featured-emoji, .expression-total { min-height: 1.5em; font-size: clamp(2.7rem, 7vw, 6.4rem); font-weight: 830; }
.featured-emoji span { margin-left: .45rem; font-size: .75rem; }
.featured-emoji b { font-weight: 400; }
.emoji-list { gap: .25rem .6rem; }

#media { --paper: #232650; --ink: #efeafa; }
#media .slide-art i {
  width: 32%; aspect-ratio: 1.45; right: 0; top: 23%;
  border: 2px solid #726ac5;
  background: #3e407c;
  border-radius: 8%;
  transform: rotate(9deg);
}
#media .slide-art i:nth-child(2) { right: 8%; top: 35%; transform: rotate(-5deg); }
#media .slide-art i:nth-child(3) { right: 14%; top: 46%; transform: rotate(-19deg); }

#length { --paper: #fdbea4; --ink: #412111; }
#length .slide-art b { top: 55%; right: -1%; color: #a24d27; opacity: .25; font-size: clamp(9rem, 35vw, 30rem); }
#bookends { --paper: #dee5c9; --ink: #273322; }
.bookends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 53rem; }
.bookends > div { border-top: 2px solid var(--ink); padding: .8rem 0; }
.bookends .eyeline, .bookends span { color: var(--muted); font-size: .79rem; }
.bookends strong { display: block; margin: .35rem 0; font-size: clamp(1.1rem, 3.5vw, 2.85rem); line-height: 1.1; }
.bookends span { overflow-wrap: anywhere; }
#finale { --paper: #ddfa64; }
#finale .slide-art b { color: #849923; opacity: .45; }
#finale .chapter-head h2 { max-width: 13ch; }
#finale .report-actions { margin-top: clamp(1.25rem, 5vh, 3rem); }

@media (max-width: 760px) {
  .intro-art { width: min(100%, 27rem); justify-self: start; }
  .story-slide { padding: clamp(.95rem, 5vw, 2rem); }
  .calendar-body { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: .55rem; }
  .chapter-label { font-size: .65rem; }
  .slide-art > b { right: -6%; }
  #overview .chapter-head h2 { line-height: 1; }
}
@media (max-width: 480px) {
  .hero-number { font-size: clamp(3.4rem, 15.3vw, 5rem); }
  .compact-number { font-size: clamp(2.65rem, 11vw, 3.6rem); }
  .slide-art { opacity: .8; }
  .poster-facts { gap: .65rem; }
  .poster-fact { max-width: 12rem; }
  .expression-grid { grid-template-columns: minmax(0, 1fr); }
  .expression-grid h3 { font-size: .87rem; }
  .featured-emoji, .expression-total { line-height: 1.15; min-height: auto; margin-top: .3rem; }
  .bookends { grid-template-columns: minmax(0, 1fr); }
}

.intro-art {
  background: #090909 url('/assets/cover-v4.webp') 60% center / cover no-repeat;
}
#overview {
  background: linear-gradient(90deg, #090909 4%, #090909d9 26%, #09090900 65%),
    var(--paper) url('/assets/cover-v4.webp') 78% 49% / auto 100% no-repeat;
}
#overview.month-cover .chapter-head h2 {
  font-size: clamp(2.65rem, 9vw, 8rem);
}
#quiz { --paper: #130d26; --ink: #f3eaff; }
#quiz .slide-art b { color: #a168ef; opacity: .36; right: 6%; }
.quiz-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
#quiz .quiz-choices button { color: var(--ink); background: var(--paper); }
#quiz .quiz-choices button.correct { color: #171a0b; background: #ddfa64; border-color: #ddfa64; }
#quiz .quiz-choices button:hover, #quiz .quiz-choices button[aria-pressed="true"]:not(.correct) { border-color: #c29bf9; }
#quiz-result { max-width: 39ch; min-height: 3.2em; margin-top: .8rem; font-size: .93rem; }
@media (max-width: 760px) {
  #overview {
    background: linear-gradient(0deg, #090909 6%, #09090900 58%),
      var(--paper) url('/assets/cover-v4.webp') 57% 18% / auto 85% no-repeat;
  }
}
