@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #15191f;
  --panel: #1d232b;
  --panel2: #252d37;
  --text: #f1f2f2;
  --muted: #a6afba;
  --subtle: #818e9c;
  --blue: #abc4d8;
  --line: #323a45;
  --radius: 14px;
  --gutter: clamp(20px, 4.2vw, 64px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
::selection { background: var(--blue); color: var(--bg); }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 3vw, 36px); font-weight: 620; line-height: 1.2; letter-spacing: -.035em; }
h2 { font-size: 22px; font-weight: 590; line-height: 1.3; letter-spacing: -.025em; }
h3 { font-size: 18px; font-weight: 580; line-height: 1.35; letter-spacing: -.02em; }

/* The shell stays quiet; the actual games carry the colour. */
.topbar {
  max-width: 1440px;
  min-height: 92px;
  margin: auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 64px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; font-size: 22px; font-weight: 620; letter-spacing: -.6px; line-height: 1.1; }
.brand-mark {
  position: relative;
  display: block;
  width: 38px;
  height: 40px;
  border: 1px solid #596b7c;
  border-radius: 11px;
  background: #263440;
  color: #d1e0ea;
  font-size: 34px;
  line-height: 37px;
  text-align: center;
  font-weight: 650;
  letter-spacing: -2px;
}
.brand-mark span { position: absolute; top: -5px; right: 3px; font-size: 13px; letter-spacing: 0; }
.brand-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1; font-weight: 400; letter-spacing: .14em; }
.topbar nav { display: flex; align-items: stretch; gap: 30px; align-self: stretch; font-size: 13px; }
.topbar nav a { position: relative; display: flex; align-items: center; color: var(--muted); }
.topbar nav a:hover, .topbar nav .nav-active { color: var(--text); }
.nav-active::after { content: ""; position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; background: var(--blue); }
.top-note { margin-left: auto; display: flex; align-items: center; gap: 9px; color: var(--subtle); font-size: 12px; }
.status-dot { width: 5px; height: 5px; background: #9db8ac; border-radius: 50%; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 50; padding: 12px 16px; border-radius: 8px; background: var(--blue); color: var(--bg); }
.skip-link:focus { top: 12px; }
main { max-width: 1440px; min-height: 70vh; margin: auto; padding: 46px var(--gutter) 72px; outline: 0; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 42px; }
.page-intro p { max-width: 650px; margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.library-count { display: flex; flex-shrink: 0; gap: 32px; padding-bottom: 3px; color: var(--subtle); font-size: 11px; }
.library-count b { display: block; margin-bottom: 4px; color: #d4dbe1; font-size: 23px; line-height: 1.2; font-weight: 500; letter-spacing: -.04em; }

/* Idea families are navigational shelves, independent of theme and maker. */
.idea-disclosure { margin-bottom: 28px; border-block: 1px solid var(--line); }
.idea-disclosure > summary { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 0; list-style: none; cursor: pointer; color: #ccd7e0; font-size: 13px; }
.idea-disclosure > summary::-webkit-details-marker { display: none; }
.idea-disclosure > summary::after { content: "+"; margin-left: auto; color: var(--blue); font-size: 20px; line-height: 1; }
.idea-disclosure[open] > summary::after { content: "−"; }
.idea-disclosure > summary small { color: var(--subtle); font-size: 11px; }
.idea-disclosure[open] > summary { margin-bottom: 14px; }
.idea-disclosure .idea-browser { margin-bottom: 22px; }
.idea-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.idea-heading h2 { font-size: 18px; }
.idea-heading .chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; }
.idea-heading .chip span { color: inherit; opacity: .7; font-size: 11px; }
.family-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.family-tile {
  position: relative;
  min-width: 0;
  min-height: 122px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 16px;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  column-gap: 14px;
  row-gap: 4px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #303842;
  border-radius: 11px;
  background: var(--panel);
  text-align: left;
  transition: border-color .16s, background .16s;
}
.family-tile:hover { border-color: #647686; background: #222a33; }
.family-tile.active { border-color: #9bb6cb; background: #26323d; }
.family-thumb { grid-column: 1; grid-row: 1 / 4; width: 62px; height: 84px; object-fit: cover; object-position: center; border-radius: 5px; opacity: .82; }
.family-tile.active .family-thumb, .family-tile:hover .family-thumb { opacity: 1; }
.family-shade { display: none; }
.family-kind { grid-column: 2 / 4; grid-row: 1; color: var(--subtle); font-size: 10px; line-height: 1.4; }
.family-title { grid-column: 2; grid-row: 2; color: var(--text); font-size: 14px; line-height: 1.45; font-weight: 590; letter-spacing: -.012em; }
.family-reference { grid-column: 2 / 4; grid-row: 3; align-self: start; min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.family-count { grid-column: 3; grid-row: 2; justify-self: end; padding-top: 1px; color: var(--subtle); font-size: 11px; }
.family-context { margin-top: 16px; padding: 4px 0 4px 18px; border-left: 2px solid #768fa2; max-width: 840px; }
.family-context > span { display: block; margin-bottom: 5px; color: var(--blue); font-size: 11px; }
.family-context p { color: #d2d9df; font-size: 13px; line-height: 1.75; }
.family-context small { display: block; margin-top: 6px; color: var(--subtle); font-size: 11px; line-height: 1.6; }

/* Search and filters form one predictable, wrapping toolbar. */
.catalog-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.catalog-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.catalog-title h2 { font-size: 22px; }
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; height: 25px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 11px; }
.search { position: relative; width: min(340px, 40%); flex-shrink: 0; }
.search svg { position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; stroke: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 44px; padding: 11px 14px 11px 39px; border: 1px solid var(--line); border-radius: 8px; background: #1a2027; font-size: 12px; }
.search input::placeholder { color: var(--subtle); }
.search input:focus { border-color: #7891a5; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters select, .compare-select, .version-select {
  min-width: 0;
  max-width: 100%;
  min-height: 39px;
  padding: 9px 30px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background-color: var(--panel);
  color: #cbd3db;
  font-size: 12px;
  line-height: 1.4;
}
.filters select:hover, .compare-select:hover, .version-select:hover { border-color: #607181; }
.filters .sort { margin-left: auto; }
.clip-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 39px; margin-left: 6px; padding: 7px 6px; color: var(--muted); font-size: 12px; cursor: pointer; white-space: nowrap; }
.clip-filter input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
.preview-help { margin: 13px 0 26px; color: var(--subtle); font-size: 11px; line-height: 1.6; }
.group-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-divider { width: 1px; height: 22px; margin: 0 4px; background: var(--line); }
.chip { min-height: 36px; padding: 8px 13px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.4; }
.chip:hover { background: var(--panel2); color: var(--text); }
.chip.active { border-color: #4e6273; background: #2b3b48; color: #d9e6f0; font-weight: 550; }

/* Every card has the same physical frame. Portrait footage stays uncropped. */
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 36px; }
.game-card { display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; isolation: isolate; }
.card-play { position: absolute; top: 10px; right: 10px; z-index: 4; max-width: calc(100% - 90px); }
.card-play .browser-play { display: flex; min-width: 120px; border: 1px solid #d2e3f0; box-shadow: 0 3px 14px #10151b66; }
.card-media:has(.card-play) .card-version { max-width: calc(100% - 155px); overflow-wrap: anywhere; }
.card-image { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 11; overflow: hidden; border: 1px solid #343c46; border-radius: var(--radius); background: #11161c; }
.card-image > img { width: 100%; height: 100%; object-fit: contain; }
.card-video { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); border-radius: calc(var(--radius) - 1px); background: #11161c; object-fit: contain; pointer-events: none; opacity: 0; transition: opacity .16s; }
.card-media.playing .card-video { opacity: 1; }
.card-version { position: absolute; top: 10px; left: 10px; z-index: 2; max-width: calc(100% - 20px); padding: 4px 7px; border: 1px solid #6c798433; border-radius: 5px; background: #171e26e8; color: #d3dce5; font-size: 10px; line-height: 1.4; }
.card-platforms { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: flex; gap: 4px; }
.card-platforms span { display: inline-flex; align-items: center; padding: 4px 6px; border: 1px solid #6c798433; border-radius: 4px; background: #171e26e8; color: #d0d9e0; font-size: 9px; line-height: 1.4; }
.preview-toggle { position: absolute; bottom: 10px; left: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 7px 9px; border: 1px solid #71809166; border-radius: 6px; background: #1c2834ee; color: #dce9f2; font-size: 10px; line-height: 1.4; }
.preview-toggle:hover { border-color: var(--blue); background: #314757; }
.preview-toggle [data-play-icon] { min-width: 8px; color: var(--blue); font-size: 10px; }
.preview-toggle > span:last-child:not(.preview-label) { color: #b0becb; font-size: 9px; }
.capture-pending { position: absolute; bottom: 12px; left: 12px; z-index: 2; padding: 3px 6px; border-radius: 4px; background: #171e26d9; color: #a6b1bc; font-size: 9px; pointer-events: none; }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 16px 0 7px; }
.card-title h3 { font-size: 17px; line-height: 1.4; font-weight: 580; }
.card-arrow { color: #748b9d; font-size: 18px; line-height: 1; }
.card-title:hover h3 { color: #c8dfef; }
.card-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.75; }
.card-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; color: var(--subtle); font-size: 10px; line-height: 1.5; }
.card-tags span + span::before { content: "/"; margin-right: 6px; color: #4c5965; }
.empty { grid-column: 1 / -1; padding: 56px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-align: center; }
.empty p { margin: 12px 0 22px; color: var(--muted); line-height: 1.7; }

.primary, .secondary, .quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 11px 16px; border-radius: 7px; font-size: 12px; font-weight: 550; line-height: 1.4; }
.primary { border: 1px solid #bfd2e0; background: var(--blue); color: #1a2731; }
.primary:hover { background: #c2d5e3; }
.secondary { border: 1px solid #475461; background: #27323d; color: #dae3eb; }
.secondary:hover { border-color: #718797; background: #303f4b; }
.quiet-button { padding-inline: 0; background: transparent; color: var(--muted); }
.quiet-button:hover { color: var(--text); }
.text-link { color: #b9d2e4; text-decoration: underline; text-decoration-color: #60798c; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: currentColor; }
.tiny-note { color: var(--subtle); font-size: 11px; line-height: 1.5; font-weight: 400; }

/* The selected build is always adjacent to the preview on wide screens. */
.game-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.game-back:hover { color: var(--text); }
.detail-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 26px; }
.detail-header > div { min-width: 0; }
.detail-header h1 { font-size: clamp(28px, 3vw, 36px); overflow-wrap: anywhere; }
.detail-header .card-tags { margin-top: 10px; font-size: 11px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 32px; align-items: start; }
.detail-layout > div { min-width: 0; }
.media-stage { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid #343c46; border-radius: var(--radius); background: #10151b; }
.media-stage img, .media-stage video { width: 100%; height: 100%; object-fit: contain; }
.no-preview { padding: 30px; color: var(--subtle); font-size: 12px; line-height: 1.8; text-align: center; }
.capture-caption { margin-top: 8px; color: #a6afba; font-size: 11px; line-height: 1.5; }
.media-strip { display: flex; gap: 9px; max-width: 100%; overflow-x: auto; padding: 13px 2px 6px; scrollbar-width: thin; scrollbar-color: #536575 transparent; }
.thumb { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 82px; height: 62px; padding: 0; overflow: hidden; border: 1px solid #3d4955; border-radius: 6px; background: #172029; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.active { border: 2px solid var(--blue); }
.thumb.video-thumb { color: #bed2e1; font-size: 10px; }
.release-panel { position: sticky; top: 28px; padding: 25px; border: 1px solid #39434f; border-radius: var(--radius); background: var(--panel); }
.release-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.release-heading h2 { font-size: 20px; }
.version-badge { padding: 5px 7px; border: 1px solid #455a6a; border-radius: 5px; color: #c0d3e1; font-size: 10px; line-height: 1.4; white-space: nowrap; }
.version-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 23px; color: var(--subtle); font-size: 11px; line-height: 1.5; }
.recommended { color: #a8c3b6; font-size: 10px; line-height: 1.5; }
#version { width: 100%; margin: 8px 0 18px; }
.download { width: 100%; justify-content: space-between; gap: 12px; margin-bottom: 9px; padding: 13px; }
.download > span:first-child { min-width: 0; }
.download-size { flex-shrink: 0; color: #334b5d; font-size: 10px; font-weight: 400; }
.checksums { margin: 14px 0 20px; color: var(--subtle); font-size: 10px; line-height: 1.7; }
.checksums summary { cursor: pointer; }
.checksums summary:hover { color: #ccd8e2; }
.hash-row { margin-top: 12px; color: var(--muted); overflow-wrap: anywhere; font-size: 10px; }
.hash-row code { display: block; margin-top: 5px; color: #8fa3b4; line-height: 1.7; overflow-wrap: anywhere; }
.install-note { padding-top: 18px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 11px; line-height: 1.8; }
.game-copy { max-width: 740px; margin-top: 30px; }
.game-copy h2 { margin-bottom: 12px; font-size: 20px; }
.game-copy h3 { margin: 26px 0 10px; font-size: 15px; }
.game-copy p { color: var(--muted); font-size: 13px; line-height: 1.85; white-space: pre-line; }
.idea-note { margin-bottom: 30px; padding: 22px 24px; border: 1px solid #34424e; border-radius: 10px; background: #1c2731; }
.idea-note > span { display: block; margin-bottom: 9px; color: #94acbe; font-size: 10px; }
.idea-note h2 { margin-bottom: 9px; font-size: 18px; }
.idea-note p { color: #c6d2db; font-size: 12px; }
.idea-note small { display: block; margin-top: 12px; color: var(--subtle); font-size: 10px; line-height: 1.7; }
.idea-note .text-link { display: inline-block; margin-top: 15px; font-size: 11px; }

/* Versions use rows; comparison has two equally weighted columns. */
.release-section { margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.section-heading h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.release-tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #1a2027; }
.release-tabs .chip { min-height: 32px; padding: 6px 12px; }
.history-list { border: 1px solid var(--line); border-radius: 12px; background: #1a2027; overflow: hidden; }
.history-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: start; gap: 24px; padding: 25px; }
.history-row + .history-row { border-top: 1px solid var(--line); }
.history-row > div { min-width: 0; }
.history-version { margin-bottom: 6px; font-size: 15px; font-weight: 560; overflow-wrap: anywhere; }
.history-date { margin-bottom: 8px; color: var(--subtle); font-size: 11px; }
.history-row .secondary { min-height: 35px; padding: 8px 11px; font-size: 10px; white-space: nowrap; }
.notes { margin: 0; padding-left: 17px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.notes li + li { margin-top: 5px; }
.evidence { margin-top: 13px; color: #8e9da9; font-size: 11px; line-height: 1.8; }
.compare-scope { max-width: 740px; margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.compare-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.compare-card .compare-select { width: 100%; margin: 8px 0 18px; font-size: 13px; }
.compare-preview { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; margin-bottom: 18px; overflow: hidden; border: 1px solid #353d47; border-radius: 8px; background: #10151b; }
.compare-preview img, .compare-preview video { width: 100%; height: 100%; object-fit: contain; }
.compare-date { margin-bottom: 22px; color: var(--subtle); font-size: 11px; }
.compare-card h3 { margin-bottom: 10px; font-size: 14px; }
.compare-card .notes { margin-bottom: 22px; }
.compare-card .download { margin-top: 9px; font-size: 11px; }
.compare-card .evidence { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.about { max-width: 760px; }
.about h1 { margin-bottom: 28px; }
.about h2 { margin-top: 36px; font-size: 23px; }
.about p { margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.about .secondary { margin-top: 26px; }
.loading { padding: 100px 20px; color: var(--muted); text-align: center; }
.toast { position: fixed; z-index: 40; bottom: 26px; left: 50%; max-width: calc(100vw - 32px); padding: 13px 20px; border: 1px solid #647585; border-radius: 8px; background: #d3e0e9; color: #1b2b37; font-size: 12px; line-height: 1.6; text-align: center; pointer-events: none; opacity: 0; transform: translate(-50%, 12px); transition: opacity .16s, transform .16s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
footer { max-width: calc(1440px - 2 * var(--gutter)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding: 28px 0 38px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 10px; line-height: 1.6; }
.footer-brand { color: #bac5ce; font-size: 11px; font-weight: 550; }
footer span:last-child span { margin-left: 3px; color: #8ba0b1; }
.hidden { display: none !important; }

@media (min-width: 1600px) {
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1120px) {
  .topbar { gap: 42px; }
  .top-note { display: none; }
  .library-count { gap: 24px; }
  .family-tile { grid-template-columns: 50px minmax(0, 1fr) 14px; column-gap: 11px; padding: 14px; }
  .family-thumb { width: 50px; height: 80px; }
  .family-title { font-size: 13px; }
  .family-kind { font-size: 9px; }
  .family-reference { font-size: 10px; }
  .filters .sort { margin-left: 0; }
  .game-grid { column-gap: 20px; row-gap: 32px; }
  .detail-layout { grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); gap: 24px; }
  .release-panel { padding: 21px; }
  .history-row { grid-template-columns: 128px minmax(0, 1fr) auto; gap: 20px; padding: 22px; }
}
@media (max-width: 820px) {
  main { padding-top: 34px; }
  .page-intro { margin-bottom: 30px; }
  .library-count { display: none; }
  .family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-tile { min-height: 118px; grid-template-columns: 54px minmax(0, 1fr) 14px; padding: 15px; column-gap: 12px; }
  .family-thumb { width: 54px; height: 84px; }
  .family-title { font-size: 14px; }
  .family-kind { font-size: 10px; }
  .family-reference { font-size: 10px; }
  .idea-browser { margin-bottom: 36px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-layout > div { display: contents; }
  .detail-layout .media-stage { order: 1; }
  .detail-layout .capture-caption { order: 2; margin-top: -16px; }
  .detail-layout .media-strip { order: 3; padding-top: 0; margin-top: -11px; }
  .detail-layout .release-panel { order: 4; }
  .detail-layout .game-copy { order: 5; margin-top: 6px; }
  .release-panel { position: static; padding: 24px; }
  .media-stage { max-height: 620px; }
  .history-row { grid-template-columns: 120px minmax(0, 1fr); }
  .history-row > .secondary { grid-column: 2; justify-self: start; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .topbar { min-height: 76px; gap: 20px; justify-content: space-between; }
  .brand { font-size: 19px; gap: 9px; }
  .brand-mark { width: 33px; height: 35px; font-size: 30px; line-height: 32px; border-radius: 9px; }
  .brand-mark span { top: -5px; right: 2px; font-size: 11px; }
  .brand-sub { font-size: 9px; }
  .topbar nav { font-size: 12px; gap: 0; }
  .topbar nav a[href="#about"] { display: none; }
  main { padding-top: 30px; padding-bottom: 48px; }
  h1 { font-size: 28px; line-height: 1.25; }
  .page-intro { margin-bottom: 28px; }
  .page-intro p { margin-top: 12px; font-size: 13px; line-height: 1.7; }
  .desktop-break { display: none; }
  .idea-heading { align-items: center; gap: 10px; margin-bottom: 14px; }
  .idea-heading h2 { max-width: 160px; font-size: 17px; }
  .idea-heading .chip { flex-shrink: 0; padding: 7px 9px; font-size: 11px; }
  .family-grid { gap: 9px; }
  .family-tile { min-height: 74px; grid-template-columns: minmax(0, 1fr) 14px; grid-template-rows: 1fr; align-items: center; gap: 6px; padding: 12px; border-radius: 9px; }
  .family-thumb, .family-kind, .family-reference { display: none; }
  .family-title { grid-column: 1; grid-row: 1; font-size: 13px; line-height: 1.45; }
  .family-count { grid-column: 2; grid-row: 1; font-size: 10px; padding: 0; }
  .family-context { padding-left: 13px; }
  .family-context p { font-size: 12px; }
  .catalog-top { align-items: flex-start; flex-direction: column; gap: 15px; }
  .catalog-title h2 { font-size: 21px; }
  .search { width: 100%; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 13px 0; }
  .filters select { width: 100%; padding-left: 10px; padding-right: 22px; font-size: 11px; min-height: 40px; }
  .clip-filter { min-height: 40px; margin: 0; padding-left: 2px; gap: 6px; font-size: 11px; }
  .preview-help { margin-bottom: 22px; font-size: 10px; }
  .game-grid { grid-template-columns: minmax(0, 1fr); row-gap: 30px; }
  .card-image { aspect-ratio: 16 / 11; }
  .card-title { margin-top: 13px; }
  .card-title h3 { font-size: 17px; }
  .card-description { font-size: 12px; -webkit-line-clamp: 3; }
  .card-tags { margin-top: 10px; }
  .card-version, .card-platforms span { font-size: 10px; }
  .preview-toggle { min-height: 36px; padding: 8px 10px; font-size: 11px; }
  .capture-pending { font-size: 10px; }
  .detail-header { gap: 14px; margin-bottom: 22px; }
  .detail-header h1 { font-size: 28px; }
  .detail-header .secondary { min-height: 36px; padding: 8px 11px; font-size: 11px; }
  .detail-layout { gap: 24px; }
  .media-stage { aspect-ratio: 4 / 5; }
  .capture-caption { font-size: 10px; }
  .release-panel { padding: 20px; }
  .release-heading h2 { font-size: 19px; }
  .game-copy { margin-top: 24px; }
  .idea-note { margin-bottom: 25px; padding: 18px; }
  .idea-note h2 { font-size: 17px; }
  .release-section { margin-top: 32px; padding-top: 24px; }
  .section-heading { gap: 14px; }
  .section-heading h2 { font-size: 21px; }
  .history-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px; }
  .history-row > .secondary { grid-column: 1; }
  .history-row > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 13px; }
  .history-version, .history-date { margin: 0; }
  .history-row .recommended { flex-basis: 100%; }
  .compare-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .compare-card { padding: 20px; }
  .compare-preview { aspect-ratio: 4 / 3; }
  .compare-scope { font-size: 11px; }
  .about p { font-size: 14px; }
  .about h2 { font-size: 21px; }
  footer { margin-right: var(--gutter); margin-left: var(--gutter); justify-content: flex-start; gap: 12px 20px; padding: 24px 0 30px; font-size: 10px; }
  footer > span:last-child { width: 100%; }
  .loading { padding: 60px 0; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .topbar { gap: 12px; }
  .brand { font-size: 18px; }
  .topbar nav { font-size: 11px; }
  .family-tile { padding: 9px; }
  .family-title { font-size: 12px; }
  .family-kind { font-size: 8px; }
  .family-reference { font-size: 8px; }
  .download { padding: 12px 10px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* A playtest set is an ordered handoff: each row keeps its exact build visible. */
textarea { font: inherit; color: inherit; }
textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.topbar nav .nav-collection { display: flex; gap: 7px; white-space: nowrap; }
.nav-collection [data-set-count] { min-width: 19px; padding: 1px 5px; border: 1px solid #465361; border-radius: 5px; color: #cedbe5; font-size: 10px; line-height: 1.6; text-align: center; }
.nav-collection [data-set-count]:empty { display: none; }
.collection-add { align-self: flex-start; min-height: 35px; margin-top: 15px; padding: 8px 11px; background: transparent; border-color: #3d4b59; color: #b8cbd9; font-size: 11px; }
.collection-add:hover { border-color: #788f9f; background: #26323d; }
.collection-add[aria-pressed="true"] { border-color: #637d8f; background: #263541; color: #d3e4ef; }
.release-panel .collection-add { width: 100%; margin-top: 8px; }
.collection-tray { position: fixed; z-index: 30; right: var(--gutter); bottom: max(18px, env(safe-area-inset-bottom)); left: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1160px; margin: 0 auto; padding: 15px 18px; border: 1px solid #526372; border-radius: 10px; background: #24313cee; box-shadow: 0 8px 30px #080e1640; backdrop-filter: blur(14px); }
.collection-tray[hidden] { display: none; }
.collection-tray-copy { min-width: 0; }
.collection-tray-copy b { display: block; font-size: 13px; font-weight: 570; line-height: 1.45; }
.collection-tray-copy small { display: block; margin-top: 3px; color: #a9b9c6; font-size: 11px; line-height: 1.5; }
.collection-tray > .secondary { flex-shrink: 0; background: #344958; border-color: #718b9e; }
body.has-collection footer { padding-bottom: 136px; }
body.has-collection .toast { bottom: 114px; }

.set-page { max-width: 1224px; margin: 0 auto; }
.set-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.set-heading > div { min-width: 0; }
.set-heading h1, .set-intro h1 { font-size: clamp(27px, 3vw, 34px); line-height: 1.25; letter-spacing: -.03em; overflow-wrap: anywhere; }
.set-heading p { max-width: 660px; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.set-heading-actions { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 9px; }
.set-heading-actions .quiet-button { padding-inline: 11px; }
.set-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 34px; align-items: start; }
.set-editor { min-width: 0; }
.set-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-bottom: 21px; }
.set-field > span, .set-item-controls label > span { color: #c3ced7; font-size: 12px; line-height: 1.5; }
.set-field input, .set-field textarea, .set-item-controls select, .set-url { width: 100%; min-width: 0; max-width: 100%; padding: 12px 13px; border: 1px solid #465360; border-radius: 7px; background: #1b222a; color: var(--text); font-size: 13px; line-height: 1.5; }
.set-field input { min-height: 45px; }
.set-field textarea { min-height: 94px; resize: vertical; }
.set-field input::placeholder, .set-field textarea::placeholder { color: var(--subtle); }
.set-field input:hover, .set-field textarea:hover, .set-item-controls select:hover { border-color: #667b8d; }
.set-field small { color: var(--subtle); font-size: 11px; line-height: 1.65; }
.set-items { margin-top: 32px; border-top: 1px solid var(--line); }
.set-edit-row { display: grid; grid-template-columns: 24px 62px minmax(0, 1fr) auto; align-items: start; gap: 15px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.set-index { padding-top: 5px; color: #8fa3b3; font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.5; }
.set-edit-cover { display: flex; align-items: center; justify-content: center; width: 62px; height: 82px; overflow: hidden; border: 1px solid #394651; border-radius: 6px; background: #11171d; }
.set-edit-cover img { width: 100%; height: 100%; object-fit: contain; }
.set-edit-body { min-width: 0; }
.set-edit-body h2 { margin-bottom: 13px; font-size: 16px; line-height: 1.45; font-weight: 570; letter-spacing: -.012em; overflow-wrap: anywhere; }
.set-item-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.set-item-controls label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.set-item-controls label > span { color: var(--subtle); font-size: 10px; }
.set-item-controls select { min-height: 40px; padding: 9px 27px 9px 10px; color: #d1dbe3; font-size: 11px; }
.set-reorder { display: grid; grid-template-columns: repeat(2, 32px); gap: 5px; padding-top: 2px; }
.set-reorder button { min-width: 32px; min-height: 32px; padding: 5px; border: 1px solid #3b4a57; border-radius: 5px; background: transparent; color: #b7c8d6; font-size: 13px; line-height: 1.4; }
.set-reorder button:hover:not(:disabled) { border-color: #788f9f; background: #293743; color: var(--text); }
.set-reorder button[data-remove], .set-reorder .set-remove { grid-column: 1 / -1; margin-top: 4px; border-color: transparent; color: var(--subtle); font-size: 10px; }
.set-reorder button[data-remove]:hover, .set-reorder .set-remove:hover { border-color: #735b5b; background: #362c31; color: #ddc3c5; }
.set-empty { padding: 43px 24px; border: 1px solid var(--line); border-radius: 11px; background: #1b2229; }
.set-empty h2 { margin-bottom: 11px; font-size: 20px; }
.set-empty p { max-width: 600px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.set-empty .primary, .set-empty .secondary { margin-top: 23px; }
.set-summary { position: sticky; top: 24px; min-width: 0; padding: 23px; border: 1px solid #3e4d5a; border-radius: 11px; background: #1e2832; }
.set-summary h2 { margin-bottom: 16px; font-size: 18px; }
.set-summary p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.set-total { margin-bottom: 15px; color: #dbe6ee; font-size: 19px; font-weight: 540; letter-spacing: -.02em; line-height: 1.5; }
.set-total small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0; }
.set-summary-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 22px; }
.set-summary-actions .primary, .set-summary-actions .secondary { width: 100%; }
.set-summary .tiny-note { margin-top: 16px; color: #8fa3b3; font-size: 11px; }
.set-share-panel { margin-top: 30px; padding: 25px; border: 1px solid #4c6477; border-radius: 11px; background: #202d38; }
.set-share-panel h2 { margin-bottom: 9px; font-size: 19px; }
.set-share-panel p { max-width: 660px; margin-bottom: 17px; color: #b5c5d2; font-size: 12px; line-height: 1.8; }
.set-url { display: block; min-height: 90px; resize: vertical; background: #17232d; color: #c2d9ea; overflow-wrap: anywhere; font-size: 11px; line-height: 1.8; }
.set-share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.set-error { margin: 14px 0; color: #e4b8b8; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.set-error:empty { display: none; }

.set-intro { max-width: 850px; margin-bottom: 29px; }
.set-intro > p { margin-top: 13px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.set-description { max-width: 750px; margin-top: 20px; color: #c4cfd8; font-size: 14px; line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.set-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: var(--subtle); font-size: 12px; line-height: 1.6; }
.set-stats b { color: #d6e1e9; font-weight: 550; }
.set-view-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.set-platform-filter { display: flex; flex-wrap: wrap; gap: 7px; margin: 25px 0; }
.set-build-list { margin-top: 32px; border-top: 1px solid var(--line); }
.set-build-row { display: grid; grid-template-columns: 28px 112px minmax(0, 1fr); gap: 24px; align-items: start; padding: 29px 0; border-bottom: 1px solid var(--line); }
.set-build-row .set-index { padding-top: 4px; }
.set-build-preview { display: flex; align-items: center; justify-content: center; width: 112px; height: 144px; overflow: hidden; border: 1px solid #3a4753; border-radius: 7px; background: #11171d; }
.set-build-preview img { width: 100%; height: 100%; object-fit: contain; }
.set-build-content { min-width: 0; }
.set-build-content h2 { margin-bottom: 8px; font-size: 21px; font-weight: 570; letter-spacing: -.022em; overflow-wrap: anywhere; }
.set-build-content > p, .set-build-content .version-meta { margin-bottom: 17px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.set-build-content .set-build-note { max-width: 650px; color: #afbbc5; }
.set-build-downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-width: 650px; margin: 17px 0 13px; }
.set-build-downloads .download { margin: 0; min-height: 46px; padding: 12px; font-size: 12px; }
.set-build-downloads .download:only-child { grid-column: 1 / -1; max-width: 340px; }
.set-build-content > .text-link { display: inline-block; margin-top: 3px; color: #a9c3d6; font-size: 11px; }
.set-unavailable { color: #cab4ad; }
.set-unavailable .set-build-content > p { color: #bbaaa3; }
.set-callout { margin-top: 32px; padding: 20px 0 20px 20px; border-left: 2px solid #566f83; }
.set-callout h2, .set-callout h3 { margin-bottom: 9px; font-size: 16px; }
.set-callout p { max-width: 760px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.set-callout p + p { margin-top: 10px; }

@media (max-width: 1120px) {
  .topbar nav { gap: 24px; }
  .set-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; }
  .set-edit-row { grid-template-columns: 20px 54px minmax(0, 1fr); gap: 12px; }
  .set-edit-cover { width: 54px; height: 76px; }
  .set-reorder { grid-column: 3; display: flex; padding-top: 0; }
  .set-reorder button[data-remove], .set-reorder .set-remove { margin-top: 0; margin-left: auto; padding-inline: 8px; }
  .set-summary { padding: 20px; }
}
@media (max-width: 820px) {
  .set-heading { margin-bottom: 29px; }
  .set-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .set-summary { position: static; }
  .set-summary-actions { display: flex; flex-direction: row; flex-wrap: wrap; }
  .set-summary-actions .primary, .set-summary-actions .secondary { width: auto; }
  .set-edit-row { grid-template-columns: 24px 62px minmax(0, 1fr) auto; gap: 15px; }
  .set-edit-cover { width: 62px; height: 82px; }
  .set-reorder { display: grid; grid-column: auto; grid-template-columns: repeat(2, 32px); padding-top: 2px; }
  .set-reorder button[data-remove], .set-reorder .set-remove { grid-column: 1 / -1; margin-top: 4px; margin-left: 0; }
  .set-build-row { gap: 18px; }
  .set-share-panel { padding: 23px; }
}
@media (max-width: 560px) {
  .topbar nav { gap: 18px; }
  .topbar nav a[href="#about"] { display: none; }
  .topbar nav .nav-collection { display: flex; gap: 5px; }
  .nav-collection [data-set-count] { min-width: 17px; padding-inline: 4px; font-size: 9px; }
  .collection-add { min-height: 39px; margin-top: 14px; padding: 9px 12px; font-size: 11px; }
  .collection-tray { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; gap: 10px; padding: 12px; border-radius: 9px; }
  .collection-tray-copy b { font-size: 12px; }
  .collection-tray-copy small { max-width: 175px; font-size: 10px; }
  .collection-tray > .secondary { min-height: 39px; padding: 10px 12px; font-size: 11px; }
  body.has-collection footer { padding-bottom: 126px; }
  body.has-collection .toast { bottom: 110px; }
  .set-heading { flex-direction: column; gap: 17px; margin-bottom: 27px; }
  .set-heading p { margin-top: 11px; font-size: 12px; }
  .set-heading-actions { gap: 8px; }
  .set-heading-actions .secondary, .set-heading-actions .quiet-button { min-height: 37px; padding: 9px 11px; font-size: 11px; }
  .set-layout { gap: 24px; }
  .set-field { margin-bottom: 19px; }
  .set-field input, .set-field textarea { padding: 11px 12px; font-size: 13px; }
  .set-items { margin-top: 26px; }
  .set-edit-row { grid-template-columns: 18px 47px minmax(0, 1fr); gap: 10px; padding: 22px 0; }
  .set-index { padding-top: 2px; font-size: 11px; }
  .set-edit-cover { width: 47px; height: 65px; border-radius: 5px; }
  .set-edit-body h2 { margin-bottom: 12px; font-size: 15px; }
  .set-item-controls { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .set-item-controls label { gap: 4px; }
  .set-item-controls select { min-height: 42px; font-size: 12px; }
  .set-reorder { display: flex; grid-column: 3; padding-top: 1px; }
  .set-reorder button { min-width: 36px; min-height: 36px; }
  .set-reorder button[data-remove], .set-reorder .set-remove { margin: 0 0 0 auto; padding-inline: 8px; font-size: 11px; }
  .set-summary { padding: 20px; }
  .set-summary-actions { flex-direction: column; margin-top: 19px; }
  .set-summary-actions .primary, .set-summary-actions .secondary { width: 100%; }
  .set-summary h2 { font-size: 17px; }
  .set-empty { padding: 29px 20px; }
  .set-empty h2 { font-size: 19px; }
  .set-empty p { font-size: 12px; }
  .set-share-panel { margin-top: 24px; padding: 20px; }
  .set-share-panel h2 { font-size: 18px; }
  .set-share-actions { flex-direction: column; }
  .set-share-actions .primary, .set-share-actions .secondary { width: 100%; }
  .set-url { min-height: 110px; font-size: 10px; }
  .set-intro { margin-bottom: 25px; }
  .set-intro > p { font-size: 12px; }
  .set-description { margin-top: 18px; font-size: 13px; }
  .set-stats { gap: 7px 15px; margin-top: 19px; font-size: 11px; }
  .set-view-actions { align-items: stretch; gap: 8px; margin-top: 21px; }
  .set-view-actions .primary, .set-view-actions .secondary { padding: 10px 12px; font-size: 11px; }
  .set-build-list { margin-top: 26px; }
  .set-build-row { grid-template-columns: 18px 56px minmax(0, 1fr); column-gap: 11px; row-gap: 16px; padding: 25px 0; }
  .set-build-preview { width: 56px; height: 77px; border-radius: 5px; }
  .set-build-content h2 { margin-bottom: 7px; font-size: 18px; line-height: 1.4; }
  .set-build-content > p, .set-build-content .version-meta { font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
  .set-build-downloads { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .set-build-downloads .download { min-height: 45px; padding: 12px 10px; font-size: 11px; }
  .set-build-downloads .download:only-child { max-width: none; }
  .set-build-downloads .download-size { font-size: 9px; }
  .set-build-content > .text-link { font-size: 10px; }
  .set-callout { margin-top: 25px; padding: 17px 0 17px 15px; }
  .set-callout h2, .set-callout h3 { font-size: 15px; }
  .set-callout p { font-size: 11px; }
}
@media (max-width: 360px) {
  .topbar nav { gap: 12px; font-size: 10px; }
  .topbar nav .nav-collection { gap: 4px; }
  .nav-collection [data-set-count] { min-width: 16px; padding-inline: 3px; }
  .collection-tray-copy small { max-width: 152px; font-size: 9px; }
  .collection-tray > .secondary { padding-inline: 9px; font-size: 10px; }
  .set-build-row { grid-template-columns: 18px 47px minmax(0, 1fr); column-gap: 9px; }
  .set-build-preview { width: 47px; height: 67px; }
  .set-build-downloads { margin-left: -56px; }
  .set-build-content h2 { font-size: 17px; }
}

.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.detail-actions .collection-add { margin-top: 0; }
.collection-add.selected { border-color: #637d8f; background: #263541; color: #d3e4ef; }
.set-saved { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.set-saved h2 { margin-bottom: 18px; font-size: 20px; }
.set-saved-list { border-top: 1px solid #303b46; }
.set-saved-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 17px 0; border-bottom: 1px solid #303b46; }
.set-saved-title { min-width: 0; color: #d2e1ec; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.set-saved-title:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.set-saved-row small { color: var(--subtle); font-size: 10px; line-height: 1.6; white-space: nowrap; }
.set-saved-row button { min-height: 34px; padding: 7px 0 7px 8px; background: transparent; color: var(--subtle); font-size: 11px; line-height: 1.6; }
.set-saved-row button:hover { color: #ddc3c5; }
@media (max-width: 560px) {
  .detail-actions { gap: 8px; }
  .detail-actions .collection-add { min-height: 36px; }
  .set-saved { margin-top: 28px; padding-top: 24px; }
  .set-saved h2 { font-size: 19px; }
  .set-saved-row { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 15px 0; }
  .set-saved-title { font-size: 12px; }
  .set-saved-row small { grid-column: 1; grid-row: 2; }
  .set-saved-row button { grid-column: 2; grid-row: 1 / 3; }
}

/* The compact sidebar keeps the handoff action beside the editable list. */
.set-summary .set-total { display: flex; flex-direction: column; gap: 4px; }
.set-total b { font-size: 28px; font-weight: 540; line-height: 1.25; }
.set-total > span { color: #adbdca; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.set-summary .set-callout { margin-top: 18px; padding: 0 0 0 12px; color: #b3c2ce; font-size: 11px; }
.set-summary .set-share-panel { margin-top: 21px; padding: 0; border: 0; border-top: 1px solid #435766; border-radius: 0; background: transparent; }
.set-summary .set-share-panel .set-field { margin: 18px 0 0; }
.set-summary .set-share-actions { align-items: flex-start; flex-direction: column; }
.set-summary .set-share-actions .text-link { font-size: 11px; }

/* The development kit has its own shelf and versioned download page. */
.factory-eyebrow { display: block; color: var(--subtle); font-size: 11px; font-weight: 500; letter-spacing: .035em; }
.factory-shelf { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 58px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.factory-shelf h2 { margin-top: 7px; font-size: 21px; }
.factory-shelf p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.factory-shelf > a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 18px; }
.bundle-heading { max-width: 820px; margin-bottom: 38px; }
.bundle-heading h1 { margin-top: 11px; font-size: clamp(30px, 3.6vw, 44px); }
.bundle-heading > p { max-width: 730px; margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.bundle-layout { display: grid; grid-template-columns: minmax(0, 1fr) 365px; align-items: start; gap: clamp(35px, 6vw, 90px); }
.bundle-copy { min-width: 0; }
.bundle-copy h2 { margin-bottom: 16px; font-size: 21px; }
.bundle-copy section > p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.bundle-contents { margin: 25px 0 0; }
.bundle-contents > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; padding: 20px 0; border-top: 1px solid var(--line); }
.bundle-contents dt { color: #dbe2e7; font-size: 13px; font-weight: 550; }
.bundle-contents dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.bundle-release-notes { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.bundle-release-notes h2 { margin-top: 8px; }
.bundle-release-notes .notes { margin-top: 16px; }
.bundle-release-notes .evidence { margin-top: 17px; }
.bundle-download { min-width: 0; }
.bundle-download .version-meta { flex-wrap: wrap; gap: 7px 15px; }
.bundle-download .download { margin-top: 15px; }
.bundle-download .hash-row { overflow-wrap: anywhere; }
.bundle-share { width: 100%; margin-top: 22px; font-size: 12px; }
.bundle-access { margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.9; }
.bundle-share-fallback { margin-top: 17px; }
.bundle-share-fallback label { display: block; margin-bottom: 7px; }
.bundle-share-fallback input { width: 100%; min-width: 0; padding: 11px; border: 1px solid #4c6477; border-radius: 7px; background: #17212b; color: var(--text); font-size: 11px; }
.bundle-file-unavailable { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.bundle-history { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.bundle-history .section-heading { flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.bundle-history-row { display: grid; grid-template-columns: 125px minmax(0, 1fr) auto; align-items: start; gap: 25px; padding: 25px 0; border-top: 1px solid var(--line); }
.bundle-history-row:first-child { border-top: 0; }
.bundle-history-row h3 { font-size: 16px; }
.bundle-history-row > div > p { margin-top: 8px; color: var(--subtle); font-size: 11px; }
.bundle-history-row .recommended { display: inline-block; margin-bottom: 10px; }
.bundle-history-row .secondary { white-space: nowrap; }
.bundle-history-row [aria-current] { border-color: #526879; color: var(--blue); }
.bundle-empty { max-width: 700px; padding: 24px 0 48px; }
.bundle-empty h1 { margin-top: 10px; overflow-wrap: anywhere; }
.bundle-empty p { margin: 18px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.85; }
@media (max-width: 900px) {
  .bundle-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; }
  .bundle-contents > div { grid-template-columns: minmax(0, 1fr); gap: 7px; }
}
@media (max-width: 760px) {
  .bundle-layout { display: flex; flex-direction: column; gap: 35px; }
  .bundle-download { order: -1; position: static; width: 100%; }
  .bundle-contents > div { grid-template-columns: 150px minmax(0, 1fr); gap: 22px; }
  .factory-shelf { align-items: flex-start; flex-direction: column; gap: 19px; padding: 25px; }
}
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; min-height: 0; gap: 0; padding-top: 18px; }
  .topbar nav { flex: 0 0 100%; align-self: auto; min-width: 0; min-height: 49px; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 11px; }
  .topbar nav a { min-width: 0; white-space: nowrap; }
  .factory-shelf { margin-top: 38px; padding: 22px; }
  .factory-shelf h2 { font-size: 20px; }
  .factory-shelf p { font-size: 12px; }
  .factory-shelf > a { min-height: 42px; }
  .bundle-heading { margin-bottom: 26px; }
  .bundle-heading h1 { font-size: 30px; }
  .bundle-heading > p { margin-top: 13px; font-size: 13px; }
  .bundle-layout { gap: 30px; }
  .bundle-download { padding: 22px 18px; }
  .bundle-download .release-heading { gap: 10px; }
  .bundle-download h2 { font-size: 19px; }
  .bundle-download .version-badge { flex-shrink: 0; font-size: 10px; }
  .bundle-download .download { padding: 13px 12px; font-size: 12px; }
  .bundle-share { min-height: 43px; font-size: 11px; }
  .bundle-copy h2 { font-size: 20px; }
  .bundle-copy section > p, .bundle-contents dd { font-size: 12px; }
  .bundle-contents > div { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 17px 0; }
  .bundle-history { margin-top: 36px; padding-top: 27px; }
  .bundle-history .section-heading h2 { font-size: 21px; }
  .bundle-history-row { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px 0; }
  .bundle-history-row > .secondary { justify-self: start; min-height: 42px; }
  .bundle-empty { padding-top: 10px; }
  .bundle-empty p { font-size: 13px; }
}
.set-saved > .tiny-note { margin: -7px 0 18px; }
.set-saved-row { grid-template-columns: minmax(0, 1fr) auto; }
.set-saved-row > div { min-width: 0; }
.set-saved-row small { display: block; margin-top: 4px; }
.set-platform-filter { align-items: center; }
.set-platform-filter > span { margin-right: 5px; color: var(--subtle); font-size: 11px; }
.set-intro .set-description { margin-top: 20px; color: #c4cfd8; font-size: 14px; }
.set-intro .set-stats { margin-top: 22px; font-size: 12px; }
@media (max-width: 560px) {
  .set-intro .set-description { margin-top: 18px; font-size: 13px; }
  .set-intro .set-stats { margin-top: 19px; font-size: 11px; }
  .set-saved-row button { grid-row: 1; }
}

/* Store artwork invites discovery; the hover layer retains uncropped gameplay. */
.card-image > img.game-cover { object-fit: cover; }
.set-edit-cover img.game-cover, .set-build-preview img.game-cover { object-fit: cover; }
.card-media.playing .card-video { border-radius: calc(var(--radius) - 1px); }
.card-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.card-actions .collection-add { margin: 0; align-self: stretch; }
.browser-play { flex-direction: column; gap: 3px; text-align: center; }
.browser-play small { font-size: 10px; font-weight: 450; opacity: .78; overflow-wrap: anywhere; }
.browser-play.compact { flex: 1 1 auto; padding: 9px 12px; min-height: 43px; }
.release-browser { margin: 19px 0; }
.release-browser .browser-play { display: flex; width: 100%; min-height: 52px; }
.release-browser p { margin: 12px 0 0; line-height: 1.6; }
.set-build-downloads .browser-play { min-width: 150px; }
.compare-card .browser-play { display: flex; margin-bottom: 10px; }

/* Play is the first decision; browser versions stay separate from app files. */
.game-launch { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 30px; padding: 22px 26px; border: 1px solid #455969; border-radius: 12px; background: #202b35; }
.launch-identity { min-width: 0; }
.launch-version { margin: 0 0 7px; color: var(--text); font-size: 18px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.game-launch h2 { margin: 0 0 7px; color: #b2c5d3; font-size: 12px; font-weight: 500; }
.launch-action { flex: 0 1 340px; min-width: 245px; text-align: center; }
.launch-action .browser-play { display: flex; width: 100%; min-height: 63px; font-size: 17px; }
.launch-action > p { margin-top: 10px; font-size: 10px; }
.game-detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: start; gap: 34px; }
.detail-info, .detail-versions { min-width: 0; }
.web-versions > h2 { margin-bottom: 7px; font-size: 20px; }
.web-version-list { margin-top: 18px; border-top: 1px solid var(--line); }
.web-version-row { padding: 19px 0; border-bottom: 1px solid var(--line); }
.web-version-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; }
.web-version-heading h3, .native-version-row h3 { margin: 0; font-size: 14px; font-weight: 580; overflow-wrap: anywhere; }
.web-version-heading > span { color: #adc5b8; }
.web-version-row.selected h3 { color: #c9dfef; }
.web-version-note { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.web-version-actions { display: flex; align-items: center; gap: 15px; margin-top: 13px; }
.web-version-actions .browser-play { flex: 1 1 auto; min-width: 0; min-height: 48px; }
.web-version-actions .text-link { flex: 0 1 110px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.version-notes { margin-top: 13px; color: var(--subtle); font-size: 10px; line-height: 1.65; }
.version-notes > summary { cursor: pointer; }
.version-notes .notes { margin-top: 13px; font-size: 11px; }
.native-downloads { margin-top: 25px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: #1a2027; }
.native-downloads > summary { cursor: pointer; font-size: 13px; color: #bac6d0; }
.native-downloads > summary small { display: block; padding-left: 15px; margin-top: 6px; color: var(--subtle); font-size: 10px; line-height: 1.5; }
.native-version-row { margin-top: 21px; padding-top: 20px; border-top: 1px solid var(--line); }
.native-version-row > .tiny-note { margin: 7px 0 14px; }
.native-version-row > .text-link { display: inline-block; margin-top: 5px; font-size: 10px; }
.native-version-row .download { min-height: 44px; font-size: 11px; }
.comparison-section { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.comparison-section > summary { cursor: pointer; color: #b7c5d1; font-size: 16px; font-weight: 500; }
.comparison-section #release-content { padding-top: 25px; }
@media (max-width: 820px) {
  .game-detail-grid { display: flex; flex-direction: column; gap: 30px; }
  .detail-versions { order: 1; width: 100%; }
  .detail-info { order: 2; width: 100%; }
  .game-launch { align-items: flex-start; }
  .launch-action { flex-basis: 280px; min-width: 230px; }
}
@media (max-width: 560px) {
  .game-back { margin-bottom: 20px; }
  .game-launch { flex-direction: column; gap: 16px; margin-bottom: 26px; padding: 18px; }
  .launch-version { font-size: 16px; }
  .launch-action { flex-basis: auto; min-width: 0; width: 100%; }
  .launch-action .browser-play { min-height: 58px; font-size: 16px; }
  .web-version-actions { gap: 12px; }
  .web-version-actions .text-link { flex-basis: 83px; }
  .web-versions > h2 { font-size: 19px; }
  .native-downloads { padding: 16px; }
}

/* Author administration lives on an origin separate from uploaded game code. */
.author-entry { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.author-entry:hover { color: var(--text); }
@media (max-width: 560px) { .author-entry { min-height: 40px; font-size: 11px; } }
