:root {
  --snow: #FFFBFE;
  --grey: #7A7D7D;
  --dust-grey: #D0CFCF;
  --charcoal: #565254;
  --white: #FFFFFF;
  /* Achromatic derivations: graphite field, raised surface, image backing,
     and a lifted Grey boundary for control contrast. Dust Grey is secondary copy. */
  --page: #343434;
  --surface: #404040;
  --image-surface: #242424;
  --ink: var(--snow);
  --muted: var(--dust-grey);
  --card: var(--surface);
  --card-hover: var(--charcoal);
  --line: #969696;
  --control: var(--snow);
  --control-icon: var(--image-surface);
  --focus: var(--white);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-14: 3.5rem;
  /* 720px usable homepage column plus its existing 12px side gutters. */
  --content-width: 744px;
  --type-home: clamp(2.75rem, 5vw, 3.625rem);
  --type-page: clamp(1.875rem, 4vw, 2.25rem);
  --type-section: clamp(1.25rem, 2.8vw, 1.375rem);
  --type-item: 1rem;
  --type-body: 1rem;
  --type-support: .875rem;
}

* { box-sizing: border-box; }

html { background: var(--page); scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  min-width: 0;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 400 var(--type-body)/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-shell {
  min-height: 100dvh;
  background: var(--page);
}

a, button { -webkit-tap-highlight-color: transparent; }

a, a:visited, a:hover, a:focus, a:active { text-decoration: none; }

.text-link { transition: opacity 160ms ease; }
.text-link:focus-visible { opacity: 1; }

@media (hover: hover) {
  .text-link:hover:not(:focus-visible) { opacity: .76; }
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  z-index: 10;
  top: -5rem;
  left: 1rem;
  padding: .75rem 1rem;
  border-radius: 0;
  color: var(--control-icon);
  background: var(--control);
  font-weight: 700;
}

.skip-link:focus { top: 1rem; }

.page-content {
  position: relative;
  z-index: 0;
  width: min(100%, var(--content-width));
  min-height: 100dvh;
  margin-inline: auto;
  padding: var(--space-4) var(--space-3) var(--space-8);
}

.hero-actions {
  position: absolute;
  z-index: 2;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-action,
.share-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--control-icon);
  background: var(--control);
  box-shadow: none;
}

.profile-action { text-decoration: none; }

.profile-action svg,
.share-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-button {
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.profile-action:hover,
.share-button:hover { background: var(--dust-grey); }

.site-header {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.share-status {
  position: absolute;
  top: 50px;
  right: 0;
  width: min(280px, 80vw);
  margin: 0;
  color: var(--ink);
  text-align: right;
  background: var(--page);
  font-size: .8rem;
}

.share-fallback {
  position: absolute;
  z-index: 4;
  top: 3.5rem;
  right: 0;
  width: min(320px, calc(100vw - 32px));
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.share-fallback label {
  display: block;
  margin-bottom: .4rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.share-fallback-controls { min-width: 0; display: flex; gap: .5rem; }

.share-fallback input {
  min-width: 0;
  flex: 1;
  min-height: 44px;
  padding: .55rem .65rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--image-surface);
  font: inherit;
  font-size: .78rem;
}

.share-fallback-copy {
  min-height: 44px;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--control-icon);
  background: var(--control);
  font: inherit;
  font-size: .8rem;
  font-weight: 750;
  cursor: pointer;
}

.share-fallback p { margin: .55rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.35; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: var(--space-6) auto 0;
  padding: 0 var(--space-3);
  text-align: center;
}

.profile-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-home);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.03em;
  text-wrap: balance;

}

.profile-description {
  max-width: 30ch;
  margin: var(--space-2) auto 0;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.5;

}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.1;
}

.profile-schedule {
  color: var(--muted);
  font-size: var(--type-support);
}

.live-dot {
  width: .7rem;
  height: .7rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e5484d;
  box-shadow: none;
}

.social-list {
  display: flex;
  justify-content: center;
  gap: clamp(.8rem, 5vw, 1.35rem);
}

.social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, opacity .18s ease;
}

.social-link svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-link:hover { opacity: .76; }

.follower-count {
  width: fit-content;
  margin: .45rem auto 0;
  padding: .2rem .7rem;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: .72rem;
  line-height: 1.35;
}

