:root {
  color-scheme: dark;
  font: 17px/1.6 Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--page);
  --page: #101216;
  --surface: #15171c;
  --raised: #191c23;
  --edge: #303239;
  --edge-strong: #636976;
  --text: #f5f5f6;
  --muted: #abaeb8;
  --accent: #d0c4ef;
  scrollbar-gutter: stable;
  scrollbar-color: var(--edge-strong) var(--page);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--page); }
body { margin: 0; min-width: 280px; background: var(--page); }
.shell { width: min(1280px, 100% - 72px); margin-inline: auto; }

.top { position: sticky; top: 0; z-index: 5; background: #101216f5; border-bottom: 1px solid var(--edge); }
.top-inner, .row-heading, .source-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.top-inner, .row-heading { justify-content: space-between; }
.top-inner { min-height: 60px; padding-block: 10px 4px; }
.edition { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.home-brand { color: var(--text); font-size: 20px; font-weight: 600; text-decoration: none; white-space: nowrap; padding-inline-end: 14px; border-inline-end: 1px solid var(--edge); }
.home-brand:hover { text-decoration: underline; }
.edition strong { font-size: 1.12rem; letter-spacing: -.01em; }
.chip { color: var(--accent); border: 1px solid var(--edge); background: var(--surface); border-radius: 999px; padding: 2px 12px; font-size: .86rem; font-weight: 600; }
.note, .caption-row, .film span, .section-head > p:not(.status), .windows dt { color: var(--muted); }
.tabs { display: flex; gap: 2px 4px; flex-wrap: wrap; padding-block: 4px 0; }
.tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; padding: 10px 14px; font-weight: 600; }
.tabs button:hover { color: var(--text); background: var(--surface); }
.tabs button[aria-selected="true"] { color: var(--text); background: none; border-bottom-color: var(--accent); }

main { padding-bottom: 72px; }
[role="tabpanel"] { animation: arrive .18s ease-out; scroll-margin-top: 100vh; }
@keyframes arrive { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { [role="tabpanel"] { animation: none; } }

button, input, select { font: inherit; }
button {
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
}
button:hover { color: var(--text); border-color: var(--edge-strong); }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; top: -5em; }
.skip:focus { top: 12px; left: 12px; z-index: 9; background: var(--surface); padding: 8px 16px; }

.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 4vw, 56px); padding-block: 36px 32px; }
.status { color: var(--accent); font-weight: 600; margin: 0 0 8px; font-size: .95rem; letter-spacing: .01em; }
h1, h2, p, figure, dl, dd { margin: 0; }
h1 { font-size: clamp(2.05rem, 4.6vw, 4rem); letter-spacing: -.04em; line-height: 1.05; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.12rem, 1.9vw, 1.4rem); line-height: 1.25; letter-spacing: -.015em; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.25rem); margin-top: 10px; color: var(--muted); }
.featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.featured > div { border-left: 3px solid var(--edge-strong); padding-left: 14px; }
.featured .type { color: var(--accent); font-size: .86rem; font-weight: 600; }
.featured p:last-child { color: var(--muted); }
.hero-art { min-width: 0; }
.banner-art { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 8px; }
.caption-row { margin-top: 10px; font-size: .9rem; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 4px 0 20px; }
.stats > div { border: 1px solid var(--edge); border-radius: 12px; background: var(--surface); padding: 16px 20px 18px; }
.stats strong, .stats span { display: block; }
.stats strong { color: var(--text); line-height: 1.08; font-size: clamp(1.9rem, 4vw, 3.1rem); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stats span { color: var(--muted); margin-top: 6px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.block { border: 1px solid var(--edge); border-radius: 12px; background: var(--surface); padding: clamp(16px, 2vw, 24px); min-width: 0; }
.block p, .block a { margin-top: 8px; }
.block h2:not(:first-child) { margin-top: 20px; }
.windows { margin-top: 8px; }
.windows div { display: grid; grid-template-columns: minmax(110px, .75fr) minmax(0, 1fr); gap: 12px; padding-block: 9px; border-bottom: 1px solid var(--edge); }
.windows dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.lineup { padding: 0; list-style: none; margin: 10px 0; }
.lineup li { padding-block: 4px; }
.lineup span { color: var(--muted); }
.note { font-size: .93rem; }

.section-head { margin-block: 36px 26px; }
.section-head h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); margin-bottom: 12px; }
.section-head > p { max-width: 900px; }
.section-head > p:not(.status):not(.note) { font-size: 1.08rem; color: #d8dae0; }
.section-head > p + p { margin-top: 8px; }
.section-head strong { color: var(--text); }

.films { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.film { display: grid; gap: 10px; justify-items: center; background: var(--surface); border: 1px solid var(--edge); border-radius: 12px; padding: 16px; min-width: 0; }
.film figcaption { text-align: center; }
.film span { display: block; font-size: .93rem; margin-top: 3px; }
.film video {
  width: min(100%, 346px);
  width: min(100%, clamp(175px, calc((100dvh - 430px) * .5714286), 346px));
  height: auto;
  aspect-ratio: 960 / 1680;
  object-fit: contain;
  background: var(--page);
  border-radius: 6px;
  display: block;
}
.film video:fullscreen { width: 100%; height: 100%; object-fit: contain; }
a { color: var(--accent); text-underline-offset: 4px; }

.extras-library { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); grid-template-areas: "stage browse"; align-items: start; gap: 16px; }
.extras-browser, .extras-stage { min-width: 0; background: var(--surface); border: 1px solid var(--edge); border-radius: 12px; }
.extras-browser { grid-area: browse; display: grid; gap: 6px; padding: clamp(16px, 2vw, 24px); }
.extras-browser label { color: var(--muted); font-size: .93rem; }
.extras-browser label:not(:first-child) { margin-top: 10px; }
.extras-navigation { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.extras-navigation button:disabled { opacity: .4; cursor: default; }
.extras-stage { grid-area: stage; overflow: hidden; }
.extras-stage video { display: block; width: 100%; height: clamp(230px, 50dvh, 540px); background: #0b0c0e; object-fit: contain; }
.extras-stage video:fullscreen { width: 100%; height: 100%; }
.extras-stage figcaption { padding: 16px 20px 20px; }
.extras-stage figcaption p { margin-top: 4px; }
.extras-stage .source-links { margin-top: 12px; }
@media (max-width: 760px) {
  .extras-library { grid-template-columns: minmax(0, 1fr); grid-template-areas: "browse" "stage"; }
  .extras-stage video { height: clamp(210px, 43dvh, 440px); }
}

.search-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(170px, .7fr); gap: 14px; margin-bottom: 12px; max-width: 820px; }
.search-row label { color: var(--muted); display: grid; gap: 6px; font-size: .93rem; }
input, select { color: var(--text); background: var(--surface); border: 1px solid var(--edge); padding: 10px 12px; border-radius: 8px; min-width: 0; width: 100%; }
input::placeholder { color: #858994; }

.data-list { margin-top: 14px; display: grid; gap: 8px; }
.evo-item { border: 1px solid var(--edge); border-radius: 12px; background: var(--surface); }
.evo-item[open] { border-color: var(--edge-strong); }
.evo-item summary {
  cursor: pointer;
  display: grid;
  align-items: center;
  grid-template-columns: 56px minmax(170px, .8fr) minmax(0, 1.7fr) auto;
  gap: 14px;
  padding: 10px 16px 10px 12px;
  list-style: none;
  border-radius: 12px;
}
.evo-item summary:hover { background: var(--raised); }
.evo-item summary::-webkit-details-marker { display: none; }
.evo-item summary::after { content: "+"; color: var(--muted); font-weight: 600; font-size: 1.2rem; width: 1ch; text-align: center; }
.evo-item[open] summary::after { content: "−"; }
.portrait { width: 56px; height: 56px; border-radius: 10px; display: block; object-fit: cover; }
.who strong, .who span { display: block; overflow-wrap: anywhere; }
.who strong { color: var(--text); line-height: 1.25; }
.who span { color: var(--muted); font-size: .86rem; line-height: 1.3; }
.upgrade { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px 12px; min-width: 0; }
.rank { color: var(--muted); border: 1px solid var(--edge-strong); border-radius: 6px; padding: 1px 8px; font-size: .82rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.skill { display: flex; align-items: center; gap: 9px; min-width: 0; line-height: 1.25; }
.skill img { width: 40px; height: 40px; flex: none; display: block; }
.skill.base { color: #d8dae0; }
.skill.evolved { color: var(--accent); font-weight: 600; }
.arrow { color: var(--muted); }
.evo-detail { margin: 0 16px 14px 82px; padding: 12px 16px; border-left: 3px solid var(--edge-strong); background: var(--page); border-radius: 0 8px 8px 0; }
.evo-detail ul { margin: 6px 0 0; padding-left: 20px; }
.evo-detail p + p { margin-top: 8px; }

.selector-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 0; margin: 12px 0 0; list-style: none; }
.selector-list li { min-width: 0; display: flex; align-items: center; gap: 12px; border: 1px solid var(--edge); border-radius: 12px; background: var(--surface); padding: 8px 12px 8px 8px; }
.selector-list img { width: 60px; height: 60px; flex: none; border-radius: 10px; display: block; object-fit: cover; }
/* The square support textures contain a portrait frame. Restore its proportions. */
.selector-list img.support-thumbnail { height: 78px; border-radius: 0; object-fit: fill; }
.selector-list div { min-width: 0; }
.selector-list strong, .selector-list span { display: block; overflow-wrap: anywhere; line-height: 1.3; }
.selector-list span { color: var(--muted); font-size: .86rem; }
.selector-list .kind { color: var(--accent); font-weight: 600; font-size: .8rem; margin-top: 2px; }

.source-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.source-steps .step { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--raised); border: 1px solid var(--edge); color: var(--accent); font-weight: 700; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.source-steps strong { color: var(--text); }
.comparison figure img { margin-top: 12px; }
.source-links { margin-top: 18px; gap: 10px 24px; }
.time-controls { display: flex; gap: 10px; align-items: center; }
.time-controls select { width: auto; padding: 4px 8px; font-size: .88rem; }
.guide-update { border-left: 3px solid var(--accent); padding: 4px 16px; margin: 0 0 24px; max-width: 85ch; }
.asset-card { display: flex; flex-direction: column; }
.asset-strip { display: block; width: 100%; height: auto; object-fit: contain; margin: 0 auto 14px; }
.asset-card h2:not(:first-child) { margin-top: 0; }
.asset-card > p, .campaign-evidence > p, .versions > p { color: var(--muted); }
.asset-times { margin-top: 14px; }
.asset-card .asset-times { margin-block: auto 0; padding-top: 12px; }
.asset-times > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; padding: 9px 0; border-top: 1px solid var(--edge); }
.asset-times dd, .cue-list span, .campaign-asset time { font-variant-numeric: tabular-nums; }
.asset-times dd { font-size: .95rem; }
.evidence-foot, .version-grid, .campaign-evidence > p, .versions > p { margin-top: 14px; }
.versions, .campaign-evidence { margin: 24px 0; }
.campaign-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 16px 0 26px; }
.campaign-asset { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; background: var(--surface); border: 1px solid var(--edge); border-radius: 12px; padding: 14px; }
.campaign-asset img { display: block; width: 100%; height: auto; }
.campaign-asset figcaption { margin-top: 12px; }
.campaign-asset figcaption span { display: block; font-size: .9rem; color: var(--muted); }
.report-topics { display: grid; gap: 12px; }
.report-topic { min-width: 0; border: 1px solid var(--edge); border-radius: 12px; background: var(--surface); }
.report-topic > summary { cursor: pointer; padding: 14px 20px; font-weight: 600; border-radius: inherit; }
.report-topic > summary::marker { color: var(--accent); }
.report-topic > summary > span { display: block; color: var(--muted); font-size: .9rem; font-weight: 400; margin-left: 1.1em; }
.report-topic > summary:hover { background: var(--raised); }
.report-body { padding: clamp(14px, 2vw, 24px); border-top: 1px solid var(--edge); }
.report-body > * + *, .report-body .campaign-evidence > p { margin-top: 12px; }
.report-body h3 { font-size: 1.1rem; line-height: 1.35; margin-block: 0 8px; }
.report-body > h3 { margin-top: 22px; }
.report-body .campaign-evidence { margin-block: 0; }
.report-body .campaign-grid { margin-bottom: 0; }
.report-body .guide-update { margin-block: 18px; }
.report-events { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); }
.report-event { padding: 0; overflow: hidden; background: var(--page); }
.report-event img { width: 100%; height: auto; display: block; }
.report-event > div { padding: 14px 16px; }
.report-event dl { margin: 12px 0; }
.report-event dt { color: var(--muted); font-size: .9rem; }
.report-event dd + dt { margin-top: 6px; }
.report-songs { columns: 2 230px; column-gap: 2rem; }
.report-songs li { break-inside: avoid; }
.films { grid-template-columns: repeat(auto-fit,minmax(min(100%,270px),1fr)); }
.film-links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.extras-library { grid-template-areas: "stage browse" "cues cues"; }
.cue-panel { grid-area: cues; }
.cue-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(240px,100%),1fr)); gap: 0 24px; list-style: none; padding: 0; margin: 12px 0 0; }
.cue-list li { border-top: 1px solid var(--edge); }
.cue-list a { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; margin: 0; text-decoration: none; color: var(--text); }
.cue-list a:hover { text-decoration: underline; }
.cue-list span { flex: 0 0 3em; color: var(--accent); }
@media (max-width:760px) {
  .extras-library { grid-template-areas: "browse" "stage" "cues"; }
  .time-controls { flex-wrap: wrap; }
}
@media (max-width:620px) {
  .top { position: static; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tabs button { flex: none; white-space: nowrap; }
  .campaign-grid { grid-template-columns: 1fr; }
}
.check { margin-top: 22px; border-top: 1px solid var(--edge); padding-top: 14px; }
.check summary { cursor: pointer; color: var(--muted); font-weight: 600; width: fit-content; }
.check summary:hover { color: var(--text); }
.verification { margin-block: 16px 0; padding-left: 29px; }
.verification li + li { margin-top: 18px; }
.verification p { margin-top: 6px; }
pre {
  margin: 8px 0 0;
  padding: 12px 14px;
  color: var(--text);
  background: var(--page);
  border: 1px solid var(--edge);
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
code { font-family: Consolas, "SFMono-Regular", monospace; font-size: .88em; overflow-wrap: anywhere; }
.desktop-break { display: none; }
@media (min-width:1000px) { .desktop-break { display: initial; } }
@media (max-width:900px) {
  .shell { width: calc(100% - 36px); }
  .hero { gap: 18px; }
  .selector-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .source-steps { grid-template-columns: 1fr; }
  .evo-item summary { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .upgrade { grid-column: 1 / -1; grid-row: 2; }
  .evo-detail { margin-left: 16px; }
}
@media (max-width:620px) {
  .shell { width: calc(100% - 26px); }
  .hero, .two, .films { grid-template-columns: 1fr; }
  .stats { gap: 8px; }
  .stats > div { padding: 10px; }
  .stats span { font-size: .85rem; }
  .search-row { grid-template-columns: minmax(0,1fr); }
  .upgrade { grid-template-columns: auto minmax(0, 1fr); }
  .upgrade .arrow { display: none; }
  .upgrade .evolved { grid-column: 2; }
  .selector-list { grid-template-columns: minmax(0,1fr); }
}
