:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #151b24;
  --panel-2: #1c2430;
  --text: #f3efe4;
  --muted: #aeb7c6;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f4c95d;
  --red: #e26d5a;
  --teal: #69c7b8;
  --ink: #080b10;
  --radius: 8px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #121a27 0, var(--bg) 340px);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.ui-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.icon-list {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13'/%3E%3Cpath d='M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E");
}

.icon-chart {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18M18 17V9M13 17V5M8 17v-3'/%3E%3C/svg%3E");
}

.icon-search {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}

.icon-reset {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E");
}

.icon-arrow-up {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 7-7 7 7M12 19V5'/%3E%3C/svg%3E");
}

.icon-arrow-left {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
}

.icon-arrow-right {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
}

.icon-layers {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 9 5-9 5-9-5 9-5Z'/%3E%3Cpath d='m3 12 9 5 9-5M3 17l9 5 9-5'/%3E%3C/svg%3E");
}

.icon-close {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}

.icon-edit {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z'/%3E%3Cpath d='m15 5 4 4'/%3E%3C/svg%3E");
}

.shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
}

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

.studio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration-color: rgba(174, 183, 198, 0.48);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 160ms var(--ease-out), text-decoration-color 160ms var(--ease-out);
}

.studio-link-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 3px;
  object-fit: cover;
}

.studio-link-label,
.studio-link-arrow {
  display: inline-block;
  white-space: nowrap;
}

.studio-link-arrow {
  margin-left: -2px;
  font-size: 0.9em;
  line-height: 1;
}

.home-nav {
  display: flex;
  justify-content: center;
  padding: 32px 0 0;
}

.studio-link:hover,
.studio-link:focus-visible {
  color: var(--text);
  text-decoration-color: var(--gold);
}

.studio-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.masthead-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: end;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.record-pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0 14px;
  border-radius: 6px;
  background: rgba(21, 27, 36, 0.9);
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.record-pill strong {
  color: var(--text);
}

.record-dot {
  appearance: none;
  display: inline-grid;
  width: 24px;
  height: 24px;
  min-height: 24px;
  flex: 0 0 24px;
  margin-right: 1px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.record-dot-mark {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(105, 199, 184, 0.12);
  transition: box-shadow 160ms var(--ease-out), transform 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .record-dot:hover .record-dot-mark {
    box-shadow: 0 0 0 6px rgba(105, 199, 184, 0.14);
    transform: scale(1.08);
  }
}

.record-dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.admin-status {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 5px 0 12px;
  border: 1px solid rgba(244, 201, 93, 0.34);
  border-radius: 6px;
  background: rgba(244, 201, 93, 0.08);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-status[hidden] {
  display: none;
}

.admin-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(244, 201, 93, 0.12);
}

.admin-status button {
  min-height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  cursor: pointer;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}

h2 {
  font-size: 1.5rem;
  font-weight: 780;
  line-height: 1.2;
  text-wrap: balance;
}

.intro {
  max-width: 68ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.controls,
.summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 27, 36, 0.94);
}

.controls {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.4fr)
    minmax(170px, 0.55fr)
    minmax(150px, 0.5fr)
    minmax(260px, 0.75fr)
    auto;
  gap: 12px;
  padding: 12px;
  position: sticky;
  top: 12px;
  z-index: 5;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

#listPanel > .controls {
  margin-top: 20px;
}

.reset-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  align-self: end;
  min-height: 44px;
  border-color: var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.reset-control .ui-icon {
  width: 16px;
  height: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.2;
}

.controls label {
  gap: 0;
}

.select-wrap {
  position: relative;
  display: block;
}

.control-prefix {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  color: #8994a6;
  font-size: 0.72rem;
  font-weight: 650;
  pointer-events: none;
  transform: translateY(-50%);
}

.select-wrap select {
  width: 100%;
  padding-left: 48px;
}

.input-with-icon {
  position: relative;
  display: block;
}

.input-with-icon > .ui-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.input-with-icon input {
  width: 100%;
  padding-left: 42px;
}

input,
select,
button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0f141c;
  color: var(--text);
  padding: 0 14px;
}

input,
select {
  font-size: 0.875rem;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23aeb7c6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 13px center;
  background-repeat: no-repeat;
  background-size: 16px;
  cursor: pointer;
}

select option,
select optgroup {
  background: #151b24;
  color: var(--text);
}

select optgroup {
  font-weight: 750;
}

select option {
  font-weight: 500;
}

input::placeholder {
  color: #8994a6;
}

button {
  cursor: pointer;
  color: var(--ink);
  background: var(--gold);
  border-color: transparent;
  font-weight: 750;
}

button:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  input:hover,
  select:hover {
    border-color: rgba(255, 255, 255, 0.24);
  }

  .reset-control:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: #26303e;
  }
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 16px;
  overflow: hidden;
}

.summary div {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.summary div:last-child {
  border-right: 0;
}

.summary strong {
  display: block;
  font-size: 2.1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.summary span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

[hidden] {
  display: none !important;
}

.view-tabs {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(15, 20, 28, 0.72);
}

.view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 700;
  transform: none;
}

.tab-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 160ms var(--ease-out);
}

.tab-icon .ui-icon {
  width: 16px;
  height: 16px;
}

.view-tab.is-active .tab-icon {
  color: var(--gold);
}

@media (hover: hover) and (pointer: fine) {
  .view-tab:hover:not(.is-active) .tab-icon {
    color: var(--text);
  }
}

.view-tab.is-active {
  color: var(--ink);
  background: var(--gold);
}

.view-tab.is-active .tab-icon {
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .view-tab:hover:not(.is-active) {
    color: var(--text);
  }
}

.view-tab:active {
  transform: none;
}

.back-to-top {
  position: fixed;
  right: max(20px, calc((100vw - 1440px) / 2 + 20px));
  bottom: 28px;
  z-index: 8;
  display: grid;
  width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(28, 36, 48, 0.96);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.26);
  color: var(--text);
  line-height: 1;
  backdrop-filter: blur(12px);
  transition:
    color 160ms var(--ease-out),
    background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.back-to-top .ui-icon {
  width: 18px;
  height: 18px;
}

@media (hover: hover) and (pointer: fine) {
  .back-to-top:hover {
    border-color: rgba(244, 201, 93, 0.72);
    background: var(--gold);
    color: var(--ink);
    transform: translateY(-2px);
  }
}

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

.result-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.archive-layout {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 28px;
  margin-top: 34px;
}

.stats-view {
  padding-top: 18px;
}

.stats-view > .summary {
  margin-top: 0;
  margin-bottom: 18px;
}

.stats-view > .summary div {
  min-height: 92px;
  padding: 16px 18px;
}

.stats-view > .summary strong {
  font-size: 1.75rem;
}

.stats-view > .summary span {
  margin-top: 8px;
  font-size: 0.78rem;
}

.stats-heading {
  margin-bottom: 16px;
}

.stats-charts {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.42fr);
  gap: 18px;
  align-items: stretch;
}

.score-chart-panel,
.year-chart-panel {
  height: 100%;
}

.score-chart-panel {
  display: flex;
  flex-direction: column;
}

.score-chart-panel .score-pie {
  flex: 1;
  align-content: center;
}

.chart-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 27, 36, 0.7);
  padding: 16px 18px 18px;
}

.platform-chart-panel,
.series-chart-panel {
  grid-column: 1 / -1;
}

.chart-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.chart-heading h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.3;
}

.chart-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.775rem;
  line-height: 1.5;
}

.chart-heading > span {
  flex: 0 0 auto;
  color: var(--gold);
  padding-top: 2px;
  font-size: 0.68rem;
  font-weight: 750;
}

