:root {
  --ink: #090a0c;
  --ink-soft: #101216;
  --panel: #14171b;
  --panel-2: #191c21;
  --paper: #f1eee6;
  --paper-muted: #a8a9a5;
  --line: rgba(241, 238, 230, 0.14);
  --line-strong: rgba(241, 238, 230, 0.28);
  --acid: #d8ff43;
  --acid-soft: #c3e83c;
  --orange: #ff6a3d;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
  --header-h: 82px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 72% -20%, rgba(129, 151, 79, 0.13), transparent 38%),
    var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.noise {
  position: fixed;
  z-index: 99;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 clamp(22px, 4.5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 12, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  color: var(--paper);
  text-decoration: none;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
}

.brand-lockup {
  display: flex;
  justify-self: start;
  align-items: center;
  min-width: 0;
}

.brand-view {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.header-stats {
  margin-left: 19px;
  color: #858985;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.header-stats strong {
  color: var(--acid);
  font-size: 11px;
  font-weight: 500;
}

.header-stats i {
  margin: 0 7px;
  color: #4e514e;
  font-style: normal;
}

.brand i {
  width: 7px;
  height: 7px;
  margin: 0 4px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px rgba(216, 255, 67, 0.8);
}

.view-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.025);
}

.view-button {
  position: relative;
  padding: 11px 19px;
  border: 0;
  border-radius: 99px;
  color: #a5a7a3;
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 180ms ease, background 180ms ease;
}

.view-button span {
  margin-right: 5px;
  opacity: 0.68;
}

.view-button:hover {
  color: var(--paper);
}

.view-button.is-active {
  color: var(--ink);
  background: var(--acid);
}