.twitch-link-card { position: relative; }

.link-card.twitch-collapsible {
  display: block;
  padding: .7rem .9rem;
}

.link-card.twitch-regular { display: none; }

.link-card-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  min-height: 52px;
  cursor: pointer;
  list-style: none;
}

.link-card-summary::-webkit-details-marker { display: none; }

.twitch-title-link {
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: .7rem;
  color: inherit;
  text-decoration: none;
}

.dropdown-indicator {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--muted);
  pointer-events: none;
}

.dropdown-indicator svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  overflow: visible;
}

.dropdown-indicator .menu-line {
  transform-origin: 12px 12px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.twitch-collapsible[open] .menu-line-top {
  transform: translateY(5px) rotate(45deg);
}

.twitch-collapsible[open] .menu-line-middle {
  opacity: 0;
}

.twitch-collapsible[open] .menu-line-bottom {
  transform: translateY(-5px) rotate(-45deg);
}

.twitch-collapsible .twitch-player-stage { margin-top: .75rem; }

.twitch-player-stage {
  aspect-ratio: 16 / 9;
  margin-top: 0;
}

.twitch-handoff {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 .85rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--image-surface);
}

.twitch-embed-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--image-surface);
}

.twitch-embed-container iframe { width: 100%; height: 100%; display: block; border: 0; }

.twitch-direct-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}

.twitch-direct-link span { color: var(--ink); font-size: 1.1rem; }

.link-list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.profile-links { display: grid; gap: var(--space-4); }

.link-card,
.tool-link {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: .7rem;
  padding: .7rem .9rem;
  border: 1px solid #656565;
  border-radius: 0;
  color: var(--ink);
  background: #3b3b3b;
  box-shadow: none;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.tool-link { grid-template-columns: 38px minmax(0, 1fr) 24px; }

.tool-link.coming-soon {
  color: var(--ink);
  background: var(--card);
  border-color: var(--line);
  filter: none;
}

.tool-link.coming-soon .tool-icon { color: var(--ink); }

.tool-link.coming-soon .card-arrow { color: var(--muted); }

.tool-link.coming-soon .tool-copy small {
  color: var(--muted);
}

.tool-link.coming-soon .tool-status {
  color: var(--ink);
  font-size: .72em;
  font-weight: 800;
  letter-spacing: .04em;
}

.link-card:hover,
.tool-link:hover {
  border-color: var(--dust-grey);
  background: var(--card-hover);
}

.tool-link.coming-soon:hover {
  background: var(--card-hover);
  border-color: var(--dust-grey);
}

.link-card:focus,
.tool-link:focus,
.link-card-summary:focus {
  outline: none;
}

.link-card:focus-visible,
.tool-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-color: var(--focus);
}

.link-card:active,
.tool-link:active {
  transform: translateY(0);
  background: var(--image-surface);
}

