.game-library, .game-topic { max-width: 1200px; }
.library-masthead { align-items: baseline; margin-bottom: 20px; }
.library-masthead h1 { font-size: clamp(34px, 3.5vw, 48px); }
.library-jump, .game-platform, .topic-card-platform { color: var(--story-accent); }
.library-jump { padding: 8px 0; font-size: 14px; }
.library-count, .topic-card small, .game-aliases { color: var(--story-muted); }
.library-count { font-size: 14px; }
#all-topics, .game-topic section[id] { scroll-margin-top: 108px; }

.topic-spotlight { margin-bottom: 34px; }
.spotlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.topic-card { min-width: 0; overflow-wrap: anywhere; }
.topic-card-media, .topic-card-media img, .topic-card-copy, .topic-card-copy > * { display: block; }
.topic-card-media { overflow: hidden; border-radius: 7px; aspect-ratio: 460 / 215; }
.topic-card-media img { width: 100%; height: 100%; object-fit: cover; }
.topic-card-media.is-empty { background: #243044 url("/assets/game-placeholder.svg") center / cover; }
.topic-card-copy { min-width: 0; }
.topic-card-platform { font-size: 12px; font-weight: 600; }
.topic-card strong { font-size: 18px; line-height: 1.4; }
.topic-card small { font-size: 13px; line-height: 1.5; }
.topic-card:hover strong { color: var(--story-accent); }
.spotlight-grid .topic-card { position: relative; }
.spotlight-grid .topic-card:only-child { grid-column: 1/-1; }
.spotlight-grid .topic-card:nth-child(2):last-child { grid-column: span 2; }
.is-featured .topic-card-media { aspect-ratio: 16/9; }
.is-featured .topic-card-copy { padding: 12px 0 4px; }
.is-featured strong { font-size: clamp(21px, 2vw, 30px); }
.is-featured small { margin-top: 4px; font-size: 14px; }
.spotlight-grid .topic-card:first-child { display: grid; align-items: end; isolation: isolate; overflow: hidden; border-radius: 9px; min-height: 280px; }
.spotlight-grid .topic-card:first-child .topic-card-media { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; }
.spotlight-grid .topic-card:first-child .topic-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#080f1df2 2%,#0b1729a3 30%,transparent 76%); }
.spotlight-grid .topic-card:first-child .topic-card-copy { padding: 22px; }
.spotlight-grid .topic-card:first-child strong { font-size: clamp(28px, 3vw, 42px); }
.spotlight-grid .topic-card:first-child small { color: #e0e6ef; }
.topic-grid, .directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); column-gap: 24px; }
.topic-grid .topic-card, .directory-grid .topic-card {
    display: grid; grid-template-columns: 34% minmax(0,1fr); align-items: center; gap: 14px;
    padding: 14px 0; border-top: 1px solid var(--story-line);
}
.topic-grid small, .directory-grid small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.game-intro { padding: 20px 0 24px; border-top: 1px solid var(--story-line); overflow-wrap: anywhere; }
.game-intro.with-cover { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr); gap: clamp(24px,4vw,64px); align-items: center; }
.game-platform { font-size: 14px; font-weight: 600; }
.game-intro h1 { margin: 8px 0; font-size: clamp(36px,4vw,58px); line-height: 1.15; font-weight: 720; letter-spacing: -.03em; }
.game-intro .game-summary { max-width: 44em; color: #cbd7e6; font-size: 16px; line-height: 1.8; }
.game-aliases { font-size: 13px; }
.game-aliases > span { margin-right: 6px; }
.game-aliases summary { width: fit-content; cursor: pointer; color: var(--story-accent); }
.game-intro-art img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; border-radius: 9px; }
.game-sections { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding: 8px 0; border-block: 1px solid var(--story-line); }
.game-sections a { padding: 5px 0; font-size: 14px; }
.game-sections .game-download { margin-left: auto; padding: 6px 14px; border-radius: 5px; background: #274451; color: #a1eced; font-weight: 600; }
.game-reading { display: grid; gap: 28px; margin: 30px 0; }
.game-reading.has-sidebar { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); column-gap: clamp(24px,4vw,64px); }
.game-reading > section { min-width: 0; }
.game-reading .topic-playbook { max-width: 78ch; padding: 0; margin: 0; border: 0; background: transparent; }
.game-reading .topic-playbook ol { padding-left: 1.75em; margin: 15px 0 22px; }
.game-reading .topic-playbook li, .game-reading .topic-playbook p { font-size: 16px; line-height: 1.85; }
.game-reading .topic-playbook li { padding-left: 4px; }
.game-reading .topic-playbook h3 { border-top: 1px solid var(--story-line); padding-top: 16px; font-size: 19px; }
.game-reading.has-sidebar .topic-updates { border-left: 1px solid var(--story-line); padding-left: 24px; }
.game-reading .news-list .article-row { grid-template-columns: 84px minmax(0,1fr); align-items: start; gap: 12px; padding: 12px 0; }
.game-reading .news-thumb { order: -1; border: 0; }
.game-reading .article-row h3 { font-size: 16px; line-height: 1.5; }
.has-sidebar .article-row-copy p { display: none; }
.game-reading:not(.has-sidebar) .news-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
.game-setup { padding: 20px 0; border-block: 1px solid var(--story-line); }
.game-setup ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 32px; margin: 14px 0 0; padding-left: 24px; }
.game-setup li { padding-left: 4px; }
.game-setup li::marker { color: var(--story-accent); font-weight: 700; }
.game-setup li strong, .game-setup li span { display: block; }
.game-setup li span { color: var(--story-muted); font-size: 14px; overflow-wrap: anywhere; }
.other-topics { margin-top: 28px; }

@media (max-width: 850px) {
    .topic-grid, .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .game-reading.has-sidebar { grid-template-columns: 1fr; }
    .game-reading.has-sidebar .topic-updates { border-left: 0; padding-left: 0; }
    .spotlight-grid { gap: 12px; }
}
@media (max-width: 640px) {
    .game-library .library-masthead { display: flex; align-items: baseline; margin-bottom: 14px; }
    .spotlight-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 10px; }
    .spotlight-grid .topic-card:first-child { grid-column: 1/-1; min-height: 185px; }
    .spotlight-grid .topic-card:first-child .topic-card-copy { padding: 14px; }
    .is-featured .topic-card-media { aspect-ratio: 460/215; }
    .is-featured .topic-card-copy { padding: 6px 0 0; }
    .is-featured strong { font-size: 18px; }
    .is-featured small { font-size: 13px; }
    .topic-grid, .directory-grid, .game-reading:not(.has-sidebar) .news-list { grid-template-columns: 1fr; }
    .topic-grid .topic-card, .directory-grid .topic-card { grid-template-columns: 100px minmax(0,1fr); padding: 10px 0; }
    .topic-spotlight { margin-bottom: 24px; }
    .game-intro.with-cover { grid-template-columns: 1fr; gap: 14px; }
    .game-intro { padding: 12px 0 16px; }
    .game-intro h1 { font-size: 34px; }
    .game-intro .game-summary { font-size: 15px; margin: 8px 0; }
    .game-intro-art img { max-height: 210px; }
    .game-sections { gap: 4px 12px; }
    .game-sections a { font-size: 13px; }
    .game-sections .game-download { padding: 5px 8px; }
    .game-reading { margin: 22px 0; }
    .game-setup ol { grid-template-columns: 1fr; gap: 12px; }
    #all-topics, .game-topic section[id] { scroll-margin-top: 84px; }
}
