/*
Theme Name: Asopita
Author: Asopita
Description: A finder-first game discovery theme for the Asopita Core plugin.
Version: 0.3.4
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: asopita
*/

:root {
  --ink: #07131e;
  --ink-2: #0d202c;
  --ink-3: #142c3a;
  --line-dark: #294250;
  --lime: #d9ff4a;
  --coral: #ff7163;
  --coral-hover: #ff8a77;
  --mint: #7edcc9;
  --paper: #f7f9fb;
  --paper-line: #e1e8ee;
  --text: #111b25;
  --muted: #637180;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 24px 56px rgba(6, 21, 32, .12);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font-size: 16px; line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
::selection { background: var(--lime); color: var(--ink); }
.shell { width: min(100% - 64px, 1320px); margin-inline: auto; }
.icon { display: inline-block; width: 24px; height: 24px; flex: none; vertical-align: middle; }
.skip-link { position: absolute; z-index: 1000; left: 16px; top: -100px; background: var(--lime); color: var(--ink); padding: 8px 16px; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 30; height: 74px; color: var(--white); }
.site-header-inner { height: 100%; display: flex; align-items: center; gap: clamp(32px, 6vw, 100px); }
.wordmark { color: var(--lime); font-size: 26px; font-weight: 900; font-style: italic; letter-spacing: -.06em; line-height: 1; white-space: nowrap; }
.site-nav { flex: 1; }
.site-nav-list { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: clamp(18px, 2.5vw, 40px); }
.site-nav-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 14px; white-space: nowrap; transition: color .2s ease; }
.site-nav-list a:hover, .site-nav-list .current-menu-item a { color: var(--lime); }
.header-search { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; }
.header-search:hover { color: var(--lime); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--white); width: 44px; height: 44px; }

/* Shared controls */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid transparent; border-radius: 999px; padding: 14px 24px; min-height: 54px; font-size: 16px; font-weight: 850; line-height: 1.3; text-align: center; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button .icon { width: 22px; height: 22px; }
.button-coral { background: var(--coral); color: var(--ink); }
.button-coral:hover { background: var(--coral-hover); }
.button-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.button-dark:hover { background: var(--ink-3); }
.button-large { min-height: 60px; padding-inline: 24px; font-size: 17px; }
.button-block { width: 100%; }
.small-note { color: #aabac6; font-size: 13px; line-height: 1.8; }

/* Home hero */
.home-hero { position: relative; min-height: 560px; overflow: hidden; background: var(--ink); }
.home-hero-art { position: absolute; inset: 0; background: url('assets/images/hero.jpg') center 46% / cover no-repeat; }
.home-hero-inner { position: relative; z-index: 1; min-height: inherit; display: flex; align-items: flex-end; padding-top: 100px; padding-bottom: 24px; }
.home-hero-copy { width: min(740px, 66%); }
.home-hero h1 { margin: 0; font-size: clamp(56px, 6.1vw, 104px); font-weight: 900; font-style: italic; letter-spacing: -.075em; line-height: .99; transform: skewX(-3deg); transform-origin: left bottom; text-shadow: 0 4px 18px rgba(0, 0, 0, .22); }
.mobile-heading-break { display: none; }
.home-hero h1 span { color: var(--lime); }
.home-hero-copy > p { margin: 22px 0 20px; font-size: clamp(16px, 1.35vw, 19px); font-weight: 700; text-shadow: 0 2px 12px rgba(0, 0, 0, .65); }
.hero-genres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: 13px; }
.hero-genres strong { margin-right: 4px; white-space: nowrap; font-size: 14px; }
.hero-genres a { display: inline-flex; align-items: center; gap: 2px; border: 1px solid rgba(232, 244, 255, .48); border-radius: 99px; min-height: 32px; padding: 3px 10px 3px 14px; background: rgba(7, 19, 30, .64); font-weight: 700; transition: background-color .2s, color .2s, border-color .2s; }
.hero-genres a:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.hero-genres .icon { width: 14px; height: 14px; }

