/* Overview page: screen switch, patch hero, heroes touched, new art, lists, bar charts, patch history. */
.landing { max-width: 77.5rem; margin: 0 auto; padding: 1.75rem 2rem 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.landing-sections { display: flex; flex-direction: column; gap: 1.25rem; }

.hero-band {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center;
  padding: 2.5rem 2.5rem 2.25rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-1); overflow: hidden; isolation: isolate;
}
/* The "river": a faint diagonal channel echoing the logo. */
.hero-band::before {
  content: ""; position: absolute; z-index: -1; right: -12%; top: -60%; width: 46%; height: 220%; transform: rotate(35deg);
  background: linear-gradient(90deg, transparent, var(--accent-soft) 45%, var(--accent-soft) 55%, transparent);
  opacity: .55;
}
.hero-text { display: flex; flex-direction: column; gap: .875rem; min-width: 0; }
.overline { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-2); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.live-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.display { font: 700 clamp(2.25rem, 5vw, 3.75rem)/1 var(--font-display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.hero-sub { color: var(--text-2); font-size: .9375rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: .625rem; }
.hero-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .625rem; }
.stat { padding: .875rem 1rem; border-radius: .75rem; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.stat-value { font: 650 clamp(1.375rem, 2.6vw, 2rem)/1.15 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-added .stat-value { color: var(--added-text); }
.stat-modified .stat-value { color: var(--modified-text); }
.stat-removed .stat-value { color: var(--removed-text); }
.stat.zero .stat-value { color: var(--text-3); }
.hero-stats[data-len="l"] .stat-value { font-size: 1.5rem; }
.hero-stats[data-len="xl"] .stat-value { font-size: 1.25rem; }
.stat-label { margin-top: .25rem; color: var(--text-2); font-size: .7812rem; }
.hero-bar-wrap { display: flex; flex-direction: column; gap: .5rem; min-height: 2.125rem; }
.hero-bar { height: .75rem; border-radius: .375rem; gap: 2px; }
.hero-bar > span:first-child { border-radius: .375rem 0 0 .375rem; }
.hero-bar > span:last-child { border-radius: 0 .375rem .375rem 0; }
.hero-total { color: var(--text-2); font-size: .7812rem; }
.hero-legend { display: flex; }
.hero-note { display: flex; gap: .625rem; padding: .75rem .875rem; border-radius: .625rem; background: var(--accent-soft); color: var(--text); font-size: .8125rem; border: 1px solid var(--accent-line); }
.hero-note .icon { color: var(--accent); margin-top: 1px; }

.block { padding: 1.25rem 1.375rem 1.375rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-1); min-width: 0; }
.block-head { display: flex; align-items: center; flex-wrap: wrap; gap: .375rem .75rem; margin-bottom: 1rem; min-height: 1.75rem; }
.block-title { font: 600 .9375rem/1.3 var(--font-display); letter-spacing: -.01em; }
.block-meta { color: var(--text-3); font: .7812rem var(--font-mono); font-variant-numeric: tabular-nums; }
.block-skeleton { display: grid; gap: .625rem; }
.block-skeleton .skeleton { height: .875rem; }
.block-skeleton .skeleton:nth-child(2) { width: 82%; }
.block-skeleton .skeleton:nth-child(3) { width: 64%; }
.block-skeleton .skeleton:nth-child(4) { width: 74%; }
.sub-title { margin-bottom: .625rem; color: var(--text-3); font-size: .6875rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.quiet-empty { color: var(--text-3); font-size: .8125rem; padding: .5rem 0; }
.show-more { margin-top: .75rem; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26.25rem), 1fr)); gap: 1.25rem; }
.two-col:empty { display: none; }
/* New models / effects / sounds: three across when they fit; a block left alone on a row takes the full width. */
.media-row { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.media-row > .block { flex: 1 1 20rem; }
.media-row:empty { display: none; }
/* Narrow columns: the same two-row head in all three (title + count, then scope chip ... View all). */
.media-row .block-head::before { content: ""; order: 1; flex-basis: 100%; height: 0; }
.media-row .block-head > .scope-chip, .media-row .block-head > .grow, .media-row .block-head > .link-arrow { order: 2; }
.two-col.tight { gap: 1.75rem; }

/* Hero cards */
.hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.375rem, 1fr)); gap: .625rem; }
.hero-grid.compact { grid-template-columns: repeat(auto-fill, minmax(7.625rem, 1fr)); gap: .5rem; }
.hero-card {
  position: relative; display: flex; flex-direction: column; border-radius: .625rem; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2); transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.hero-card:hover { border-color: var(--text-3); transform: translateY(-1px); }