.card-icon,
.tool-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.profile-links [data-analytics-id="twitch"] .card-icon { color: #9146FF; }
.profile-links [data-analytics-id="youtube"] .card-icon { color: #FF0000; }
.profile-links [data-analytics-id="tiktok"] .card-icon,
.profile-links [data-analytics-id="discord"] .card-icon { color: #FFFFFF; }

.twitch-collapsible:has(> .link-card-summary:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-color: var(--focus);
}

.card-icon svg,
.tool-icon svg { width: 22px; height: 22px; fill: currentColor; }
.tool-icon img { display: block; width: 24px; height: 24px; object-fit: contain; }

.card-copy,
.tool-copy { min-width: 0; display: grid; gap: .1rem; }

.card-copy strong,
.tool-copy strong { overflow-wrap: anywhere; font-size: var(--type-item); font-weight: 600; line-height: 1.3; }

.card-copy small,
.tool-copy small { overflow-wrap: anywhere; color: var(--muted); font-size: var(--type-support); line-height: 1.5; }

.card-menu {
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  text-align: center;
}

.tools-section {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.tools-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-section);
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
}

.tools-list { display: grid; gap: var(--space-3); margin-top: var(--space-4); }

.card-arrow { color: var(--muted); font-size: 1.25rem; text-align: center; }

footer { padding-top: var(--space-10); color: var(--muted); font-size: var(--type-support); text-align: center; }
footer p { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; margin: 0; }
footer a, .footer-current { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-weight: 700; text-underline-offset: .2em; }
.footer-current { color: var(--muted); }

/* Shared neutral typography, surfaces and navigation. */
.tool-page-shell { display: flex; min-height: 100dvh; flex-direction: column; }
.tool-header { padding-top: max(16px, env(safe-area-inset-top)); }
.tool-back-link { min-height: 44px; display: inline-flex; align-items: center; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease; }
.tool-back-link:hover { background: var(--card-hover); border-color: var(--dust-grey); }
.tool-back-link:focus-visible { background: var(--card-hover); }
.tool-page-main { width: min(100% - 32px, 620px); margin-inline: auto; padding-top: clamp(8rem, 22vh, 13rem); }
.tool-page-main h1 { max-width: 12ch; margin: 0; font-size: clamp(2.6rem, 10vw, 4.45rem); line-height: .97; letter-spacing: -.055em; }
.tool-purpose { max-width: 42ch; margin: 1rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.tool-about { margin-top: var(--space-10); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.tool-about h2 { margin: 0; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.tool-about p { max-width: 48ch; margin: .75rem 0 0; color: var(--muted); line-height: 1.6; }
.tool-page-footer { margin-top: auto; padding: 1rem 0 max(30px, env(safe-area-inset-bottom)); color: var(--muted); font-size: .75rem; }
.tool-page-footer p { margin: 0; }

/* SoulsTracker keeps its product layout within the shared neutral theme. */
.soulstracker-body,
.soulstracker-page-shell {
  background: var(--page);
}

.soulstracker-page-shell {
  --soul-ink: var(--ink);
  --soul-muted: var(--muted);
  --soul-card: var(--card);
  --soul-line: var(--line);

}

.soulstracker-page-shell .tool-back-link,
.soulstracker-page-shell .soulstracker-hero h1,
.soulstracker-page-shell .soulstracker-gallery h2,
.soulstracker-page-shell .soulstracker-roadmap h2,
.soulstracker-page-shell .soulstracker-supported-games h2,
.soulstracker-page-shell .supported-games-card h3 { color: var(--soul-ink); }

.soulstracker-page-shell .tool-purpose,
.soulstracker-page-shell .gallery-fraction,
.soulstracker-page-shell .supported-games-intro { color: var(--soul-muted); }

.soulstracker-header,
.soulstracker-page,
.soulstracker-footer {
  width: min(100% - 32px, 980px);
  margin-inline: auto;
}

.soulstracker-header { padding-top: max(16px, env(safe-area-inset-top)); }
.soulstracker-page { padding: 0 0 3rem; }

.soulstracker-hero {
  max-width: 620px;
  margin: clamp(2.5rem, 7vw, 5.5rem) auto 0;
  text-align: center;
}

.soulstracker-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-page);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.soulstracker-hero .tool-purpose {
  max-width: 42ch;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.5;
}

.soulstracker-supported-games,
.soulstracker-gallery,
.soulstracker-roadmap { margin-top: var(--space-14); }

.soulstracker-gallery h2,
.soulstracker-roadmap h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-section);
  font-weight: 600;
  line-height: 1.3;
}

.soulstracker-gallery h2 { text-align: center; }

.supported-games-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.supported-games-heading h2 { margin: 0; font-size: var(--type-section); font-weight: 600; line-height: 1.3; }
.supported-games-intro { margin: .5rem 0 0; line-height: 1.55; }
.supported-games-card {
  display: grid;
  gap: 1.5rem;
  margin-top: .85rem;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid var(--soul-line);
  border-radius: 0;
  background: var(--soul-card);
  box-shadow: none;
}
.supported-games-card section { min-width: 0; }
.supported-games-card h3 { margin: 0; font-size: var(--type-item); font-weight: 600; line-height: 1.3; }
.supported-games-card ul { margin: .6rem 0 0; padding: 0; color: var(--soul-muted); list-style: none; }
.supported-games-card li { margin-top: .35rem; line-height: 1.45; overflow-wrap: anywhere; }
.supported-games-card li:first-child { margin-top: 0; }

.soulstracker-page-shell .gallery-frame {
  margin-top: .85rem;
  padding: clamp(.55rem, 1.4vw, .85rem);
  overflow: hidden;
  border: 1px solid var(--soul-line);
  border-radius: 0;
  background: var(--image-surface);
  box-shadow: none;
}

.soulstracker-page-shell .gallery-stage {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: var(--image-surface);
}

/* Captions expand in normal flow; controls share only the image's aspect ratio,
   so their position never depends on caption length. */
.gallery-slide { margin: 0; }

.gallery-image-trigger {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: zoom-in;
}

.gallery-image-trigger:disabled { cursor: default; }
.gallery-image-trigger:focus-visible { outline-offset: -4px; }

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

.soulstracker-page-shell .gallery-slide figcaption {
  min-height: 3.5rem;
  padding: var(--space-2) var(--space-2) 0;
  color: var(--soul-ink);
  background: var(--image-surface);
  line-height: 1.5;
  pointer-events: none;
}

.gallery-controls { display: none; }

.gallery-enhanced .gallery-controls {
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 16 / 9;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem;
  pointer-events: none;
}

.soulstracker-page-shell .gallery-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--dust-grey);
  border-radius: 0;
  color: var(--soul-ink);
  background: var(--image-surface);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
  cursor: pointer;
  pointer-events: auto;
}