.bar-list {
  display: grid;
  gap: 11px;
}

.score-pie {
  display: grid;
  grid-template-columns: minmax(138px, 178px) minmax(172px, 1fr);
  gap: 20px;
  align-items: center;
  max-width: none;
  margin: 2px auto 0;
}

.pie-graphic {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}

.pie-graphic path {
  stroke: var(--panel);
  stroke-width: 1.5;
}

.pie-hole {
  fill: #141b24;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.pie-total,
.pie-total-label {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.pie-total {
  fill: var(--text);
  font-size: 24px;
  font-weight: 800;
}

.pie-total-label {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.pie-legend {
  display: grid;
  gap: 8px;
}

.pie-legend-row {
  display: grid;
  grid-template-columns: 10px minmax(50px, 1fr) 32px 48px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.pie-legend-row strong {
  color: var(--text);
  text-align: right;
}

.pie-legend-row > span:last-child {
  text-align: right;
}

.pie-swatch {
  width: 10px;
  height: 10px;
  background: var(--swatch);
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 150px) minmax(80px, 1fr) 44px;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.bar-label {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-label-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-secondary {
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  line-height: 1.25;
}

.bar-track {
  display: block;
  height: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.045);
}

.bar-fill {
  display: block;
  width: calc(var(--bar-scale) * 100%);
  height: 100%;
  background: var(--bar-color, var(--muted));
  transform-origin: left center;
}

.bar-row.is-focal .bar-fill {
  background: var(--gold);
}

.bar-row.is-focal .bar-label,
.bar-row.is-focal strong {
  color: var(--text);
}

.bar-row strong {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bar-count {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 780;
}

.bar-unit {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 650;
}

.year-chart-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 10px;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(244, 201, 93, 0.55) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
  touch-action: pan-x;
  cursor: grab;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.year-chart-scroll.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.year-chart-scroll::-webkit-scrollbar {
  height: 8px;
}

.year-chart-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.year-chart-scroll::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(244, 201, 93, 0.55);
}

.year-chart-scroll:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.year-chart-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}

.chart-scroll-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.chart-scroll-button .ui-icon {
  width: 16px;
  height: 16px;
}

.chart-scroll-button:disabled {
  opacity: 0.32;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .chart-scroll-button:not(:disabled):hover {
    border-color: rgba(244, 201, 93, 0.58);
    background: rgba(244, 201, 93, 0.1);
    color: var(--gold);
  }
}

.year-chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 40px;
  align-items: end;
  width: max-content;
  min-width: 100%;
  height: 206px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.year-column {
  display: grid;
  grid-template-rows: 22px 146px 26px;
  align-items: end;
  justify-items: center;
  height: 198px;
  color: var(--muted);
  scroll-snap-align: start;
}

.year-column strong {
  align-self: center;
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
}

.year-column > span:last-child {
  align-self: end;
  font-size: 0.64rem;
  font-variant-numeric: tabular-nums;
}

.year-bar-slot {
  display: flex;
  width: 100%;
  height: 140px;
  align-items: flex-end;
  justify-content: center;
}

.year-bar {
  display: block;
  width: min(16px, 58%);
  height: calc(var(--bar-scale) * 100%);
  min-height: 0;
  background: var(--muted);
}

.year-column.is-focal {
  color: var(--text);
}

.year-column.is-focal .year-bar {
  background: var(--gold);
}

.platform-bars,
.series-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 38px;
}

.bar-column {
  display: grid;
  gap: 9px;
  align-content: start;
}

.platform-legend,
.series-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 0.75rem;
}

.platform-legend span,
.series-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.platform-legend i,
.series-legend i {
  width: 14px;
  height: 4px;
  border-radius: 1px;
  background: var(--maker-color);
}

.maker-nintendo {
  --maker-color: #e35d6a;
}

.maker-sony {
  --maker-color: #4f7fd6;
}

.maker-microsoft {
  --maker-color: #59ad70;
}

.maker-sega {
  --maker-color: #39a7d8;
}

.maker-other {
  --maker-color: var(--muted);
}

.platform-bars .bar-row {
  grid-template-columns: minmax(170px, 230px) minmax(80px, 1fr) 56px;
}

.platform-bars .bar-label-text {
  color: var(--text);
  font-weight: 760;
}

.series-bars {
  gap: 10px 38px;
}

.series-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px 20px;
  justify-content: initial;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.series-legend > span {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
}

.series-legend .series-legend-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-bars .bar-row {
  grid-template-columns: minmax(140px, 200px) minmax(80px, 1fr) 42px;
}

.series-bars .bar-label {
  color: var(--text);
}

.data-notes {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.data-notes-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 10px;
}

.data-notes-heading > span {
  color: var(--muted);
  font-size: 0.8rem;
}

.data-note-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 27, 36, 0.72);
}

.data-note-grid article {
  min-width: 0;
  padding: 14px 16px;
}

.data-note-grid article + article {
  border-left: 1px solid var(--line);
}

.data-note-grid strong {
  font-size: 0.8rem;
}

.data-note-grid p {
  min-height: 3.9em;
  margin: 7px 0 10px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.data-note-grid a {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.release-notes {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.release-notes-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 10px;
}

.release-notes-heading h2,
.release-notes-heading p,
.release-entry h3,
.release-entry p {
  margin: 0;
}

.release-notes-heading h2 {
  color: var(--text);
  font-size: 1rem;
}

.release-notes-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
}

.release-notes-heading > span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.release-list {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 27, 36, 0.72);
  list-style: none;
}

.release-entry {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.release-entry + .release-entry {
  border-top: 1px solid var(--line);
}

.release-entry.is-current {
  background: linear-gradient(90deg, rgba(244, 201, 93, 0.1), transparent 38%);
}

.release-version {
  display: grid;
  align-self: start;
  gap: 7px;
}

.release-version > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.release-version strong {
  color: var(--gold);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.release-version span {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.release-entry.is-current .release-version span {
  border-color: rgba(244, 201, 93, 0.34);
  color: var(--gold);
}

.release-entry h3 {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
}

.release-version > p,
.release-original,
.release-provenance {
  margin: 0;
}

.release-version > p {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.release-original {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.55;
}

.release-content {
  min-width: 0;
}

.release-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.release-category {
  min-width: 0;
  padding: 12px 13px;
  background: rgba(13, 17, 23, 0.72);
}

.release-category h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 0.71rem;
  line-height: 1.4;
}

.release-category h4 b {
  min-width: 20px;
  color: var(--muted);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.release-category.feature h4 span {
  color: var(--teal);
}

.release-category.bug-fix h4 span {
  color: var(--red);
}

.release-category.maintenance h4 span {
  color: var(--gold);
}

.release-category.unknown h4 span {
  color: var(--muted);
}

.release-category ul {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding: 0;
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1.5;
  list-style: none;
}

.release-category li {
  position: relative;
  padding-left: 12px;
}

.release-category li::before {
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.55;
}

.release-empty {
  margin: 8px 0 0;
  color: rgba(174, 183, 198, 0.65);
  font-size: 0.7rem;
}

.release-other {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.release-other .release-category {
  border: 1px solid var(--line);
  border-radius: 6px;
}

.release-provenance {
  margin-top: 10px;
  color: rgba(174, 183, 198, 0.72);
  font-size: 0.65rem;
  line-height: 1.5;
}

.year-groups {
  display: grid;
  gap: 52px;
}

.year-group {
  min-width: 0;
  scroll-margin-top: 100px;
}

.year-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 118px);
  padding: 8px 12px 8px 0;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y proximity;
  scrollbar-color: rgba(174, 183, 198, 0.36) transparent;
  scrollbar-width: thin;
}

.year-nav::-webkit-scrollbar {
  width: 4px;
}

.year-nav::-webkit-scrollbar-track {
  background: transparent;
}

.year-nav::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(174, 183, 198, 0.32);
}

.year-nav-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.year-nav-links {
  display: grid;
  gap: 4px;
}

.year-nav a {
  position: relative;
  display: flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px 0 20px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition:
    color 140ms var(--ease-out),
    background-color 140ms var(--ease-out),
    transform 140ms var(--ease-out);
  scroll-snap-align: nearest;
}

.year-nav a.is-active {
  color: var(--ink);
  background: var(--gold);
  font-weight: 900;
}

.year-nav a::before {
  content: "";
  position: absolute;
  left: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}

.year-nav a.is-active::before {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .year-nav a:hover:not(.is-active) {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
  }
}

.year-heading {
  margin-bottom: 18px;
}

.year-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.year-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 16px;
  padding-left: 0;
}

.poster {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 0;
  color: var(--text);
  background: rgba(17, 23, 32, 0.82);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  transition:
    transform 320ms var(--ease-out),
    border-color 320ms var(--ease-out),
    box-shadow 320ms var(--ease-out);
}

.poster-open {
  appearance: none;
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  flex: 1;
  flex-direction: column;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.poster-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(160deg, hsla(var(--hue), 74%, 50%, 0.32), transparent 54%),
    linear-gradient(180deg, #222b38, #0f141c);
}

.poster-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, black, transparent 75%);
  transition: opacity 320ms var(--ease-out), transform 520ms var(--ease-out);
}