.about-button {
  justify-self: end;
  padding: 8px 0;
  border: 0;
  color: var(--paper-muted);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-button span {
  display: inline-block;
  margin-left: 6px;
  color: var(--acid);
  transition: transform 180ms ease;
}

.about-button:hover span {
  transform: translate(2px, -2px);
}

main {
  min-height: calc(100vh - var(--header-h));
}

.hero {
  position: relative;
  min-height: 300px;
  padding: 48px clamp(22px, 4.5vw, 72px) 42px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero.is-collapsed {
  display: none;
}

.hero-kicker,
.eyebrow {
  margin: 0;
  color: var(--paper-muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.signal-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 9px 1px 1px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 11px var(--acid);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.42fr);
  gap: 70px;
  align-items: end;
  max-width: none;
  margin-top: 31px;
}

.hero h1 {
  margin: 0;
  max-width: none;
  color: var(--paper);
  font-size: clamp(64px, 7vw, 120px);
  font-weight: 600;
  line-height: 0.84;
  letter-spacing: -0.075em;
  white-space: nowrap;
}

.hero-note {
  max-width: 410px;
  padding-bottom: 8px;
}

.hero-note > p {
  margin: 0;
  color: #bebfb9;
  font-size: 15px;
  line-height: 1.65;
}

.collection-stats {
  display: flex;
  gap: 26px;
  margin-top: 25px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  color: var(--paper);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.stat span {
  display: block;
  margin-top: 3px;
  color: #727572;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-orbit {
  position: absolute;
  right: -105px;
  bottom: -205px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(216, 255, 67, 0.12);
  border-radius: 50%;
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  content: "";
  inset: 55px;
  border: 1px solid rgba(216, 255, 67, 0.09);
  border-radius: 50%;
}

.hero-orbit::after {
  inset: 125px;
}

.hero-orbit span {
  position: absolute;
  top: 44px;
  left: 101px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
}

.hero-orbit span:nth-child(2) {
  top: 158px;
  left: 54px;
  width: 3px;
  height: 3px;
}

.hero-orbit span:nth-child(3) {
  top: 94px;
  left: 225px;
  width: 4px;
  height: 4px;
}

.view-shell {
  min-height: 650px;
  padding: 46px clamp(22px, 4.5vw, 72px) 100px;
}

.view-shell.is-compact-view {
  padding-top: 30px;
}

.view-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  max-width: none;
  margin-bottom: 25px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--paper-muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-label::before {
  content: "";
  width: 17px;
  height: 1px;
  background: var(--acid);
}

.subtle-count,
.sort-note {
  color: #686b68;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: clamp(38px, 5.5vw, 90px);
  width: 100%;
  max-width: none;
}

.ranking-layout.is-complete {
  display: block;
}

.ranked-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px clamp(18px, 2.4vw, 38px);
  align-items: start;
}

@media (min-width: 1100px) {
  .ranked-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ranking-layout.is-complete .ranked-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .ranked-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .ranking-layout.is-complete .ranked-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (min-width: 1800px) {
  .ranked-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .ranking-layout.is-complete .ranked-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 44px clamp(18px, 2.4vw, 38px);
  align-items: start;
}

.book-card {
  position: relative;
  min-width: 0;
  animation: rise-in 480ms both;
  animation-delay: calc(var(--index, 0) * 45ms);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.book-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.book-cover-wrap {
  position: relative;
  aspect-ratio: 0.655;
  overflow: hidden;
  border-radius: 2px;
  background: #24272d;
  box-shadow: 0 17px 40px rgba(0, 0, 0, 0.36);
  transform: translateZ(0);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 240ms ease;
}

.book-trigger:hover .book-cover-wrap {
  transform: translateY(-6px) rotate(-0.35deg);
  box-shadow: 0 25px 52px rgba(0, 0, 0, 0.5);
}

.book-card.is-readonly .book-cover-wrap {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.book-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.02);
  transition: filter 200ms ease, transform 500ms ease;
}

.book-trigger:hover .book-cover {
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.015);
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: space-between;
  padding: 18px;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% 20%, var(--fallback-accent, #59655e), transparent 24%),
    linear-gradient(145deg, #23262b, #0d0f12 64%);
}

.cover-fallback::before {
  position: absolute;
  width: 180%;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.22);
  transform: translate(-25%, 120px) rotate(-32deg);
  box-shadow: 0 36px 0 rgba(255, 255, 255, 0.08), 0 72px 0 rgba(255, 255, 255, 0.04);
}

.cover-fallback strong,
.cover-fallback span {
  position: relative;
  z-index: 1;
}

.cover-fallback strong {
  align-self: center;
  max-width: 90%;
  font-size: clamp(18px, 2vw, 31px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.cover-fallback span {
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.book-cover-wrap.has-image .cover-fallback,
.queue-cover.has-image .cover-fallback,
.dialog-book.has-image > .cover-fallback {
  display: none;
}

.rank-marker {
  position: absolute;
  z-index: 3;
  top: -12px;
  left: -13px;
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.year-marker {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  padding: 7px 9px;
  border: 1px solid rgba(216, 255, 67, 0.55);
  border-radius: 2px;
  color: var(--acid);
  background: rgba(9, 10, 12, 0.84);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.current-ribbon {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  padding: 8px 9px;
  border-radius: 2px;
  color: var(--ink);
  background: var(--acid);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.book-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 14px;
}

.book-title {
  margin: 0;
  overflow: hidden;
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-author,
.book-date {
  margin: 4px 0 0;
  color: #969995;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rating-chip {
  min-width: 44px;
  padding-top: 1px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 17px;
  text-align: right;
}

.rating-chip small {
  color: #5c5e5b;
  font-size: 9px;
}

.empty-ranking {
  grid-column: 1 / -1;
  padding: 80px 30px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.empty-ranking h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.empty-ranking p {
  max-width: 440px;
  margin: 13px auto 0;
  color: var(--paper-muted);
  font-size: 13px;
  line-height: 1.65;
}

.queue-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  padding-left: clamp(22px, 2.5vw, 38px);
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.queue-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}

.queue-heading h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.queue-heading span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--paper-muted);
  font-family: var(--mono);
  font-size: 9px;
}

.queue-intro {
  margin: 0 0 19px;
  color: #747773;
  font-size: 13px;
  line-height: 1.55;
}

.queue-list {
  max-height: calc(100vh - 238px);
  padding-right: 8px;
  padding-bottom: 20px;
  overflow-y: auto;
  scrollbar-color: #373a39 transparent;
  scrollbar-width: thin;
}

.queue-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.queue-cover {
  position: relative;
  width: 48px;
  aspect-ratio: 0.655;
  overflow: hidden;
  background: #24272d;
}

.queue-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.62);
}

.queue-cover .cover-fallback {
  padding: 6px;
}

.queue-cover .cover-fallback strong {
  font-size: 7px;
  letter-spacing: -0.04em;
}

.queue-cover .cover-fallback span {
  display: none;
}

.queue-copy {
  min-width: 0;
}

.queue-copy strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-copy span {
  display: block;
  margin-top: 4px;
  color: #929591;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rate-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--acid);
  transition: border 160ms ease, background 160ms ease, color 160ms ease;
}

.queue-item:hover .rate-arrow {
  border-color: var(--acid);
  color: var(--ink);
  background: var(--acid);
}

.queue-item.is-current {
  margin: 0 0 8px;
  padding: 13px 10px;
  border: 1px solid rgba(216, 255, 67, 0.32);
  border-radius: 3px;
  background: rgba(216, 255, 67, 0.045);
}

.series-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(38px, 4vw, 76px);
  max-width: none;
}

@media (min-width: 1700px) {
  .series-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 48px;
  }

  .series-books.is-long {
    grid-template-columns: repeat(var(--book-count), minmax(64px, 1fr));
  }
}

.series-block {
  display: grid;
  grid-template-columns: minmax(170px, 0.31fr) minmax(0, 0.69fr);
  gap: clamp(22px, 2.2vw, 40px);
  min-width: 0;
  padding: 38px 0 45px;
  border-top: 1px solid var(--line);
  animation: rise-in 480ms both;
  animation-delay: calc(var(--index, 0) * 55ms);
}

.series-number {
  display: block;
  margin-bottom: 30px;
  color: #555855;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.series-copy h2 {
  margin: 0;
  max-width: 250px;
  font-size: clamp(23px, 1.8vw, 33px);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.06em;
}

.series-copy p {
  max-width: 235px;
  margin: 12px 0 0;
  color: #939692;
  font-size: 12px;
  line-height: 1.55;
}

.series-score {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 20px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 20px;
}

.series-score small {
  color: #646764;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.series-books {
  display: grid;
  grid-template-columns: repeat(var(--book-count), minmax(0, 118px));
  gap: 20px 14px;
  align-items: start;
  align-self: start;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-color: #373a39 transparent;
  scrollbar-width: thin;
}

.series-books.is-long {
  grid-template-columns: repeat(var(--book-count), minmax(68px, 1fr));
  width: 100%;
  max-width: 470px;
}

.series-books .book-card {
  width: 100%;
  max-width: 118px;
}

.series-books.is-long .book-card {
  max-width: none;
}

.series-books .book-title {
  font-size: 12px;
}

.series-books .book-author,
.series-books .book-date {
  font-size: 10px;
}

.book-card.is-todo .book-cover-wrap {
  box-shadow: none;
}

.book-card.is-todo .book-cover {
  filter: grayscale(1) saturate(0) contrast(0.8) brightness(0.65);
  opacity: 0.46;
}

.book-card.is-todo .cover-fallback {
  filter: grayscale(1);
  opacity: 0.5;
}

.book-card.is-todo .book-cover-wrap::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.25);
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 6px),
    rgba(218, 220, 216, 0.22);
  mix-blend-mode: screen;
}

