/* GameDatum categories / refreshed to match the November 2026 homepage. */
:root {
  color-scheme: light;
  --gd-bg:#f5f6f0;
  --gd-surface:#ffffff;
  --gd-ink:#112722;
  --gd-green:#2b602a;
  --gd-green-hover:#224f23;
  --gd-muted:#53685e;
  --gd-line:#d6dfd2;
  --gd-soft:#e9eee6;
  --gd-shadow:0 16px 44px rgba(30,63,32,.08);
}
html[data-gd-theme="dark"] {
  color-scheme:dark;
  --gd-bg:#121c19;
  --gd-surface:#1d2a25;
  --gd-ink:#f2f6ef;
  --gd-green:#9bdd91;
  --gd-green-hover:#b8eeac;
  --gd-muted:#bdcbc1;
  --gd-line:#394c3f;
  --gd-soft:#2c3e32;
  --gd-shadow:0 16px 42px rgba(0,0,0,.18);
}
html { scroll-behavior:smooth; }
html, body {margin:0;min-height:100%;}
body.gd-category-page {background:var(--gd-bg);color:var(--gd-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:15px;-webkit-font-smoothing:antialiased;}
.gd-category-page *, .gd-category-page *::before, .gd-category-page *::after {box-sizing:border-box;}
.gd-category-page a {color:inherit;text-decoration:none;}
.gd-category-page button,.gd-category-page input,.gd-category-page select {font:inherit;}
.gd-category-page button {cursor:pointer;}
.gd-category-page img {max-width:100%;}
.gd-category-page :is(a,button,input,select,summary):focus-visible {outline:3px solid var(--gd-green);outline-offset:3px;}
.gd-sr-only {border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;}
.gd-skip {position:fixed;top:-100px;left:20px;background:var(--gd-surface);padding:11px 17px;z-index:3000;}
.gd-skip:focus {top:8px;}
.gd-container {width:100%;max-width:1360px;margin-inline:auto;padding-inline:24px;}
/* Homepage-style white navigation bar */
.gd-header {position:relative;z-index:100;background:var(--gd-surface);border-bottom:1px solid var(--gd-line);}
.gd-header-inner {max-width:1360px;margin:auto;min-height:94px;padding:12px 24px;display:flex;align-items:center;gap:25px;}
.gd-brand {display:inline-flex;position:relative;align-items:center;justify-content:flex-start;flex:0 0 auto;width:190px;min-height:48px;}
.gd-brand img {width:190px;height:48px;object-fit:contain;object-position:left center;}
.gd-brand-fallback {color:#d58728;font-weight:1000;letter-spacing:-.06em;font-size:1.75rem;-webkit-text-stroke:1px #131713;text-shadow:1px 2px #101a13;}
.gd-brand-fallback[hidden] {display:none;}
.gd-primary-nav {display:flex;align-items:center;gap:16px;flex:1 1 auto;min-width:0;white-space:nowrap;}
.gd-primary-nav>a,.gd-nav-dropdown>summary {font-weight:750;font-size:.78rem;color:var(--gd-ink);}
.gd-primary-nav>a:hover,.gd-primary-nav>a.is-current,.gd-nav-dropdown>summary:hover {color:var(--gd-green);}
.gd-playlist-counter:not(:empty) {display:inline-grid;place-items:center;margin-left:5px;width:18px;height:18px;border-radius:50%;background:var(--gd-green);color:var(--gd-surface);font-size:.62rem;}
.gd-nav-dropdown {position:relative;}
.gd-nav-dropdown>summary {list-style:none;display:flex;gap:4px;align-items:center;cursor:pointer;}
.gd-nav-dropdown>summary::-webkit-details-marker {display:none;}
.gd-nav-dropdown-panel {position:absolute;top:calc(100% + 22px);left:-25px;width:420px;white-space:normal;background:var(--gd-surface);border:1px solid var(--gd-line);border-radius:18px;box-shadow:var(--gd-shadow);padding:18px;z-index:180;}
.gd-nav-dropdown-panel>p {margin:0 0 12px;font-size:.72rem;text-transform:uppercase;font-weight:850;letter-spacing:.14em;color:var(--gd-muted);}
.gd-nav-category-grid {display:grid;grid-template-columns:1fr 1fr;gap:5px;}
.gd-nav-category-grid a {font-size:.84rem;padding:9px 11px;border-radius:8px;}
.gd-nav-category-grid a:is(:hover,[aria-current="page"]) {background:var(--gd-soft);color:var(--gd-green);}
.gd-theme-button {border:1px solid var(--gd-line);background:transparent;color:var(--gd-ink);border-radius:24px;padding:8px 13px;font-weight:700;font-size:.75rem;white-space:nowrap;}
.gd-theme-button:hover {background:var(--gd-soft);}
.gd-header-search {display:flex;align-items:stretch;flex:0 0 219px;height:43px;overflow:hidden;border:1px solid var(--gd-line);border-radius:24px;background:var(--gd-bg);}
.gd-header-search input {background:transparent;border:0;outline:0!important;min-width:0;flex:1;padding:0 16px;color:var(--gd-ink);font-size:.78rem;}
.gd-header-search input::placeholder {color:var(--gd-muted);opacity:.85;}
.gd-header-search button {padding:0 19px;border:0;background:var(--gd-soft);color:var(--gd-ink);font-size:.78rem;font-weight:850;}
.gd-header-search button:hover {background:var(--gd-line);}
.gd-mobile-toggle {display:none;}
/* Editorial category hero */
.gd-main {padding-bottom:80px;}
.gd-hero {display:grid;grid-template-columns:minmax(0,1.5fr) minmax(310px,1fr);gap:clamp(40px,7vw,110px);align-items:center;min-height:445px;padding-block:60px 66px;border-bottom:1px solid var(--gd-line);}
.gd-hero-copy {max-width:670px;}
.gd-eyebrow,.gd-kicker {display:flex;align-items:center;gap:10px;color:var(--gd-ink);font-size:.64rem;text-transform:uppercase;letter-spacing:.15em;font-weight:800;}
.gd-eyebrow:before {content:"";width:7px;height:7px;background:var(--gd-green);border-radius:50%;}
.gd-hero h1 {margin:30px 0 22px;color:var(--gd-ink);font-weight:850;letter-spacing:-.066em;line-height:1.05;font-size:clamp(3.2rem,5vw,5rem);max-width:690px;}
.gd-hero h1 span {color:var(--gd-green);}
.gd-hero-desc {font-size:1.03rem;line-height:1.8;color:var(--gd-muted);max-width:510px;margin:0;}
.gd-hero-actions {display:flex;align-items:center;gap:25px;flex-wrap:wrap;margin-top:26px;}
.gd-primary-action {background:var(--gd-green);color:var(--gd-surface)!important;display:inline-flex;gap:12px;align-items:center;justify-content:center;border-radius:30px;padding:13px 22px;font-size:.84rem;font-weight:800;min-height:46px;}
html[data-gd-theme="dark"] .gd-primary-action {color:#0c1a0e!important;}
.gd-primary-action:hover {filter:brightness(.92);}
.gd-secondary-action {font-size:.85rem;text-decoration:underline!important;text-underline-offset:5px;font-weight:550;}
.gd-secondary-action:hover {color:var(--gd-green);}
.gd-hero-note {margin-top:20px;color:var(--gd-muted);font-size:.7rem;}
.gd-featured {display:block;position:relative;min-width:0;max-width:445px;width:100%;height:315px;border-radius:23px;overflow:hidden;background:linear-gradient(120deg,#193327,#315e39);isolation:isolate;box-shadow:0 3px 12px rgba(0,0,0,.03);justify-self:end;}
.gd-featured:after {position:absolute;inset:0;content:"";background:linear-gradient(0deg,rgba(5,12,10,.89) 0%,rgba(7,13,11,.36) 38%,rgba(0,0,0,.06) 74%);z-index:1;}
.gd-featured img {width:100%;height:100%;object-fit:cover;transition:transform .3s;}
.gd-featured:hover img {transform:scale(1.035);}
.gd-featured-tag {position:absolute;top:24px;left:25px;z-index:2;border-radius:30px;background:rgba(10,28,17,.8);padding:10px 14px;color:#c8fa8a;font-size:.65rem;font-weight:900;letter-spacing:.09em;}
.gd-featured-body {position:absolute;bottom:22px;left:30px;right:25px;z-index:2;color:#fff;}
.gd-featured-body strong {display:block;max-width:330px;font-size:clamp(1.7rem,2.5vw,2.5rem);line-height:1.12;letter-spacing:-.045em;font-weight:850;}
.gd-featured-body small {display:block;margin-top:18px;font-weight:650;font-size:.78rem;}
.gd-featured-fallback {height:100%;background:radial-gradient(circle at 70% 40%,#568a54,transparent 55%);}
/* Sections and filtering */
.gd-section {margin-top:52px;scroll-margin-top:26px;}
.gd-section-heading {display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px;}
.gd-kicker {color:var(--gd-muted);font-size:.63rem;}
.gd-section-heading h2 {font-size:clamp(1.9rem,2.6vw,2.55rem);line-height:1.14;letter-spacing:-.05em;font-weight:825;margin:12px 0 0;color:var(--gd-ink);}
.gd-section-side {display:flex;flex-direction:column;gap:12px;align-items:flex-end;}
.gd-result-count {color:var(--gd-muted);font-size:.77rem;}
.gd-inline-link {font-size:.8rem;text-decoration:underline!important;text-underline-offset:4px;white-space:nowrap;}
.gd-inline-link:hover {color:var(--gd-green);}
.gd-filter-toggle {margin-bottom:24px;background:transparent;border:1px solid var(--gd-line);border-radius:14px;}
.gd-filter-toggle>summary {list-style:none;display:flex;align-items:center;gap:9px;padding:13px 17px;font-size:.8rem;color:var(--gd-ink);font-weight:750;cursor:pointer;}
.gd-filter-toggle>summary::-webkit-details-marker {display:none;}
.gd-filter-toggle>summary:before {content:'☷';font-size:1.1rem;line-height:1;color:var(--gd-green);}
.gd-filter-toggle>summary:after {content:'+';margin-left:auto;font-size:1rem;color:var(--gd-green);}
.gd-filter-toggle[open]>summary:after {content:'−';}
.gd-filterbar {display:grid;grid-template-columns:minmax(180px,1.6fr) minmax(145px,1fr) minmax(145px,1fr) auto auto;gap:13px;padding:5px 17px 17px;align-items:end;}
.gd-filter-field {min-width:0;}
.gd-filter-field label {display:block;margin-bottom:7px;font-size:.7rem;color:var(--gd-muted);font-weight:750;}
.gd-filter-field input,.gd-filter-field select {width:100%;height:44px;border:1px solid var(--gd-line);background:var(--gd-surface);color:var(--gd-ink);border-radius:9px;padding:0 13px;outline:none;font-size:.81rem;}
.gd-filter-field input::placeholder {color:var(--gd-muted);}
.gd-filter-field select option {color:var(--gd-ink);background:var(--gd-surface);}
.gd-apply {height:44px;border:none;border-radius:9px;color:var(--gd-surface);background:var(--gd-green);padding:0 15px;font-size:.8rem;font-weight:800;white-space:nowrap;}
html[data-gd-theme="dark"] .gd-apply {color:#0c1a0e;}
.gd-reset {height:44px;display:inline-flex;align-items:center;color:var(--gd-muted);font-size:.8rem;}
/* EXACT homepage-inspired card anatomy: 4:3 art, bold title, free-to-play + Save. */
.gd-game-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;}
.gd-game-card {min-width:0;background:var(--gd-surface);border:1px solid var(--gd-line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;transition:border-color .2s,transform .2s,box-shadow .2s;}
.gd-game-card:hover {transform:translateY(-3px);border-color:var(--gd-green);box-shadow:var(--gd-shadow);}
.gd-game-art {display:block;position:relative;aspect-ratio:4 / 3;overflow:hidden;background:var(--gd-soft);}
.gd-game-art img {display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s;}
.gd-game-card:hover .gd-game-art img {transform:scale(1.025);}
.gd-game-info {min-height:128px;padding:19px 20px 20px;display:flex;flex-direction:column;flex:1;justify-content:space-between;gap:18px;}
.gd-game-info h3 {margin:0;font-size:clamp(.96rem,1.3vw,1.18rem);line-height:1.3;letter-spacing:-.035em;font-weight:800;overflow-wrap:anywhere;}
.gd-game-info h3 a:hover {color:var(--gd-green);}
.gd-game-bottom {display:flex;justify-content:space-between;align-items:center;gap:9px;margin-top:auto;}
.gd-free {font-size:.56rem;letter-spacing:.055em;color:var(--gd-green);font-weight:900;text-transform:uppercase;white-space:nowrap;}
.gd-save {border:1px solid var(--gd-line);border-radius:99px;min-width:68px;min-height:37px;background:var(--gd-surface);padding:7px 12px;color:var(--gd-ink);font-size:.73rem;font-weight:500;display:inline-flex;justify-content:center;align-items:center;gap:4px;white-space:nowrap;}
.gd-save:hover {border-color:var(--gd-green);background:var(--gd-soft);}
.gd-save.is-saved {border-color:var(--gd-green);background:var(--gd-soft);color:var(--gd-green);font-weight:800;}
.gd-empty {border:1px dashed var(--gd-line);border-radius:18px;padding:50px 18px;text-align:center;background:var(--gd-surface);}
.gd-empty h3 {margin:0 0 10px;font-size:1.2rem;}
.gd-empty p {color:var(--gd-muted);line-height:1.65;}
.gd-empty a {font-weight:750;color:var(--gd-green);}
.gd-pagination {display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:9px;margin-top:36px;}
.gd-pagination a,.gd-pagination span {border:1px solid var(--gd-line);min-width:42px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:50px;padding:8px 14px;font-weight:700;background:var(--gd-surface);font-size:.8rem;}
.gd-pagination a:hover {border-color:var(--gd-green);}
.gd-pagination .gd-page-current {color:var(--gd-surface);background:var(--gd-green);border-color:var(--gd-green);}
html[data-gd-theme="dark"] .gd-pagination .gd-page-current {color:#0b170e;}
/* Related categories, FAQ and low-priority ad */
.gd-category-chips {display:flex;gap:10px;flex-wrap:wrap;}
.gd-category-chips a {border:1px solid var(--gd-line);border-radius:30px;background:var(--gd-surface);padding:10px 15px;font-size:.82rem;font-weight:650;}
.gd-category-chips a:hover {background:var(--gd-soft);color:var(--gd-green);}
.gd-category-chips a span {color:var(--gd-green);}
.gd-faq details {border-bottom:1px solid var(--gd-line);}
.gd-faq summary {padding:18px 8px;list-style:none;cursor:pointer;font-weight:750;font-size:.94rem;display:flex;justify-content:space-between;gap:20px;}
.gd-faq summary::-webkit-details-marker {display:none;}
.gd-faq summary:after {content:'+';color:var(--gd-green);font-size:1.3rem;}
.gd-faq details[open] summary:after {content:'−';}
.gd-faq details p {max-width:780px;color:var(--gd-muted);line-height:1.75;margin:0;padding:0 8px 18px;}
.gd-ad-slot {max-width:930px;min-height:95px;margin:64px auto 0;overflow:hidden;text-align:center;}
.gd-ad-slot>span {font-size:.6rem;letter-spacing:.15em;color:var(--gd-muted);}
.gd-status {position:fixed;bottom:22px;right:22px;z-index:1000;max-width:340px;border-radius:12px;border:1px solid var(--gd-line);padding:13px 18px;background:var(--gd-surface);box-shadow:var(--gd-shadow);font-size:.84rem;}
.gd-status[hidden] {display:none;}
.gd-footer {background:var(--gd-surface);border-top:1px solid var(--gd-line);padding:38px 0 27px;}
.gd-footer-inner {display:flex;align-items:start;justify-content:space-between;gap:20px;}
.gd-footer-brand {font-weight:850;letter-spacing:-.04em;font-size:1.26rem;}
.gd-footer-brand span {font-size:.77rem;font-weight:550;letter-spacing:0;color:var(--gd-muted);}
.gd-footer p {margin:9px 0;color:var(--gd-muted);font-size:.86rem;}
.gd-back-to-top {font-size:.8rem;font-weight:720;text-decoration:underline!important;}
.gd-footer-bottom {margin-top:20px;padding-top:21px;border-top:1px solid var(--gd-line);display:flex;align-items:center;justify-content:space-between;gap:18px;color:var(--gd-muted);font-size:.7rem;}
.gd-footer-bottom nav {display:flex;flex-wrap:wrap;gap:16px;}
.gd-footer-bottom a:hover {color:var(--gd-green);}
@media(max-width:1250px) {
  .gd-header-inner {gap:16px;}
  .gd-brand,.gd-brand img {width:170px;}
  .gd-primary-nav {gap:10px;}
  .gd-primary-nav>a,.gd-nav-dropdown>summary {font-size:.74rem;}
  .gd-header-search {flex-basis:184px;}
  .gd-filterbar {grid-template-columns:minmax(180px,1.6fr) minmax(140px,1fr) minmax(140px,1fr) auto;}
  .gd-reset {grid-column:1/-1;height:auto;}
}
@media(max-width:1080px) {
  .gd-header-inner {flex-wrap:wrap;}
  .gd-brand,.gd-brand img {width:185px;}
  .gd-mobile-toggle {display:inline-flex;order:2;margin-left:auto;border:1px solid var(--gd-line);background:var(--gd-surface);padding:11px;border-radius:10px;width:42px;height:42px;flex-direction:column;align-items:center;justify-content:center;gap:5px;}
  .gd-mobile-toggle span {display:block;width:19px;height:2px;background:var(--gd-ink);}
  .gd-header-search {order:1;margin-left:auto;flex-basis:225px;}
  .gd-primary-nav {display:none;order:3;flex:1 1 100%;flex-wrap:wrap;white-space:normal;border-top:1px solid var(--gd-line);padding:18px 0 8px;gap:16px;}
  .gd-primary-nav.is-open {display:flex;}
  .gd-nav-dropdown-panel {top:calc(100% + 12px);}
  .gd-hero {grid-template-columns:minmax(0,1.25fr) minmax(290px,.9fr);gap:35px;}
  .gd-hero h1 {font-size:clamp(2.9rem,5.5vw,4.5rem);}
  .gd-game-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:750px) {
  .gd-container {padding-inline:18px;}
  .gd-header-inner {min-height:75px;padding-inline:18px;gap:12px;}
  .gd-brand,.gd-brand img {width:164px;}
  .gd-header-search {order:3;flex:1 1 100%;margin-left:0;max-width:none;}
  .gd-mobile-toggle {order:2;}
  .gd-primary-nav {order:4;}
  .gd-nav-dropdown {width:100%;}
  .gd-nav-dropdown-panel {position:static;margin-top:10px;width:100%;box-shadow:none;}
  .gd-hero {grid-template-columns:1fr;gap:28px;padding-block:44px 45px;min-height:auto;}
  .gd-hero h1 {font-size:clamp(2.8rem,8vw,4.3rem);margin-top:22px;}
  .gd-featured {justify-self:start;max-width:none;height:265px;}
  .gd-game-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
  .gd-filterbar {grid-template-columns:1fr 1fr;}
  .gd-filter-search {grid-column:1/-1;}
  .gd-apply {grid-column:1/-1;}
  .gd-reset {grid-column:1/-1;}
  .gd-footer-bottom {flex-direction:column;align-items:flex-start;}
}
@media(max-width:485px) {
  .gd-header-inner {padding-inline:14px;}
  .gd-container {padding-inline:14px;}
  .gd-hero h1 {font-size:2.8rem;}
  .gd-hero-desc {font-size:.92rem;}
  .gd-game-grid {gap:10px;}
  .gd-game-info {padding:12px;min-height:117px;gap:15px;}
  .gd-game-info h3 {font-size:.9rem;}
  .gd-free {font-size:.49rem;}
  .gd-save {min-width:60px;padding:6px 7px;min-height:34px;font-size:.67rem;}
  .gd-section-heading {align-items:start;}
  .gd-section-heading h2 {font-size:1.8rem;}
  .gd-result-count {font-size:.72rem;}
  .gd-filterbar {grid-template-columns:1fr;}
  .gd-filter-field,.gd-filter-search,.gd-apply,.gd-reset {grid-column:1/-1;}
  .gd-footer-inner {flex-direction:column;}
}
@media(max-width:350px) {
  .gd-game-grid {grid-template-columns:1fr;}
  .gd-game-info h3 {font-size:1.06rem;}
  .gd-free {font-size:.59rem;}
}
@media(prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto;}
  .gd-category-page *, .gd-category-page *::before, .gd-category-page *::after {transition:none!important;}
}