.poster-cover-backdrop {
  position: absolute;
  inset: -9%;
  z-index: 0;
  display: block;
  width: 118%;
  height: 118%;
  object-fit: cover;
  object-position: center;
  filter: blur(15px) saturate(0.82) brightness(0.58);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 360ms ease;
}

.poster-cover-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 280ms ease;
}

.poster-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
}

.poster-cover-backdrop.is-loaded,
.poster-cover-frame.is-loaded {
  opacity: 1;
}

.poster-cover-frame.is-letterboxed .poster-cover {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 5px, #000 calc(100% - 5px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 5px, #000 calc(100% - 5px), transparent 100%);
}

.poster-cover-frame.is-pillarboxed .poster-cover {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5px, #000 calc(100% - 5px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 5px, #000 calc(100% - 5px), transparent 100%);
}

.poster-art.has-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 13, 19, 0.22), transparent 18%, transparent 82%, rgba(9, 13, 19, 0.22)),
    linear-gradient(180deg, rgba(9, 13, 19, 0.12), transparent 18%, transparent 82%, rgba(9, 13, 19, 0.22));
}

@media (hover: hover) and (pointer: fine) {
  .poster:hover {
    transform: translateY(-4px);
    border-color: rgba(244, 201, 93, 0.72);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  }

  .poster:hover .poster-art::before {
    opacity: 0.78;
    transform: translateY(-4px);
  }
}

.poster-open:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

.poster-edit {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: grid;
  width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(13, 17, 23, 0.78);
  color: rgba(243, 239, 228, 0.84);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0.92;
  transition: transform 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.poster-edit .ui-icon {
  width: 16px;
  height: 16px;
}

@media (hover: hover) and (pointer: fine) {
  .poster-edit:hover {
    opacity: 1;
    transform: translateY(-1px);
    border-color: rgba(244, 201, 93, 0.56);
    background: rgba(27, 25, 20, 0.94);
    color: var(--gold);
  }
}

.poster-edit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 1100px) and (min-width: 821px) {
  .controls {
    grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(160px, 0.55fr));
  }

  .filter-field-sort {
    grid-column: 1 / span 2;
  }

  .reset-control {
    grid-column: 3;
    align-self: stretch;
  }
}

.poster-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 57px;
  gap: 8px;
  align-items: start;
  min-height: 76px;
  padding: 10px 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 70%);
}

.poster-platform {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  row-gap: 7px;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 750;
}

.platform-primary {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: max-content;
  max-width: 100%;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  padding: 0 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-more {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  font-variant-numeric: tabular-nums;
}

.platform-more-mark {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
}

.platform-more-mark .ui-icon {
  width: 15px;
  height: 15px;
}

.platform-more-count {
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1;
}

.rating-stack {
  display: grid;
  width: 57px;
  gap: 7px;
}

.rating-row {
  display: grid;
  grid-template-columns: 16px 36px;
  gap: 5px;
  align-items: center;
  min-height: 20px;
  color: #d8e0e8;
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.15;
}

.rating-icon {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  overflow: hidden;
  border-radius: 3px;
}

.rating-icon img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.rating-value {
  display: block;
  width: 36px;
  overflow: hidden;
  text-align: right;
  text-overflow: clip;
  white-space: nowrap;
}

.rating-row.is-featured {
  color: var(--gold);
  font-weight: 850;
}

.poster-caption {
  display: grid;
  gap: 8px;
  flex: 1;
  min-height: 110px;
  padding: 11px 12px 13px;
}

.poster-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.4;
}

.poster-meta {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.725rem;
  line-height: 1.4;
}

.poster-meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(540px, calc(100vw - 36px));
  max-height: min(70vh, 580px);
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid rgba(244, 201, 93, 0.4);
  border-radius: var(--radius);
  background: rgba(13, 17, 23, 0.96);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.52);
  padding: 18px;
  transform: translateY(130%);
  transition: transform 180ms ease;
  z-index: 10;
}

.drawer.is-open {
  transform: translateY(0);
}

.drawer h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.drawer dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  margin: 0;
}

.drawer table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.drawer-release-history {
  margin-top: 18px;
}

.drawer-release-history h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
}

.drawer-release-history table {
  margin-top: 8px;
}

.drawer th,
.drawer td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.drawer th {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.drawer dt {
  color: var(--muted);
}

.drawer dd {
  margin: 0;
}

.admin-dialog,
.confirm-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-height: min(92vh, 900px);
  overflow: hidden;
  border: 1px solid rgba(244, 201, 93, 0.34);
  border-radius: 8px;
  padding: 0;
  color: var(--text);
  background: #111720;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.66);
}

.admin-dialog::backdrop,
.confirm-dialog::backdrop {
  background: rgba(4, 7, 11, 0.76);
  backdrop-filter: blur(5px);
}

.admin-dialog form {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 900px);
  padding: 20px;
}

.admin-dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.admin-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.admin-dialog h2,
.confirm-dialog h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.icon-button .icon-close {
  width: 15px;
  height: 15px;
}

.admin-editor-overview {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.admin-cover-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(160deg, rgba(244, 201, 93, 0.12), transparent 58%),
    #0d1219;
  background-size: 18px 18px, 18px 18px, auto, auto;
}

.admin-cover-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-cover-preview > span {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: var(--muted);
  font-size: 0.7rem;
}

.admin-cover-preview i {
  width: 28px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 3px;
  opacity: 0.55;
}

.admin-editor-summary {
  min-width: 0;
}

.admin-section-label {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.admin-editor-meta {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.admin-records {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 5px;
  scrollbar-color: #455163 transparent;
}

.admin-record {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 11, 16, 0.38);
  overflow: clip;
}

.admin-record summary {
  display: grid;
  grid-template-columns: max-content minmax(160px, 1fr) max-content;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 8px 12px;
  cursor: pointer;
  list-style: none;
  transition: background-color 150ms ease;
}

.admin-record summary::-webkit-details-marker { display: none; }
.admin-record summary:hover { background: rgba(255, 255, 255, 0.035); }
.admin-record[open] summary { border-bottom: 1px solid var(--line); }

.admin-record-platform {
  min-width: 76px;
  padding: 6px 9px;
  border-radius: 4px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
}

.admin-record-title {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-record-meta {
  color: var(--muted);
  font-size: 0.66rem;
  white-space: nowrap;
}

.admin-record-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.admin-record-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 2px;
}

.admin-record-actions span {
  color: var(--muted);
  font-size: 0.64rem;
}

.admin-field-group {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.018);
}