.book-card.is-todo .book-trigger:hover .book-cover-wrap::after {
  border-color: rgba(202, 255, 51, 0.72);
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 6px),
    rgba(218, 220, 216, 0.15);
}

.book-card.is-todo .book-trigger:hover .todo-stamp {
  border-color: var(--acid);
  color: var(--acid);
}

.todo-stamp {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: white;
  background: rgba(9, 10, 12, 0.68);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transform: translate(-50%, -50%) rotate(-4deg);
}

.book-card.is-todo .book-title {
  color: #888a87;
}

.date-grid {
  max-width: none;
}

.date-flow {
  padding-top: 27px;
  border-top: 1px solid var(--line);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  padding: 33px clamp(22px, 4.5vw, 72px) 36px;
  border-top: 1px solid var(--line);
  color: #676966;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.site-footer span {
  color: #444744;
}

.site-footer a {
  justify-self: end;
  color: #858784;
  text-decoration: none;
}

dialog {
  width: min(860px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 1px solid #383b3e;
  color: var(--paper);
  background: #121418;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.8);
}

dialog::backdrop {
  background: rgba(3, 4, 5, 0.78);
  backdrop-filter: blur(8px);
}

.rating-dialog form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(320px, 1.22fr);
}

.dialog-close {
  position: absolute;
  z-index: 3;
  top: 15px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(9, 10, 12, 0.54);
  cursor: pointer;
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
}

.dialog-book {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: #25282c;
}

.dialog-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-book::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(8, 9, 11, 0.92), transparent 46%);
}

.dialog-book-copy {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 23px;
  left: 22px;
}

.dialog-book-copy h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.dialog-book-copy p {
  margin: 8px 0 0;
  color: #c6c7c2;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rating-editor {
  align-self: center;
  padding: 56px clamp(30px, 5vw, 70px);
}

