:root {
  --accent-on-ground: light-dark(var(--accent-text), color-mix(in srgb, var(--accent-text) 58%, var(--on-surface)));
  --band-text: color-mix(in srgb, var(--surface) 80%, var(--on-surface));
  --band-rule: color-mix(in srgb, var(--surface) 30%, var(--on-surface));
  --leader: color-mix(in srgb, var(--on-surface) 45%, var(--surface));
  --hover-ground: color-mix(in srgb, var(--surface-container) 50%, var(--surface));
  --pad: clamp(1.25rem, 4.5vw, 3.75rem);
  --page: min(1360px, 100%);
  --gap: clamp(1rem, 2vw, 2rem);
  --rhythm: clamp(5rem, 9vw, 8.5rem);
  --chrome-h: 4.25rem;
  --ease: cubic-bezier(.22, .61, .2, 1);
  --z-skip: 200; --z-burger: 100; --z-overlay: 99; --z-nav: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: var(--look-scheme, light); scroll-behavior: smooth; scroll-padding-top: calc(var(--chrome-h) + 1.5rem); -webkit-text-size-adjust: 100%; font-synthesis: none; }
body {
  margin: 0; background: var(--surface); color: var(--on-surface);
  font: 400 1.0625rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
h1, h2, h3 {
  margin: 0; color: inherit; font-family: var(--font-display); font-weight: 400;
  line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; overflow-wrap: break-word;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: -9999px; top: .75rem; z-index: var(--z-skip); padding: .75rem 1.1rem;
  background: var(--on-surface); color: var(--surface); text-decoration: none;
  font: 500 .75rem/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
}
.skip-link:focus-visible { left: .75rem; }
:focus-visible { outline: 2px solid var(--on-surface); outline-offset: 4px; }

.caps, .sec-label, .masthead, .btn, .text-link, .nav-links a, .lang-opt, .footer-legal-links a, .powered a, .toc-xp-unit, .gauge-cap-pts, .dash-label {
  font-family: var(--font-body); font-size: .75rem; font-weight: 500; line-height: 1.25;
  letter-spacing: .16em; text-transform: uppercase; font-variant-numeric: lining-nums;
}

.emblem { width: 1.75rem; height: 1.75rem; flex: none; }
.emblem-dot { fill: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.1rem; padding: .85rem 1.6rem; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 0;
  text-align: center; text-decoration: none; text-wrap: balance;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.btn:hover { background: var(--on-surface); border-color: var(--on-surface); color: var(--surface); }
.btn-line, .btn.ghost { background: transparent; border-color: var(--on-surface); color: var(--on-surface); }
.btn-line:hover, .btn.ghost:hover { background: var(--on-surface); color: var(--surface); }
.btn-sm, .btn.small { min-height: 2.6rem; padding: .55rem 1.05rem; }
.btn-bone { background: var(--surface); border-color: var(--surface); color: var(--on-surface); }
.btn-bone:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-line-bone { background: transparent; border-color: var(--band-text); color: var(--surface); }
.btn-line-bone:hover { background: var(--surface); border-color: var(--surface); color: var(--on-surface); }
.btn svg { flex: none; width: 1.05rem; height: 1.05rem; }
.btn-icon { display: flex; }
.btn[disabled] { cursor: default; }
.text-link {
  display: inline-flex; align-items: center; gap: .45rem; padding-bottom: .3rem;
  color: var(--on-surface); text-decoration: none; border-bottom: 1px solid currentColor;
  transition: color .4s var(--ease);
}
.text-link:hover { color: var(--accent-on-ground); }
.text-link svg { width: .9rem; height: .9rem; }

.nav { position: sticky; top: 0; z-index: var(--z-nav); background: var(--surface); border-bottom: 1px solid var(--line); }
.nav-inner { width: var(--page); margin-inline: auto; padding-inline: var(--pad); min-height: var(--chrome-h); display: flex; align-items: center; gap: 2rem; }
.nav-brand, .dash-title { display: flex; align-items: center; min-width: 0; margin: 0 auto 0 0; font: inherit; letter-spacing: 0; }
.brand { display: inline-flex; align-items: center; gap: .7rem; min-width: 0; color: var(--on-surface); text-decoration: none; }
.brand-word { font: italic 400 1.35rem/1.05 var(--font-display); letter-spacing: -.01em; overflow-wrap: break-word; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a { color: var(--on-surface-variant); text-decoration: none; transition: color .3s var(--ease); }
.nav-links a:hover { color: var(--on-surface); }
.nav-actions { display: flex; align-items: center; gap: 1.25rem; }
.nav-actions .btn { background: transparent; border-color: var(--on-surface); color: var(--on-surface); }
.nav-actions .btn:hover { background: var(--on-surface); color: var(--surface); }
.nav-burger {
  display: none; position: relative; z-index: var(--z-burger); place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  background: none; color: var(--on-surface); border: 1px solid var(--on-surface); border-radius: 0; cursor: pointer;
}
.nav-burger > span { display: contents; }
.nav-burger svg { width: 1.35rem; height: 1.35rem; }
.nav-burger[aria-expanded="false"] .nav-burger-close,
.nav-burger[aria-expanded="true"] .nav-burger-open { display: none; }
.nav-mobile { display: none; }
.is-menu-open .nav { z-index: var(--z-burger); }
@media (max-width: 1100px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: grid; }
  .nav-mobile {
    position: fixed; inset: 0; z-index: var(--z-overlay); display: none; overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; padding: calc(var(--chrome-h) + 2rem) var(--pad) 2.5rem;
    background: var(--surface);
  }
  .nav-mobile.is-open { display: flex; }
  .nav-mobile[hidden] { display: none; }
  .nav-mobile > a:not(.btn) {
    padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--on-surface); text-decoration: none;
    font: 400 clamp(1.6rem, 6vw, 2.2rem)/1.1 var(--font-display); letter-spacing: -.01em;
  }
  .nav-mobile > a:not(.btn):first-child { border-top: 1px solid var(--on-surface); }
  .nav-mobile > a:not(.btn):hover { color: var(--accent-on-ground); }
  .nav-mobile > .btn { margin-top: 2rem; }
  .nav-mobile > .lang-switch { align-self: flex-start; margin-top: 1.5rem; }
}

.lang-switch { display: inline-flex; align-items: center; gap: .15rem; min-height: 2.6rem; }
.lang-opt { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 .45rem; color: var(--on-surface-variant); text-decoration: none; }
a.lang-opt:hover { color: var(--on-surface); }
.lang-opt--active { color: var(--on-surface); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .45em; }
.panel { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface); color: var(--on-surface); border: 1px solid var(--on-surface); }
.panel p { color: var(--on-surface-variant); }
.lang-menu, .profile-menu { position: relative; }
.lang-trigger { gap: .4rem; background: none; border: 0; cursor: pointer; color: var(--on-surface); text-decoration: none; }
.lang-trigger::after { content: ""; width: .4rem; height: .4rem; margin-top: -.25rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; rotate: 45deg; }
.lang-list, .profile-list {
  position: absolute; top: calc(100% + .5rem); right: 0; z-index: 2; min-width: 11rem; width: max-content;
  margin: 0; padding: .4rem 0; list-style: none;
}
.lang-list li, .profile-list li { display: flex; }
.lang-list .lang-opt, .profile-item {
  flex: 1; min-height: 2.75rem; padding: .5rem 1rem; color: var(--on-surface); text-decoration: none;
  font: 400 1rem/1.3 var(--font-body); letter-spacing: 0; text-transform: none;
}
.lang-list .lang-opt:hover, .profile-item:hover { background: var(--surface-container); }
.lang-list .lang-opt--active { font-family: var(--font-display); font-style: italic; text-decoration: none; }
.lang-list[hidden], .profile-list[hidden] { display: none; }
.lang-phone { display: none; }
@media screen and (max-width: 720px) and (scripting: enabled) {
  .lang-phone { display: contents; }
  .lang-switch.lang-desktop { display: none; }
}