.admin-field-group h4 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0;
}

.admin-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-field {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.admin-field.is-wide { grid-column: 1 / -1; }

.admin-field > span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 750;
}

.admin-field input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 10px;
  color: var(--text);
  background: rgba(7, 11, 16, 0.62);
  font: inherit;
  font-size: 0.74rem;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.admin-field input:focus {
  border-color: rgba(244, 201, 93, 0.72);
  background: rgba(7, 11, 16, 0.9);
  box-shadow: 0 0 0 3px rgba(244, 201, 93, 0.1);
}

.admin-field.is-readonly input {
  color: #7f8998;
  background: rgba(255, 255, 255, 0.025);
  cursor: default;
}

.admin-dialog-actions,
.confirm-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.admin-action-spacer { flex: 1; }

.primary-button,
.secondary-button,
.danger-button {
  min-height: 38px;
  border-radius: 5px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--gold);
  color: var(--ink);
  background: var(--gold);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.danger-button {
  border: 1px solid rgba(233, 92, 105, 0.48);
  color: #ff8993;
  background: transparent;
}

.danger-button.is-solid {
  border-color: #e95c69;
  color: #fff;
  background: #c84653;
}

.primary-button:disabled,
.danger-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.confirm-dialog {
  width: min(420px, calc(100vw - 28px));
}

.confirm-dialog form {
  padding: 24px;
  text-align: center;
}

.confirm-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  place-items: center;
  border: 1px solid rgba(233, 92, 105, 0.5);
  border-radius: 50%;
  color: #ff8993;
  background: rgba(233, 92, 105, 0.1);
  font-weight: 900;
}

.confirm-dialog p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.65;
}

.confirm-actions {
  justify-content: center;
}

.admin-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  min-width: 190px;
  max-width: min(420px, calc(100vw - 28px));
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(17, 23, 32, 0.97);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.42);
  font-size: 0.74rem;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.admin-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.admin-toast[data-tone="success"] { border-color: rgba(91, 186, 130, 0.45); }
.admin-toast[data-tone="error"] { border-color: rgba(233, 92, 105, 0.5); color: #ffabb2; }

.empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 20px, 720px);
    padding-top: 18px;
  }

  .masthead {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    padding-bottom: 20px;
  }

  .masthead-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .admin-status {
    order: 3;
  }

  .admin-editor-overview { grid-template-columns: 68px minmax(0, 1fr); }
  .admin-record-body { grid-template-columns: 1fr; }
  .admin-record summary { grid-template-columns: max-content minmax(0, 1fr); }
  .admin-record-meta { grid-column: 2; }

  .controls {
    grid-template-columns: 1fr;
  }

  .filter-field-sort,
  .reset-control {
    grid-column: auto;
  }

  .controls {
    position: static;
  }

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

  .summary div {
    border-bottom: 1px solid var(--line);
  }

  .summary div:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .summary div:nth-child(even) {
    border-right: 0;
  }

  .summary div:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .archive-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  .view-tabs {
    margin: 0;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    min-height: 46px;
  }

  .stats-view {
    padding-top: 24px;
  }

  .stats-charts,
  .platform-bars,
  .series-bars {
    grid-template-columns: 1fr;
  }

  .series-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }

  .score-chart-panel,
  .year-chart-panel,
  .platform-chart-panel,
  .series-chart-panel {
    grid-column: 1;
  }

  .chart-panel {
    padding: 16px;
  }

  .bar-row {
    grid-template-columns: minmax(86px, 122px) minmax(72px, 1fr) 34px;
    gap: 8px;
  }

  .score-pie {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .data-notes-heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .release-notes-heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .data-note-grid {
    grid-template-columns: 1fr;
  }

  .data-note-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .data-note-grid p {
    min-height: 0;
  }

  .release-entry {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }

  .release-version {
    gap: 5px;
  }

  .release-category-grid,
  .release-other {
    grid-template-columns: 1fr;
  }

  .pie-graphic {
    width: min(210px, 68vw);
    margin: 0 auto;
  }

  .year-chart {
    grid-auto-columns: 44px;
  }

  .platform-bars .bar-row {
    grid-template-columns: minmax(0, 1fr) 34px;
    grid-template-areas:
      "label value"
      "track track";
    gap: 6px 8px;
  }

  .platform-bars .bar-label {
    grid-area: label;
    white-space: nowrap;
  }

  .platform-bars .bar-track {
    grid-area: track;
  }

  .platform-bars .bar-row strong {
    grid-area: value;
  }

  .series-bars .bar-row {
    grid-template-columns: minmax(0, 1fr) 34px;
    grid-template-areas:
      "label value"
      "track track";
    gap: 6px 8px;
  }

  .series-bars .bar-label {
    grid-area: label;
    white-space: normal;
  }

  .series-bars .bar-track {
    grid-area: track;
  }

  .series-bars .bar-row strong {
    grid-area: value;
  }

  .archive {
    order: 2;
  }

  .year-nav {
    position: sticky;
    top: 0;
    order: 1;
    z-index: 4;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    max-height: none;
    margin: 0 -10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13, 17, 23, 0.96);
  }

  .year-nav-label {
    margin: 0;
  }

  .year-nav-links {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .year-nav-links::-webkit-scrollbar {
    display: none;
  }

  .year-nav a {
    flex: 0 0 auto;
    min-width: 54px;
    min-height: 40px;
    justify-content: center;
    padding: 0 12px;
  }

  .year-nav a::before {
    display: none;
  }

  .year-groups {
    gap: 52px;
  }

  .year-heading {
    gap: 12px;
    margin-bottom: 18px;
  }

  .year-games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-left: 0;
  }

  .poster-info {
    grid-template-columns: minmax(0, 1fr) 57px;
    gap: 6px;
    padding: 9px;
  }

  .admin-dialog form {
    padding: 16px;
  }

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

  .admin-action-spacer { display: none; }

}

@media (max-width: 520px) {
  .admin-dialog,
  .confirm-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
  }

  .admin-dialog form { max-height: calc(100vh - 12px); }
  .admin-editor-overview { grid-template-columns: 54px minmax(0, 1fr); }
  .admin-record summary { gap: 8px; padding: 8px; }
  .admin-record-platform { min-width: 58px; padding-inline: 6px; }
  .admin-record-body { padding: 8px; }
  .admin-record-actions { align-items: stretch; flex-direction: column; }
  .admin-record-actions .danger-button { width: 100%; }
  .admin-field-grid { grid-template-columns: 1fr; }
  .admin-field.is-wide { grid-column: auto; }
}

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

/* 2026-11-01: compact the shell and give the poster wall more room. */
.shell {
  width: min(1560px, calc(100% - 40px));
  padding-top: 26px;
  padding-bottom: 60px;
}

.masthead {
  padding-bottom: 20px;
}

h1 {
  max-width: 760px;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.2;
}

.intro {
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.controls {
  box-shadow: none;
  backdrop-filter: none;
}

#listPanel > .controls {
  margin-top: 16px;
}