.gallery-controls button svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.soulstracker-page-shell .gallery-controls button:hover:not(:disabled) {
  border-color: var(--white);
  background: var(--charcoal);
}

.gallery-controls button:active:not(:disabled) { transform: scale(.96); }

.soulstracker-page-shell .gallery-controls button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-color: var(--focus);
  background: var(--charcoal);
}

.soulstracker-page-shell .gallery-controls button:disabled {
  border-color: var(--grey);
  color: var(--grey);
  background: var(--image-surface);
  cursor: not-allowed;
}

.gallery-fraction {
  min-width: 3rem;
  margin: var(--space-2) 0 0;
  font-size: var(--type-support);
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.soulstracker-download { display: flex; justify-content: center; margin: 1.35rem 0 0; }

.soulstracker-page-shell .soulstracker-download a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  border: 1px solid var(--snow);
  border-radius: 0;
  color: var(--control-icon);
  background: var(--snow);
  font-weight: 700;
}

.soulstracker-page-shell .soulstracker-download a:hover { background: var(--dust-grey); }
.soulstracker-page-shell .soulstracker-download a:focus-visible { outline-color: var(--focus); }

.soulstracker-page-shell .roadmap-card {
  border: 1px solid var(--soul-line);
  border-radius: 0;
  background: var(--soul-card);
}

.roadmap-card { margin-top: .85rem; padding: 1rem 1.1rem; }
.soulstracker-page-shell .roadmap-card ul { margin: 0; padding-left: 1.3rem; color: var(--soul-muted); }
.roadmap-card li { margin-top: .55rem; padding-left: .15rem; line-height: 1.55; }
.roadmap-card li:first-child { margin-top: 0; }
.soulstracker-page-shell .roadmap-card ul ul { margin: .5rem 0 0; color: var(--soul-muted); font-size: .92em; }

.soulstracker-body .image-dialog-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, .88);
}

.image-dialog {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: min(100%, 1200px);
  max-height: 100%;
}

.soulstracker-body .image-dialog-close {
  min-width: 44px;
  min-height: 44px;
  margin-bottom: .65rem;
  padding: .45rem .75rem;
  border: 1px solid var(--dust-grey);
  border-radius: 0;
  color: var(--ink);
  background: var(--image-surface);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.soulstracker-body .image-dialog-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 5.5rem);
  border: 1px solid var(--line);
  border-radius: 0;
  object-fit: contain;
}

body.image-dialog-open { overflow: hidden; }
.soulstracker-body .image-dialog-close:hover { background: var(--charcoal); }
.soulstracker-footer { margin-top: auto; }


