/* One shared landing animation, with different final scales for the two releases. */
.counterstrike-page .landing[data-mosaic-landing] { height: 250svh; min-height: 0; }
.counterstrike-page .landing[data-mosaic-landing] .landing-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.zoom-mosaic-surface { position: absolute; inset: 0; overflow: hidden; background: var(--cs-charcoal); contain: layout style paint; }
.zoom-mosaic-surface canvas { display: block; width: 100%; height: 100%; }
.zoom-mosaic-loop { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.zoom-mosaic-loop video { display: block; width: 100%; height: 100%; }
.zoom-mosaic-loop::after {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, #000 0 var(--gap-x), transparent var(--gap-x) calc(var(--cell) - var(--gap-x)), #000 calc(var(--cell) - var(--gap-x)) var(--cell)),
    repeating-linear-gradient(0deg, #000 0 var(--gap-y), transparent var(--gap-y) calc(var(--cell) - var(--gap-y)), #000 calc(var(--cell) - var(--gap-y)) var(--cell));
}
.zoom-mosaic-loop[data-playing] { opacity: 1; }
.zoom-mosaic-stages { will-change: transform, opacity; backface-visibility: hidden; }
.zoom-mosaic-stages::after { content: none; }
.zoom-mosaic-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.zoom-mosaic-stages video { visibility: hidden; }
.zoom-mosaic-stages[data-playing] > video, .zoom-mosaic-core[data-playing] > video { visibility: visible; }
.zoom-mosaic-stages[data-playing] > .zoom-mosaic-poster, .zoom-mosaic-core[data-playing] > .zoom-mosaic-poster { visibility: hidden; }
.zoom-mosaic-core { position: absolute; inset: 0; transform: translate3d(0, 0, 0) scale(var(--core-fraction)); will-change: transform, opacity; backface-visibility: hidden; }
.zoom-featured-wrap { position: absolute; left: 0; top: 0; overflow: hidden; pointer-events: none; }
.zoom-mosaic-surface[data-renderer="video"] .zoom-featured-wrap { width: 100%; height: 100%; }
.zoom-featured { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.zoom-mosaic-surface[role="button"][aria-disabled="false"] { cursor: zoom-in; }
.zoom-mosaic-surface:focus-visible { outline: 3px solid var(--border); outline-offset: -3px; }
.mosaic-preview { position: fixed; z-index: 1000; max-width: calc(100vw - 24px); background: var(--cs-charcoal); color: var(--fg); box-shadow: 0 8px 24px #00000044; font: 12px/1.5 Arial, sans-serif; }
.mosaic-preview, .mosaic-preview * { pointer-events: none; }
.mosaic-preview[hidden] { display: none; }
.mosaic-preview-stage { position: relative; aspect-ratio: 16 / 9; background: var(--cs-charcoal); overflow: hidden; --overlay-opacity: .7; --overlay-scale: 1.25; }
.mosaic-preview-stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
.mosaic-preview-stage[data-loading] video { opacity: 0; }
.mosaic-preview-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--fg); background: var(--cs-charcoal); margin: 0; padding: 14px; }
.mosaic-preview-loading[hidden] { display: none; }
.mosaic-loading-dots span { opacity: 0; animation: mosaic-dot-pulse 1.2s infinite; }
.mosaic-loading-dots span:nth-child(2) { animation-delay: .2s; }
.mosaic-loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes mosaic-dot-pulse { 0%, 15% { opacity: 0; } 35%, 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mosaic-loading-dots span { opacity: 1; animation: none; } }
.counterstrike-page .mosaic-scale { position: absolute; bottom: 20px; right: 24px; z-index: 3; color: #ffffffb3; font: 10px/1.5 ui-monospace, monospace; letter-spacing: .03em; }
.project-index .index-header { padding-top: 48px; padding-bottom: 30px; }
.project-index .index-header h1 { font-size: clamp(40px, 5vw, 64px); margin-top: 5px; }
.dataset-home .index-header { padding-block: clamp(34px, 4vw, 56px) clamp(28px, 3.2vw, 44px); }
.dataset-home .index-header h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.12; margin-bottom: clamp(14px, 1.5vw, 20px); }
.dataset-home .index-header .index-description { max-width: 720px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.55; text-wrap: balance; }
.dataset-home .index-publication { margin-bottom: clamp(12px, 1.2vw, 16px); }
.dataset-home .index-meta { margin-top: clamp(16px, 1.6vw, 22px); }
.dataset-home .index-header .index-affiliation-note { margin-top: 8px; }
.dataset-journey { position: relative; margin-bottom: 38px; }
.journey-frame { padding-bottom: 24px; }
.journey-layout { display: grid; grid-template-columns: minmax(0, 1fr) 235px; gap: 32px; align-items: center; }
.journey-player { min-width: 0; }
.journey-visual { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.journey-visual .zoom-mosaic-surface { background: var(--surface); }
.dataset-home .journey-visual { min-width: 0; container-type: inline-size; }
.dataset-home .journey-frame { --journey-width: 760px; display: grid; grid-template-columns: minmax(0, var(--journey-width)) auto; justify-content: center; align-items: center; gap: clamp(20px, 3vw, 42px); padding-bottom: 0; }
@media (min-width: 901px) {
  .dataset-home .journey-frame { --journey-width: clamp(300px, calc((100svh - 510px) * 16 / 9), 760px); }
}
.dataset-home .journey-rail { width: max-content; --stop-height: 34px; }
.dataset-home .journey-rail .dataset-stop { padding-block: 8px; }
.dataset-home .journey-rail .dataset-stop-indicator { top: 9px; }
.journey-scale-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2; pointer-events: none;
  padding: 3px 7px; border: 1px solid #52616c; border-radius: 3px;
  background: #0c1217ed; color: #d8e6ef; font: 500 11px/1.25 Arial, sans-serif;
}
@media (max-width: 640px) {
  .dataset-home .journey-frame { grid-template-columns: minmax(0, var(--journey-width)); gap: 14px; }
  .dataset-home .journey-rail { width: 100%; }
  .dataset-home .journey-rail .dataset-stop-indicator { top: -1px; }
}
.dataset-home [data-center-journey] .zoom-mosaic-surface { background: #000; }
.dataset-scale-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; margin-top: 12px; }
.dataset-subsets { margin-top: 16px; min-width: 0; container-type: inline-size; }
.counterstrike-page .dataset-section-heading {
  margin: 0 0 12px; font-size: 18px; line-height: 1.4; letter-spacing: -.02em; text-transform: none;
}
.dataset-home .dataset-journey { margin-bottom: 0; }
.dataset-read-more {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 3px;
  background: var(--surface); color: var(--cs-blue); font-size: 13px;
  transition: background-color .45s ease, border-color .45s ease, color .45s ease;
}
.dataset-home .dataset-read-more { margin-top: clamp(28px, 2.8vw, 40px); }
.dataset-read-more:is(:hover, :focus-visible, [data-highlight]) {
  border-color: var(--cs-blue-label); background: var(--accent-soft); color: var(--fg); text-decoration: none;
}
.dataset-scale-card {
  position: relative; min-width: 0; padding: 10px; border: 1px solid #334049;
  border-radius: 3px; background: #0d1216; color: #cbd3d8; scroll-margin-top: 20px;
  display: grid; align-content: start; gap: 6px;
  transition: background-color .45s ease, border-color .45s ease;
}
.dataset-scale-card[aria-current="step"] { border-color: #89adc4; background: #111b22; }
.dataset-home .dataset-scale-card[aria-current="step"] h2 { color: #c7e7fc; }
.dataset-home .dataset-scale-card h2 { text-transform: none; letter-spacing: -.015em; margin: 0 0 2px; color: #e1e6ea; font-size: 15px; line-height: 1.3; transition: color .45s ease; }
@media (prefers-reduced-motion: reduce) {
  .dataset-read-more, .dataset-scale-card, .dataset-home .dataset-scale-card h2 { transition: none; }
}
.dataset-fact-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.dataset-fact-row .subset-facts { flex: 1; min-width: 0; }
.dataset-scale-hours { font-variant-numeric: tabular-nums; }
.dataset-chip-label { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.35; }
.dataset-map-labels, .dataset-modalities { display: flex; flex-wrap: wrap; gap: 3px; margin: 0; padding: 0; list-style: none; }
.dataset-scale-hours, .dataset-map-labels li, .dataset-modalities li {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px; margin: 0;
  border: 1px solid #39444b; border-radius: 3px; background: transparent;
  color: #c1cbd2; font: 400 10px/1.2 Arial, sans-serif; white-space: nowrap;
}
.dataset-map-labels li { border-color: color-mix(in srgb, var(--map-color) 38%, #20272c); }
.dataset-map-labels li span { color: #abb7bf; font-variant-numeric: tabular-nums; }
.subset-chip-row { flex-wrap: nowrap; gap: 3px; }
.subset-chip-row li { flex-shrink: 0; padding-inline: 3px; }
.subset-chip-row .subset-more { padding: 0; border: 0; }
.subset-more button {
  padding: 2px 3px; font: inherit; white-space: nowrap; color: var(--cs-blue-label);
  border: 1px solid var(--border-strong); border-radius: 3px; background: transparent;
}
.subset-more button:hover { background: var(--surface-muted); }
.subset-popover {
  position: fixed; inset: auto; box-sizing: border-box; width: max-content;
  max-width: min(255px, calc(100vw - 16px)); margin: 0; padding: 7px; gap: 4px;
  background: var(--surface-muted); border: 1px solid var(--border-strong); border-radius: 4px;
  box-shadow: 0 4px 16px #0007;
}
.subset-popover:not(:popover-open) { display: none; }
.share-ring {
  flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: conic-gradient(var(--map-color) var(--share), #3b454c 0);
  mask: radial-gradient(circle,transparent 38%,black 49%);
}
.map-ancient { --map-color: #91bc9c; } .map-anubis { --map-color: #c8a277; }
.map-cache { --map-color: #adbb82; } .map-dust2 { --map-color: #dbbd78; }
.map-inferno { --map-color: #c99486; } .map-mirage { --map-color: #b29bc2; }
.map-nuke { --map-color: #93b2ce; } .map-overpass { --map-color: #81b4b2; }
@container (max-width: 940px) {
  .dataset-scale-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@container (max-width: 375px) {
  .subset-chip-row { gap: 1px; }
  .subset-chip-row li, .subset-more button { padding-inline: 2px; }
  .subset-chip-row .subset-more { padding: 0; }
}
@media (max-width: 480px) {
  .dataset-scale-card { padding: 8px; }
}
@container (max-width: 450px) {
  .dataset-scale-grid { grid-template-columns: 1fr; }
}
.journey-caption { display: flex; justify-content: flex-end; padding: 11px 0; font-size: 11px; color: var(--muted); }
.journey-caption { color: var(--faint); }
.journey-caption a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.dataset-stops { --stop-height: 26px; position: relative; width: 200px; max-width: 100%; border-left: 1px solid var(--border); }
.dataset-stop { --active-weight: 0; display: block; position: relative; height: var(--stop-height); padding: 4px 8px 4px 16px; text-decoration: none; }
.dataset-stop:hover .dataset-stop-label > span { text-decoration: underline; text-underline-offset: 4px; }
.dataset-stop:hover { text-decoration: none; }
.counterstrike-page .dataset-stop-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0; border: 0; border-radius: 0; background: none; color: color-mix(in srgb, var(--fg) calc(var(--active-weight) * 100%), var(--muted)); font-size: 12px; line-height: 18px; width: 100%; text-align: left; white-space: nowrap; }
.dataset-stop-label > span { font-weight: 400; }
.dataset-stop-indicator { position: absolute; left: -1px; top: 5px; width: 2px; height: 16px; background: var(--fg); opacity: var(--rail-reveal, 0); transform: translate3d(0, calc(var(--rail-position, 0) * var(--stop-height)), 0); pointer-events: none; will-change: transform, opacity; }
.dataset-stop-label small { font-size: inherit; line-height: inherit; white-space: nowrap; font-weight: 400; }
.dataset-stop-label time { font-variant-numeric: tabular-nums; }
.dataset-stop p { color: var(--muted); font-size: 10px; margin: 7px 0 0; }
.dataset-stop-rendering { height: auto; min-height: var(--stop-height); }
.dataset-stops:has(.dataset-stop-rendering) { width: 100%; }
.dataset-stop-rendering .rendering-status { font-size: 12px; }
.dataset-stop .rendering-caption { margin: 1px 0 0; text-align: right; color: var(--faint); line-height: 14px; }
.journey-blog-link { display: block; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--fg); font-size: 12px; line-height: 1.6; }
.journey-blog-link > .journey-blog-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.journey-scale-mark { position: absolute; top: 0; left: 0; z-index: 2; background: var(--surface); color: var(--muted); font: 400 12px/1.5 Arial, sans-serif; padding: 3px 6px; pointer-events: none; transform: translateY(-10000px); will-change: transform; }
.dataset-directory-heading { font-size: 21px; letter-spacing: -.025em; text-transform: none; color: var(--fg); margin: 0 0 24px; }
@media (max-width: 800px) {
  .journey-layout { grid-template-columns: minmax(0, 1fr) 195px; gap: 20px; }
  .dataset-stop { padding-left: 13px; }
}
@media (max-width: 640px) {
  .journey-layout { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .dataset-stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-left: 0; border-top: 1px solid var(--border); }
  .counterstrike-page .dataset-stop-label { flex-direction: column; align-items: flex-start; gap: 3px; }
  .dataset-stop { height: auto; padding: 13px 7px 8px 0; }
  .dataset-stop-indicator { left: 0; top: -1px; width: calc(100% / 3 - 7px); height: 2px; transform: translateX(calc(var(--rail-position, 0) * (100% + 7px))); }
  .counterstrike-page .dataset-stop-label { font-size: 10px; }
  .dataset-stop-label small { font-size: 9px; }
  .dataset-stop p { font-size: 9px; }
  .dataset-stop .rendering-caption { text-align: left; }
  .journey-caption { font-size: 9px; }
  .project-index .index-header { padding-top: 32px; }
  .counterstrike-page .mosaic-scale { right: 18px; font-size: 8px; bottom: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .counterstrike-page .landing[data-mosaic-landing] { height: 100svh; }
  .counterstrike-page .landing[data-mosaic-landing] .landing-stage { position: relative; }
}

.journey-blog-link:hover { text-decoration: none; }
.journey-blog-link:hover .journey-blog-title { text-decoration: underline; text-underline-offset: 2px; }

/* The depth subset sits before the existing 1K -> 10K -> 25K animation stops. */
@media (max-width: 640px) {
  .dataset-stops:has(.dataset-stop-depth) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dataset-stops:has(.dataset-stop-depth) .dataset-stop-indicator { width: calc(100% / 4 - 7px); }
}