.section {
  width: var(--page); margin-inline: auto; padding: var(--rhythm) var(--pad) 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start;
}
section[id] { scroll-margin-top: calc(var(--chrome-h) + 1.5rem); }
.section > * { grid-column: 5 / -1; border-top: 1px solid var(--line); }
.section > .sec-head { grid-column: 1 / 5; border-top-color: var(--on-surface); }
.sec-head { padding: 1.1rem 2rem 0 0; }
.sec-label { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.6rem; color: var(--on-surface-variant); }
.sec-no::before {
  content: attr(data-idx);
  font: italic 400 1.2rem/1 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--accent-on-ground);
}
.sec-h { font-size: clamp(2rem, 1.25rem + 2.4vw, 3.2rem); line-height: 1.04; letter-spacing: -.02em; }
.sec-head > .sec-h:first-child { margin-top: .35rem; }
.sec-intro { max-width: 26rem; margin-top: 1.25rem; color: var(--on-surface-variant); }
@media (min-width: 901px) {
  .section > .sec-head { position: sticky; top: calc(var(--chrome-h) + 1.5rem); }
}

.section--wide > .sec-head {
  position: static; grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: start; padding-right: 0;
}
.section--wide > .sec-head > .sec-label { grid-column: 1 / 5; grid-row: 1 / span 2; margin: 0; }
.section--wide > .sec-head > .sec-h { grid-column: 5 / 12; margin: 0; }
.section--wide > .sec-head > .sec-intro { grid-column: 5 / 11; }
.section--wide > :not(.sec-head) { grid-column: 1 / -1; border-top: 0; margin-top: clamp(2.5rem, 5vw, 4rem); }