@media (min-width: 700px) {
  .soulstracker-header,
  .soulstracker-page,
  .soulstracker-footer { width: min(100% - 48px, 980px); }
  .supported-games-card { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}

@media (max-width: 360px) {
  .gallery-enhanced .gallery-controls { padding: .5rem; }
  .soulstracker-download a { width: 100%; }
  .roadmap-card { padding: .85rem; }
}

.privacy-page-shell { display: flex; min-height: 100dvh; flex-direction: column; }
.privacy-page, .privacy-footer, .privacy-page-shell .inner-home-nav { width: min(100% - 24px, calc(var(--content-width) - 2 * var(--space-3))); margin-inline: auto; }
.privacy-header { padding-top: max(16px, env(safe-area-inset-top)); }
.privacy-page { margin-top: var(--space-10); padding: 0 0 2rem; }
.privacy-page h1 { margin: 0; color: var(--ink); font-size: var(--type-page); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; }
.privacy-intro { max-width: 56ch; margin: 1rem 0 0; color: var(--muted); font-size: clamp(1rem, 3.5vw, 1.12rem); line-height: 1.55; }
.privacy-page section { margin-top: 2.25rem; }
.privacy-page h2 { margin: 0; color: var(--ink); font-size: var(--type-section); font-weight: 600; line-height: 1.3; }
.privacy-page p { margin: .7rem 0 0; color: var(--muted); line-height: 1.65; }
.privacy-page code { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.privacy-page a { color: var(--ink); font-weight: 700; text-underline-offset: .2em; }
.privacy-footer { margin-top: auto; padding: 1rem 0 max(30px, env(safe-area-inset-bottom)); }

.coming-soon-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 32px, 620px);
  margin-inline: auto;
  padding-top: clamp(2rem, 8vh, 6rem);
  text-align: center;
}

.coming-soon-portrait-link {
  display: block;
  width: min(100%, 34rem);
  border-radius: 0;
}

.coming-soon-portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  box-shadow: none;
}

.coming-soon-tool {
  margin: 1.5rem 0 .35rem;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.coming-soon-main h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.6rem, 11vw, 5rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.coming-soon-back {
  margin: 1.35rem 0 0;
}

.coming-soon-back a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: .2em;
}

.minimal-coming-soon-page {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100% - 32px, 620px);
  margin-inline: auto;
  padding: 2rem 0;
  gap: 1.5rem;
  text-align: center;
}

.coming-soon-portrait-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: min(330px, 72vw);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  backdrop-filter: none;
  text-decoration: none;
}

.minimal-coming-soon-page .coming-soon-portrait {
  display: block;
  width: min(330px, 72vw);
  height: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}

.minimal-coming-soon-page h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.6rem, 11vw, 5rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.back-to-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.back-to-main:hover {
  background: var(--card-hover);
}

.back-to-main:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 360px) {
  .hero-actions { right: 12px; left: 12px; }
  .hero-content { padding-inline: var(--space-1); }
  .social-list { gap: .55rem; }
  .link-card { grid-template-columns: 36px minmax(0, 1fr) 20px; gap: .55rem; padding-inline: .65rem; }
  .tool-link { grid-template-columns: 36px minmax(0, 1fr) 20px; gap: .55rem; padding-inline: .65rem; }
}

@media (max-width: 423px) {
  .link-card.twitch-collapsible { display: none; }
  .link-card.twitch-regular { display: grid; }
}