/* Discovery */
.discovery-section { background: var(--ink); padding: 14px 0 30px; }
.discovery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.discovery-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 170px; border: 1px solid var(--line-dark); border-radius: 5px; background: linear-gradient(145deg, #0d202c, #0a1925); padding: 21px 24px; transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.discovery-card:hover { transform: translateY(-4px); border-color: var(--lime); }
.discovery-card > .icon { color: var(--lime); width: 40px; height: 40px; margin-bottom: 16px; }
.discovery-card:nth-child(2) > .icon, .discovery-card:nth-child(3) > .icon { color: var(--mint); }
.discovery-card-title { display: block; max-width: 82%; font-size: 20px; font-weight: 850; line-height: 1.35; }
.discovery-card-body { margin-top: 6px; max-width: 85%; color: #c2d1db; font-size: 13px; line-height: 1.5; }
.discovery-card-arrow { position: absolute; right: 22px; bottom: 22px; display: grid; place-items: center; border: 1px solid var(--line-dark); width: 30px; height: 30px; border-radius: 50%; }
.discovery-card-arrow .icon { width: 17px; height: 17px; }

/* Home catalog and editorial sections */
.home-content, .light-page { background: var(--paper); color: var(--text); }
.home-content { padding: 46px 0 76px; }
.content-section + .content-section { margin-top: 66px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading h2 { margin: 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 900; letter-spacing: -.045em; line-height: 1.25; }
.section-heading a { display: inline-flex; align-items: center; gap: 8px; color: #164fa0; font-size: 14px; font-weight: 800; white-space: nowrap; }
.section-heading a:hover { text-decoration: underline; }
.section-heading a .icon { width: 18px; height: 18px; }
.empty-state { min-height: 146px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--paper-line); border-radius: var(--radius); background: #eef3f7; color: #607182; text-align: center; padding: 24px; }
.empty-state .icon { width: 36px; height: 36px; opacity: .6; }
.empty-state p { margin: 0; font-size: 16px; font-weight: 700; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.game-card, .article-card { min-width: 0; overflow: hidden; border: 1px solid var(--paper-line); border-radius: var(--radius); background: var(--white); box-shadow: 0 2px 10px rgba(15, 39, 58, .04); }
.game-card-link, .article-card > a { display: block; height: 100%; }
.game-card-image, .article-card-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e6edf2; }
.game-card-image img, .article-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.game-card:hover img, .article-card:hover img { transform: scale(1.035); }
.game-card-image-empty, .article-card-image-empty { display: grid; place-items: center; color: #8b9ca9; background: linear-gradient(145deg, #dce6ed, #eff4f7); }
.game-card-image-empty .icon, .article-card-image-empty .icon { width: 50px; height: 50px; opacity: .6; }
.game-card-copy, .article-card-copy { padding: 16px 17px 22px; }
.game-card-genre, .game-card-meta { display: inline-block; font-size: 12px; font-weight: 800; color: #366180; }
.game-card h3, .article-card h3 { margin: 7px 0; font-size: 19px; font-weight: 850; line-height: 1.4; }
.game-card p, .article-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.game-card-arrow { display: none; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* Generic page and archives */
.page-main { min-height: 65vh; }
.page-intro { padding: 132px 0 62px; }
.dark-intro { background: var(--ink); color: var(--white); }
.dark-intro h1 { margin: 22px 0 4px; font-size: clamp(36px, 5vw, 68px); font-weight: 900; letter-spacing: -.055em; line-height: 1.15; }
.dark-intro p { margin: 10px 0 0; color: #c5d3de; font-size: 17px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #c7d4dd; font-size: 13px; }
.breadcrumbs a:hover { color: var(--lime); text-decoration: underline; }
.breadcrumbs .icon { width: 14px; height: 14px; }
.archive-content { padding-top: 50px; padding-bottom: 90px; }
.archive-grid { margin-top: 24px; }
.game-search-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 14px; padding: 24px; margin-bottom: 40px; background: var(--white); border: 1px solid var(--paper-line); border-radius: var(--radius); }
.game-search-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; }
.game-search-form input, .game-search-form select { width: 100%; min-height: 50px; border: 1px solid #bac9d4; border-radius: 5px; background: var(--white); padding: 9px 12px; color: var(--text); font-size: 15px; }
.game-search-form .button { min-height: 50px; border-radius: 5px; }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 34px; color: var(--text); }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 4px 10px; border: 1px solid var(--paper-line); border-radius: 4px; background: var(--white); }
.pagination .current { background: var(--ink); color: var(--white); }
.article-detail-content { max-width: 900px; padding-top: 48px; padding-bottom: 100px; }
.article-links, .article-finder-link { margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--paper-line); }
.article-links .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-finder-link p { color: var(--muted); }
.entry-content { font-size: 17px; line-height: 1.95; overflow-wrap: anywhere; }
.entry-content h2, .entry-content h3 { line-height: 1.35; margin-top: 2em; }
.entry-content a { color: #155ca9; text-decoration: underline; text-underline-offset: 3px; }

/* Game detail */
.game-detail { background: var(--ink); }
.game-detail-hero { padding: 122px 0 28px; background: #07131e url('assets/images/hero.jpg') center 12% / cover no-repeat; }
.game-detail-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); align-items: center; gap: 40px; margin: 32px 0 22px; }
.game-detail-title h1 { margin: 0 0 14px; font-size: clamp(46px, 5.8vw, 84px); font-weight: 900; font-style: italic; letter-spacing: -.065em; line-height: 1.06; overflow-wrap: anywhere; }
.game-detail-lead { max-width: 660px; color: #dbe4e9; font-size: 19px; font-weight: 700; line-height: 1.7; text-shadow: 0 2px 12px var(--ink); }
.game-detail-cover { position: relative; aspect-ratio: 16 / 10; min-width: 0; overflow: hidden; border: 1px solid #315062; border-radius: 6px; background: var(--ink-2); box-shadow: var(--shadow); }
.game-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-image-caption { position: absolute; right: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 4px 9px; border-radius: 3px; background: rgba(7, 19, 30, .84); color: #fff; font-size: 11px; font-weight: 800; line-height: 1.4; }
.game-detail-cover-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #c6d4de; background: linear-gradient(140deg, #142c3a, #07131e); }
.game-detail-cover-empty .icon { width: 56px; height: 56px; }
.game-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line-dark); border-radius: 5px; background: rgba(8, 23, 35, .86); }
.game-facts div { min-width: 0; padding: 15px 20px; }
.game-facts div + div { border-left: 1px solid var(--line-dark); }
.game-facts dt { color: var(--lime); font-size: 13px; font-weight: 800; }
.game-facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.game-detail-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); gap: 40px; padding-top: 34px; padding-bottom: 34px; }
.game-detail-section { margin-bottom: 34px; }
.game-detail-section h2 { margin: 0 0 14px; padding-left: 16px; border-left: 4px solid var(--lime); font-size: 27px; font-weight: 900; line-height: 1.3; }
.game-detail-section h3 { margin: 22px 0 10px; font-size: 19px; }
.game-detail-section p { margin: 0 0 14px; color: #d5e0e7; font-size: 16px; line-height: 1.85; }
.game-detail-section .entry-content { color: #d5e0e7; }
.game-detail-section .entry-content p { margin-bottom: 1.2em; }
.requirements { margin: 0; border: 1px solid var(--line-dark); border-radius: 5px; overflow: hidden; }
.requirements div { display: grid; grid-template-columns: 150px minmax(0, 1fr); padding: 10px 15px; gap: 15px; }
.requirements div + div { border-top: 1px solid var(--line-dark); }
.requirements dt { color: #a9bfcb; }
.requirements dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.source-link a { color: var(--lime); font-weight: 800; }
.source-link .icon { width: 17px; height: 17px; }
.related-games { margin-top: 60px; }
.related-games .game-card { color: var(--text); }
.related-games .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-articles .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-articles .article-card { color: var(--text); }
.game-detail-aside { align-self: start; }
.detail-side-panel { padding: 23px; margin-bottom: 18px; border: 1px solid var(--line-dark); border-radius: 5px; background: var(--ink-2); }
.detail-side-panel h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 20px; }
.detail-side-panel h2 .icon { color: var(--lime); }
.detail-side-panel .small-note { margin: 0; }
.secondary-stores { display: grid; gap: 6px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line-dark); }
.secondary-stores > span { margin: 0 0 2px; color: #b3c6d1; font-size: 12px; font-weight: 800; }
.secondary-stores a, .source-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.secondary-stores a:hover, .source-list a:hover { color: var(--lime); }
.secondary-stores a .icon, .source-list a .icon { width: 16px; height: 16px; }
.game-source-footer { padding-bottom: 70px; }
.game-source-details { max-width: 720px; color: #b3c6d1; font-size: 12px; }
.game-source-details summary { cursor: pointer; }
.game-source-details summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
.source-list { display: grid; gap: 4px; margin-top: 10px; }
.detail-finder-panel p { margin: 0 0 16px; color: #bdcdd7; font-size: 14px; }
.detail-finder-panel a { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-size: 14px; font-weight: 800; }
.detail-finder-panel a .icon { width: 17px; height: 17px; }

/* Footer */
.finder-main { position: relative; min-height: 100vh; background: var(--ink); color: var(--white); padding: 101px 0 100px; }
.finder-main::before { content: ''; position: absolute; inset: 0 0 auto; height: 540px; background: url('assets/images/hero.jpg') center 28% / cover no-repeat; opacity: .72; mask-image: linear-gradient(#000 0%, #000 60%, transparent 100%); pointer-events: none; }
.finder-shell { position: relative; z-index: 1; }
.finder-shell { max-width: 1200px; }
.finder-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin: 0 0 34px; }
.finder-eyebrow, .finder-step-label { margin: 0 0 7px; color: var(--lime); font-size: 13px; font-weight: 900; letter-spacing: .03em; }
.finder-heading h1 { margin: 0; font-size: clamp(38px, 5vw, 68px); font-weight: 900; letter-spacing: -.06em; line-height: 1.15; }
.finder-heading h1 span { color: var(--lime); }
.finder-pc-condition { max-width: 1200px; margin: -10px 0 28px; border: 1px solid #385263; border-radius: 5px; background: #102737; }
.finder-pc-condition summary { cursor: pointer; padding: 9px 16px; color: #d5e2e8; font-size: 13px; font-weight: 800; }
.finder-pc-condition[open] summary { color: var(--lime); }
.finder-pc-condition > p { margin: 8px 16px 13px; color: #bfd0db; font-size: 13px; }
.finder-pc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 0 16px 17px; }
.finder-pc-grid label { display: grid; gap: 4px; min-width: 0; color: #d5e2e8; font-size: 12px; font-weight: 750; }
.finder-pc-grid input { width: 100%; min-height: 38px; padding: 6px 9px; border: 1px solid #667d89; border-radius: 3px; background: #081b27; color: #fff; font-size: 13px; }
.finder-heading p:last-child { margin: 13px 0 0; color: #cad8e1; font-size: 17px; }
.finder-all-link { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--lime); font-size: 14px; font-weight: 800; }
.finder-all-link .icon { width: 17px; height: 17px; }
.finder-scope-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 50px auto 0; padding: 24px 0 0; border-top: 1px solid #294250; max-width: 1080px; color: #b7c8d3; font-size: 13px; }
.finder-scope-nav > span { margin-right: 7px; font-weight: 800; }
.finder-scope-nav a { display: inline-flex; align-items: center; min-height: 36px; border: 1px solid #3a5262; border-radius: 100px; padding: 4px 13px; font-weight: 750; }
.finder-scope-nav a:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.finder-app { max-width: 1200px; margin-inline: auto; }
.finder-loading, .finder-error { display: grid; place-content: center; justify-items: center; gap: 15px; min-height: 460px; text-align: center; }
.finder-spinner { width: 34px; height: 34px; border: 3px solid #425b67; border-top-color: var(--lime); border-radius: 50%; animation: finder-spin 1s linear infinite; }
@keyframes finder-spin { to { transform: rotate(360deg); } }
.finder-progress { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #c6d5de; font-size: 13px; font-weight: 800; }
.finder-progress > span:first-child { color: var(--lime); }
.finder-progress-track { flex-basis: 100%; height: 6px; border-radius: 99px; background: #244050; overflow: hidden; }
.finder-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--lime); transition: width .3s ease; }
.finder-question { padding-top: 30px; }
.finder-question-copy { max-width: 1200px; margin: 0 auto 22px; text-align: center; }
.finder-question-copy h2 { margin: 0; font-size: clamp(29px, 3.2vw, 45px); font-weight: 900; line-height: 1.3; letter-spacing: -.045em; }
.finder-question-copy > p:last-child { max-width: 900px; margin: 12px auto 0; color: #c4d3dc; font-size: 16px; line-height: 1.8; }
.finder-answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.finder-answers.is-visual { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.finder-answer { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 170px; padding: 24px; overflow: hidden; border: 1.5px solid #385263; border-radius: 7px; background: #102737; color: var(--white); text-align: left; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.finder-answer:hover { transform: translateY(-3px); border-color: #93bd6c; background: #17364a; }
.finder-answer.is-selected { border: 2px solid var(--lime); background: #193a47; box-shadow: inset 0 0 0 1px var(--lime); }
.finder-answer.has-image { padding: 0; min-height: 325px; }
.finder-answer.has-image img { display: block; width: 100%; height: 178px; object-fit: cover; }
.finder-answer-copy { display: flex; flex-direction: column; gap: 9px; padding-right: 14px; }
.finder-answer.has-image .finder-answer-copy { padding: 17px 20px 25px; }
.finder-answer-copy strong { font-size: 20px; font-weight: 900; line-height: 1.35; }
.finder-answer-copy > span { color: #c4d3dd; font-size: 13px; line-height: 1.7; }
.finder-answer-mark { position: absolute; top: 15px; right: 15px; display: none; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--lime); color: var(--ink); }
.finder-answer.is-selected .finder-answer-mark { display: grid; }
.finder-answer-mark svg { width: 19px; height: 19px; }
.finder-hint { margin: 19px 0 0; color: #a8beca; font-size: 13px; text-align: center; }
.finder-controls, .finder-results-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; }
.finder-controls .button, .finder-results-footer .button { min-width: 195px; }
.finder-controls .button svg, .finder-results-footer .button svg, .finder-result-actions svg, .finder-no-results svg { width: 19px; height: 19px; }
.finder-controls .button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.finder-back { border: 0; background: transparent; color: #c2d4df; font-size: 15px; font-weight: 800; padding: 12px 2px; }
.finder-back:not(:disabled):hover { color: var(--lime); }
.finder-back:disabled { opacity: .35; cursor: not-allowed; }
.finder-message { min-height: 24px; color: #ffaea5; font-size: 14px; text-align: right; }
.finder-results { padding-top: 24px; }
.finder-results > h2 { margin: 0; font-size: clamp(36px, 5vw, 60px); font-weight: 900; line-height: 1.2; letter-spacing: -.05em; }
.finder-result-intro { max-width: 830px; margin: 15px 0 30px; color: #c4d4dc; }
.finder-summary { padding: 22px 28px; border: 1px solid #385263; border-radius: 7px; background: #102737; }
.finder-summary h3 { margin: 0 0 12px; font-size: 17px; }
.finder-summary ul { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 0; padding: 0; }
.finder-summary li { display: inline-flex; flex-wrap: wrap; gap: 7px; font-size: 13px; }
.finder-summary li span { color: #a8bdc9; }
.finder-summary li strong { color: var(--lime); }
.finder-result-list { display: grid; gap: 18px; margin-top: 28px; }
.finder-result-card { display: grid; grid-template-columns: 42px minmax(190px, 32%) minmax(0, 1fr); gap: 16px; border: 1px solid #385263; border-radius: 7px; background: #102737; padding: 18px; }
.finder-result-rank { display: grid; place-items: center; align-self: start; width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 19px; font-weight: 900; }
.finder-result-image { position: relative; min-height: 210px; border-radius: 4px; overflow: hidden; background: #1a3949; }
.finder-result-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.finder-result-image-empty { display: grid; place-items: center; height: 100%; min-height: 210px; color: #a4b9c7; font-size: 13px; }
.finder-result-body { position: relative; min-width: 0; padding-right: 100px; }
.finder-result-score { position: absolute; top: 0; right: 0; display: grid; text-align: center; color: var(--lime); }
.finder-result-score strong { font-size: 42px; line-height: 1; }
.finder-result-score small { font-size: 16px; }
.finder-result-score span { font-size: 11px; color: #c2d4de; }
.finder-result-body h3 { margin: 4px 0 11px; font-size: 26px; line-height: 1.3; }
.finder-result-body p { margin: 7px 0; color: #cedbe3; font-size: 14px; }
.finder-result-body .finder-evidence { color: #a9bdc9; font-size: 12px; }
.finder-result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.finder-result-actions .button { min-height: 44px; padding: 9px 20px; font-size: 14px; }
.finder-official { display: inline-flex; align-items: center; gap: 5px; color: var(--lime); font-size: 14px; font-weight: 800; }
.finder-offer-link { display: inline-flex; align-items: center; gap: 5px; color: #ffb9ae; font-size: 13px; font-weight: 800; }
.finder-pr-notice { margin: 0 0 18px; padding: 14px 17px; border: 1px solid #9a655c; border-radius: 5px; background: #35242b; color: #ffe2db; font-size: 14px; }
.offer-label { display: inline-block; border: 1px solid #e68f82; border-radius: 3px; color: #ffd8d0; padding: 1px 6px; font-size: 11px; font-weight: 900; line-height: 1.5; }
.offer-panel { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line-dark); }
.offer-panel .offer-button { margin-top: 10px; border-color: #e9978c; background: #39272d; color: #fff; }
.offer-panel .offer-button:hover { background: #563038; }
.offer-panel p { margin: 10px 0 0; color: #b9cbd5; font-size: 12px; }
.finder-no-results { margin-top: 28px; padding: 60px 30px; border: 1px solid #385263; border-radius: 7px; background: #102737; text-align: center; }
.finder-no-results h3 { margin: 0 0 10px; font-size: 24px; }
.finder-no-results p { margin: 0 0 22px; color: #b8cad5; }
.finder-no-results a { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-weight: 800; }
.finder-js-note a { color: var(--lime); text-decoration: underline; }

/* PC specification and similar-game tools */
.tool-content { padding-top: 48px; padding-bottom: 100px; }
.tool-form { display: grid; gap: 17px; margin-bottom: 22px; padding: 28px; border: 1px solid var(--paper-line); border-radius: var(--radius); background: var(--white); }
.tool-form-heading h2 { margin: 0; font-size: 26px; }
.tool-form-heading p { max-width: 850px; margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.tool-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-form-grid label { display: grid; gap: 5px; font-size: 14px; font-weight: 800; }
.tool-form input, .tool-form select { min-height: 48px; border: 1px solid #afc0cc; border-radius: 5px; background: #fff; color: var(--text); padding: 8px 12px; }
.tool-form .button { justify-self: start; }
.tool-form .button:disabled { opacity: .6; cursor: wait; }
.tool-disclaimer { margin: 12px 0 30px; color: #546a77; font-size: 13px; }
.tool-results { margin-top: 32px; }
.tool-loading, .tool-error { padding: 20px; border-radius: 5px; background: #e8f0f4; }
.tool-error { color: #ad2b26; }
.pc-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pc-result-card { padding: 23px; border: 1px solid var(--paper-line); border-radius: 6px; background: var(--white); }
.pc-result-card h3 { margin: 12px 0 7px; font-size: 22px; }
.pc-result-card p { margin: 0; color: var(--muted); font-size: 14px; }
.pc-result-card ul { margin: 13px 0; padding-left: 21px; color: #425866; font-size: 13px; }
.pc-status { display: inline-block; padding: 3px 8px; border-radius: 3px; background: #e6edf3; color: #294252; font-size: 12px; font-weight: 900; }
.pc-status-recommended, .pc-status-minimum { background: #e7f6c0; color: #294c21; }
.pc-status-below_minimum { background: #ffe8e5; color: #923b2b; }
.pc-result-links { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 14px; }
.pc-result-links a, .similar-form a { color: #175999; font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.similar-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.similar-form label { flex-basis: 100%; }
.similar-form select { min-width: min(100%, 380px); }
.similar-grid { margin-top: 23px; }
.similar-item { min-width: 0; }
.similar-score { padding: 9px 12px; border-radius: 5px 5px 0 0; background: #0d2737; color: var(--lime); font-size: 13px; font-weight: 900; }
.similar-score span { display: block; color: #c1d1db; font-size: 11px; }
.similar-item .game-card { border-radius: 0 0 5px 5px; }
.similar-reasons { margin: 8px 0 0; color: #506977; font-size: 12px; }

/* Footer */
.site-footer { background: #06111a; color: var(--white); border-top: 1px solid var(--line-dark); padding: 40px 0; }
.site-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.site-footer p { margin: 10px 0 0; color: #a8bdc9; font-size: 13px; }
.site-footer nav { display: flex; gap: 28px; font-size: 13px; font-weight: 700; }
.site-footer nav a:hover { color: var(--lime); }

@media (max-width: 1080px) {
  .shell { width: min(100% - 48px, 1320px); }
  .site-header-inner { gap: 36px; }
  .site-nav-list { gap: 18px; }
  .site-nav-list a { font-size: 13px; }
  .home-hero-copy { width: min(680px, 72%); }
  .home-hero h1 { font-size: clamp(55px, 7vw, 82px); }
  .discovery-card { padding: 18px; }
  .discovery-card-title { font-size: 18px; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 36px, 1320px); }
  .site-header { height: 68px; }
  .site-header-inner { gap: 8px; }
  .wordmark { font-size: 27px; }
  .header-search { margin-left: auto; }
  .menu-toggle { display: grid; place-items: center; order: 3; }
  .site-nav { display: none; position: absolute; top: 64px; left: 18px; right: 18px; padding: 14px 18px; border: 1px solid var(--line-dark); border-radius: 7px; background: #0b1b28; box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav-list li + li { border-top: 1px solid var(--line-dark); }
  .site-nav-list a { width: 100%; font-size: 15px; }
  .home-hero { min-height: 690px; }
  .home-hero-art { background-image: url('assets/images/hero-mobile.jpg'); background-position: center 45%; }
  .home-hero-inner { align-items: flex-start; padding-top: 130px; padding-bottom: 30px; }
  .home-hero-copy { width: 100%; }
  .home-hero h1 { max-width: 620px; font-size: clamp(47px, 9vw, 72px); line-height: 1.04; }
  .home-hero-copy > p { max-width: 550px; font-size: 17px; margin: 20px 0; }
  .hero-genres { max-width: 590px; margin-top: 17px; }
  .discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-detail-hero { background-image: url('assets/images/hero-mobile.jpg'); background-position: center 38%; }
  .game-detail-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .game-detail-title h1 { font-size: clamp(42px, 8vw, 68px); }
  .game-detail-cover { max-width: 600px; }
  .game-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-facts div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-dark); }
  .game-facts div:nth-child(4) { border-top: 1px solid var(--line-dark); }
  .game-detail-body { grid-template-columns: 1fr; }
  .game-detail-aside { grid-row: 1; }
  .finder-main { padding-top: 98px; }
  .finder-heading { align-items: start; flex-direction: column; gap: 14px; }
  .finder-answers, .finder-answers.is-visual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-answer.has-image { min-height: 290px; }
  .finder-answer.has-image img { height: 160px; }
  .finder-result-card { grid-template-columns: 38px minmax(0, 1fr); }
  .finder-result-image { grid-column: 2; }
  .finder-result-body { grid-column: 2; }
  .finder-pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 30px, 1320px); }
  .home-hero { min-height: 720px; }
  .home-hero-inner { padding-top: 125px; }
  .home-hero h1 { font-size: clamp(44px, 10.8vw, 60px); }
  .mobile-heading-break { display: initial; }
  .home-hero-copy > p { font-size: 15px; line-height: 1.7; }
  .home-hero .button-large { width: 100%; font-size: 15px; gap: 7px; padding-inline: 13px; }
  .home-hero .button-large .icon { width: 20px; height: 20px; }
  .hero-genres strong { width: 100%; }
  .hero-genres a { font-size: 12px; }
  .discovery-grid { gap: 10px; }
  .discovery-card { min-height: 165px; padding: 14px; }
  .discovery-card > .icon { width: 32px; height: 32px; margin-bottom: 13px; }
  .discovery-card-title { max-width: 100%; font-size: 15px; }
  .discovery-card-body { max-width: 100%; font-size: 11px; }
  .discovery-card-arrow { right: 8px; bottom: 8px; width: 24px; height: 24px; }
  .home-content { padding-top: 34px; }
  .content-section + .content-section { margin-top: 48px; }
  .section-heading h2 { font-size: 23px; }
  .section-heading a { font-size: 12px; }
  .empty-state { min-height: 150px; }
  .game-grid, .article-grid { grid-template-columns: 1fr; }
  .page-intro { padding-top: 116px; padding-bottom: 44px; }
  .dark-intro h1 { font-size: 38px; }
  .archive-content { padding-top: 28px; }
  .game-search-form { grid-template-columns: 1fr; padding: 17px; }
  .game-detail-hero { padding-top: 112px; }
  .game-detail-hero-grid { margin-top: 20px; }
  .game-detail-title { margin: -10px -12px 0; padding: 10px 12px 14px; border-radius: 4px; background: linear-gradient(90deg, rgba(7, 19, 30, .82), rgba(7, 19, 30, .58)); }
  .game-detail-title h1 { font-size: 42px; }
  .game-detail-title h1, .game-detail-lead { text-shadow: 0 3px 12px #07131e; }
  .game-detail-lead { font-size: 16px; }
  .game-facts div { padding: 12px; }
  .game-facts dd { font-size: 13px; }
  .game-detail-body { gap: 12px; padding-top: 20px; }
  .game-detail-section h2 { font-size: 23px; }
  .related-games .game-grid { grid-template-columns: 1fr; }
  .related-articles .article-grid, .article-links .game-grid { grid-template-columns: 1fr; }
  .requirements div { grid-template-columns: 90px minmax(0, 1fr); gap: 10px; font-size: 13px; }
  .site-footer-inner { display: block; }
  .site-footer nav { margin-top: 24px; flex-wrap: wrap; gap: 14px 22px; }
  .finder-main { padding-bottom: 70px; }
  .finder-heading h1 { font-size: 38px; }
  .finder-heading p:last-child { font-size: 15px; }
  .finder-scope-nav { gap: 7px; }
  .finder-scope-nav > span { width: 100%; }
  .finder-scope-nav a { font-size: 12px; }
  .finder-question { padding-top: 32px; }
  .finder-question-copy h2 { font-size: 29px; }
  .finder-question-copy > p:last-child { font-size: 15px; }
  .finder-answers, .finder-answers.is-visual { grid-template-columns: 1fr; gap: 10px; }
  .finder-answer { min-height: 110px; padding: 18px; }
  .finder-answer.has-image { min-height: 0; flex-direction: row; align-items: stretch; }
  .finder-answer.has-image img { width: 115px; height: auto; min-height: 110px; flex: none; }
  .finder-answer.has-image .finder-answer-copy { padding: 13px 15px; }
  .finder-answer-copy { gap: 4px; }
  .finder-answer-copy strong { font-size: 17px; }
  .finder-answer-copy > span { font-size: 12px; }
  .finder-controls { margin-top: 25px; }
  .finder-controls .button { min-width: 0; font-size: 14px; padding-inline: 16px; }
  .finder-back { font-size: 13px; }
  .finder-summary { padding: 18px; }
  .finder-result-card { grid-template-columns: 1fr; }
  .finder-result-rank, .finder-result-image, .finder-result-body { grid-column: 1; }
  .finder-result-image { min-height: 185px; }
  .finder-result-body { padding-right: 0; }
  .finder-result-score { position: static; display: flex; align-items: baseline; gap: 7px; text-align: left; }
  .finder-result-score strong { font-size: 34px; }
  .finder-result-body h3 { margin-top: 12px; }
  .finder-results-footer { flex-wrap: wrap; }
  .finder-pc-grid, .tool-form-grid { grid-template-columns: 1fr; }
  .tool-form { padding: 19px; }
  .tool-form .button { width: 100%; }
  .similar-form select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