.hero {
  width: var(--page); margin-inline: auto; padding: clamp(2.25rem, 4.5vw, 4rem) var(--pad) 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start;
}
.hero-copy { grid-column: 1 / 7; display: grid; justify-items: start; padding-top: clamp(0rem, 2vw, 2rem); }
.masthead { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem .9rem; margin-bottom: 2rem; color: var(--on-surface-variant); }
.hero-logo { display: block; padding: .45rem .7rem; background: var(--accent); }
.hero-logo img { width: auto; height: 2.1rem; max-width: 10rem; object-fit: contain; }
.masthead-rule { flex: none; width: 2.5rem; height: 1px; background: var(--on-surface); }
.hero-h { max-width: 12ch; font-size: clamp(2.9rem, 1.2rem + 4.6vw, 5.8rem); line-height: 1.02; letter-spacing: -.025em; }
.hero-line { display: block; }
.hero-line--accent { display: inline; font-style: italic; color: var(--accent-on-ground); }
.hero-h::after { content: ""; display: block; width: 4.5rem; height: 2px; margin-top: .35em; background: var(--accent-on-ground); transform-origin: left center; }
.hero-sub { max-width: 34rem; margin-top: 2rem; font-size: 1.125rem; color: var(--on-surface-variant); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.plate { margin: 0; }
.plate-frame { position: relative; display: block; overflow: hidden; background: var(--surface-container); }
.plate-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); pointer-events: none; }
.plate-img { width: 100%; height: 100%; object-fit: cover; }
.plate-cap { display: flex; align-items: baseline; gap: .75rem; padding-top: .85rem; font-size: .9rem; color: var(--on-surface-variant); }
.plate-no { font: italic 400 1.05rem/1 var(--font-display); color: var(--accent-on-ground); }
.plate--hero { grid-column: 7 / -1; }
.plate--hero .plate-frame { height: clamp(26rem, calc(100svh - var(--chrome-h) - 5rem), 50rem); }
.plate--hero .hero-art, .plate--band .plate-img { object-position: var(--art-focus, 50% 50%); }
.engraving { width: 100%; height: 100%; }
.e-ground { fill: var(--surface); }
.e-sun { fill: var(--accent); }
.e-fill { fill: var(--on-surface); }
.e-hair { fill: none; stroke: var(--on-surface); stroke-width: .7; }
.e-ink { fill: none; stroke: var(--on-surface); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.step { padding: 1.1rem 1.5rem 0; border-left: 1px solid var(--line); }
.step:first-child { padding-left: 0; border-left: 0; }
.step-no { display: block; margin-bottom: 2rem; font: italic 400 3.4rem/1 var(--font-display); color: var(--on-surface); }
.step h3 { margin-bottom: .75rem; font-size: 1.45rem; line-height: 1.15; }
.step p { font-size: .98rem; color: var(--on-surface-variant); }
@media (min-width: 721px) {
  .steps:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .steps:has(> :nth-child(4)) > :nth-child(odd) { padding-left: 0; border-left: 0; }
  .steps:has(> :nth-child(4)) .step-no { margin-bottom: 1.25rem; }
}

.toc { list-style: none; margin: 0; padding: 0; }
.toc-row {
  display: grid; grid-template-columns: 3.5rem auto minmax(2rem, 1fr) auto;
  grid-template-areas: "no name leader xp" ". desc desc desc";
  column-gap: 1rem; row-gap: .35rem; align-items: baseline;
  padding: 1.45rem 0 1.35rem; border-bottom: 1px solid var(--line);
}
.toc-no { grid-area: no; font: 400 1.05rem/1 var(--font-display); letter-spacing: .06em; color: var(--on-surface-variant); font-variant-numeric: lining-nums; }
.toc-name { grid-area: name; min-width: 0; font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem); line-height: 1.1; }
.toc-leader { grid-area: leader; align-self: end; margin-bottom: .5em; border-bottom: 1px dotted var(--leader); }
.toc-xp { grid-area: xp; display: flex; align-items: baseline; gap: .3rem; white-space: nowrap; color: var(--on-surface-variant); }
.toc-xp-num { font: 400 1.6rem/1 var(--font-display); color: var(--on-surface); font-variant-numeric: lining-nums tabular-nums; }
.toc-desc { grid-area: desc; display: grid; gap: .2rem; min-width: 0; color: var(--on-surface-variant); font-size: .98rem; }
.toc-reward { color: var(--on-surface); }
.toc-row--featured .toc-no { color: var(--accent-on-ground); }
.toc-row--summit .toc-no, .toc-row--summit .toc-name, .toc-row--summit .toc-xp-num { color: var(--accent-on-ground); }
.toc-row--summit .toc-name { font-style: italic; }
.toc-row--summit .toc-leader { border-bottom: 1px solid var(--accent-on-ground); }

