@import url('/cartridge-space.css');
[hidden] { display: none !important; }
.wordmark { text-decoration: none; }
.masthead-actions { gap: 16px; }
.directory-trigger { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; background: transparent; cursor: pointer; }
.directory-trigger svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#directory-tools { width: min(600px, 100vw); height: 100dvh; margin: 0 0 0 auto; padding: 28px; background: #f4f6f8; }
#directory-tools::backdrop { background: #20242c33; }
.tools-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.tools-top h2 { margin: 0; font-size: 24px; font-weight: 550; }
.tools-close { border: 0; background: transparent; min-width: 44px; min-height: 44px; font-size: 28px; cursor: pointer; }
#game-search { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid #c9d0d8; background: transparent; font: inherit; }
#filters { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-top: 28px; }
.filter-select { display: grid; gap: 8px; color: #536173; font-size: 14px; }
.filter-select select { width: 100%; min-height: 44px; border: 0; border-bottom: 1px solid #c9d0d8; background: transparent; color: #20242c; font: inherit; font-size: 16px; }
#clear-filters { border: 0; background: transparent; min-height: 44px; padding: 0; text-align: start; cursor: pointer; color: #2d4b69; font: inherit; }
.tools-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 36px; }
.tools-links a { display: inline-flex; align-items: center; min-height: 44px; color: #536173; font-size: 14px; text-underline-offset: 4px; }
#results-count { font-size: 14px; color: #697788; }
.no-results { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; }
.no-results h2 { font-size: 24px; font-weight: 500; }
.no-results p { font-size: 16px; color: #697788; }
.no-results button { justify-self: center; min-height: 44px; border: 0; background: transparent; color: #2d4b69; font: inherit; cursor: pointer; }
.detail-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
.detail-links a { min-height: 44px; display: inline-flex; align-items: center; color: #697788; font-size: 14px; text-underline-offset: 4px; }
.ad-slot { font-size: 14px; color: #697788; }
.ad-slot .ad-label { display: block; margin-bottom: 8px; }
.directory-ad-rail { flex: none; padding: 0 clamp(24px,5vw,88px); }
.directory-inline-ads { flex: none; padding: 0 clamp(24px,5vw,88px); }
.directory-inline-ads:empty, .directory-ad-rail:empty { display: none; }
.detail-copy > .ad-slot { margin-top: 24px; }
@media(max-width:600px) { .masthead-actions { gap: 7px; } #directory-tools { padding: 22px; } #filters { gap: 18px 12px; } }

.detail-count-status { color: #697788; font-size: 14px; line-height: 1.6; }
