.topic-catalog { --topic-accent: #14735b; --topic-soft: #edf8f2; padding-top: 24px; }
.topic-catalog.genre-catalog { --topic-accent: #754bb2; --topic-soft: #f5f0fc; }
.topic-catalog.ranking-catalog { --topic-accent: #926319; --topic-soft: #fbf5e8; }
.topic-hero { padding: 24px; border: 1px solid #dce5df; border-radius: 16px; background: var(--topic-soft); margin: 0 0 16px; }
.topic-hero .eyebrow { color: var(--topic-accent); letter-spacing: .14em; font-size: 11px; font-weight: 800; }
.topic-hero h1 { font-size: clamp(25px, 3vw, 36px); line-height: 1.35; margin: 10px 0 12px; color: #172b27; }
.topic-hero p { max-width: 780px; line-height: 1.8; color: #52625c; margin: 0; }
.topic-controls { padding: 20px 0; border-bottom: 1px solid #dce3df; margin-bottom: 24px; }
.topic-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.topic-tabs button { appearance: none; background: #fff; border: 1px solid #d1dcd6; padding: 10px 17px; color: #34453e; font: inherit; font-size: 13px; font-weight: 700; border-radius: 24px; cursor: pointer; min-height: 42px; }
.topic-tabs button[aria-pressed="true"] { background: var(--topic-accent); border-color: var(--topic-accent); color: white; }
.topic-catalog :is(a, button, input, select):focus-visible { outline: 3px solid #df7c22; outline-offset: 4px; }
.topic-search-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.topic-search-label { flex: 1 1 250px; max-width: 480px; font-size: 12px; color: #52625c; font-weight: 700; }
.topic-search-label input { width: 100%; box-sizing: border-box; margin-top: 6px; border: 1px solid #cad5ce; border-radius: 8px; background: #fff; font: inherit; font-size: 14px; padding: 12px 14px; }
.topic-year-label { font-size: 12px; font-weight: 700; color: #52625c; }
.topic-year-label select { display: block; font: inherit; font-size: 14px; min-height: 43px; border: 1px solid #cad5ce; background: white; border-radius: 8px; margin-top: 6px; padding: 10px; }
.topic-result-count { color: var(--topic-accent); font-size: 13px; font-weight: 700; margin-left: auto; }
.topic-section { margin: 34px 0 46px; }
.topic-section-header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid #233b30; padding-bottom: 12px; margin-bottom: 20px; }
.topic-section h2 { margin: 0; font-size: 23px; color: #1d3027; }
.topic-section-header p { width: 100%; margin: 0; color: #69746d; font-size: 13px; }
.topic-section-count { font-size: 13px; color: var(--topic-accent); font-weight: 700; }
.topic-game-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.topic-game { min-width: 0; border: 1px solid #e1e6e1; border-radius: 12px; overflow: hidden; background: white; transition: border-color .15s, box-shadow .15s; }
.topic-game:hover { border-color: var(--topic-accent); box-shadow: 0 5px 20px #1a3b2310; }
.topic-game > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.topic-game-art { aspect-ratio: 4/3; background: #f5f5f1; padding: 20px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; border-bottom: 1px solid #edf0eb; }
.topic-game-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.topic-game-copy { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.topic-game-kind { font-size: 10px; letter-spacing: .05em; color: var(--topic-accent); font-weight: 800; }
.topic-game h3 { font-size: 17px; line-height: 1.5; margin: 7px 0; word-break: keep-all; overflow-wrap: anywhere; }
.topic-game p { font-size: 12px; line-height: 1.7; color: #647168; margin: 0 0 16px; }
.topic-game-link { margin-top: auto; font-size: 12px; font-weight: 800; color: var(--topic-accent); }
.topic-empty { border: 1px dashed #c9d5cc; border-radius: 12px; padding: 40px 20px; text-align: center; color: #5b6a60; }
.topic-bottom-links { border-top: 1px solid #dce3df; padding: 24px 0; display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.ranking-source { margin: 18px 0 0; color: #685b43; font-size: 12px; line-height: 1.9; }
.ranking-source a { color: #715119; text-decoration: underline; }
.ranking-list { list-style: none; margin: 0; padding: 0; }
.ranking-row { display: grid; grid-template-columns: 52px 64px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 20px 4px; border-bottom: 1px solid #e4e7e1; }
.ranking-thumb { width: 64px; height: 72px; display: flex; align-items: center; justify-content: center; background: #f4f4ef; border-radius: 7px; overflow: hidden; }
.ranking-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ranking-thumb-placeholder { color: #9a9d90; font-size: 23px; background: #f7f7f3; }
.ranking-number { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 11px; background: #f3f2eb; font-size: 19px; font-weight: 800; color: #7c6540; }
.ranking-row:nth-child(-n+3) .ranking-number { background: #f6e6ba; color: #634610; }
.ranking-title { font-size: 17px; line-height: 1.5; margin: 0; color: #23372c; overflow-wrap: anywhere; }
.ranking-original { display: block; color: #738076; font-size: 12px; font-weight: 400; }
.ranking-year { color: #6c756f; font-size: 12px; margin: 5px 0 0; }
.ranking-links { display: flex; flex-direction: column; gap: 7px; font-size: 12px; align-items: flex-end; }
.ranking-links a { color: #806020; text-decoration: underline; text-underline-offset: 3px; }
.topic-catalog [hidden] { display: none !important; }
.topic-guide-section { margin: 28px 0 42px; }
.topic-guide-section h2 { font-size: 22px; margin: 0; }
.topic-guide-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.topic-guide { border: 1px solid #dce5df; border-radius: 10px; overflow: hidden; background: white; min-width: 0; }
.topic-guide a { display: block; height: 100%; color: inherit; text-decoration: none; }
.topic-guide a:hover { background: #f4faf6; }
.topic-guide img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: #f4f5f1; }
.topic-guide a > div { padding: 14px; }
.topic-guide span { color: #14735b; font-size: 11px; font-weight: 800; }
.topic-guide h3 { font-size: 14px; line-height: 1.65; margin: 7px 0 12px; overflow-wrap: anywhere; }
.topic-guide p { color: #14735b; font-size: 12px; font-weight: 700; margin: 0; }
@media (max-width: 750px) { .topic-guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; } }
@media (max-width: 950px) { .topic-game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 650px) {
 .topic-hero { padding: 24px 20px; margin-top: 16px; }
 .topic-game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .topic-game-art { padding: 14px; }
 .topic-game-copy { padding: 12px; }
 .topic-game h3 { font-size: 15px; }
 .topic-section h2 { font-size: 20px; }
 .topic-tabs button { padding: 9px 13px; font-size: 12px; }
 .topic-result-count { width: 100%; margin: 0; }
 .ranking-row { grid-template-columns: 30px 44px minmax(0,1fr); gap: 10px; }
 .ranking-thumb { width: 44px; height: 54px; }
 .ranking-number { width: 30px; height: 38px; font-size: 15px; }
 .ranking-title { font-size: 15px; }
 .ranking-links { grid-column: 3; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; }
}