.index { list-style: none; margin: 0; padding: 0; }
.entry {
  position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 10rem 7rem; column-gap: 1rem; align-items: baseline;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line);
  transition: background-color .6s var(--ease);
}
.entry:hover { background: var(--hover-ground); }
.entry-no { font: italic 400 1.05rem/1 var(--font-display); color: var(--on-surface-variant); font-variant-numeric: lining-nums; }
.entry-type { display: flex; align-items: center; gap: .55rem; min-width: 0; color: var(--on-surface-variant); }
.glyph { flex: none; display: grid; color: var(--on-surface); }
.glyph svg { width: 1.15rem; height: 1.15rem; }
.entry-body { display: grid; gap: .3rem; min-width: 0; }
.entry h3 { font-size: 1.35rem; line-height: 1.2; }
.entry-body > p { font-size: .95rem; color: var(--on-surface-variant); }
.entry-xp { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: .1rem .4rem; text-align: right; white-space: nowrap; font: 400 1.25rem/1.2 var(--font-display); font-variant-numeric: lining-nums tabular-nums; }
.entry-xp s { text-decoration-thickness: 1px; }
.entry-per { font: 500 .72rem/1.2 var(--font-body); letter-spacing: .1em; color: var(--on-surface-variant); }

.cta-band { margin-top: var(--rhythm); background: var(--on-surface); color: var(--surface); }
.cta {
  width: var(--page); margin-inline: auto; padding: clamp(4rem, 8vw, 7.5rem) var(--pad);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 1.75rem; align-items: end;
}
.cta-head { grid-column: 1 / -1; padding-bottom: 1.1rem; border-bottom: 1px solid var(--band-rule); }
.cta .sec-label { margin: 0; color: var(--band-text); }
.cta .sec-no::before { color: var(--band-text); }
.cta-h { grid-column: 1 / 8; margin-top: 1.5rem; font-size: clamp(2.6rem, 1.4rem + 4.2vw, 5.4rem); font-style: italic; line-height: 1; letter-spacing: -.025em; color: var(--surface); }
.cta-side { grid-column: 8 / -1; display: grid; gap: 1.75rem; }
.cta-intro { max-width: 26rem; color: var(--band-text); }
.store-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.store-list > li { display: flex; }
.steam-embed { display: block; width: 100%; max-width: 646px; border: 1px solid var(--band-rule); background: var(--surface); }
.cta-band :focus-visible { outline-color: var(--surface); }
@media (max-width: 720px) {
  #cta [data-steam-swap="widget"] { display: none; }
}
@media not all and (max-width: 720px) {
  #cta [data-steam-swap="stores"] { display: none; }
}

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 1.5rem; align-items: start; }
.gallery-lead { grid-column: 1 / -1; position: relative; }
.media-plate { aspect-ratio: 21 / 9; }
.media-plate .plate-img[hidden], .media-plate .plate-play[hidden] { display: none; }
.media-tiles { grid-column: 1 / -1; list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem var(--gap); }
.media-tile { display: grid; gap: .55rem; width: 100%; padding: 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; }
.media-tile-frame { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-container); }
.media-tile-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); transition: border-color .45s var(--ease); pointer-events: none; }
.media-tile-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .6s var(--ease); }
.media-tile:hover .media-tile-frame img, .media-tile.is-selected .media-tile-frame img { opacity: 1; }
.media-tile.is-selected .media-tile-frame::after { border-color: var(--on-surface); }
.media-tile .plate-cap { padding-top: 0; }
.media-tile.is-selected .plate-cap { box-shadow: 0 1px 0 var(--accent); width: fit-content; }
.media-plate-of { font: italic 400 1.05rem/1 var(--font-display); color: var(--on-surface-variant); }
.media-tile-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--surface); color: var(--on-surface); border: 1px solid var(--on-surface); }
.media-tile-play svg { width: .85rem; height: .85rem; margin-left: .1rem; }
.plate-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 50%;
  background: var(--surface); color: var(--on-surface); border: 1px solid var(--on-surface);
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.plate-play svg { width: 1.4rem; height: 1.4rem; margin-left: .2rem; }
.plate-play:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.faq-list { list-style: none; margin: 0; padding: 0; }
.faq-list > li { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative; display: block; padding: 1.4rem 3rem 1.4rem 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font: 400 clamp(1.2rem, 1rem + .7vw, 1.5rem)/1.25 var(--font-display); transition: color .4s var(--ease); }
.faq-tick { position: absolute; right: .25rem; top: 50%; width: 1rem; height: 1rem; translate: 0 -50%; }
.faq-tick::before, .faq-tick::after { content: ""; position: absolute; left: 0; top: 50%; width: 1rem; height: 1px; background: var(--on-surface); transition: rotate .6s var(--ease); }
.faq-tick::after { rotate: 90deg; }
.faq-item[open] .faq-tick::after { rotate: 0deg; }
.faq-item[open] .faq-q { color: var(--accent-on-ground); }
.faq-item summary:hover .faq-q { color: var(--accent-on-ground); }
.faq-item > p { max-width: 38rem; padding-bottom: 1.6rem; color: var(--on-surface-variant); }
@supports (interpolate-size: allow-keywords) and (transition-behavior: allow-discrete) {
  .faq-item::details-content { interpolate-size: allow-keywords; height: 0; overflow: clip; }
  .faq-item[open]::details-content { height: auto; }
  @media (prefers-reduced-motion: no-preference) {
    .faq-item::details-content { transition: height .6s var(--ease), content-visibility .6s allow-discrete; }
  }
}