@media (min-width: 700px) {
  .page-content { padding-bottom: max(30px, env(safe-area-inset-bottom)); }
  .hero-actions { right: 24px; left: 24px; }

  .twitch-player-stage { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .text-link { transition: none; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* One identity contract for the homepage and every primary inner page. */
.site-identity { width: min(100% - 24px, 720px); margin: max(16px, env(safe-area-inset-top)) auto 0; text-align: center; padding: var(--space-4) 0 var(--space-6); border-bottom: 1px solid #656565; }
.site-identity-brand { margin: 0; font-size: inherit; line-height: 1.2; }
.site-title, .site-title:visited, .site-title:hover, .site-title:focus, .site-title:active {
  display: inline-block;
  color: var(--ink);
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.site-identity p { margin: .25rem 0 0; color: var(--muted); font-size: var(--type-support); line-height: 1.5; }
.page-content { padding-top: var(--space-10); }
.live-section:not([hidden]) { margin-top: var(--space-10); }
.schedule-section { padding: var(--space-6); background: var(--surface); }
.schedule-section h2 { margin: 0; font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.12; letter-spacing: -.03em; }
.schedule-time { margin: .65rem 0 1.25rem; color: var(--muted); font-weight: 600; }
.schedule-current { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: baseline; gap: var(--space-3); margin: 0; padding: var(--space-4) 0 var(--space-2); border-bottom: 1px solid #656565; }
.schedule-current dt { color: var(--muted); font-size: var(--type-support); font-weight: 700; letter-spacing: .06em; }
.schedule-current dd { min-width: 0; min-height: 1.5em; margin: 0; text-align: right; font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.schedule-current #current-game { display: block; }
.schedule-section > .game-list-link { display: flex; width: fit-content; margin-left: auto; color: var(--ink); font-size: var(--type-support); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.schedule-section > .game-list-link:hover { color: var(--dust-grey); }
.game-pending { visibility: hidden; }
.inner-home-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; }
.inner-home-nav { width: min(100% - 32px, 720px); margin: var(--space-10) auto var(--space-4); }
.home-games { margin-top: var(--space-6); }
.home-games h2 { margin: 0; font-size: var(--type-section); line-height: 1.3; }
.home-games p, .home-games ul { margin: var(--space-3) 0 0; color: var(--muted); }
.home-games ul { padding-left: 1.25rem; }
.home-games li { margin-top: var(--space-2); overflow-wrap: anywhere; }
.home-games li:first-child { margin-top: 0; }
.home-games details { margin-top: var(--space-2); color: var(--ink); }
.home-games summary { display: flex; align-items: center; min-height: 44px; width: fit-content; max-width: 100%; cursor: pointer; overflow-wrap: anywhere; }
.home-games summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.home-games details .show-fewer, .home-games details[open] summary span:first-child { display: none; }
.home-games details[open] .show-fewer { display: inline; }
.home-games details ul { margin-top: 0; }
.home-games + .link-list { margin-top: var(--space-8); }
.live-section h2 { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: var(--type-section); }
.live-section .live-dot { display: inline-block; }
.content-surface { background: var(--surface); }
.soulstracker-page.content-surface, .privacy-page.content-surface { margin-top: 0; padding: clamp(1rem, 4vw, 2rem); }
.privacy-page.content-surface { width: min(100%, var(--content-width)); padding-inline: var(--space-3); }
.soulstracker-page.content-surface .soulstracker-hero { margin-top: 0; }
.soulstracker-page.content-surface .supported-games-card { padding-inline: 0; border: 0; background: transparent; }
.soulstracker-hero h1, .privacy-page h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
.soulstracker-hero h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.soulstracker-product-icon { display: block; width: 48px; height: 48px; margin: 0 auto var(--space-3); object-fit: contain; }
.soulstracker-hero { margin-top: clamp(2rem, 5vw, 3.5rem); }
.soulstracker-supported-games { padding-top: var(--space-6); border-top: 1px solid #656565; }
.soulstracker-page-shell .supported-games-card { border-color: #656565; background: #3b3b3b; }
.soulstracker-gallery { padding: var(--space-4) var(--space-3); background: #383838; }
.soulstracker-page-shell .product-actions #direct-download.has-download:hover { background: var(--dust-grey); }
.live-section .twitch-player-stage { width: 100%; aspect-ratio: 16 / 9; min-height: 300px; }
.live-section iframe { display: block; width: 100%; height: 100%; border: 1px solid var(--line); }
.live-section a { color: var(--ink); text-decoration: underline; }
.product-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.35rem; }
.product-actions a { min-height: 44px; display: inline-flex; align-items: center; padding: .6rem 1rem; border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.product-actions a:hover { background: var(--card-hover); }
.product-actions #direct-download.has-download { border-color: var(--snow); background: var(--snow); color: var(--image-surface); }
.soulstracker-supported-games h2, .soulstracker-changes h2 { margin: 0; font-size: var(--type-section); }
.soulstracker-supported-games p, .soulstracker-changes p { color: var(--muted); }
.compatible-games-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--space-4); width: 100%; margin-top: var(--space-3); border-collapse: collapse; }
.compatible-games-table tbody { display: block; min-width: 0; }
.compatible-games-table tr { display: block; border-bottom: 1px solid #656565; }
.compatible-games-table td { display: block; padding: var(--space-2) 0; overflow-wrap: anywhere; }
/* Temporary first-load geometry; removed as soon as release data resolves. */
.release-pending#compatible-games { min-height: 205px; margin-top: var(--space-3); }
.release-pending#latest-changes { min-height: 210px; margin-top: 1em; }
.soulstracker-changes { margin-top: var(--space-14); }
.screenshot-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.soulstracker-gallery .screenshot-heading h2 { text-align: left; }
.screenshot-carousel { margin-top: 1rem; }
.screenshot-stage { position: relative; }
.screenshot-enhanced .screenshot-stage { display: grid; grid-template-columns: 44px minmax(0, 360px) 44px; justify-content: center; align-items: center; gap: 8px; }
.screenshot-slides { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.screenshot-enhanced .screenshot-slides { grid-column: 2; grid-row: 1; }
.screenshot-slide { min-width: 0; width: 100%; margin: 0; }
.screenshot-expand { display: block; width: min(100%, 546px); margin-inline: auto; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.screenshot-enhanced .screenshot-expand { width: 100%; }
.screenshot-expand:disabled { cursor: default; }
.screenshot-slide img { display: block; width: 100%; height: auto; background: var(--image-surface); }
.screenshot-dialog { max-width: min(100% - 2rem, 1200px); max-height: calc(100dvh - 2rem); padding: 1rem; border: 1px solid var(--line); color: var(--ink); background: var(--image-surface); }
.screenshot-dialog::backdrop { background: rgba(0, 0, 0, .88); }
.screenshot-dialog-close { display: block; min-width: 44px; min-height: 44px; margin: 0 0 var(--space-2) auto; border: 1px solid var(--line); color: var(--ink); background: var(--surface); font: inherit; cursor: pointer; }
.screenshot-dialog img { display: block; max-width: 100%; max-height: calc(100dvh - 7rem); margin: auto; object-fit: contain; }
.screenshot-controls:not([hidden]) { display: contents; }
.screenshot-controls button { grid-row: 1; align-self: center; }
.screenshot-controls button:first-child { grid-column: 1; }
.screenshot-controls button:last-child { grid-column: 3; }
.screenshot-controls button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); color: var(--ink); background: var(--image-surface); font: inherit; font-size: 1.25rem; cursor: pointer; }
.screenshot-controls button:hover { background: var(--charcoal); }
.screenshot-position { min-width: 3.5rem; margin: 0; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.screenshot-controls button:focus-visible, .screenshot-expand:focus-visible { outline-offset: 3px; }
.soulstracker-ad-slot:not([hidden]) { margin-top: var(--space-14); border-top: 1px solid var(--line); padding-top: 1rem; }
.gamelist-page { width: min(100% - 24px, 720px); margin-inline: auto; padding: var(--space-6) var(--space-3) var(--space-10); }
.gamelist-page h1 { margin: 0; font-size: var(--type-page); line-height: 1.15; }
.game-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); }
.game-categories section { margin-top: var(--space-8); }
.game-categories h2 { margin: 0; font-size: var(--type-section); }
.game-categories p, .game-categories ul { margin: var(--space-3) 0 0; color: var(--muted); }
.game-categories ul { padding-left: 1.25rem; }
.game-categories li { margin-top: var(--space-2); overflow-wrap: anywhere; }
.game-categories .category-pending { margin-top: var(--space-3); }
.game-categories [data-category="planned"].category-pending { min-height: 248px; }
.game-categories [data-category="completed"].category-pending { min-height: 472px; }

@media (max-width: 500px) {
  .game-categories { grid-template-columns: minmax(0, 1fr); }
  .release-pending#compatible-games { min-height: 385px; }
  .release-pending#latest-changes { min-height: 426px; }
}
@media (max-width: 350px) {
  .release-pending#compatible-games { min-height: 409px; }
  .release-pending#latest-changes { min-height: 522px; }
  .game-categories [data-category="completed"].category-pending { min-height: 496px; }
}
@media (max-width: 500px) {
  .schedule-section { padding: var(--space-4); }
  .schedule-current { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .schedule-current dd { min-height: 3em; }
  .soulstracker-gallery { padding-inline: var(--space-1); }
  .screenshot-enhanced .screenshot-stage { gap: 0; }
}