.archive-layout {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.year-nav-label,
.year-nav a {
  font-size: 0.8125rem;
}

.year-nav a {
  padding-left: 14px;
  border-radius: 2px;
}

.year-nav a::before {
  display: none;
}

.year-nav a.is-active {
  position: relative;
  color: var(--gold);
  background: transparent;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(244, 201, 93, 0.16);
}

.year-nav a.is-active::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 2px;
  background: var(--gold);
}

.year-games {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.year-heading {
  margin-bottom: 14px;
}

.year-heading h3 {
  font-size: 1.25rem;
}

.poster-title {
  font-size: 0.95rem;
}

.poster-meta {
  font-size: 0.75rem;
}

.view-tabs {
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.view-tab {
  position: relative;
  min-height: 40px;
  padding: 0 2px;
  border-radius: 0;
}

.view-tab.is-active {
  color: var(--text);
  background: transparent;
}

.view-tab.is-active .tab-icon {
  color: var(--gold);
}

.view-tab.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--gold);
}

.chart-heading > span {
  font-size: 0.75rem;
}

.year-chart {
  grid-auto-columns: 46px;
}

.year-column strong {
  font-size: 0.75rem;
}

.year-column > span:last-child {
  font-size: 0.72rem;
}

.platform-legend,
.series-legend {
  font-size: 0.8125rem;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 32px, 720px);
    padding-top: 16px;
    padding-bottom: 48px;
  }

  .masthead {
    gap: 14px;
    padding-bottom: 16px;
  }

  .controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .search-box,
  .filter-field-sort,
  .reset-control {
    grid-column: 1 / -1;
  }

  .reset-control {
    min-height: 40px;
  }

  .archive-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 18px;
  }

  .year-nav {
    margin: 0;
    padding: 8px;
  }

  .year-nav a {
    min-height: 36px;
    padding: 0 10px;
    border-bottom: 2px solid transparent;
  }

  .year-nav a.is-active {
    color: var(--gold);
    border-bottom-color: var(--gold);
  }

  .year-nav a.is-active::after {
    display: none;
  }

  .year-games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .view-tabs {
    gap: 14px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 1.5rem;
  }

  .intro {
    font-size: 0.875rem;
  }

  .masthead-actions {
    gap: 10px;
  }

  .record-pill {
    min-height: 38px;
    padding-inline: 8px;
  }

  .year-games {
    gap: 10px;
  }

  .poster-caption {
    padding: 10px 10px 12px;
  }
}

.release-version span,
.release-version > p,
.release-original,
.release-provenance {
  font-size: 0.72rem;
}

/* Masthead refinement: make the archive name lead and its view label support. */
.masthead {
  gap: 36px;
  align-items: center;
  padding-bottom: 22px;
}

.masthead h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  font-size: 2rem;
  font-weight: 820;
  letter-spacing: -0.035em;
  line-height: 1.16;
  text-wrap: balance;
}

.masthead-mark {
  width: 0.9em;
  height: 0.9em;
  flex: 0 0 auto;
  fill: var(--gold);
  filter: drop-shadow(0 2px 8px rgba(244, 201, 93, 0.16));
}

.masthead-title-primary {
  color: var(--text);
}