.footer { width: var(--page); margin: var(--rhythm) auto 0; padding: 0 var(--pad) 2.5rem; }
.footer-inner { border-top: 1px solid var(--on-surface); }
.footer-mark {
  padding-top: 1.25rem; font: italic 400 clamp(3rem, 10.5vw, 9.5rem)/.95 var(--font-display); letter-spacing: -.035em;
  text-wrap: balance; overflow-wrap: break-word;
}
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem 3rem; margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-legal-links a { color: var(--on-surface-variant); text-decoration: none; }
.footer-legal-links a:hover { color: var(--on-surface); text-decoration: underline; text-underline-offset: .35em; }
.footer-socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-link {
  display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .5rem;
  color: var(--on-surface); border: 1px solid var(--line); border-radius: 50%; text-decoration: none;
  font: 500 .75rem var(--font-body); transition: border-color .4s var(--ease), color .4s var(--ease);
}
.social-link:hover { border-color: var(--on-surface); color: var(--accent-on-ground); }
.social-link svg { width: 1.1rem; height: 1.1rem; }
.footer-fine { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .75rem 3rem; margin-top: 1.5rem; }
.footer-fineprint { max-width: 38rem; font-size: .85rem; color: var(--on-surface-variant); }
.powered a { color: var(--on-surface-variant); text-decoration: none; }
.powered a:hover { color: var(--on-surface); }

