/* Report-inspired site styles. Shared header/footer kits stay untouched. */
@font-face { font-family: Archivo; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../assets/fonts/archivo-latin.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/source-sans-3-latin.woff2') format('woff2'); }
:root {
  --pt-bg: oklch(0.97 0.006 260); --pt-paper: oklch(0.995 0.002 260); --pt-soft: oklch(0.95 0.009 260);
  --pt-ink: oklch(0.27 0.046 262); --pt-text: oklch(0.4 0.035 262); --pt-muted: oklch(0.49 0.027 262);
  --pt-line: oklch(0.875 0.016 260); --pt-control-line: oklch(0.655 0.026 260);
  --pt-gold: oklch(0.48 0.103 73); --pt-amber: oklch(0.82 0.15 78); --pt-amber-soft: oklch(0.95 0.035 80);
  --pt-green: oklch(0.43 0.07 165); --pt-green-soft: oklch(0.94 0.025 164);
  --pt-blue: oklch(0.47 0.09 260); --pt-blue-soft: oklch(0.935 0.018 260);
  --pt-night: oklch(0.23 0.044 262); --pt-night-text: oklch(0.98 0.005 260); --pt-night-muted: oklch(0.79 0.022 260);
  --pt-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --pt-display: Archivo, 'Helvetica Neue', sans-serif; --pt-mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}
html { color-scheme: light; scroll-padding-top: 92px; }
body {
  background: var(--pt-bg); color: var(--pt-ink); font-family: var(--pt-body); -webkit-font-smoothing: antialiased; line-height: 1.5;
  --footer-text: var(--pt-muted); --footer-text-strong: var(--pt-ink); --footer-border: var(--pt-line);
  --footer-border-strong: var(--pt-control-line); --footer-accent: var(--pt-gold); --footer-surface: var(--pt-paper); --footer-hover: var(--pt-soft);
  --footer-text-dim: var(--pt-ink);
}
/* Documented custom-skin extension preserves visitor themes and the kit's geometry. */
html:not([data-theme]) .header-bar[data-header-skin="custom"] {
  --header-bg-start: var(--pt-paper); --header-bg-mid: var(--pt-paper); --header-bg-end: var(--pt-paper);
  --header-accent: var(--pt-gold); --header-text: var(--pt-ink); --header-text-dim: var(--pt-muted); --header-icon-color: var(--pt-muted);
  --header-border: var(--pt-line); --header-border-strong: var(--pt-control-line); --header-control-border: var(--pt-line);
  --header-menu-bg: var(--pt-paper); --header-menu-hover: var(--pt-soft);
  --header-edge-from: var(--pt-line); --header-edge-to: var(--pt-line); --header-focus: var(--pt-gold);
}
.header-bar .header-actions > .btn { color: var(--header-text); border-color: var(--header-control-border); font-size: 13px; }
.header-bar .header-actions > .btn:hover { color: var(--header-text); background: var(--header-menu-hover); }
.header-bar .header-actions > a[href^="#"] { border-color: transparent; }
.neo-footer a:hover { color: var(--pt-ink); }


/* Scope the report palette to site-owned content, preserving the fleet tokens. */
.collection, .dialog {
  --bg: var(--pt-paper); --surface-1: var(--pt-paper); --surface-2: var(--pt-soft);
  --text-primary: var(--pt-ink); --text-secondary: var(--pt-text); --text-muted: var(--pt-muted);
  --border: var(--pt-line); --border-strong: var(--pt-control-line);
  --accent: var(--pt-gold); --accent-bright: var(--pt-gold); --on-accent: var(--pt-night);
  --font: var(--pt-body);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.collection { max-width: 1280px; padding: 48px 40px 64px; }
.collection h2, .collection h3, .dialog h2, .dialog h3 { font-family: var(--pt-display); color: var(--pt-ink); }
.collection :focus-visible, .dialog :focus-visible { outline: 3px solid var(--pt-gold); outline-offset: 4px; }
.collection button, .dialog button { font-family: var(--pt-body); }
.collection a, .dialog a { text-underline-offset: 4px; }
.collection__intro { align-items: center; gap: 48px; padding: 8px 0 36px; }
.eyebrow { font-family: var(--pt-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; line-height: 1.6; }
.intro-eyebrow { color: var(--pt-gold); gap: 10px; margin-bottom: 20px; }
.index-mark { border: 0; background: var(--pt-amber); flex-shrink: 0; }
.collection__title { font-size: 48px; font-weight: 760; line-height: 1.08; letter-spacing: -0.045em; }
.collection__lead { font-size: 18px; color: var(--pt-muted); margin-top: 19px; line-height: 1.55; }
.edition { border: 0; min-width: 260px; padding-top: 16px; }
.edition__label { font-size: 13px; }
.edition p { font-family: var(--pt-display); font-size: 25px; font-weight: 600; color: var(--pt-ink); letter-spacing: -0.025em; margin: 8px 0 15px; line-height: 1.3; }
.text-link, .text-button { color: var(--pt-gold); font-size: 14px; font-weight: 600; min-height: 30px; display: inline-flex; align-items: center; gap: 8px; border-radius: 3px; }
.text-link:hover, .text-button:hover { color: var(--pt-ink); }
.feature-grid { grid-template-columns: minmax(0, 1.95fr) minmax(280px, 1fr); gap: 24px; }
.feature-grid > * { min-width: 0; }
.spotlight { min-height: 374px; border-radius: 10px; background: var(--pt-night); border-color: var(--pt-night); color: var(--pt-night-text); }
.spotlight > .game-image { width: 100%; aspect-ratio: auto; background: var(--pt-night); }
.spotlight .game-image img { object-position: center 43%; }
.spotlight__shade { background: linear-gradient(180deg, oklch(0.16 0.025 262 / 0.05) 5%, oklch(0.2 0.035 262 / 0.74) 52%, var(--pt-night) 100%); }
.spotlight__top { padding: 23px 26px; }
.spotlight__label { background: var(--pt-night); color: var(--pt-amber); border: 1px solid oklch(0.78 0.09 78 / 0.3); font: 500 10px/1.5 var(--pt-mono); padding: 6px 9px; border-radius: 4px; }
.spotlight__top .stage-badge { padding: 6px 9px; color: var(--pt-night-text); background: var(--pt-night); border: 1px solid oklch(0.8 0.02 260 / 0.3); }
.spotlight__body { left: 28px; right: 28px; bottom: 26px; }
.spotlight__body .eyebrow { color: var(--pt-amber); font-size: 9px; }
.spotlight__body h3 { color: var(--pt-night-text); font-size: 36px; font-weight: 720; margin: 8px 0 9px; letter-spacing: -0.035em; }
.spotlight__body > p:not(.eyebrow) { color: var(--pt-night-muted); font-size: 15px; line-height: 1.55; max-width: 60ch; }
.spotlight__foot { margin-top: 20px; gap: 12px; }
.spotlight__foot > span { color: var(--pt-night-muted); font-size: 12px; }
.spotlight .image-fallback { color: var(--pt-night-muted); align-items: start; padding-top: 80px; }
.spotlight__loading { background: oklch(0.29 0.038 262); }
.collection-snapshot { border-radius: 10px; padding: 23px 26px 19px; background: var(--pt-paper); }
.snapshot-symbol { color: var(--pt-gold); font-size: 22px; }
.collection-snapshot h3 { font-size: 25px; font-weight: 680; letter-spacing: -0.03em; line-height: 1.2; margin: 14px 0 11px; }
.snapshot-description { font-size: 14px; line-height: 1.5; }
.stage-chart { gap: 4px; padding-top: 17px; }
.stage-row { font-size: 13px; gap: 6px 8px; padding: 5px 4px 8px; width: calc(100% + 8px); margin-inline: -4px; border: 1px solid transparent; border-radius: 4px; }
.stage-row:hover, .stage-row[aria-pressed="true"] { background: var(--pt-soft); border-color: var(--pt-line); }
.stage-row__count { font: 11px var(--pt-mono); color: var(--pt-ink); }
.stage-row__track { height: 4px; }
.stage-row__fill, .stage-row:first-child .stage-row__fill { background: var(--pt-green); border-radius: 2px; }
[data-stage-bar="playable"] { background: var(--pt-amber); }
[data-stage-bar="prototype"] { background: var(--pt-blue); }
.snapshot-foot { padding-top: 12px; margin-top: 15px; font-size: 11px; gap: 7px; }
.snapshot-foot > :last-child { color: var(--pt-gold); }
.status-dot--released { color: var(--pt-green); }
.status-dot--playable { color: var(--pt-gold); }
.status-dot--prototype { color: var(--pt-blue); }
.discovery { padding-top: 46px; scroll-margin-top: 0; }
.discovery__heading { align-items: baseline; margin-bottom: 22px; }
.discovery__title { align-items: baseline; gap: 14px; }
.discovery__title h2 { font-size: 25px; font-weight: 680; letter-spacing: -0.03em; }
.section-number { font-family: var(--pt-mono); font-size: 12px; color: var(--pt-gold); }
.result-count { font-size: 13px; }
.collection__filters { grid-template-columns: minmax(0, 1fr) 135px 155px 155px auto; align-items: center; gap: 12px; }
.collection__filters .input, .collection__filters .select { min-height: 46px; border: 1px solid var(--pt-control-line); border-radius: 6px; background: var(--pt-paper); color: var(--pt-text); font: 15px var(--pt-body); padding: 10px 12px; }
.collection__filters .input::placeholder { color: var(--pt-muted); }
.collection__filters .collection__search .input { padding-left: 42px; }
.search-icon { left: 14px; top: 13px; color: var(--pt-muted); }
.collection .btn, .dialog .btn { border-radius: 6px; font-size: 14px; font-weight: 600; gap: 9px; min-height: 44px; padding: 10px 16px; line-height: 1.4; }
.collection .btn--ghost, .dialog .btn--ghost { border-color: transparent; color: var(--pt-text); background: transparent; }
.collection .btn--ghost:hover, .dialog .btn--ghost:hover { color: var(--pt-ink); background: var(--pt-soft); }
.collection .btn--primary, .dialog .btn--primary { background: var(--pt-amber); color: var(--pt-night); border-color: transparent; }
.collection .btn--primary:hover, .dialog .btn--primary:hover { background: oklch(0.87 0.14 78); box-shadow: none; }
.collection .btn--secondary, .dialog .btn--secondary { background: var(--pt-paper); color: var(--pt-ink); border-color: var(--pt-control-line); }
.collection .btn--secondary:hover, .dialog .btn--secondary:hover { background: var(--pt-soft); }
.collection__meta { gap: 18px; margin: 18px 0 24px; border-bottom: 1px solid var(--pt-line); flex-wrap: nowrap; }
.stage-tabs { gap: 23px; flex-wrap: nowrap; overflow-x: auto; }
.stage-tabs button { min-height: 49px; padding: 8px 0 13px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; gap: 7px; font-size: 14px; white-space: nowrap; }
.stage-tabs button[aria-pressed="true"] { background: transparent; color: var(--pt-ink); border-bottom-color: var(--pt-gold); font-weight: 650; }
.stage-tabs button:hover { background: transparent; color: var(--pt-gold); }
.stage-tabs button > span { background: var(--pt-soft); padding: 1px 5px; min-width: 21px; border-radius: 4px; font-size: 11px; text-align: center; }
.stage-tabs button[aria-pressed="true"] > span { background: var(--pt-amber-soft); color: var(--pt-gold); }
.stage-tabs :focus-visible { outline-offset: -3px; }
.collection #followingFilter { font-size: 13px; margin: 0 0 7px auto; min-height: 36px; padding: 7px 10px; }
.collection #followingFilter[aria-pressed="true"] { color: var(--pt-gold); background: var(--pt-amber-soft); border-color: transparent; }
.view-switch { background: var(--pt-paper); border: 1px solid var(--pt-line); border-radius: 6px; padding: 3px; gap: 2px; flex-shrink: 0; margin-bottom: 8px; overflow: visible; }
.view-switch button { width: 34px; height: 32px; border-radius: 3px; color: var(--pt-muted); }
.view-switch button[aria-pressed="true"] { color: var(--pt-ink); background: var(--pt-soft); }
.collection__items, .collection__skeletons { gap: 24px; }
.collection-item { border: 1px solid var(--pt-line); border-radius: 8px; overflow: hidden; background: var(--pt-paper); transition: border-color 180ms ease-out, box-shadow 180ms ease-out; }
.collection-item:hover { border-color: var(--pt-control-line); box-shadow: 0 4px 14px oklch(0.27 0.04 262 / 0.06); }
.collection-item__preview { border: 0; border-bottom: 1px solid var(--pt-line); border-radius: 0; flex-shrink: 0; }
.collection-item__preview:focus-visible { outline-offset: -4px; }
.game-image { aspect-ratio: 16 / 9; background: var(--pt-soft); }
.game-image--portrait img { object-fit: contain; background: var(--pt-night); }
.preview-label { background: var(--pt-night); color: var(--pt-night-text); border: 0; font-size: 11px; padding: 5px 8px; }
.collection-item__preview:has([data-preview-kind="video"]) .preview-label { opacity: 1; }
.collection-item__body { padding: 18px 21px 0; }
.game-meta { font-size: 10px; color: var(--pt-gold); }
.game-meta > span:first-child { font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.stage-badge { padding: 3px 7px; border-radius: 4px; background: var(--pt-soft); color: var(--pt-muted); font-size: 10px; font-weight: 600; gap: 5px; line-height: 1.4; }
.stage-badge--released { color: var(--pt-green); background: var(--pt-green-soft); }
.stage-badge--playable { color: var(--pt-gold); background: var(--pt-amber-soft); }
.stage-badge--prototype { color: var(--pt-blue); background: var(--pt-blue-soft); }
.collection-item h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.22; margin-top: 12px; }
.collection-item h3 button { font-family: var(--pt-display); color: var(--pt-ink); }
.maker-link { font-size: 12px; line-height: 1.5; min-height: 28px; padding: 4px 0; margin-top: 3px; }
.collection-item__description { font-size: 15px; line-height: 1.55; margin: 12px 0 19px; }
.collection-item__foot { padding: 11px 0; font-size: 11px; }
.collection-item__foot .text-button { color: var(--pt-ink); font-size: 12px; min-height: 34px; }
.collection-item__foot .text-button:hover { color: var(--pt-gold); }
.review-label { margin: 0 0 12px; font-size: 11px; }
.collection__items[data-view="list"] { gap: 14px; }
[data-view="list"] .collection-item { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 0; border: 1px solid var(--pt-line); }
[data-view="list"] .collection-item__preview { height: 100%; align-self: stretch; border: 0; }
[data-view="list"] .game-image { min-height: 100%; aspect-ratio: auto; }
[data-view="list"] .game-image img { position: absolute; inset: 0; }
[data-view="list"] .collection-item__body { padding: 20px 24px 10px 0; }
[data-view="list"] .collection-item__description { margin: 8px 0 12px; max-width: 85ch; }
[data-view="list"] .collection-item__foot { margin-top: auto; }
.collection__skeletons .skeleton { background: var(--pt-soft); border: 1px solid var(--pt-line); border-radius: 8px; }
.collection__notice { background: var(--pt-amber-soft); border-color: var(--pt-control-line); border-radius: 8px; }
.collection .status-panel { max-width: none; padding: 55px 24px; text-align: center; border: 1px dashed var(--pt-control-line); border-radius: 8px; }
.collection .status-panel h3 { font-size: 24px; }
.empty-icon { color: var(--pt-gold); }
.collection__endnote { padding: 28px 0 45px; font-size: 12px; gap: 9px; }
.collection__endnote .index-mark { width: 6px; height: 6px; }
.collection-notes { grid-template-columns: 1fr 1.15fr; gap: 80px; padding-top: 38px; scroll-margin-top: 0; }
.collection-notes h2 { font-size: 27px; font-weight: 650; line-height: 1.25; letter-spacing: -0.035em; margin-top: 12px; }
.collection-notes__body { font-size: 15px; line-height: 1.6; }
.provenance { font-size: 12px; margin-top: 18px; }
.collection-notes__fine { font-size: 12px; }
.collection-policy { border-top: 1px solid var(--pt-line); padding-top: 13px; margin-top: 28px; justify-content: start; }
.collection-policy .text-button { font-size: 12px; }
dialog.dialog { background: var(--pt-paper); color: var(--pt-text); border: 1px solid var(--pt-line); border-radius: 12px; box-shadow: 0 24px 80px oklch(0.15 0.03 262 / 0.25); }
.dialog::backdrop { background: oklch(0.2 0.04 262 / 0.72); }
.game-dialog .dialog__header { background: var(--pt-paper); }
.dialog .dialog__header { padding: 12px 24px; }
.dialog .dialog__header h2 { font-size: 20px; margin: 0; }
.dialog .dialog__header .btn--ghost { color: var(--pt-muted); border-color: transparent; }
.dialog .dialog__header .btn--ghost:hover { color: var(--pt-ink); background: var(--pt-soft); }
.game-dialog .dialog__body { padding: 26px 30px; }
.game-dialog .dialog__body > h2 { font-size: 32px; font-weight: 700; line-height: 1.15; }
.dialog .dialog__footer { padding: 16px 30px; }
.dialog .field__hint { color: var(--pt-muted); }
.project-facts { gap: 20px 38px; padding: 18px 0; border-block: 1px solid var(--pt-line); margin-block: 20px; }
.project-facts dd { color: var(--pt-ink); font-weight: 600; }
.tag-list li { background: var(--pt-soft); border-color: transparent; font-size: 12px; padding: 3px 8px; border-radius: 4px; }
.game-detail { gap: 35px; grid-template-columns: minmax(0, 1.2fr) minmax(250px, 1fr); margin-top: 26px; align-items: start; }
.game-detail h3 { font-size: 19px; font-weight: 650; }
.timeline h4 .text-link { color: var(--pt-ink); font-size: 14px; display: inline; }
.timeline p { font-size: 14px; }
.timeline__date { font-size: 11px; }
.game-detail__actions { padding: 21px; border: 1px solid var(--pt-line); border-radius: 8px; background: var(--pt-soft); }
.price-section .eyebrow { font-size: 9px; }
.price-input { background: var(--pt-paper); border-radius: 5px; }
.price-input:focus-within { outline: 2px solid var(--pt-gold); outline-offset: 2px; }
.price-input input { font-size: 16px; }
.price-input input:focus { outline: 0; }
.project-source { padding: 14px 16px; background: var(--pt-soft); border-radius: 6px; line-height: 1.6; }
#infoDialog .dialog__body { gap: 24px; }
#infoDialog .dialog__body p { font-size: 14px; }
#infoDialog a { color: var(--pt-gold); }
.dialog .btn--danger { background: oklch(0.48 0.15 25); color: var(--pt-night-text); }
.dialog .btn--danger:hover { background: oklch(0.42 0.15 25); }
.toast { background: var(--pt-night); color: var(--pt-night-text); border-color: oklch(0.4 0.04 260); font-family: var(--pt-body); }
.skip-link { background: var(--pt-night); color: var(--pt-night-text); }
@media (max-width: 1100px) {
  .collection { padding-inline: 28px; }
  .feature-grid { grid-template-columns: minmax(0, 1.75fr) minmax(270px, 1fr); gap: 18px; }
  .collection__filters { grid-template-columns: minmax(0, 1fr) 125px 145px 140px auto; gap: 10px; }
  .collection__filters > .field:nth-child(4), .collection__filters > button { grid-column: auto; }
  .collection__items { gap: 18px; }
  .collection-item__body { padding-inline: 17px; }
  .stage-tabs { gap: 17px; }
  .stage-tabs button { font-size: 13px; }
}
@media (max-width: 900px) {
  .collection { padding-top: 32px; }
  .collection__title { font-size: 42px; }
  .feature-grid { grid-template-columns: 1fr; }
  .spotlight { min-height: 365px; }
  .collection-snapshot { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0 32px; padding: 24px; }
  .snapshot-heading, .collection-snapshot h3, .snapshot-description { grid-column: 1; }
  .collection-snapshot h3 { margin-top: 10px; }
  .stage-chart { grid-column: 2; grid-row: 1 / 4; margin: 0; padding: 0; align-content: center; }
  .snapshot-foot { grid-column: 1 / -1; margin-top: 18px; }
  .collection__filters { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .collection__search { grid-column: 1 / -1; }
  .collection__meta { flex-wrap: wrap; gap: 8px; }
  .stage-tabs { flex: 1 1 100%; }
  .collection #followingFilter { margin-left: 0; }
  .view-switch { margin-left: auto; }
  .collection-notes { gap: 35px; }
  .game-detail { gap: 24px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 80px; }
  .collection { padding: 29px 20px 42px; }
  .collection__intro { padding: 0 0 28px; }
  .intro-eyebrow { font-size: 9px; letter-spacing: 0.1em; margin-bottom: 16px; }
  .collection__title { font-size: 36px; }
  .collection__lead { font-size: 16px; margin-top: 15px; }
  .spotlight { min-height: 375px; }
  .spotlight__top { padding: 20px; }
  .spotlight__body { left: 21px; right: 21px; bottom: 20px; }
  .spotlight__body h3 { font-size: 30px; }
  .spotlight__body > p:not(.eyebrow) { font-size: 14px; -webkit-line-clamp: 3; }
  .spotlight__foot { gap: 12px; margin-top: 14px; align-items: center; }
  .spotlight__foot > span { font-size: 11px; }
  .spotlight__foot .btn { font-size: 12px; padding: 9px 12px; }
  .collection-snapshot { padding: 21px 20px 16px; gap: 0 20px; }
  .collection-snapshot h3 { font-size: 20px; margin-bottom: 8px; }
  .snapshot-heading .eyebrow { font-size: 8px; letter-spacing: 0.09em; }
  .snapshot-symbol { display: none; }
  .snapshot-description { font-size: 12px; }
  .stage-row { font-size: 11px; }
  .stage-row__label { gap: 5px; }
  .snapshot-foot { font-size: 10px; margin-top: 15px; }
  .discovery { padding-top: 34px; }
  .discovery__heading { gap: 8px; margin-bottom: 18px; align-items: start; }
  .discovery__title { gap: 10px; }
  .discovery__title h2 { font-size: 22px; }
  .result-count { width: 100%; margin-left: 35px; font-size: 12px; }
  .collection__filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .collection__filters .input, .collection__filters .select { font-size: 16px; }
  .collection__filters > button { justify-self: end; font-size: 12px; padding-inline: 8px; }
  .collection__meta { margin-top: 10px; }
  .stage-tabs { gap: 14px; justify-content: space-between; }
  .stage-tabs button { font-size: 12px; padding: 8px 0 12px; gap: 5px; }
  .stage-tabs button > span { display: none; }
  .collection__items { gap: 18px; }
  .collection-item__body { padding: 19px 21px 0; }
  .collection-item h3 { font-size: 24px; }
  .collection-item__description { -webkit-line-clamp: 3; margin-bottom: 17px; }
  .game-meta, .stage-badge { font-size: 11px; }
  .collection-item__foot { font-size: 12px; }
  .collection-item__foot .text-button { min-height: 40px; font-size: 13px; }
  .collection__items[data-view="list"] .collection-item { grid-template-columns: 90px minmax(0, 1fr); gap: 14px; }
  [data-view="list"] .collection-item__body { padding: 14px 14px 8px 0; }
  [data-view="list"] .collection-item h3 { font-size: 20px; }
  [data-view="list"] .game-meta, [data-view="list"] .stage-badge { font-size: 10px; }
  [data-view="list"] .collection-item__description { display: -webkit-box; font-size: 13px; -webkit-line-clamp: 2; }
  [data-view="list"] .collection-item__foot { font-size: 10px; }
  [data-view="list"] .collection-item__foot .text-button { font-size: 12px; }
  .collection__endnote { padding: 24px 14px 32px; font-size: 11px; }
  .collection-notes { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; }
  .collection-notes h2 { font-size: 25px; }
  .dialog .dialog__header { padding: 9px 16px; }
  #itemDialogMedia .game-image { height: 200px; }
  .game-dialog .dialog__body { padding: 22px; }
  .game-dialog .dialog__body > h2 { font-size: 28px; }
  .dialog .dialog__footer { padding: 14px 22px; gap: 10px; }
  .game-detail { grid-template-columns: 1fr; gap: 22px; }
  .game-detail__actions { padding: 20px; }
}
@media (max-width: 360px) {
  .collection { padding-inline: 16px; }
  .collection__title { font-size: 31px; }
  .stage-tabs { gap: 12px; }
  .stage-tabs button { font-size: 11px; gap: 4px; }
  .stage-tabs button > span { min-width: 17px; padding-inline: 3px; }
  .collection-snapshot { grid-template-columns: 1fr; }
  .stage-chart { grid-column: 1; grid-row: auto; padding-top: 12px; }
  .stage-row { font-size: 13px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --pt-bg: oklch(0.19 0.027 262); --pt-paper: oklch(0.235 0.032 262); --pt-soft: oklch(0.28 0.035 262);
    --pt-ink: oklch(0.95 0.008 262); --pt-text: oklch(0.83 0.017 262); --pt-muted: oklch(0.72 0.028 262);
    --pt-line: oklch(0.36 0.032 262); --pt-control-line: oklch(0.59 0.032 262);
    --pt-gold: oklch(0.82 0.15 78); --pt-amber-soft: oklch(0.3 0.035 78);
    --pt-green: oklch(0.79 0.09 165); --pt-green-soft: oklch(0.29 0.029 165);
    --pt-blue: oklch(0.77 0.075 260); --pt-blue-soft: oklch(0.3 0.044 260);
  }
  html { color-scheme: dark; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  :root { --pt-bg: #f9fafc; --pt-paper: #fdfdfe; --pt-ink: #19233a; --pt-text: #37445d; --pt-muted: #55617b; --pt-line: #cdd4df; --pt-soft: #eef1f6; --pt-gold: #81510a; }
  .header-bar, .collection__filters, .collection__meta, .preview-label, .neo-footer, .toast { display: none !important; }
  .collection { max-width: none; padding: 0; }
  .collection__intro { padding-bottom: 24px; }
  .collection__title { font-size: 34px; }
  .feature-grid { display: none; }
  .discovery { padding-top: 10px; }
  .collection__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-item { break-inside: avoid; }
  .game-image { max-height: 140px; }
  .collection-item__preview, .collection-item h3 button { color: var(--pt-ink); }
}

/* Public conversation and a growing archive. */
.archive-status { color: var(--text-muted); font-size: .875rem; line-height: 1.6; max-width: 75ch; margin: -6px 0 22px; }
.collection-more { display: grid; justify-items: center; gap: 12px; padding: 32px 0 8px; }
.collection-more p { color: var(--text-muted); font-size: .875rem; }
.project-feedback { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.feedback-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 24px; }
.feedback-heading h3 { font-family: var(--pt-display); font-size: 1.55rem; letter-spacing: -.035em; margin-top: 6px; }
#feedbackCount { color: var(--text-muted); font-size: .8125rem; }
.feedback-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
.feedback-community, .feedback-compose { min-width: 0; }
.ideal-price-summary { padding: 0 0 20px; margin-bottom: 8px; border-bottom: 1px solid var(--border); color: var(--text-secondary); font-size: .9375rem; }
.ideal-price-summary strong { font-weight: 700; color: var(--text-primary); }
.ideal-price-summary span { display: block; font-size: .8125rem; color: var(--text-muted); margin-top: 3px; }
.ideal-price-summary .field__hint { margin-top: 8px; }
.feedback-list { list-style: none; margin: 0; padding: 0; }
.feedback-note { padding: 20px 0; border-bottom: 1px solid var(--border); }
.feedback-note__heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; line-height: 1.5; }
.feedback-note__heading strong { font-size: .9375rem; overflow-wrap: anywhere; }
.feedback-note__heading span, .feedback-note__heading time { color: var(--text-muted); font-size: .75rem; }
.feedback-note__heading time { margin-left: auto; }
.feedback-note__body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9375rem; line-height: 1.65; color: var(--text-secondary); margin-top: 10px; }
.feedback-note__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; color: var(--text-muted); font-size: .75rem; }
.feedback-note__foot a { margin-left: auto; font-size: .75rem; min-height: 28px; display: inline-flex; align-items: center; }
.ideal-price-tag { color: var(--text-secondary); }
.ideal-price-tag strong { color: var(--text-primary); margin-left: 4px; }
.feedback-empty { padding: 24px 0; color: var(--text-secondary); }
.feedback-empty > p { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.feedback-empty > span { display: block; max-width: 38ch; font-size: .875rem; line-height: 1.6; color: var(--text-muted); }
.feedback-compose { padding: 22px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-1); }
.feedback-compose h4 { font-size: 1.0625rem; font-weight: 650; line-height: 1.4; margin-bottom: 4px; }
.project-feedback .field__hint { font-size: .8125rem; line-height: 1.55; color: var(--text-muted); }
#feedbackForm { display: grid; gap: 8px; margin-top: 18px; }
#feedbackForm label { color: var(--text-primary); font-size: .875rem; font-weight: 600; }
.field-optional { color: var(--text-muted); font-size: .8125rem; font-weight: 400; }
#feedbackForm .input { width: 100%; min-width: 0; margin-bottom: 8px; font: inherit; font-size: .9375rem; }
#feedbackBody { resize: vertical; min-height: 120px; max-height: 480px; line-height: 1.55; }
.feedback-price-field { display: grid; gap: 8px; margin: 8px 0; padding-top: 16px; border-top: 1px solid var(--border); }
#feedbackPrice { font-size: .9375rem; }
#feedbackForm [aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 1px; }
#feedbackSubmit { width: 100%; margin-top: 6px; }
#feedbackRemove { justify-self: start; }
#feedbackAvailability { margin-top: 12px; }
.feedback-error { font-size: .875rem; color: var(--text-secondary); padding: 16px 0; }
#feedbackMore { margin-top: 18px; }
.project-history { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 20px; }
.project-history > summary { cursor: pointer; color: var(--text-primary); font-size: 1rem; font-weight: 600; line-height: 1.6; }
.project-history > summary span:last-child { color: var(--text-muted); font-size: .8125rem; font-weight: 400; margin-left: 12px; }
.project-history .timeline { margin-top: 24px; }
.project-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 700px) {
  .feedback-layout { grid-template-columns: 1fr; gap: 24px; }
  .feedback-compose { padding: 18px; }
  #feedbackForm .input, #feedbackPrice { font-size: 1rem; }
  .feedback-heading h3 { font-size: 1.35rem; }
  .archive-status { font-size: .8125rem; margin-top: 0; }
}
@media print { .feedback-compose, .feedback-note__foot a, #feedbackMore, .collection-more { display: none; } }

/* Clear control boundaries and room for the native menu indicator. */
.collection__filters { grid-template-columns: minmax(190px, 1fr) 150px 180px 170px auto; align-items: end; }
.collection__filters .field { position: relative; display: grid; gap: 6px; }
.collection__filters label { font-size: 12px; font-weight: 600; color: var(--pt-muted); }
.collection__filters .search-icon { top: auto; bottom: 13px; transform: none; }
.collection__filters .input, .collection__filters .select, .change-request .input, .change-request .select { border-radius: 9px; box-shadow: 0 1px 2px oklch(0.27 0.046 262 / 0.04); }
.collection__filters .select, .change-request .select, .admin-page .select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23768194' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 16px; cursor: pointer; text-overflow: ellipsis; }
.collection__filters .select:hover { border-color: var(--pt-muted); background-color: var(--pt-soft); }
.collection__filters .select:focus-visible { outline-offset: 3px; }
.collection-policy { justify-content: flex-start; flex-wrap: wrap; gap: 12px 24px; align-items: center; border-top: 1px solid var(--pt-line); padding-top: 20px; margin-top: 0; }
#collectionProvenance { font-size: 12px; color: var(--pt-muted); margin-right: auto; }
.project-date { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.project-date > span { color: var(--pt-muted); }
.project-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.project-labels { min-width: 0; }
.project-labels .eyebrow { margin: 0; }
.project-labels .tag-list { margin-top: 8px; gap: 5px; }
.project-labels .tag-list:empty { display: none; }
.project-utilities { display: flex; flex-shrink: 0; gap: 4px; }
.project-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; min-height: 40px; padding: 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--pt-muted); text-decoration: none; cursor: pointer; transition: color 150ms, background-color 150ms, border-color 150ms; }
.project-icon svg { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.project-icon:hover, .project-icon:focus-visible { color: var(--pt-ink); background: var(--pt-soft); border-color: var(--pt-line); }
.project-icon:active { background: var(--pt-line); }
.project-icon__label { position: absolute; z-index: 3; bottom: calc(100% + 8px); right: 0; width: max-content; max-width: 180px; padding: 6px 10px; border-radius: 5px; background: var(--pt-ink); color: var(--pt-paper); font: 500 13px/1.4 var(--pt-body); text-align: center; opacity: 0; visibility: hidden; transition: opacity 150ms; }
.project-icon::after { content: ''; position: absolute; bottom: 100%; left: 0; right: 0; height: 10px; }
.project-icon:not([data-tooltip-dismissed]):is(:hover, :focus-visible) .project-icon__label { opacity: 1; visibility: visible; }
.project-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: center; }
.project-heading h2 { font: 700 32px/1.17 var(--pt-display); letter-spacing: -.035em; margin: 0 0 8px; }
.project-heading__text { min-width: 0; }
.project-actions { display: grid; gap: 8px; }
.project-actions:has(#itemDialogLinks:empty):has(#followGame[hidden]) { display: none; }
#itemDialogLinks { display: flex; }
#itemDialogLinks .btn { justify-content: center; text-align: center; }
#itemDialogStore:empty { display: none; }
#itemDialogStore:not(:empty) { margin-top: 16px; }
#itemDialogDescription { max-width: 70ch; margin: 20px 0 24px; }
#itemDialogMedia { overflow: hidden; border-bottom: 1px solid var(--pt-line); }
#itemDialogMedia .game-image { width: 100%; height: 280px; aspect-ratio: auto; background: var(--pt-night); }
#itemDialogMedia img { object-fit: contain; }
.change-request { padding: 22px; margin-bottom: 24px; border: 1px solid var(--pt-control-line); border-radius: 10px; background: var(--pt-soft); }
.change-request .stack { gap: 9px; margin-top: 16px; }
.change-request label { font-size: 14px; font-weight: 600; }
.change-request .input, .change-request .select { background-color: var(--pt-paper); color: var(--pt-ink); border: 1px solid var(--pt-control-line); font: 16px var(--pt-body); padding: 10px 12px; width: 100%; }
.change-request .select { padding-right: 40px; }
.change-request p { color: var(--pt-muted); font-size: 14px; }
.change-request #changeRequestMessage { margin-top: 12px; color: var(--pt-ink); }
.about-page { max-width: 900px; padding-block: 60px 80px; }
.about-page .article-intro { margin-bottom: 42px; }
.about-page .article-intro h2 { font: 720 clamp(32px,5vw,48px)/1.13 var(--pt-display); letter-spacing: -.04em; margin: 18px 0; }
.about-page .article-intro > p:last-child { font-size: 21px; color: var(--pt-muted); }
.about-page article { max-width: 70ch; }
.about-page article section { margin-top: 32px; }
.about-page article h3 { font-size: 22px; margin-bottom: 12px; }
.about-page article p { font-size: 17px; color: var(--pt-text); line-height: 1.75; margin-block: 12px; }
.about-page .article-return { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--pt-line); }
@media (max-width: 1100px) { .collection__filters { grid-template-columns: minmax(170px, 1fr) 145px 165px 150px auto; } }
@media (max-width: 900px) { .collection__filters { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; } .collection__filters .collection__search { grid-column: 1/-1; } }
@media (max-width: 650px) {
  .collection__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection__filters > button { align-self: end; }
  #itemDialogMedia .game-image { height: auto; aspect-ratio: 16/9; max-height: 260px; }
  .project-toolbar { flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
  .project-utilities { width: 100%; justify-content: space-between; }
  .project-heading { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .project-heading h2 { font-size: 28px; }
  #itemDialogLinks .btn { width: 100%; }
  .change-request { padding: 16px; }
  .about-page { padding-block: 36px 56px; }
  #collectionProvenance { flex-basis: 100%; }
}
@media (hover: none) {
  .project-utilities { gap: 4px; }
  .project-icon { flex-direction: column; justify-content: flex-start; gap: 5px; width: 58px; min-height: 62px; padding: 5px 1px; }
  .project-icon__label { position: static; width: auto; max-width: 100%; padding: 0; background: transparent; color: currentColor; font-size: 11px; line-height: 1.2; opacity: 1; visibility: visible; }
  .project-icon::after { display: none; }
}
.card-store { display: flex; gap: 7px 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.store-badge { display: inline-flex; font-size: 11px; font-weight: 650; letter-spacing: .015em; border: 1px solid var(--pt-control-line); border-radius: 5px; padding: 4px 7px; color: var(--pt-ink); }
.store-price { font-size: 14px; font-weight: 650; color: var(--pt-ink); font-variant-numeric: tabular-nums; }
.store-summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.store-summary small { flex-basis: 100%; font-size: 12px; color: var(--pt-muted); }
.project-media { padding: 16px 0; border-bottom: 1px solid var(--pt-line); }
.project-media summary { cursor: pointer; font-weight: 600; }
.project-media summary > span { font-size: 12px; color: var(--pt-muted); margin-left: 8px; }
.media-gallery { list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding: 20px 0 0; }
.media-player { overflow: hidden; border-radius: 7px; background: var(--pt-soft); }
.media-player img, .media-player video { width: 100%; display: block; max-height: 380px; object-fit: contain; }
.media-player .text-button { margin: 8px 12px; }
.media-play { display: grid; place-items: center; width: 100%; min-height: 150px; position: relative; background: var(--pt-night); color: var(--pt-night-text); border: 0; cursor: pointer; }
.media-play > img { grid-area: 1/1; opacity: .6; }
.media-play > span { grid-area: 1/1; position: relative; z-index: 1; padding: 10px 16px; border-radius: 6px; background: var(--pt-night); }
.media-error { padding: 12px; }
.media-gallery .field__hint { font-size: 12px; }
@media (max-width: 650px) { .media-gallery { grid-template-columns: minmax(0,1fr); } }
.admin-page { padding-top: 36px; }
.admin-intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.admin-intro h2 { font-size: 38px; letter-spacing: -.04em; margin: 10px 0; }
.admin-intro p, .admin-section-heading p { color: var(--pt-muted); }
.admin-gate { padding: 28px; background: var(--pt-paper); border: 1px solid var(--pt-line); border-radius: 12px; }
.admin-gate h3 { font-size: 23px; margin-bottom: 8px; }
.admin-gate .btn { margin-top: 20px; }
.admin-message { margin-block: 16px; overflow-wrap: anywhere; color: var(--pt-muted); }
.admin-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--pt-line); margin-block: 24px 32px; }
.admin-tabs button { border: 0; border-bottom: 2px solid transparent; background: none; padding: 12px 2px; color: var(--pt-muted); font-size: 16px; font-weight: 600; cursor: pointer; }
.admin-tabs button[aria-current] { border-bottom-color: var(--pt-gold); color: var(--pt-ink); }
.admin-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.admin-section-heading h3 { font-size: 25px; margin-bottom: 5px; }
.admin-inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-page .input, .admin-page .select { color: var(--pt-ink); background-color: var(--pt-paper); border: 1px solid var(--pt-control-line); border-radius: 8px; min-height: 44px; padding: 10px 12px; font: 16px var(--pt-body); }
.admin-page .select { padding-right: 40px; }
.admin-page .field { display: grid; gap: 7px; min-width: 0; }
.admin-page label { font-size: 14px; font-weight: 600; }
.admin-page .field__hint { color: var(--pt-muted); font-size: 13px; }
.admin-project-search { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; margin-bottom: 30px; }
.editor-heading { display: flex; align-items: baseline; gap: 20px; margin-bottom: 20px; }
.editor-heading h4 { font: 650 22px var(--pt-display); }
.image-editor-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; }
.image-editor-grid > * { min-width: 0; }
.editor-preview { aspect-ratio: 16/10; background: var(--pt-soft); border: 1px solid var(--pt-line); border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.editor-preview img { width: 100%; height: 100%; object-fit: contain; }
.editor-form { display: grid; gap: 20px; align-content: start; }
.image-candidates { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 20px; }
.image-candidates button { display: grid; width: 110px; gap: 5px; padding: 5px; border: 1px solid var(--pt-control-line); border-radius: 7px; color: var(--pt-ink); background: var(--pt-paper); font: 12px var(--pt-body); cursor: pointer; }
.image-candidates img { width: 100%; height: 65px; object-fit: cover; border-radius: 3px; }
.permission-check { display: flex; gap: 10px; align-items: center; }
.permission-check input { width: 20px; height: 20px; }
.editor-form .input, .editor-form .select { width: 100%; }
.frame-picker { margin-top: 36px; border-block: 1px solid var(--pt-line); padding: 20px 0; }
.frame-picker summary { font-size: 18px; font-weight: 600; cursor: pointer; }
.frame-picker > p, .frame-picker > .select { margin-block: 14px; }
.frame-picker video { display: block; width: min(100%,720px); max-height: 440px; background: var(--pt-night); border-radius: 8px; margin-bottom: 16px; }
.inbox-request { padding: 24px 0; border-bottom: 1px solid var(--pt-line); overflow-wrap: anywhere; }
.inbox-request:first-child { border-top: 1px solid var(--pt-line); }
.inbox-request h4 { font-size: 19px; margin-block: 5px 10px; }
.inbox-request .request-body { white-space: pre-wrap; max-width: 75ch; color: var(--pt-text); margin-bottom: 12px; }
.inbox-request .request-meta { display: flex; gap: 16px; font-size: 12px; color: var(--pt-muted); }
.inbox-request details { margin-top: 14px; }
.inbox-request textarea { display: block; width: min(100%,650px); margin: 12px 0; }
.inbox-request summary { cursor: pointer; color: var(--pt-gold); font-weight: 600; }
.inbox-empty { padding: 46px 0; border-block: 1px solid var(--pt-line); color: var(--pt-muted); }
#moreRequests { margin-top: 24px; }
.member-row { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--pt-line); }
.member-row span { color: var(--pt-muted); font-size: 13px; }
#adminMembers { margin-top: 25px; }
@media (max-width: 750px) {
  .image-editor-grid, .admin-project-search { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .admin-intro, .admin-section-heading { align-items: start; flex-direction: column; }
  .admin-tabs { gap: 18px; }
  .admin-tabs button { font-size: 14px; }
  .editor-heading, .member-row { flex-wrap: wrap; }
  .admin-inline > input { max-width: 100%; }
  .admin-project-search .input, .admin-project-search .select { width: 100%; }
}
.project-actions .project-follow { padding: 0; margin: 0; border: 0; }
.project-actions .project-follow:has(button[hidden]) { display: none; }
.project-actions .project-follow button { width: 100%; }
.admin-inline > .select { width: auto; min-width: 185px; }
.admin-section-heading > .admin-inline { flex-shrink: 0; }
.admin-page input[type="file"] { width: 100%; color: var(--pt-muted); font: 14px var(--pt-body); }
.admin-page input[type="file"]::file-selector-button { border: 1px solid var(--pt-control-line); border-radius: 7px; background: var(--pt-paper); color: var(--pt-ink); font: 600 14px var(--pt-body); min-height: 42px; padding: 9px 13px; margin-right: 12px; cursor: pointer; }