.rating-editor output {
  display: inline-block;
  margin-top: 25px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: clamp(74px, 8vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.09em;
}

.out-of {
  margin-left: 8px;
  color: #5d605e;
  font-family: var(--mono);
  font-size: 12px;
}

.rating-editor input[type="range"] {
  width: 100%;
  height: 2px;
  margin: 54px 0 0;
  accent-color: var(--acid);
  cursor: ew-resize;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #5f625f;
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.finish-date-editor {
  margin-top: 29px;
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.finish-date-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.finish-date-heading label {
  color: #b9bbb7;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.previous-day {
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #a5a7a3;
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.previous-day:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.finish-date-editor input[type="date"] {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--paper);
  background: #0c0e11;
  color-scheme: dark;
  font-family: var(--mono);
  font-size: 12px;
}

.finish-date-editor p {
  margin: 9px 0 0;
  color: #5f625f;
  font-size: 9px;
  line-height: 1.45;
}

.finish-date-editor:not([hidden]) + .dialog-actions {
  margin-top: 24px;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin-top: 40px;
}

.save-rating,
.remove-rating,
.about-done {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--acid);
  color: var(--ink);
  background: var(--acid);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.remove-rating {
  border-color: var(--line-strong);
  color: #858784;
  background: transparent;
}

.remove-rating[hidden] {
  display: none;
}

.save-note {
  margin: 17px 0 0;
  color: #5f625f;
  font-size: 9px;
  line-height: 1.5;
}

.about-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.about-dialog form {
  position: relative;
  padding: clamp(50px, 8vw, 90px);
  background:
    radial-gradient(circle at 100% 0, rgba(216, 255, 67, 0.13), transparent 35%),
    #121418;
}

.about-dialog h2 {
  margin: 23px 0 33px;
  font-size: clamp(49px, 7vw, 80px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.about-dialog h2 em {
  color: var(--acid);
  font-style: normal;
}

.about-dialog form > p:not(.eyebrow) {
  max-width: 470px;
  color: #a6a8a4;
  font-size: 13px;
  line-height: 1.75;
}

.rating-transfer {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.rating-transfer > p:not(.eyebrow) {
  margin: 10px 0 0;
  color: #888b87;
  font-size: 11px;
  line-height: 1.55;
}

.transfer-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.transfer-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: border-color 160ms ease, color 160ms ease;
}

.transfer-button:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.transfer-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.rating-transfer .transfer-status {
  min-height: 16px;
  margin-top: 10px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.about-done {
  margin-top: 25px;
}

noscript {
  display: block;
  padding: 30px;
  color: var(--ink);
  background: var(--acid);
  text-align: center;
}

@media (max-width: 1000px) {
  .hero {
    min-height: 280px;
  }

  .hero-grid {
    grid-template-columns: 1fr 300px;
    gap: 35px;
  }

  .ranking-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 38px;
  }

  .ranked-grid,
  .date-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .series-block {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 1200px) {
  .header-stats {
    display: none;
  }
}

@media (max-width: 1200px) {
  .series-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 66px;
  }

  .site-header {
    grid-template-columns: auto 1fr;
    padding: 0 18px;
  }

  .brand {
    font-size: 20px;
  }

  .brand-view {
    display: none;
  }

  .view-switcher {
    justify-self: end;
  }

  .view-button {
    padding: 9px 10px;
    font-size: 9px;
  }

  .view-button span {
    display: none;
  }

  .about-button {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 40px 20px 38px;
  }

  .hero-grid {
    display: block;
    margin-top: 27px;
  }

  .hero h1 {
    font-size: clamp(42px, 13.4vw, 70px);
    line-height: 0.9;
  }

  .hero-note {
    max-width: 480px;
    margin-top: 30px;
  }

  .hero-orbit {
    opacity: 0.65;
  }

  .view-shell {
    padding: 35px 20px 70px;
  }

  .ranking-layout {
    display: flex;
    flex-direction: column;
  }

  .queue-panel {
    position: static;
    order: -1;
    max-height: none;
    padding: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.018);
  }

  .queue-list {
    max-height: 380px;
  }

  .series-block {
    display: block;
  }

  .series-number {
    margin-bottom: 17px;
  }

  .series-copy {
    margin-bottom: 31px;
  }

  .series-books {
    grid-template-columns: repeat(var(--book-count), minmax(108px, 126px));
    gap: 22px 12px;
  }

  .series-books.is-long {
    grid-template-columns: repeat(var(--book-count), minmax(96px, 108px));
    max-width: none;
  }

  .series-books .book-title {
    font-size: 12px;
  }

  .rating-dialog form {
    display: block;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }

  .dialog-book {
    min-height: 315px;
    max-height: 44vh;
  }

  .rating-editor {
    padding: 40px 26px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p:nth-child(2) {
    display: none;
  }
}

@media (max-width: 480px) {
  .ranked-grid,
  .date-grid {
    gap: 34px 13px;
  }

  .book-title {
    font-size: 12px;
  }

  .rank-marker {
    top: -9px;
    left: -8px;
    width: 37px;
    height: 37px;
    font-size: 10px;
  }

  .series-books .book-card {
    max-width: 126px;
  }

  .series-books.is-long .book-card {
    max-width: 108px;
  }

  .dialog-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