.dash-header { position: sticky; top: 0; z-index: var(--z-nav); background: var(--surface); border-bottom: 1px solid var(--line); }
.dash-header-inner { width: var(--page); margin-inline: auto; padding-inline: var(--pad); min-height: var(--chrome-h); display: flex; align-items: center; gap: 1.25rem; }
.dash-header-actions { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.dash-header-actions .lang-switch { flex: none; }
.dash-header-actions .profile-menu { min-width: 0; }
.dash-plate {
  display: flex; align-items: center; gap: .6rem; width: 100%; min-width: 0; min-height: 2.6rem; padding: .25rem .9rem .25rem .3rem; cursor: pointer;
  background: none; color: var(--on-surface); border: 1px solid var(--on-surface); border-radius: 0;
}
.profile-avatar { width: 30px; height: 30px; object-fit: cover; filter: grayscale(1); }
.profile-name { min-width: 0; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: italic 400 1.05rem/1.2 var(--font-display); }

.dash-main { display: grid; padding-bottom: 0; }
.dash-main > .panel, .dash-main .signin-card { width: min(100% - 2 * var(--pad), 36rem); margin: var(--rhythm) auto 0; }
.dash-main .signin-card { display: grid; justify-items: start; gap: .9rem; }
.signin-card .kicker { color: var(--on-surface-variant); font: 500 .75rem/1.25 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.dash-main .card { padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-top-color: var(--on-surface); border-radius: 0; }
.dash-main .card:hover { border-color: var(--line); border-top-color: var(--on-surface); }
.dash-main .card .section-title { font: 400 1.6rem/1.1 var(--font-display); }
.dash-main .dash-link { border-top: 1px solid var(--line); }
.dash-main .card.dash-links {
  width: min(1360px - 2 * var(--pad), 100% - 2 * var(--pad)); margin: var(--rhythm) auto 0; padding: 1.1rem 0 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start;
  border: 0; border-top: 1px solid var(--on-surface);
}
.dash-links > * { grid-column: 5 / -1; }
.dash-links > .section-title { grid-column: 1 / 5; grid-row: 1 / span 2; font-size: clamp(2rem, 1.25rem + 2.4vw, 3.2rem); line-height: 1.04; letter-spacing: -.02em; }
.dash-links-list { border-top: 1px solid var(--line); }
.dash-link-name { font: 400 1.35rem/1.2 var(--font-display); }
.dash-main .note { font-size: .85rem; color: var(--on-surface-variant); }
.dash-main .note.err { color: var(--accent-on-ground); }
.dash-main .note.ok { color: var(--on-surface); }
.dash-main .chip { padding: .3rem .6rem; background: none; color: var(--on-surface); border: 1px solid var(--line); border-radius: 0; font: 500 .72rem/1.25 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.dash-main .chip.done { background: none; color: var(--accent-on-ground); border-color: currentColor; }
.dash-card-foot .actions { margin: 0; align-items: center; }

.ledger { width: var(--page); margin-inline: auto; padding: clamp(2.5rem, 5vw, 4.5rem) var(--pad) 0; }
.ledger-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2.5rem; align-items: center; }
.ledger-hero { grid-column: 1 / -1; display: grid; justify-items: start; gap: .2rem; }
.ledger-grid--art .ledger-hero { grid-column: 1 / 7; }
.ledger-label { color: var(--on-surface-variant); }
.ledger-xp { margin-top: .4rem; font: 400 clamp(4.5rem, 2rem + 8vw, 9rem)/.9 var(--font-display); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.ledger-tier { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--on-surface-variant); }
.ledger-tier-name { font: italic 400 1.6rem/1.15 var(--font-display); color: var(--accent-on-ground); }
.ledger-next { margin-top: .9rem; max-width: 30rem; color: var(--on-surface-variant); }
.plate--band { grid-column: 7 / -1; }
.plate--band .plate-frame { aspect-ratio: 3 / 2; }

.gauge { --room-above: 0rem; position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); padding: var(--room-above) 0 4.5rem; }
.gauge:has(.gauge-cap--above) { --room-above: 4.5rem; }
.gauge-track { position: relative; height: 3px; background: var(--line); }
.gauge-fill { position: absolute; inset-block: 0; left: 0; background: var(--accent); }
.gauge-tick { position: absolute; top: 50%; width: 1px; height: 1.1rem; translate: -50% -50%; background: var(--leader); }
.gauge-tick--hit { background: var(--accent); }
.gauge-caps { position: absolute; left: 0; right: 0; top: var(--room-above); height: 3px; margin: 0; padding: 0; list-style: none; container-type: inline-size; }
.gauge-cap {
  position: absolute; top: 1.1rem; transform: translateX(-50%); display: grid; justify-items: center; gap: .15rem;
  width: max-content; max-width: 11rem; color: var(--on-surface-variant); text-align: center; white-space: nowrap;
}
.gauge-cap--above { top: auto; bottom: 1.1rem; }
.gauge-cap-no { font: 400 .95rem/1 var(--font-display); letter-spacing: .06em; }
.gauge-cap-name { font: 400 1.05rem/1.15 var(--font-display); color: var(--on-surface); overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gauge-cap--hit .gauge-cap-no { color: var(--accent-on-ground); }
.gauge-cap--first { transform: translateX(max(-50%, calc(var(--climb) * -1cqw))); }
.gauge-cap--last { transform: translateX(min(-50%, calc((100 - var(--climb)) * 1cqw - 100%))); }
.gauge-cap--crowded { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) {
  .gauge:has(.gauge-cap--above) { --room-above: 0rem; }
  .gauge-cap:not(.gauge-cap--first, .gauge-cap--last) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .gauge-cap--above { top: 1.1rem; bottom: auto; }
}

.dash-section { padding-top: var(--rhythm); }
.dash-card-desc { font-size: .95rem; color: var(--on-surface-variant); }
.dash-counter { font-size: .9rem; color: var(--on-surface); font-variant-numeric: lining-nums tabular-nums; }
.rule-meter { position: relative; height: 1px; margin: .35rem 0 .2rem; background: var(--line); }
.rule-meter > i { position: absolute; left: 0; top: -1px; height: 3px; width: var(--fill, 0%); background: var(--accent); transform-origin: left; }
.dash-card-foot:has(> div:empty) { display: none; }
.dash-card-foot { margin-top: .75rem; }
.dash-card-foot .actions, .dash-card-foot [data-task-actions] { display: flex; flex-wrap: wrap; gap: .6rem; }
.dash-chip { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font: 500 .75rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.dash-chip svg { width: 1rem; height: 1rem; }
.dash-chip--done { color: var(--accent-on-ground); }
.dash-chip--gone { color: var(--on-surface-variant); }
.dash-card--earned :is(.glyph, .entry-xp) { color: var(--accent-on-ground); }
.dash-card--closed :is(h3, .entry-xp, .glyph) { color: var(--on-surface-variant); }

.dash-scale { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .8rem; }
.dash-scale-count { color: var(--on-surface); }
.dash-bay-title { display: flex; align-items: baseline; gap: .4rem; }
.dash-bay-name { font-size: inherit; line-height: inherit; }
.dash-bay-st { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; margin-top: .35rem; font-size: .95rem; color: var(--on-surface-variant); }
.dash-bay-st--done { align-items: center; width: fit-content; padding: .3rem .65rem; color: var(--accent-on-ground); border: 1px solid currentColor; }
.dash-bay-st--done svg { width: 1rem; height: 1rem; }
.dash-bay-note { margin: .4rem 0 0; font-size: .9rem; overflow-wrap: anywhere; }
.dash-bay--locked .toc-name, .dash-bay--locked .toc-xp-num { color: var(--on-surface-variant); }
.dash-bay--locked.toc-row--summit .toc-name, .dash-bay--locked.toc-row--summit .toc-xp-num { color: var(--accent-on-ground); }
.dash-bay [data-reward-actions] { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.dash-bay [data-reward-actions]:empty { display: none; }
.rule-meter--bay { margin-top: .9rem; max-width: 22rem; }

.dash-about > .dash-about-media { grid-column: 5 / -1; padding-top: 1.1rem; }
.dash-about-stores { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; }
.dash-about-stores svg { width: .95rem; height: .95rem; }
.dash-about-plate { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-container); }
.dash-about-plate::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); pointer-events: none; }
.dash-about-plate img { width: 100%; height: 100%; object-fit: cover; }
.dash-about-plate-play[hidden] { display: none; }
.dash-about-strip { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .75rem; }
.dash-about-strip > li { min-width: 0; }
.dash-shot {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; padding: 0; cursor: pointer;
  background: var(--surface-container); border: 1px solid var(--line); border-radius: 0; opacity: .72;
  transition: opacity .45s var(--ease), border-color .45s var(--ease);
}
.dash-shot img { width: 100%; height: 100%; object-fit: cover; }
.dash-shot:hover, .dash-shot.is-selected { opacity: 1; border-color: var(--on-surface); }
.dash-shot-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--surface); color: var(--on-surface); }
.dash-shot-play svg { width: .8rem; height: .8rem; margin-left: .1rem; }
.media-nav, .media-dots { display: none; }
.media-dots li { position: relative; display: grid; place-items: center; width: 44px; }
.media-dot { position: relative; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.media-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1.4rem; height: 1px; translate: -50% -50%; background: var(--leader); }
.media-dot[aria-current="true"]::before { height: 3px; background: var(--accent); }
.media-nav svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 720px) {
  .media-gallery--live .dash-about-strip, .media-gallery--live .media-tiles, #media .media-gallery--live .media-dots { display: none; }
  .media-gallery--live .gallery-lead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem 1rem; }
  .media-gallery--live .media-plate { grid-column: 1 / -1; }
  .media-gallery--live .media-plate-cap { justify-content: center; padding-top: 0; }
  .media-gallery--live.dash-about-media { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "plate plate plate" "prev dots next"; align-items: center; gap: .9rem 1rem; }
  .media-gallery--live .dash-about-plate { grid-area: plate; }
  .media-gallery--live.dash-about-media .media-nav--prev { grid-area: prev; }
  .media-gallery--live.dash-about-media .media-nav--next { grid-area: next; }
  .media-gallery--live.dash-about-media .media-dots { grid-area: dots; display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
  .media-gallery--live .media-nav {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
    background: none; color: var(--on-surface); border: 1px solid var(--on-surface); border-radius: 0;
  }
}