.hero-portrait { display: grid; place-items: center; aspect-ratio: 128 / 72; background: var(--surface-3); overflow: hidden; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-monogram { font: 700 1.375rem var(--font-display); color: var(--text-3); text-transform: uppercase; }
.hero-info { display: flex; flex-direction: column; gap: 2px; padding: .5rem .625rem .625rem; min-width: 0; }
.hero-name { font-size: .8125rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-grid.compact .hero-info { padding: .4375rem .5625rem .5rem; }
.hero-grid.compact .hero-name { font-size: .7812rem; font-weight: 550; }
.hero-card .hero-bar { position: absolute; left: 0; right: 0; bottom: 0; height: .1875rem; border-radius: 0; gap: 1px; }
.hero-card .hero-bar > span { border-radius: 0 !important; }

/* New art */
.art-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .625rem; }
.art-tile { display: flex; flex-direction: column; gap: .375rem; min-width: 0; }
.art-thumb { display: grid; place-items: center; aspect-ratio: 1; border-radius: .625rem; border: 1px solid var(--line); overflow: hidden; transition: border-color var(--t-fast) var(--ease); }
.art-tile:hover .art-thumb { border-color: var(--text-3); }
.art-thumb img { max-width: 86%; max-height: 86%; object-fit: contain; }
.art-name { color: var(--text-2); font: .6875rem var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* File rows */
.file-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21.25rem), 1fr)); column-gap: 1rem; margin: 0 -.5rem; }
.file-row { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; align-items: center; gap: .625rem; padding: .4375rem .5rem; border-radius: .5rem; }
.file-row:hover { background: var(--surface-2); }
.file-row-main { display: flex; flex-direction: column; min-width: 0; }
.file-row-name { font-size: .8125rem; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row-dir { color: var(--text-3); font: .7188rem var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* "+N more · View all": the last entry of a list that shows only part of its items, so it never looks complete. */
.more-row {
  grid-column: 1 / -1; display: flex; align-items: center; gap: .75rem; margin-top: .375rem; padding: .5625rem .75rem;
  border-radius: .5rem; border: 1px dashed var(--line-2); color: var(--text-2); font-size: .8125rem; font-weight: 550;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.more-row:hover { border-color: var(--accent-line); background: var(--accent-soft); }
button.more-row { width: 100%; text-align: left; cursor: pointer; }
.more-count { color: var(--text); font: 650 .8125rem var(--font-mono); font-variant-numeric: tabular-nums; }
.more-action { display: inline-flex; align-items: center; gap: .25rem; margin-left: auto; color: var(--accent); white-space: nowrap; }
.art-more .art-thumb { border-style: dashed; border-color: var(--line-2); background: var(--surface-2); }
.art-more:hover .art-thumb { border-color: var(--accent-line); background: var(--accent-soft); }
.art-more-count { color: var(--text); font: 650 1.125rem var(--font-display); letter-spacing: -.02em; }
.art-more .art-name { color: var(--accent); font-family: var(--font-ui); font-weight: 550; }

/* Bars */
.bars { display: flex; flex-direction: column; margin: 0 -.5rem; }
.bar-row { display: grid; grid-template-columns: minmax(6.875rem, 36%) minmax(0, 1fr) auto; align-items: center; gap: .875rem; padding: .375rem .5rem; border-radius: .4375rem; }
.bar-row:hover { background: var(--surface-2); }
.bar-label { display: flex; align-items: center; gap: .5rem; min-width: 0; font: .7812rem var(--font-mono); }
.bar-label .file-icon { width: 1.125rem; height: 1.125rem; }
.bar-label .file-icon svg { width: 1rem; height: 1rem; }
.bar-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-cell { min-width: 0; }
.bar-track { height: .625rem; border-radius: .25rem; }
.bar-track > span:first-child { border-radius: .25rem 0 0 .25rem; }
.bar-track > span:last-child { border-radius: 0 .25rem .25rem 0; }
.bar-track > span:only-child { border-radius: .25rem; }
.bar-value { color: var(--text-2); font: .75rem var(--font-mono); text-align: right; white-space: nowrap; }

/* Timeline */
.timeline-block .block-head { margin-bottom: .5rem; }
.range-picker { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex-wrap: wrap; }
.range-picker .select { height: 1.875rem; font-size: .7812rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item { position: relative; display: grid; grid-template-columns: 1.375rem minmax(0, 1fr) auto; align-items: center; gap: .625rem; }
.tl-item + .tl-item { border-top: 1px solid var(--line); }
.tl-item::before { content: ""; position: absolute; left: .625rem; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-item:first-child::before { top: 50%; }
.tl-item:last-child::before { bottom: 50%; }
.tl-item:only-child::before { display: none; }
.tl-node { position: relative; z-index: 1; width: .75rem; height: .75rem; margin-left: .3125rem; border-radius: 50%; background: var(--surface-1); border: 2px solid var(--text-3); }
.tl-item.current .tl-node { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-item.base .tl-node { border-color: var(--accent); }
.tl-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); align-items: center; gap: 1rem; padding: .75rem; margin: 2px 0; border-radius: .625rem; min-width: 0; transition: background var(--t-fast) var(--ease); }
.tl-link:hover { background: var(--surface-2); }
.tl-main { display: flex; flex-direction: column; min-width: 0; }
.tl-title { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font: 600 .875rem var(--font-mono); }
.tl-title .tag { font-family: var(--font-ui); }
.tl-meta { color: var(--text-2); font-size: .7812rem; margin-top: 2px; }
.tl-delta { display: flex; flex-direction: column; align-items: flex-end; gap: .3125rem; min-width: 0; font-size: .7812rem; }
.tl-total { color: var(--text); font: 550 .7812rem var(--font-mono); font-variant-numeric: tabular-nums; }
.tl-counts { display: flex; align-items: center; gap: .625rem; }
.tl-bar { width: 4.5rem; height: .3125rem; }
.tl-sk { width: 8.75rem; height: .625rem; }
.tl-actions { display: flex; gap: 2px; justify-content: flex-end; }

.landing-foot { display: flex; align-items: center; justify-content: center; gap: .625rem; padding: .75rem .5rem .25rem; color: var(--text-3); font-size: .75rem; text-align: center; }
.foot-brand { opacity: .7; flex: none; }

.landing-boot .hero-text { gap: 1.125rem; }
.landing-boot .hero-band { min-height: 16.25rem; }

/* ------------------------------------------------------------ screen switch + zones
   "Latest patch | Patch history" switches between two screens. Patch zone: the hero card and every section about
   that patch share one framed, tinted container with an accent rail, a label row with a scope chip, and a zone
   heading. History zone: the same frame around the list of every build. */
/* Centered over the zone below it; the active screen is a solid accent pill. Equal columns as wide as the longer
   label (1fr columns of a max-content grid), so neither label is cut. */
.view-switch {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-self: center; width: max-content; max-width: 100%;
  gap: .25rem; padding: .3125rem;
  border-radius: 62.4375rem; border: 1px solid var(--line-2); background: var(--surface-1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 20px rgba(0, 0, 0, .07);
}
.view-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: .5625rem; min-width: 12.5rem; height: 2.875rem;
  padding: 0 1.5rem; border-radius: 62.4375rem; color: var(--text-2); font-size: .9688rem; font-weight: 650; white-space: nowrap;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.view-tab > span:not(.live-dot):not(.view-count) { overflow: hidden; text-overflow: ellipsis; }
.view-tab .icon { color: var(--text-3); flex: none; }
.view-tab .live-dot { flex: none; }
.view-tab:hover { color: var(--text); background: var(--surface-3); }
.view-tab[aria-current="page"] { color: var(--ink-inverse); background: var(--accent); box-shadow: 0 2px 10px var(--accent-soft); }
.view-tab[aria-current="page"] .icon { color: currentColor; }
.view-tab[aria-current="page"] .live-dot { background: currentColor; box-shadow: 0 0 0 3px rgba(255, 255, 255, .28); }
.view-count {
  flex: none; padding: .125rem .5rem; border-radius: 62.4375rem; background: var(--surface-3); color: var(--text-2);
  font: 650 .7188rem/1.2 var(--font-mono); font-variant-numeric: tabular-nums;
}
.view-tab[aria-current="page"] .view-count { background: rgba(255, 255, 255, .22); color: inherit; }
.overview { display: flex; flex-direction: column; min-height: 100%; }
.overview > .landing { width: 100%; } /* auto margins in a flex column would otherwise shrink it to its content */
.zone-patch {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  padding: .75rem .75rem 1rem; border-radius: 1.5rem; border: 1px solid var(--zone-line); background: var(--zone-bg);
}
.zone-patch::before {
  content: ""; position: absolute; left: -1px; top: 1.5rem; bottom: 1.5rem; width: 3px; border-radius: 0 .1875rem .1875rem 0;
  background: linear-gradient(var(--accent), var(--accent-line) 55%, transparent);
}
.zone-patch .landing-sections { gap: .75rem; }
.zone-label { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .625rem; min-height: 1.75rem; padding: .125rem .25rem 0 .875rem; }
.zone-kicker { color: var(--text-2); font-size: .7188rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
/* "See latest updates": only while an older patch or build is selected */
.zone-latest {
  display: inline-flex; align-items: center; gap: .4375rem; height: 1.375rem; padding: 0 .625rem 0 .5rem; border-radius: 62.4375rem; flex: none;
  background: var(--accent); color: var(--ink-inverse);
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transition: opacity var(--t-fast) var(--ease);
}
.zone-latest:hover { opacity: .88; }
.zone-latest .live-dot { width: .375rem; height: .375rem; background: currentColor; box-shadow: none; }
.zone-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; padding: .75rem .875rem .125rem; }
.zone-title { font: 650 1.25rem/1.25 var(--font-display); letter-spacing: -.02em; }
.zone-sub { color: var(--text-2); font-size: .875rem; }
.scope-chip {
  display: inline-flex; align-items: center; gap: .3125rem; height: 1.375rem; padding: 0 .5rem; border-radius: 62.4375rem; flex: none;
  border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent);
  font: 600 .7188rem/1 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.scope-chip .bc-arrow { margin: 0 .125rem; color: inherit; opacity: .7; }

.zone-history {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.25rem .75rem .75rem; border-radius: 1.5rem; border: 1px solid var(--zone-line); background: var(--zone-bg);
}
.zone-history .global-head { padding: 0 .625rem; }
.timeline-card { padding: .375rem .75rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-1); }
.global-head { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 1rem 1.25rem; }
.global-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .875rem; background: var(--surface-3); color: var(--text); flex: none; }
.global-titles { flex: 1 1 18rem; min-width: 0; }
.global-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem; font: 650 1.375rem/1.25 var(--font-display); letter-spacing: -.02em; }
.global-sub { margin-top: .25rem; color: var(--text-2); font-size: .9375rem; }
.global-head .range-picker { margin-left: 0; align-self: center; }
.tl-item.current .tl-link { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.tl-item.base .tl-link { box-shadow: inset 0 0 0 1px var(--line-2); }
.tl-item.range-start::after, .tl-item.range-end::after, .tl-item.range-mid::after { content: ""; position: absolute; left: .625rem; width: 2px; background: var(--accent); }
.tl-item.range-start::after { top: 50%; bottom: 0; }
.tl-item.range-end::after { top: 0; bottom: 50%; }
.tl-item.range-mid::after { top: 0; bottom: 0; }
.tag-current { border-color: var(--accent-line); color: var(--accent); }
.overview > .landing-foot { padding: 1.25rem 1rem 1.5rem; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .hero-band { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding: 2rem; }
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .tl-item { grid-template-columns: 1.375rem minmax(0, 1fr); }
  .tl-link { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .tl-delta { align-items: flex-start; }
  .tl-actions { grid-column: 2; justify-content: flex-start; padding: 0 0 .625rem .25rem; }
}
@media (max-width: 760px) {
  .zone-patch { padding: .5rem .5rem .75rem; border-radius: 1.125rem; gap: .75rem; }
  .zone-patch::before { top: 1rem; bottom: 1rem; }
  .zone-label { padding: .125rem .125rem 0 .5rem; }
  .zone-heading { padding: .5rem .5rem 0; }
  .zone-title { font-size: 1.0625rem; }
  .view-switch { align-self: stretch; width: auto; }
  .view-tab { min-width: 0; height: 2.625rem; padding: 0 .625rem; gap: .4375rem; font-size: .8438rem; }
  .zone-history { padding: 1rem .5rem .5rem; border-radius: 1.125rem; }
  .zone-history .global-head { padding: 0 .375rem; }
  .timeline-card { padding: .25rem .375rem; border-radius: .875rem; }
  .global-head .range-picker { width: 100%; }
  .range-picker > .muted { flex-basis: 100%; }
  .range-picker .select { flex: 1 1 0; min-width: 0; }
  .global-title { font-size: 1.125rem; }
  .landing { padding: 1rem 1rem 1.75rem; gap: .875rem; }
  .landing-sections { gap: .875rem; }
  .hero-band { padding: 1.375rem 1.125rem 1.25rem; border-radius: .875rem; gap: 1.375rem; }
  .hero-band::before { right: -30%; width: 70%; }
  .hero-sub { font-size: .875rem; }
  .hero-actions { margin-top: .25rem; }
  .hero-actions .btn-lg { height: 2.5rem; padding: 0 .875rem; font-size: .8438rem; }
  .hero-actions .btn-ghost { display: none; }
  .hero-stats { gap: .5rem; }
  .stat { padding: .625rem; }
  .stat-value { font-size: clamp(.9375rem, 4.4vw, 1.25rem); letter-spacing: -.04em; }
  .hero-stats[data-len="l"] .stat-value { font-size: clamp(.8125rem, 3.8vw, 1.0625rem); }
  .hero-stats[data-len="xl"] .stat-value { font-size: clamp(.75rem, 3.4vw, .9375rem); }
  .stat-label { font-size: .7188rem; }
  .block { padding: 1rem; border-radius: .875rem; }
  .hero-grid, .hero-grid.compact { grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr)); gap: .5rem; }
  .hero-info, .hero-grid.compact .hero-info { padding: .375rem .5rem .5rem; }
  .hero-name, .hero-grid.compact .hero-name { font-size: .75rem; }
  .hero-counts .change-counts { font-size: .6562rem; gap: .25rem; }
  .art-strip { grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr)); }
  .bar-row { grid-template-columns: minmax(6rem, 38%) minmax(0, 1fr) auto; gap: .625rem; }
  .range-picker { width: 100%; margin-left: 0; }
  .range-picker .select { flex: 1; min-width: 0; }
}
