/* Product surfaces only. Fleet kits own navigation, authentication and footer. */
.collection { max-width: 1320px; padding: var(--space-8) var(--space-8) 64px; }
.collection__intro { display: flex; align-items: end; justify-content: space-between; gap: var(--space-8); padding: var(--space-6) 0 40px; }
.eyebrow { color: var(--text-muted); font-size: var(--text-xs); font-weight: 600; letter-spacing: .1em; }
.intro-eyebrow { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.index-mark { display: inline-block; width: 9px; height: 9px; border: 2px solid var(--accent); border-radius: 2px; }
.collection__title { font-size: 3.25rem; font-weight: 600; line-height: 1.08; letter-spacing: -.055em; }
.collection__lead { margin-top: var(--space-4); font-size: var(--text-base); line-height: 1.6; color: var(--text-secondary); max-width: 60ch; }
.edition { border-top: 1px solid var(--border); padding-top: var(--space-4); min-width: 220px; }
.edition__label { color: var(--text-muted); font-size: var(--text-xs); }
.edition p { color: var(--text-secondary); font-size: var(--text-lg); line-height: 1.4; margin: var(--space-3) 0; }
.text-link, .text-button { font: inherit; font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary); text-decoration: none; background: none; border: 0; cursor: pointer; line-height: 1.5; padding: var(--space-1) 0; }
.text-link:hover, .text-button:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.text-button:disabled { opacity: .5; cursor: not-allowed; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(290px, 1fr); gap: var(--space-6); align-items: stretch; }
.spotlight { position: relative; isolation: isolate; min-height: 390px; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--border); }
.spotlight > .game-image { position: absolute; inset: 0; height: 100%; }
.spotlight__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(4 7 20 / 12%) 10%, rgb(4 7 20 / 82%) 64%, rgb(4 7 20 / 97%) 100%); }
.spotlight__top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-6); }
.spotlight__label { font-size: var(--text-xs); letter-spacing: .1em; background: var(--bg); color: var(--accent); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.spotlight__top .stage-badge { background: var(--bg); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
.spotlight__body { position: absolute; left: var(--space-6); right: var(--space-6); bottom: var(--space-6); }
.spotlight__body .eyebrow { color: var(--text-secondary); }
.spotlight__body h3 { font-size: 2.5rem; letter-spacing: -.04em; line-height: 1.15; margin: var(--space-2) 0; }
.spotlight__body > p:not(.eyebrow) { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.5; max-width: 64ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spotlight__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.spotlight__foot > span { font-size: var(--text-xs); color: var(--text-secondary); }
.spotlight__loading { position: absolute; inset: 0; }
.collection-snapshot { padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-1); display: flex; flex-direction: column; }
.snapshot-heading { display: flex; justify-content: space-between; align-items: center; }
.snapshot-symbol { color: var(--text-muted); font-size: var(--text-xl); }
.collection-snapshot h3 { font-size: var(--text-2xl); font-weight: 500; line-height: 1.25; letter-spacing: -.025em; margin: var(--space-4) 0 var(--space-3); }
.snapshot-description { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.5; max-width: 32ch; }
.stage-chart { margin-top: auto; padding-top: var(--space-6); display: grid; gap: var(--space-3); }
.stage-row { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); background: none; border: 0; padding: var(--space-1) 0; color: var(--text-secondary); cursor: pointer; font: inherit; font-size: var(--text-sm); text-align: left; }
.stage-row:hover .stage-row__label, .stage-row[aria-pressed="true"] .stage-row__label { color: var(--accent); }
.stage-row__label { display: flex; align-items: center; gap: var(--space-2); }
.stage-row__count { font-variant-numeric: tabular-nums; }
.stage-row__track { grid-column: 1 / -1; height: 3px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.stage-row__fill { display: block; height: 100%; width: 0; background: var(--text-secondary); }
.stage-row:first-child .stage-row__fill { background: var(--accent); }
.snapshot-foot { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between; border-top: 1px solid var(--border); padding-top: var(--space-4); margin-top: var(--space-6); font-size: var(--text-xs); color: var(--text-muted); }
.status-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-dot--released, .stage-badge--released { color: var(--accent); }
.status-dot--playable, .stage-badge--playable { color: var(--text-secondary); }
.status-dot--prototype, .stage-badge--prototype { color: var(--text-muted); }
.discovery { padding-top: 56px; }
.discovery__heading, .discovery__title { display: flex; align-items: center; gap: var(--space-3); }
.discovery__heading { justify-content: space-between; flex-wrap: wrap; margin-bottom: var(--space-6); }
.discovery__title h2 { font-size: var(--text-2xl); font-weight: 500; letter-spacing: -.025em; }
.section-number, .result-count { color: var(--text-muted); font-size: var(--text-xs); }
.collection__filters { display: grid; grid-template-columns: minmax(220px, 1.6fr) minmax(120px, .65fr) minmax(145px, .8fr) minmax(150px, .9fr) auto; gap: var(--space-3); align-items: end; }
.collection__filters > * { min-width: 0; }
.collection__search { position: relative; }
.search-icon { position: absolute; left: var(--space-3); top: 12px; color: var(--text-muted); pointer-events: none; }
.collection__search .input { padding-left: 42px; }
.collection__filters .input, .collection__filters .select { font-size: var(--text-sm); background: var(--surface-1); }
.select option { background: var(--bg); }
.collection__meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-4) 0 var(--space-6); }
.stage-tabs { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-right: auto; }
.stage-tabs button { display: flex; align-items: center; gap: var(--space-2); min-height: 38px; padding: var(--space-2) var(--space-3); color: var(--text-muted); background: none; border: 1px solid transparent; border-radius: var(--radius-sm); font: inherit; font-size: var(--text-sm); cursor: pointer; }
.stage-tabs button:hover { color: var(--text-primary); background: var(--surface-1); }
.stage-tabs button[aria-pressed="true"], #followingFilter[aria-pressed="true"] { background: var(--surface-2); color: var(--text-primary); border-color: var(--border); }
.stage-tabs span { color: var(--text-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.view-switch { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.view-switch button { display: grid; place-items: center; width: 38px; height: 36px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--text-primary); }
.author-context { font-size: var(--text-sm); color: var(--text-secondary); margin: 0 0 var(--space-6); }
.collection__items, .collection__skeletons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); list-style: none; }
.collection__items > li { min-width: 0; }
.collection__skeletons > * { height: 360px; }
.collection-item { height: 100%; display: flex; flex-direction: column; }
.collection-item__preview { display: block; position: relative; width: 100%; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); color: var(--text-primary); cursor: pointer; text-align: left; }
.game-image { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.game-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-fallback { display: none; height: 100%; min-height: 160px; align-items: center; justify-content: center; padding: var(--space-6); font-size: var(--text-sm); color: var(--text-muted); text-align: center; }
.game-image--missing .image-fallback { display: flex; }
.game-image--missing img { display: none; }
.preview-label { position: absolute; bottom: var(--space-3); right: var(--space-3); padding: var(--space-1) var(--space-2); background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: var(--text-xs); opacity: 0; transition: opacity var(--dur); }
.collection-item__preview:hover .preview-label, .collection-item__preview:focus-visible .preview-label { opacity: 1; }
.collection-item__body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: var(--space-4) 0 0; }
.game-meta { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: var(--space-2); color: var(--text-muted); font-size: var(--text-xs); }
.stage-badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); white-space: nowrap; }
.collection-item h3 { font-size: var(--text-xl); font-weight: 500; letter-spacing: -.015em; line-height: 1.3; margin-top: var(--space-3); overflow-wrap: anywhere; }
.collection-item h3 button { font: inherit; color: var(--text-primary); border: 0; background: none; cursor: pointer; text-align: left; }
.collection-item h3 button:hover { color: var(--accent); }
.maker-link { color: var(--text-muted); font: inherit; font-size: var(--text-xs); margin-top: var(--space-1); padding: 4px 0; border: 0; background: none; cursor: pointer; overflow-wrap: anywhere; }
.maker-link:hover { color: var(--text-primary); text-decoration: underline; }
.collection-item__description { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.65; margin: var(--space-3) 0 var(--space-4); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.collection-item__foot { width: 100%; margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--border); display: flex; gap: var(--space-2); justify-content: space-between; align-items: center; color: var(--text-muted); font-size: var(--text-xs); }
.collection-item__foot .text-button { font-size: var(--text-xs); }
.review-label { margin-top: var(--space-2); color: var(--text-muted); font-size: var(--text-xs); }
.collection__items[data-view="list"] { grid-template-columns: 1fr; gap: var(--space-6); }
[data-view="list"] .collection-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-6); padding-bottom: var(--space-6); border-bottom: 1px solid var(--border); }
[data-view="list"] .collection-item__preview { align-self: start; }
[data-view="list"] .collection-item__body { padding-top: 0; }
[data-view="list"] .collection-item__foot { border: 0; padding-top: 0; }
.collection__notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius); margin-bottom: var(--space-6); }
.collection__notice p { color: var(--text-secondary); line-height: 1.6; max-width: 65ch; }
.collection__endnote { display: flex; align-items: center; justify-content: center; gap: var(--space-3); padding: 48px 0; font-size: var(--text-xs); color: var(--text-muted); text-align: center; }
.collection-notes { border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1.7fr; gap: 64px; padding-top: 40px; }
.collection-notes h2 { font-size: var(--text-2xl); font-weight: 500; letter-spacing: -.025em; line-height: 1.3; margin-top: var(--space-3); }
.collection-notes__body { max-width: 68ch; font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.7; }
.provenance { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--text-secondary); margin: var(--space-4) 0 var(--space-2); }
.collection-notes__fine { color: var(--text-muted); font-size: var(--text-xs); margin-bottom: var(--space-3); }
.collection-policy { display: flex; justify-content: end; margin-top: var(--space-6); }
dialog.game-dialog { width: min(960px, calc(100% - 32px)); }
.game-dialog .dialog__header { position: sticky; top: 0; z-index: 2; background: var(--bg); }
#itemDialogMedia .game-image { aspect-ratio: 21 / 8; }
.game-dialog .dialog__body > h2 { font-size: 2rem; line-height: 1.2; letter-spacing: -.035em; margin: var(--space-2) 0; }
.dialog__author { color: var(--text-muted); font-size: var(--text-sm); }
#itemDialogDescription { max-width: 70ch; color: var(--text-secondary); line-height: 1.65; margin-top: var(--space-4); }
.project-facts { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); margin: var(--space-6) 0; }
.project-facts dt { color: var(--text-muted); font-size: var(--text-xs); }
.project-facts dd { color: var(--text-secondary); font-size: var(--text-sm); }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; }
.tag-list li { font-size: var(--text-xs); color: var(--text-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-1) var(--space-2); }
.game-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .85fr); gap: var(--space-8); margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.game-detail h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.4; }
.timeline { list-style: none; margin-top: var(--space-6); }
.timeline li { position: relative; padding: 0 0 var(--space-6) var(--space-4); margin-left: 3px; border-left: 1px solid var(--border-strong); }
.timeline li::before { content: ''; position: absolute; top: 6px; left: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--text-secondary); }
.timeline__date { display: flex; flex-wrap: wrap; gap: var(--space-2); color: var(--text-muted); font-size: var(--text-xs); }
.timeline h4 { font-size: var(--text-sm); line-height: 1.5; margin-top: var(--space-2); }
.timeline h4 a { color: var(--text-primary); }
.timeline p { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.6; margin-top: var(--space-2); }
.game-detail__actions > .field__hint { margin-top: var(--space-2); text-align: center; }
.price-section { margin-top: var(--space-6); border-top: 1px solid var(--border); padding-top: var(--space-6); }
.price-section h3 { margin: var(--space-2) 0; }
.game-detail__actions .field__hint { font-size: var(--text-xs); line-height: 1.6; }
#priceForm { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
#priceForm > label { font-size: var(--text-sm); }
.price-input { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.price-input span { padding-left: var(--space-3); color: var(--text-muted); }
.price-input input { min-width: 0; width: 100%; padding: var(--space-3); background: none; border: 0; color: var(--text-primary); font: inherit; }
.price-input:has([aria-invalid="true"]) { border-color: var(--danger); }
#priceChallenge { max-width: 100%; }
.action-message { font-size: var(--text-sm); line-height: 1.5; color: var(--text-secondary); margin-top: var(--space-3); }
#accountAvailability { margin-top: var(--space-2); }
.signals-section { padding-top: var(--space-6); margin-top: var(--space-6); border-top: 1px solid var(--border); }
#priceSignals { font-size: var(--text-xs); line-height: 1.6; color: var(--text-muted); margin-top: var(--space-3); }
.signal-summary { font-size: var(--text-sm); color: var(--text-secondary); }
.signal-summary strong { color: var(--text-primary); }
.histogram { display: grid; gap: var(--space-2); list-style: none; margin: var(--space-4) 0; }
.histogram li { display: grid; grid-template-columns: 95px 1fr 24px; gap: var(--space-2); align-items: center; }
.histogram meter { width: 100%; height: 12px; accent-color: var(--accent); }
.project-source { color: var(--text-muted); font-size: var(--text-xs); margin-top: var(--space-6); }
#infoDialog .dialog__body h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
#infoDialog .dialog__body p { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.7; }
#infoDialog a { color: var(--text-secondary); }
#sourceDetails, #privacyMessage, #deleteConfirm { margin-top: var(--space-3); }
#deleteMyData { margin-top: var(--space-3); }
.empty-icon { color: var(--text-muted); margin-bottom: var(--space-3); }
@media (max-width: 1100px) { .collection__filters { grid-template-columns: minmax(220px, 2fr) 1fr 1fr; } .collection__filters > .field:nth-child(4) { grid-column: 2; } .collection__filters > button { grid-column: 3; } .spotlight__body h3 { font-size: 2rem; } }
@media (max-width: 900px) { .collection { padding: var(--space-6); } .collection__title { font-size: 2.75rem; } .edition { display: none; } .feature-grid { grid-template-columns: 1fr; } .collection-snapshot { display: none; } .spotlight { min-height: 400px; } .collection__items, .collection__skeletons { grid-template-columns: repeat(2, minmax(0, 1fr)); } .collection-notes { gap: var(--space-8); } }
@media (max-width: 600px) { .collection { padding: var(--space-4) var(--space-4) 48px; } .collection__intro { padding: var(--space-6) 0 var(--space-6); } .collection__title { font-size: 2.3rem; } .intro-eyebrow { font-size: .65rem; letter-spacing: .08em; } .collection__lead { font-size: var(--text-sm); } .desktop-break { display: none; } .spotlight { min-height: 360px; } .spotlight__top { padding: var(--space-4); } .spotlight__body { left: var(--space-4); right: var(--space-4); bottom: var(--space-4); } .spotlight__foot { align-items: start; } .spotlight__body h3 { font-size: 1.8rem; } .discovery { padding-top: var(--space-8); } .discovery__title h2 { font-size: var(--text-xl); } .collection__filters { grid-template-columns: 1fr 1fr; gap: var(--space-2); } .collection__search { grid-column: 1 / -1; } .collection__filters > .field:nth-child(4) { grid-column: auto; } .collection__filters > button { grid-column: auto; } .stage-tabs { width: 100%; } .stage-tabs button { font-size: var(--text-xs); padding: var(--space-2); } .collection__items, .collection__skeletons { grid-template-columns: 1fr; } .collection-item__description { -webkit-line-clamp: 2; } .collection__meta { gap: var(--space-3); } .collection__items[data-view="list"] .collection-item { grid-template-columns: 90px minmax(0, 1fr); gap: var(--space-3); } [data-view="list"] .collection-item h3 { font-size: var(--text-lg); } [data-view="list"] .game-meta { flex-wrap: wrap; justify-content: start; } [data-view="list"] .collection-item__description { display: none; } [data-view="list"] .collection-item__foot { flex-wrap: wrap; margin-top: var(--space-2); } .collection-notes { grid-template-columns: 1fr; gap: var(--space-6); } .collection-policy { justify-content: start; } .game-detail { grid-template-columns: 1fr; } #itemDialogMedia .game-image { aspect-ratio: 16 / 9; } .game-dialog .dialog__body { padding: var(--space-4); } .game-dialog .dialog__body > h2 { font-size: var(--text-2xl); } .game-dialog .dialog__footer { justify-content: start; } .preview-label { opacity: 1; } }
@media print { .collection__filters, .collection__meta, .collection__endnote, .preview-label, .collection-policy { display: none; } .collection__items { display: block; } .collection-item { break-inside: avoid; margin-bottom: var(--space-6); } }