.note-tip-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; vertical-align: middle;
  background: none; color: var(--on-surface-variant); border: 0; border-radius: 50%; cursor: pointer;
}
.note-tip-btn:hover { color: var(--accent-on-ground); }
.note-tip-btn svg { width: 1rem; height: 1rem; }
:has(> .note-tip) { position: relative; }
.note-tip-pop {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + .5rem); z-index: 5; max-width: 26rem; margin: 0; padding: .75rem .9rem;
  background: var(--surface); color: var(--on-surface); border: 1px solid var(--on-surface);
  font: 400 .9rem/1.45 var(--font-body); font-style: normal; letter-spacing: normal; text-transform: none; text-align: left;
}
.note-tip-pop::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: .6rem; }
.note-tip:not([data-tip-js]):is(:hover, :focus-within) .note-tip-pop,
.note-tip.note-tip--open .note-tip-pop { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; translate: 0 14px; transition: opacity 1.4s var(--ease), translate 1.4s var(--ease); transition-delay: var(--reveal-delay, 0s); }
  .reveal.is-visible { opacity: 1; translate: none; }
  .reveal.d1 { --reveal-delay: .08s; }
  .reveal.d2 { --reveal-delay: .16s; }
  .reveal.d3 { --reveal-delay: .24s; }
  .reveal.d4 { --reveal-delay: .32s; }
  .reveal.d5 { --reveal-delay: .4s; }
  .hero-h::after { transition: transform 1.8s var(--ease) .9s; }
  .hero-h:not(.is-visible)::after { transform: scaleX(0); }
  .reveal .rule-fill { transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; }
  .reveal.is-visible .rule-fill { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; }
  .btn, .entry, .text-link, .nav-links a, .social-link, .faq-q, .faq-tick::before, .faq-tick::after, .media-tile-frame img, .media-tile-frame::after, .plate-play, .dash-shot { transition: none; }
}
@media (scripting: none) {
  .reveal { opacity: 1; translate: none; }
  .hero-h::after { transform: none; }
}