.masthead-title-secondary {
  padding-left: 12px;
  border-left: 1px solid rgba(174, 183, 198, 0.3);
  color: #b8c1d0;
  font-size: 0.72em;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.masthead .intro {
  max-width: 44rem;
  margin-top: 9px;
  color: #aeb7c6;
  font-size: 0.9rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.masthead-actions {
  gap: 18px;
}

.record-pill {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(174, 183, 198, 0.1);
  background: rgba(21, 27, 36, 0.55);
}

.record-pill strong {
  color: var(--text);
  font-size: 0.82rem;
}

.view-tabs {
  gap: 18px;
}

.view-tab {
  gap: 8px;
  min-height: 42px;
  color: #aeb7c6;
  font-size: 0.9rem;
  font-weight: 650;
  transition: color 160ms var(--ease-out);
}

.view-tab:hover {
  color: var(--text);
}

.view-tab.is-active::after {
  height: 2px;
  border-radius: 2px 2px 0 0;
}

@media (max-width: 820px) {
  .masthead {
    gap: 16px;
  }

  .masthead-actions {
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .masthead {
    padding-bottom: 15px;
  }

  .masthead h1 {
    gap: 9px;
    font-size: 1.7rem;
  }

  .masthead-mark {
    width: 0.86em;
    height: 0.86em;
  }

  .masthead-title-secondary {
    padding-left: 9px;
  }

  .masthead .intro {
    margin-top: 7px;
    font-size: 0.84rem;
  }

  .masthead-actions {
    gap: 8px;
  }

  .view-tabs {
    gap: 14px;
  }
}

/* Statistics: establish one clear overview, then let the data carry the color. */
.stats-heading {
  display: flex;
  align-items: baseline;
  margin: 4px 0 12px;
}

.stats-heading h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 760;
}

.stats-heading .result-count {
  font-size: 0.875rem;
}

.stats-view > .summary {
  margin-bottom: 20px;
}

.stats-charts {
  grid-template-columns: minmax(460px, 0.9fr) minmax(0, 1.3fr);
  gap: 16px;
  align-items: start;
}

.score-chart-panel,
.year-chart-panel {
  height: auto;
}

.score-chart-panel .score-pie {
  flex: 0 0 auto;
  align-content: initial;
}

.chart-panel {
  padding: 18px 20px 20px;
}

.chart-heading {
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.chart-heading h3 {
  font-size: 1.125rem;
}

.chart-heading p {
  font-size: 0.875rem;
}

.chart-heading > span {
  font-size: 0.8125rem;
}

.score-pie {
  grid-template-columns: minmax(190px, 210px) minmax(180px, 1fr);
  gap: 18px;
}

.pie-legend {
  gap: 10px;
}

.pie-legend-row {
  grid-template-columns: 11px minmax(54px, 1fr) 42px 54px;
  gap: 10px;
  font-size: 0.875rem;
}

.pie-swatch {
  width: 11px;
  height: 11px;
}

.year-chart {
  grid-auto-columns: 52px;
}

.year-column strong {
  font-size: 0.8125rem;
}

.year-column > span:last-child {
  font-size: 0.78rem;
}

.platform-legend,
.series-legend {
  font-size: 0.875rem;
}

.platform-bars,
.series-bars {
  column-gap: 32px;
  row-gap: 12px;
}

.platform-bars .bar-row,
.series-bars .bar-row {
  min-height: 28px;
}

.platform-bars .bar-label,
.series-bars .bar-label {
  font-size: 0.875rem;
}

.platform-bars .bar-count,
.series-bars .bar-count {
  font-size: 0.9375rem;
}

@media (max-width: 1100px) and (min-width: 821px) {
  .stats-charts {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    align-items: start;
  }

  .score-chart-panel {
    grid-column: 1;
  }

  .year-chart-panel {
    grid-column: 2;
  }

  .platform-chart-panel,
  .series-chart-panel {
    grid-column: 1 / -1;
  }

  .score-chart-panel .score-pie {
    grid-template-columns: minmax(126px, 0.9fr) minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 820px) {
  .stats-heading {
    margin-top: 2px;
  }

  .stats-charts {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .score-chart-panel,
  .year-chart-panel,
  .platform-chart-panel,
  .series-chart-panel {
    grid-column: 1;
  }

  .score-chart-panel .score-pie,
  .score-pie {
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }

  .pie-legend-row {
    grid-template-columns: 10px minmax(42px, 1fr) 34px 46px;
    gap: 7px;
    font-size: 0.8125rem;
  }
}

@media (max-width: 520px) {
  .chart-panel {
    padding: 16px;
  }

  .chart-heading {
    gap: 10px;
  }

  .chart-heading h3 {
    font-size: 1.0625rem;
  }

  .chart-heading p {
    font-size: 0.8125rem;
  }

  .chart-heading > span {
    max-width: 115px;
    text-align: right;
    white-space: normal;
  }

  .score-chart-panel .score-pie,
  .score-pie {
    grid-template-columns: minmax(112px, 142px) minmax(0, 1fr);
    gap: 12px;
  }

  .pie-legend-row {
    grid-template-columns: 9px minmax(34px, 1fr) 28px 42px;
    gap: 5px;
    font-size: 0.75rem;
  }

  .pie-swatch {
    width: 9px;
    height: 9px;
  }

  .platform-bars,
  .series-bars {
    row-gap: 11px;
  }

  .platform-bars .bar-label,
  .series-bars .bar-label {
    font-size: 0.8125rem;
  }
}

/* Stats: make the five headline measures read as one compact instrument panel. */
.stats-view > .summary {
  border-color: rgba(244, 201, 93, 0.24);
  background: #121821;
}

.stats-view > .summary > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 100px;
  padding: 16px 20px;
}

.stats-view > .summary > div:first-child {
  position: relative;
  background: linear-gradient(115deg, rgba(244, 201, 93, 0.1), transparent 78%);
}

.stats-view > .summary strong {
  overflow: hidden;
  font-size: clamp(1.35rem, 1.65vw, 1.75rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-view > .summary > div:first-child strong,
.stats-view > .summary > div:last-child strong {
  color: var(--gold);
}

.stats-view > .summary span {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.025em;
}

.stats-heading {
  align-items: end;
  justify-content: space-between;
  margin: 28px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.stats-heading h2 {
  font-size: 1.35rem;
}

.stats-heading .result-count {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.stats-charts {
  gap: 14px;
}

.chart-panel {
  border-radius: 10px;
  background: #121821;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.chart-heading {
  align-items: flex-start;
}

.chart-heading h3 {
  letter-spacing: -0.015em;
}

.platform-chart-panel,
.series-chart-panel {
  grid-column: 1 / -1;
}

/* The detail surface is a true dialog, with a clear title and a scannable release table. */
.drawer {
  position: fixed;
  inset: 0;
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: min(82vh, 760px);
  margin: auto;
  overflow: auto;
  border: 1px solid rgba(244, 201, 93, 0.34);
  border-radius: 14px;
  padding: 0;
  color: var(--text);
  background: #111720;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.66);
  opacity: 0;
  transform: translateY(12px) scale(0.99);
  transition: opacity 180ms ease, transform 180ms ease;
}

.drawer[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.drawer::backdrop {
  background: rgba(5, 8, 12, 0.76);
  backdrop-filter: blur(5px);
}

.drawer-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 23, 32, 0.97);
}

.drawer-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.drawer-header h2 {
  max-width: 620px;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.drawer-close {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #1a222d;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.drawer-close:hover {
  border-color: rgba(244, 201, 93, 0.55);
  color: var(--text);
}

.drawer-content {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 24px;
  padding: 22px 24px 26px;
}

.drawer-identities dl {
  display: grid;
  grid-template-columns: minmax(72px, 0.42fr) minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
  line-height: 1.55;
}

.drawer dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.drawer dd {
  overflow-wrap: anywhere;
}

.drawer-release-history {
  min-width: 0;
  margin: 0;
}

.drawer-release-history h3 {
  margin: 0 0 12px;
  font-size: 0.98rem;
}

.drawer-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.drawer table {
  min-width: 100%;
  margin: 0;
  font-size: 0.8rem;
}

.drawer th,
.drawer td {
  padding: 10px 12px;
}

.drawer tbody tr:last-child td {
  border-bottom: 0;
}

.changelog-shell {
  max-width: 1100px;
}

.changelog-page-heading {
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--line);
}

.back-to-yearbook {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.back-to-yearbook:hover,
.changelog-link:hover {
  color: var(--gold);
}

.changelog-shell .release-notes {
  margin-top: 28px;
}

.changelog-shell .release-notes-heading {
  margin-bottom: 20px;
}

.changelog-footer {
  margin-top: 32px;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.changelog-link {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.changelog-link span {
  color: var(--gold);
}

@media (max-width: 820px) {
  .stats-view > .summary > div {
    min-height: 82px;
    padding: 12px 14px;
  }

  .drawer-content {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 520px) {
  .stats-view > .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-view > .summary > div {
    min-height: 76px;
    border-bottom: 1px solid var(--line);
  }

  .stats-view > .summary > div:nth-child(2n) {
    border-right: 0;
  }

  .stats-view > .summary > div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .drawer {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 24px);
    border-radius: 11px;
  }

  .drawer-header {
    padding: 17px 17px 14px;
  }

  .drawer-content {
    padding: 18px 17px 20px;
  }

  .home-nav {
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* Dedicated changelog page: keep single-category releases full width and readable. */
.changelog-shell .release-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.changelog-shell .release-content h3 {
  font-size: 1rem;
}

.changelog-shell .release-original {
  font-size: 0.84rem;
  line-height: 1.65;
}

.changelog-shell .release-category h4 {
  font-size: 0.78rem;
}

.changelog-shell .release-category ul {
  font-size: 0.8rem;
  line-height: 1.65;
}

.changelog-shell .release-provenance {
  font-size: 0.72rem;
}

@media (max-width: 600px) {
  .changelog-shell .release-entry {
    grid-template-columns: 1fr;
  }
}


/* 2026-11-01: unify the statistics board and tighten detail reading. */
.stats-charts {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #121821;
}

.stats-charts .chart-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 20px 22px;
}

.stats-charts .score-chart-panel {
  border-right: 1px solid var(--line);
}

.stats-charts .platform-chart-panel,
.stats-charts .series-chart-panel {
  border-top: 1px solid var(--line);
}

.stats-charts .platform-legend,
.stats-charts .series-legend {
  justify-content: flex-start;
  margin: 0 0 14px;
}

.stats-charts .series-legend {
  display: flex;
  gap: 9px 20px;
  padding: 0;
  border: 0;
}

.stats-charts .series-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.drawer-content {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  padding: 20px 22px 22px;
}

.drawer-identities dl {
  grid-template-columns: minmax(64px, 0.34fr) minmax(0, 1fr);
  gap: 10px 12px;
}

.drawer dt,
.drawer dd {
  margin: 0;
}

.drawer dt {
  padding-top: 2px;
  font-size: 0.76rem;
}

.drawer dd {
  font-size: 0.86rem;
  line-height: 1.5;
}

.drawer td:nth-child(2) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .stats-charts .score-chart-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-charts .chart-panel {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .stats-charts .chart-panel {
    padding: 16px;
  }

  .drawer-content {
    padding: 17px 17px 19px;
  }
}

@media (max-width: 520px) {
  .drawer-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .drawer-identities dl {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 9px 12px;
  }

  .drawer-release-history h3 {
    margin-bottom: 9px;
  }

  .drawer th,
  .drawer td {
    padding: 9px 10px;
  }
}

/* Statistics refinement: let the values and comparison baselines carry the hierarchy. */
.stats-view > .summary {
  border-color: var(--line);
  background: #111720;
}

.stats-view > .summary > div {
  min-height: 88px;
  padding: 14px 20px;
  gap: 6px;
}

.stats-view > .summary > div:first-child {
  background: none;
}

.stats-view > .summary > div:first-child::before {
  content: none;
}

.stats-view > .summary strong {
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}

.stats-view > .summary span {
  color: #9ca7b8;
  font-size: 0.75rem;
  letter-spacing: 0;
}

.stats-heading {
  margin-top: 24px;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.stats-heading h2 {
  font-size: 1.25rem;
}

.stats-charts .chart-panel {
  padding: 22px 24px;
}

.stats-charts .chart-heading {
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.stats-charts .chart-heading h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.stats-charts .chart-heading p {
  font-size: 0.8rem;
}

.stats-charts .chart-heading > span {
  color: #d8b655;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.stats-charts .score-pie {
  grid-template-columns: minmax(176px, 196px) minmax(0, 1fr);
  gap: 22px;
}

.stats-charts .pie-graphic {
  display: block;
  width: 100%;
  height: auto;
}

.stats-charts .pie-legend-row {
  grid-template-columns: 10px minmax(52px, 1fr) 40px 50px;
  gap: 9px;
  min-height: 25px;
  font-size: 0.8125rem;
}

.stats-charts .year-chart {
  height: 212px;
}

.stats-charts .year-column {
  grid-template-rows: 24px 150px 28px;
  height: 202px;
}

.stats-charts .year-bar-slot {
  height: 144px;
}

.stats-charts .year-bar {
  width: 14px;
}

.stats-charts .year-column strong {
  color: #c4ccd7;
  font-size: 0.75rem;
}

.stats-charts .year-column.is-focal strong,
.stats-charts .year-column.is-focal > span:last-child {
  color: var(--gold);
}

.stats-charts .platform-bars,
.stats-charts .series-bars {
  column-gap: 32px;
  row-gap: 11px;
}

.stats-charts .platform-bars .bar-row,
.stats-charts .series-bars .bar-row {
  column-gap: 12px;
  min-height: 29px;
}

.stats-charts .bar-track {
  height: 6px;
  border-left-color: rgba(255, 255, 255, 0.2);
}

.stats-charts .platform-bars .bar-label,
.stats-charts .series-bars .bar-label {
  font-size: 0.84rem;
}

.stats-charts .platform-bars .bar-secondary {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #9ca7b8;
}

.stats-charts .platform-bars .bar-count,
.stats-charts .series-bars .bar-count {
  font-size: 0.9rem;
}

.stats-charts .platform-bars .bar-unit,
.stats-charts .series-bars .bar-unit {
  font-size: 0.68rem;
}

.stats-charts .series-legend {
  gap: 10px 18px;
  margin-bottom: 16px;
}

.stats-charts .series-legend > span {
  gap: 8px;
  color: #aeb7c6;
  font-size: 0.78rem;
}

.stats-charts .platform-legend i,
.stats-charts .series-legend i {
  width: 12px;
  height: 3px;
}

@media (max-width: 1100px) and (min-width: 821px) {
  .stats-charts .score-pie {
    grid-template-columns: minmax(132px, 156px) minmax(0, 1fr);
    gap: 14px;
  }

  .stats-charts .pie-legend-row {
    grid-template-columns: 9px minmax(42px, 1fr) 34px 44px;
    gap: 6px;
    font-size: 0.75rem;
  }
}

@media (max-width: 820px) {
  .stats-charts .chart-panel {
    padding: 18px;
  }

  .stats-charts .score-pie {
    grid-template-columns: minmax(150px, 188px) minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .stats-view > .summary > div {
    min-height: 76px;
    padding: 12px 14px;
  }

  .stats-view > .summary strong {
    font-size: 1.35rem;
  }

  .stats-charts .chart-panel {
    padding: 16px;
  }

  .stats-charts .score-pie {
    grid-template-columns: minmax(108px, 132px) minmax(0, 1fr);
    gap: 10px;
  }

  .stats-charts .pie-legend-row {
    grid-template-columns: 9px minmax(34px, 1fr) 28px 42px;
    gap: 5px;
    min-height: 24px;
    font-size: 0.73rem;
  }

  .stats-charts .series-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Yearbook polish: make time navigation read as a compact index, not a stack of buttons. */
.year-nav {
  padding-right: 14px;
}

.year-nav-label {
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.year-nav-links {
  gap: 3px;
}

.year-nav a {
  justify-content: space-between;
  min-height: 32px;
  padding: 0 10px 0 19px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.year-nav a small {
  color: #778294;
  font-size: 0.65rem;
  font-weight: 650;
  transition: color 160ms ease;
}

.year-nav a.is-active {
  border-color: rgba(244, 201, 93, 0.2);
  color: var(--gold);
  background: rgba(244, 201, 93, 0.075);
  font-weight: 800;
}

.year-nav a.is-active small {
  color: #d2b65d;
}

.year-nav a.is-active::before {
  left: 8px;
  width: 4px;
  height: 16px;
  border-radius: 3px;
  background: var(--gold);
}

.year-nav a:hover:not(.is-active) small {
  color: #c5ceda;
}

@media (max-width: 820px) {
  .year-nav {
    padding-right: 8px;
    scrollbar-width: none;
    scroll-snap-type: none;
  }

  .year-nav::-webkit-scrollbar {
    display: none;
  }

  .year-nav-links {
    scroll-snap-type: x proximity;
    scroll-padding-inline: 8px;
  }

  .year-nav a {
    scroll-snap-align: center;
  }
}

/* Keep the dialog's existing information architecture, but sharpen its reading groups. */
.drawer {
  width: min(820px, calc(100vw - 32px));
  max-height: min(84vh, 780px);
  border-color: rgba(174, 183, 198, 0.24);
  border-radius: 12px;
  background: #111720;
}

/* A decade rail makes the long yearbook navigable in two deliberate steps. */
.archive-layout {
  display: block;
  margin-top: 20px;
}

.year-nav {
  position: sticky;
  z-index: 8;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  max-height: none;
  margin: 0 0 24px;
  padding: 10px 14px;
  overflow: visible;
  border: 1px solid rgba(174, 183, 198, 0.16);
  border-radius: 9px;
  background: #0d1118;
}

.decade-nav {
  display: flex;
  gap: 5px;
  padding-right: 16px;
  border-right: 1px solid rgba(174, 183, 198, 0.16);
}

.decade-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #9da8b8;
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.decade-chip small {
  color: #738094;
  font-size: 0.62rem;
  font-weight: 650;
}

.decade-chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.decade-chip.is-active {
  border-color: rgba(244, 201, 93, 0.26);
  color: var(--gold);
  background: rgba(244, 201, 93, 0.09);
}

.decade-chip.is-active small {
  color: #d7bd6c;
}

.year-nav-track {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.year-nav-label {
  flex: 0 0 auto;
  margin: 0;
  color: #728096;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.year-nav-links {
  display: flex;
  min-width: 0;
  gap: 5px;
  overflow-x: auto;
  padding: 2px 1px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(174, 183, 198, 0.3) transparent;
  scroll-snap-type: x proximity;
}

.year-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #9da8b8;
  background: transparent;
  font-size: 0.75rem;
  scroll-snap-align: center;
}

.year-nav a::before,
.year-nav a.is-active::after {
  display: none;
}

.year-nav a small {
  color: #707c8f;
  font-size: 0.61rem;
}

.year-nav a.is-active {
  border-color: rgba(244, 201, 93, 0.32);
  color: var(--gold);
  background: rgba(244, 201, 93, 0.11);
}

.year-nav a.is-active small {
  color: #d4b960;
}

.year-group {
  scroll-margin-top: 106px;
}

@media (max-width: 820px) {
  .year-nav {
    grid-template-columns: 1fr;
    gap: 7px;
    top: 0;
    margin-inline: -2px;
    padding: 8px 10px;
  }

  .decade-nav {
    gap: 3px;
    overflow-x: auto;
    padding: 0 0 6px;
    border-right: 0;
    border-bottom: 1px solid rgba(174, 183, 198, 0.13);
  }

  .decade-chip {
    min-height: 30px;
    padding: 0 8px;
    white-space: nowrap;
  }

  .year-nav-track {
    gap: 8px;
  }

  .year-nav-label {
    display: none;
  }
}

@media (max-width: 520px) {
  .archive-layout {
    margin-top: 14px;
  }

  .year-nav {
    margin-bottom: 18px;
    border-radius: 7px;
    padding: 7px 8px;
  }

  .decade-chip {
    gap: 4px;
    font-size: 0.7rem;
  }

  .year-nav a {
    min-width: 58px;
    min-height: 31px;
    padding: 0 7px;
  }
}

/* Detail opens as a compact cover-led dossier, with the release history as its evidence. */
.drawer {
  width: min(900px, calc(100vw - 36px));
  max-height: min(88vh, 820px);
  border-color: rgba(174, 183, 198, 0.22);
  border-radius: 13px;
  background: #10161f;
}

.drawer-header {
  padding: 21px 24px 17px;
}

.drawer-heading {
  min-width: 0;
}

.drawer-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
}

.drawer-kicker i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #697588;
}

.drawer-content {
  grid-template-columns: 138px minmax(0, 1fr);
  grid-template-areas: "cover identity" "cover releases";
  align-content: start;
  align-items: start;
  gap: 18px 22px;
  padding: 22px 24px 26px;
}

.drawer-cover {
  position: relative;
  grid-area: cover;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(174, 183, 198, 0.22);
  border-radius: 7px;
  background: #171e29;
  isolation: isolate;
}

.drawer-cover::before {
  position: absolute;
  z-index: -1;
  inset: -12px;
  background: var(--cover-url) center / cover;
  content: "";
  filter: blur(14px) brightness(0.56);
}

.drawer-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.drawer-cover-empty {
  display: grid;
  place-items: center;
  color: rgba(244, 201, 93, 0.72);
  background:
    linear-gradient(160deg, hsla(var(--hue, 42), 74%, 50%, 0.25), transparent 55%),
    linear-gradient(180deg, #222b38, #0f141c);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
}

.drawer-identities {
  grid-area: identity;
  width: 100%;
  padding: 4px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(174, 183, 198, 0.15);
  border-radius: 0;
  background: transparent;
}

.drawer-identities dl {
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 0 14px;
}

.drawer-identities dt,
.drawer-identities dd {
  padding: 7px 0;
}

.drawer-release-history {
  grid-area: releases;
}

.drawer-release-history h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #e6e8ec;
  font-size: 0.92rem;
}

.drawer-release-history h3::after {
  color: #7f8b9d;
  content: "按最近发售优先";
  font-size: 0.66rem;
  font-weight: 500;
}

.drawer-table-wrap {
  max-height: 260px;
  overflow: auto;
}

.drawer table {
  min-width: 460px;
}

.drawer thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.drawer th:first-child,
.drawer td:first-child {
  width: 28%;
}

.drawer th:nth-child(2),
.drawer td:nth-child(2) {
  width: 25%;
}

.drawer td:last-child a {
  color: #d5bd70;
  text-decoration-color: rgba(213, 189, 112, 0.4);
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .drawer {
    width: min(560px, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
  }

  .drawer-content {
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-areas: "cover identity" "releases releases";
    gap: 15px 16px;
    padding: 16px 17px 20px;
  }

  .drawer-header {
    padding: 16px 17px 14px;
  }

  .drawer-identities {
    padding-top: 0;
  }

  .drawer-identities dl {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 0 8px;
  }

  .drawer-cover {
    border-radius: 5px;
  }

  .drawer-table-wrap {
    max-height: 42vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .decade-chip,
  .year-nav a {
    scroll-behavior: auto;
    transition: none;
  }
}

.drawer-header {
  padding: 20px 22px 17px;
  border-bottom-color: rgba(174, 183, 198, 0.18);
}

.drawer-kicker {
  margin-bottom: 5px;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.drawer-header h2 {
  font-size: clamp(1.12rem, 2.2vw, 1.42rem);
  letter-spacing: -0.02em;
}

.drawer-close {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  height: 34px;
  border-radius: 7px;
  font-size: 1.35rem;
}

.drawer-content {
  gap: 18px;
  padding: 18px 22px 22px;
}

.drawer-identities {
  align-self: start;
  padding: 15px 16px;
  border: 1px solid rgba(174, 183, 198, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.drawer-identities dl {
  grid-template-columns: minmax(68px, 0.38fr) minmax(0, 1fr);
  gap: 0 12px;
}

.drawer-identities dt,
.drawer-identities dd {
  padding: 8px 0;
  border-bottom: 1px solid rgba(174, 183, 198, 0.1);
}

.drawer-identities dt:nth-last-child(2),
.drawer-identities dd:last-child {
  border-bottom: 0;
}

.drawer-identities dt {
  color: #8e99a9;
  font-size: 0.72rem;
}

.drawer-identities dd {
  color: #e7e8e9;
  font-size: 0.82rem;
}

.drawer-release-history h3 {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.drawer-table-wrap {
  border-color: rgba(174, 183, 198, 0.18);
  border-radius: 8px;
}

.drawer table {
  font-size: 0.76rem;
}

.drawer th {
  background: rgba(255, 255, 255, 0.025);
  color: #9ca7b8;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.drawer td {
  color: #e0e4ea;
}

@media (max-width: 820px) {
  .year-nav a {
    justify-content: center;
    gap: 7px;
    min-width: 58px;
    min-height: 38px;
    padding: 0 10px;
  }

  .year-nav a small {
    font-size: 0.62rem;
  }

  .year-nav a.is-active {
    border-color: rgba(244, 201, 93, 0.24);
    background: rgba(244, 201, 93, 0.1);
  }
}

@media (max-width: 520px) {
  .year-nav {
    gap: 9px;
    padding: 8px 9px;
  }

  .year-nav-label {
    font-size: 0.66rem;
  }

  .drawer-content {
    gap: 16px;
    padding: 14px 15px 18px;
  }

  .drawer-identities {
    padding: 12px 13px;
  }
}

/* Statistics board: distinguish section labels from values without fragmenting the shared surface. */
.stats-view > .summary {
  overflow: hidden;
  border-radius: 9px;
}

.stats-view > .summary > div {
  position: relative;
  transition: background-color 160ms ease;
}

.stats-view > .summary > div + div {
  border-left-color: rgba(174, 183, 198, 0.16);
}

.stats-view > .summary > div:hover {
  background: rgba(255, 255, 255, 0.025);
}

.stats-view > .summary strong {
  line-height: 1.1;
}

.stats-charts .chart-heading {
  align-items: center;
}

.stats-charts .chart-heading h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.stats-charts .chart-heading h3::before {
  width: 3px;
  height: 1em;
  border-radius: 2px;
  background: var(--gold);
  content: "";
}

.stats-charts .year-chart-scroll {
  scroll-padding-inline: 16px;
  scrollbar-color: rgba(174, 183, 198, 0.34) rgba(255, 255, 255, 0.035);
}

.stats-charts .year-chart-scroll:focus-visible {
  outline-offset: 4px;
}

.stats-charts .chart-scroll-button {
  border-radius: 7px;
  background: #1a222d;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.stats-charts .bar-row {
  border-radius: 5px;
  transition: background-color 140ms ease;
}

.stats-charts .bar-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

@media (prefers-reduced-motion: reduce) {
  .year-nav a,
  .year-nav a small,
  .stats-view > .summary > div,
  .stats-charts .chart-scroll-button,
  .stats-charts .bar-row {
    transition: none;
  }
}