@media (max-width: 900px) {
  .hero-copy, .plate--hero { grid-column: 1 / -1; }
  .hero-copy { padding-top: 0; }
  .plate--hero { margin: 3rem calc(-1 * var(--pad)) 0; }
  .plate--hero .plate-frame { height: auto; aspect-ratio: 1 / 1; }
  .plate--hero .plate-frame::after { border-inline: 0; }
  .plate--hero .plate-cap { padding-inline: var(--pad); }
  .section > *, .section > .sec-head { grid-column: 1 / -1; }
  .sec-head { padding-right: 0; }
  .section > :not(.sec-head) { border-top: 0; margin-top: 2.25rem; }
  .section--wide > .sec-head { display: block; }
  .section--wide > .sec-head > .sec-label { margin-bottom: 1.6rem; }
  .cta-h, .cta-side { grid-column: 1 / -1; }
  .media-plate { aspect-ratio: 16 / 9; }
  .media-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-grid--art .ledger-hero, .plate--band { grid-column: 1 / -1; }
  .dash-links > *, .dash-links > .section-title { grid-column: 1 / -1; grid-row: auto; }
  .plate--band { margin-left: calc(-1 * var(--pad)); }
  .plate--band .plate-frame::after { border-inline: 0; }
  .dash-about > .dash-about-media { grid-column: 1 / -1; padding-top: 0; }
}
@media (max-width: 720px) {
  .nav-inner, .dash-header-inner { gap: .75rem; }
  .brand-word { font-size: 1.15rem; }
  .brand { gap: .5rem; }
  .hero-actions { display: grid; width: 100%; }
  .masthead { margin-bottom: 1.5rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step:first-child { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 1rem; padding: 1.4rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .step-no { grid-row: span 2; margin: 0; font-size: 2.2rem; }
  .toc-row { grid-template-columns: 2.5rem minmax(0, 1fr) auto; grid-template-areas: "no name xp" ". desc desc"; }
  .toc-leader { display: none; }
  .toc-xp { flex-direction: column; align-items: flex-end; gap: .15rem; }
  .toc-xp-num { font-size: 1.3rem; }
  .entry { grid-template-columns: 2.25rem minmax(0, 1fr) auto; grid-template-areas: "no body xp" "no type type"; row-gap: .6rem; }
  .entry-no { grid-area: no; }
  .entry-type { grid-area: type; }
  .entry-body { grid-area: body; }
  .entry-xp { grid-area: xp; flex-direction: column; align-items: flex-end; font-size: 1.05rem; }
  .entry h3 { font-size: 1.2rem; }
  .store-list { display: grid; }
  .store-list .btn { width: 100%; }
  .cta-h { margin-top: .75rem; }
  .plate-play { width: 4rem; height: 4rem; }
  .dash-header-actions { gap: .6rem; }
  .profile-name { max-width: 9ch; }
}

@media print {
  .nav, .nav-mobile, .nav-mobile.is-open, .nav-burger, .skip-link, .lang-switch, .profile-menu, .plate--hero, .plate--band, .footer-mark { display: none; }
  .dash-header { position: static; }
  .reveal { opacity: 1; translate: none; }
  .section > .sec-head { position: static; }
  body {
    --on-surface: #000; --on-surface-variant: #333; --accent-text: #000; --accent: #000; --accent-ink: #fff;
    --surface: #fff; --surface-container: #fff; --surface-container-high: #fff; --line: #767676;
    background: #fff; color: #000;
  }
  .cta-band { background: #fff; color: #000; }
  .cta-h, .cta-intro, .cta .sec-label { color: #000; }
  .media-dots, .media-nav, .note-tip-btn { display: none; }
  .note-tip-pop, .note-tip.note-tip--open .note-tip-pop { display: block; position: static; padding: 0; margin: .2rem 0 0; border: 0; background: none; color: inherit; }
  .note-tip-pop::before { content: none; }
  .faq-item::details-content { height: auto; overflow: visible; transition: none; }
}
