/**
 * Theme Name: FunGamesFree.org
 */
/* Shared site styles */
:root {
  color-scheme: dark;
  --bg: #292827;
  --panel: #333231;
  --panel-raised: #3b3a39;
  --text: #f5f3ef;
  --muted: #aaa8a4;
  --line: rgba(255, 255, 255, .09);
  --green: #69df62;
  --link-color: var(--green);
  --link-hover: #a8f498;
  --accent-hover: #83ed78;
  --focus-color: #a8f498;
  --sidebar-width: 62px;
  --header-height: 64px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fc;
  --panel: #ffffff;
  --panel-raised: #f0efff;
  --text: #263044;
  --muted: #687386;
  --line: rgba(62, 70, 99, .11);
  --green: #7863ee;
  --link-color: #7863ee;
  --link-hover: #b9afff;
  --accent-hover: #6954e7;
  --focus-color: #7863ee;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 1rem; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--focus-color); outline-offset: 3px; }
.skip-link, .visually-hidden, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { z-index: 1000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px; margin: 0; clip: auto; border-radius: 8px; background: white; color: #171717; }
.site-header { position: fixed; z-index: 20; inset: 0 0 auto; height: var(--header-height); display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, 2fr) minmax(246px, 1fr); align-items: center; gap: 24px; padding: 0 20px; border-bottom: 1px solid var(--line); background: rgba(47, 46, 45, .96); }
.header-brand-wrap { display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: 1.75rem; font-weight: 850; letter-spacing: -1.5px; }
.search-form { position: relative; min-width: 0; justify-self: center; width: min(100%, 620px); display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 4px 0 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; background: #535250; color: #dedcd8; }
.search-form > svg { flex: 0 0 auto; width: 19px; height: 19px; margin-right: 2px; fill: none; stroke: currentColor; stroke-width: 2; }
.search-form input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: white; font-size: 1rem; }
.search-form input::placeholder { color: #d2d0cd; opacity: .9; }
.search-form:focus-within { box-shadow: 0 0 0 2px var(--focus-color); }
.search-shortcut { padding: 3px 6px; border: 1px solid #ffffff25; border-radius: 5px; color: #d4d2ce; font-size: 0.75rem; white-space: nowrap; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.theme-toggle { display: grid; width: 38px; min-height: 38px; flex: 0 0 38px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--text); cursor: pointer; }
.theme-toggle:hover { background: var(--panel-raised); }
.theme-toggle svg, .player-tool-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="light"] .site-header { background: rgba(255, 255, 255, .96); }
:root[data-theme="light"] .search-form { border-color: var(--line); background: #f7f8fc; color: #526077; }
:root[data-theme="light"] .search-form input { color: var(--text); }
:root[data-theme="light"] .search-form input::placeholder, :root[data-theme="light"] .search-shortcut { color: #788397; }
:root[data-theme="light"] .search-shortcut { border-color: var(--line); }
:root[data-theme="light"] .desktop-sidebar { background: #fff; scrollbar-color: #d6d9e4 transparent; }
:root[data-theme="light"] .side-link, :root[data-theme="light"] .side-heading { color: #667185; }
:root[data-theme="light"] .side-link:hover, :root[data-theme="light"] .side-link:focus-visible { background: #f0efff; color: #5947c4; }
:root[data-theme="light"] .side-link.active { background: #efedff; color: #5947c4; }
:root[data-theme="light"] .text-link { color: var(--muted); }
:root[data-theme="light"] .back-to-games-button { background: #efedff; color: #5947c4; }
:root[data-theme="light"] .back-to-games-button:hover { background: #e6e2ff; }
:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .category-page-heading > p:last-child,
:root[data-theme="light"] .game-summary,
:root[data-theme="light"] .game-guide-card,
:root[data-theme="light"] .article-deck,
:root[data-theme="light"] .article-body,
:root[data-theme="light"] .game-tags a,
:root[data-theme="light"] .rail-game,
:root[data-theme="light"] .related-article-link strong { color: var(--text); }
:root[data-theme="light"] .faq-item,
:root[data-theme="light"] .game-comment-composer textarea { background: #fff; color: var(--muted); }
:root[data-theme="light"] .game-tags a,
:root[data-theme="light"] .player-tool-button,
:root[data-theme="light"] .article-toc { background: #f7f8fc; }

:root[data-theme="light"] .mobile-menu { background: #fff; }
:root[data-theme="light"] .mobile-menu a { color: #526077; }
:root[data-theme="light"] .mobile-menu a:hover,
:root[data-theme="light"] .mobile-menu a.active { background: #efedff; color: #5947c4; }
:root[data-theme="light"] .mobile-menu-close { color: #354158; }

:root[data-theme="light"] .text-link:hover,
:root[data-theme="light"] .seo-game-list a:hover,
:root[data-theme="light"] .seo-copy a:hover,
:root[data-theme="light"] .category-intro a:hover,
:root[data-theme="light"] .game-guide-card a:hover,
:root[data-theme="light"] .article-body a:hover,
:root[data-theme="light"] .hot-games-intro a:hover,
:root[data-theme="light"] .top-games-intro a:hover,
:root[data-theme="light"] .article-toc a:hover,
:root[data-theme="light"] #game-comments .comment-content a:hover,
:root[data-theme="light"] #game-comments .game-wordpress-comment-form a:hover,
:root[data-theme="light"] .breadcrumbs a:hover { color: var(--link-hover); }
:root[data-theme="light"] .theme-toggle:hover { border-color: #d8d2ff; background: #efedff; color: #5947c4; }
:root[data-theme="light"] .game-comment-submit:hover,
:root[data-theme="light"] .game-ad-skip:hover:not(:disabled),
:root[data-theme="light"] .search-button:hover { background: var(--accent-hover); color: #fff; }
:root[data-theme="light"] .game-comment-submit,
:root[data-theme="light"] .game-ad-skip,
:root[data-theme="light"] .search-button { color: #fff; }
:root[data-theme="light"] .category-tile:hover,
:root[data-theme="light"] .category-tile:focus-visible { border-color: var(--link-hover); }
:root[data-theme="light"] .action-button:hover { border-color: var(--link-hover); }
:root[data-theme="light"] .player-tool-button:hover { border-color: #d8d2ff; background: #efedff; color: #5947c4; }
:root[data-theme="light"] .game-tags a:hover { border-color: var(--link-hover); color: #5947c4; }
:root[data-theme="light"] .blog-article-card:hover { border-color: var(--link-hover); box-shadow: 0 9px 24px rgba(86, 68, 190, .14); }
:root[data-theme="light"] .related-article-link:hover,
:root[data-theme="light"] .rail-game:hover { background: #efedff; }
:root[data-theme="light"] .game-comments-card:focus { outline-color: #7863ee4d; }
:root[data-theme="light"] .game-comment-composer textarea:focus { border-color: #7863ee; box-shadow: 0 0 0 3px rgba(120, 99, 238, .16); }
:root[data-theme="light"] .game-launch-button { border-color: #8b7cf3; border-bottom-color: #5b47da; background: #7863ee; color: #fff; }
:root[data-theme="light"] .game-launch-button:hover { background: var(--accent-hover); }
:root[data-theme="light"] .game-launch-button:focus-visible { outline-color: #7863ee; }
.mobile-menu-toggle { display: none; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.mobile-menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.desktop-sidebar { position: fixed; z-index: 19; inset: var(--header-height) auto 0 0; width: var(--sidebar-width); padding: 12px 7px 24px; overflow: hidden auto; border-right: 1px solid var(--line); background: #302f2e; transition: width .2s ease, box-shadow .2s ease; scrollbar-width: thin; scrollbar-color: #605e5c transparent; }
.desktop-sidebar:hover, .desktop-sidebar:focus-within { width: 220px; box-shadow: 14px 0 34px #0005; }
.side-link, .side-heading { display: flex; min-width: 204px; height: 36px; align-items: center; gap: 11px; margin: 0 0 2px; padding: 0 9px; border-radius: 8px; color: #d1cfcb; font-size: 0.875rem; white-space: nowrap; }
.desktop-sidebar:not(:hover):not(:focus-within) .side-link, .desktop-sidebar:not(:hover):not(:focus-within) .side-heading { width: 45px; min-width: 45px; }
.desktop-sidebar:not(:hover):not(:focus-within) .side-label { display: none; }
.side-link:hover, .side-link:focus-visible { background: #ffffff12; color: white; }
.side-link.active { background: #f6f5f2; color: #262523; font-weight: 700; }
.side-icon { display: grid; flex: 0 0 24px; width: 24px; place-items: center; color: inherit; font-size: 1.25rem; }
.side-label { opacity: 0; transition: opacity .12s ease; }
.desktop-sidebar:hover .side-label, .desktop-sidebar:focus-within .side-label { opacity: 1; }
.side-heading { margin-top: 4px; color: #aaa8a4; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.side-divider { display: block; height: 1px; margin: 9px 2px; background: var(--line); }
.new-count { display: inline-grid; min-width: 25px; height: 18px; place-items: center; margin-left: 5px; padding: 0 5px; border-radius: 10px; background: var(--green); color: #183e15; font-size: 0.75rem; font-weight: 750; }
.page-content { max-width: 2400px; min-height: 100vh; margin: 0 auto 0 max(var(--sidebar-width), calc((100% + var(--sidebar-width) - 2400px) / 2)); padding: calc(var(--header-height) + 25px) 22px 36px; transition: margin-left .2s ease; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 15px; }
.eyebrow { margin: 0 0 4px; color: #aaa8a4; font-size: 0.75rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
h1, .section-heading h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.13; letter-spacing: -.045em; }
.text-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; color: #c5c2bd; font-size: 0.875rem; font-weight: 600; }
.text-link:hover { color: white; }
.game-section { margin-bottom: 40px; scroll-margin-top: calc(var(--header-height) + 15px); }
.game-grid { --grid-columns: 10; display: grid; grid-auto-rows: minmax(0, 1fr); grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr)); gap: 14px 12px; }
/* Per-list desktop row limits, measured against the section's actual width. */
.game-section--clipped { container-type: inline-size; }
@media (min-width: 600.01px) {
  .game-grid--clipped {
    --grid-column-gap: 12px;
    --grid-row-gap: 14px;
    --grid-title-height: 0px;
    --grid-row-height: calc((100cqw - (var(--grid-columns) - 1) * var(--grid-column-gap)) / var(--grid-columns) * .75 + var(--grid-title-height));
    grid-auto-rows: var(--grid-row-height);
    max-height: calc(var(--grid-row-height) * var(--visible-rows) + (var(--visible-rows) - 1) * var(--grid-row-gap));
    overflow: hidden;
  }
}
@media (min-width: 1600px) {
  .game-grid--clipped { --grid-column-gap: 14px; --grid-row-gap: 16px; }
}
@media (min-width: 600.01px) and (hover: none), (min-width: 600.01px) and (pointer: coarse) {
  .game-grid--clipped { --grid-title-height: calc(.875rem * 1.32 + 7px); }
}
@media (max-width: 600px) {
  .game-grid--clipped { grid-auto-rows: minmax(0, 1fr); max-height: none; overflow: visible; }
}
.game-card { min-width: 0; overflow: hidden; border-radius: 9px; background: transparent; transition: transform .18s ease, filter .18s ease; }
.game-card:hover { transform: translateY(-3px); filter: drop-shadow(0 8px 14px #0005); }
.game-hover-info { position: absolute; z-index: 2; inset: auto 0 0; padding: 25px 7px 8px; background: linear-gradient(transparent, #245b38e6 45%, #19462b 100%); color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.game-hover-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; font-size: 0.75rem; font-weight: 700; line-height: 1.3; }
.game-hover-category { max-width: 100%; overflow: hidden; padding: 3px 7px; border-radius: 999px; background: #102f20cc; color: #d2f4ce; text-overflow: ellipsis; white-space: nowrap; }
.game-hover-stat { white-space: nowrap; }
/* Card ratings use one compact line instead of the plugin's wrapping flex layout. */
.game-hover-meta .game-hover-rating { flex: 0 0 100%; white-space: nowrap; font-size: 0.8rem; }
.game-link:hover .game-hover-info, .game-link:focus-visible .game-hover-info { opacity: 1; transform: translateY(0); }
@media (hover: none), (pointer: coarse) {
  .game-hover-info { position: static; padding: 0; background: none; opacity: 1; transform: none; }
  .game-hover-meta { display: none; }
}

.game-card--featured { grid-column: span 2; grid-row: span 2; }
.game-card--featured .game-link { display: flex; height: 100%; flex-direction: column; }
.game-card--featured .game-cover { flex: 1 1 auto; min-height: 0; }
.game-link { position: relative; display: block; height: 100%; border-radius: inherit; }
.game-link:focus-visible { outline-offset: -2px; }
.game-cover { position: relative; display: grid; min-width: 0; aspect-ratio: 4 / 3; overflow: hidden; place-items: center; isolation: isolate; border-radius: 8px; background: #35373b; box-shadow: inset 0 0 0 1px #ffffff18; }
.game-image { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* Game card titles: edit size, truncation and theme colors here. */
.game-title { display: block; margin: 7px 2px 0; overflow: hidden; color: #e8e6e2; font-size: 0.875rem; font-weight: 600; line-height: 1.32; text-overflow: ellipsis; white-space: nowrap; }
.game-card--featured .game-title { flex: 0 0 auto; }
.game-link:hover .game-title { color: #fff; }
:root[data-theme="light"] .game-title { color: #354158; }
:root[data-theme="light"] .game-link:hover .game-title { color: #5947c4; }
@media (hover: hover) and (pointer: fine) {
  .game-card .game-title { margin: 0 0 5px; color: #fff; font-size: clamp(0.875rem, 1vw, 1rem); font-weight: 800; line-height: 1.2; }
  :root[data-theme="light"] .game-card .game-link .game-title { color: #fff; }
}

@media (max-width: 600px) {
  .game-card .game-title { margin: 7px 1px 0; font-size: clamp(0.875rem, 1vw, 1rem); line-height: 1.35; }
}

.empty-state { margin: 20px 0; padding: 30px 16px; border: 1px dashed #ffffff25; border-radius: 12px; color: var(--muted); text-align: center; }
[hidden] { display: none !important; }
.mobile-menu { display: none; }
.category-section { margin: 0 0 42px; }
.category-count, .category-game-count { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.75rem; white-space: nowrap; }
.category-grid { display: grid; grid-auto-rows: minmax(82px, auto); grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; }
.category-intro { display: flex; grid-column: span 2; grid-row: span 2; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.category-intro .eyebrow { margin-bottom: 7px; color: var(--link-color); }
.category-intro h3 { margin: 0 0 7px; color: var(--text); font-size: 1.25rem; line-height: 1.25; }
.category-intro p:not(.eyebrow) { margin: 0 0 9px; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.category-tile { display: flex; min-width: 0; min-height: 82px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 11px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--text); font: inherit; font-size: 1rem; font-weight: 650; line-height: 1.25; text-align: left; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.category-tile:hover, .category-tile:focus-visible { transform: translateY(-2px); border-color: #69df6270; background: var(--panel-raised); }
.category-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 8px; background: #ffffff12; color: var(--link-color); font-size: 1.5rem; line-height: 1; }
@media (max-width: 1450px) { .category-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } .category-tile { gap: 8px; padding: 8px; font-size: 0.875rem; } .category-icon { width: 40px; height: 40px; flex-basis: 40px; } }
@media (max-width: 1120px) { .category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(82px, auto); gap: 8px; } .category-intro { grid-column: 1 / -1; grid-row: auto; min-height: 140px; padding: 17px; } .category-tile { min-height: 82px; gap: 9px; padding: 9px; font-size: 1rem; } .category-icon { width: 42px; height: 42px; flex-basis: 42px; font-size: 1.5rem; }  }
.seo-section { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); align-items: start; gap: 22px; margin: 44px 0 30px; }
.seo-copy, .seo-faq, .category-seo-copy { min-width: 0; border: 1px solid rgba(150, 184, 227, .1); border-radius: 15px; background: var(--panel); box-shadow: none; }
.seo-copy { position: relative; padding: clamp(22px, 3vw, 38px); color: var(--muted); font-size: 1rem; line-height: 1.55; }
.seo-copy h2, .seo-faq h2 { margin: 0 0 16px; color: var(--text); font-size: clamp(1.5rem, 2.2vw, 1.75rem); line-height: 1.3; letter-spacing: -.025em; }
.seo-copy h3 { margin: 25px 0 8px; color: var(--text); font-size: 1.25rem; line-height: 1.4; }
.seo-copy p { margin: 0 0 13px; }
.seo-copy strong { font-weight: 700; }

.seo-game-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 12px 0 18px; padding-left: 20px; }
.game-genre-link, .seo-game-list a, .seo-copy a, .category-intro a, .game-guide-card a, .article-body a, .hot-games-intro a, .top-games-intro a, .article-toc a, #game-comments .comment-content a, #game-comments .game-wordpress-comment-form a { color: var(--link-color); text-decoration: underline; text-underline-offset: 3px; }
.game-genre-link strong, .seo-game-list a strong, .seo-copy a strong, .category-intro a strong, .game-guide-card a strong, .article-body a strong, .hot-games-intro a strong, .top-games-intro a strong, .article-toc a strong, #game-comments .comment-content a strong, #game-comments .game-wordpress-comment-form a strong { color: inherit; }
.game-genre-link:hover, .seo-game-list a:hover, .seo-copy a:hover, .category-intro a:hover, .game-guide-card a:hover, .article-body a:hover, .hot-games-intro a:hover, .top-games-intro a:hover, .article-toc a:hover, #game-comments .comment-content a:hover, #game-comments .game-wordpress-comment-form a:hover { color: var(--link-hover); }
.seo-faq { display: grid; gap: 10px; padding: 20px; }
.seo-faq h2 { margin: 2px 4px 4px; font-size: 1.5rem; }
.faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #292827; color: var(--muted); }
.faq-item summary { position: relative; padding: 16px 36px 16px 17px; color: var(--text); font-size: 1rem; font-weight: 700; line-height: 1.45; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 50%; right: 15px; color: var(--muted); content: "›"; font-size: 1.5rem; line-height: 1; transform: translateY(-50%) rotate(0); transition: transform .15s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(90deg); }
.faq-item p { margin: 0; padding: 0 17px 17px; font-size: 1rem; line-height: 1.55; }
@media (max-width: 900px) { .seo-section { grid-template-columns: minmax(0, 1fr); } }
.bottom-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 20px; }
.action-button { display: inline-flex; min-width: 220px; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border: 1px solid #8b8984; border-radius: 999px; color: var(--text); font-size: 0.875rem; font-weight: 700; text-align: center; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.action-button:hover { transform: translateY(-1px); border-color: #c7c5c0; }

.back-to-games-button > span:first-child { font-size: 1.25rem; }

.back-to-games-button { border-color: transparent; background: #3a3937; }
.back-to-games-button:hover { background: #464543; }

@media (max-width: 600px) { .seo-game-list { grid-template-columns: minmax(0, 1fr); } .action-button { min-width: min(100%, 220px); min-height: 46px; } .bottom-actions { gap: 9px; } }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 24px 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.footer-brand { color: var(--text); font-size: 1.25rem; }
.site-footer p { margin: 0 auto 0 0; }









@media (min-width: 1600px) { .page-content { padding-right: 28px; padding-left: 28px; } .game-grid { gap: 16px 14px; } }
@media (max-width: 1450px) { .game-grid { --grid-columns: 6; } }
@media (max-width: 1120px) { .site-header { grid-template-columns: max-content minmax(0, 1fr) auto; gap: 15px; } .site-header .search-form { width: 100%; justify-self: stretch; } .game-grid { --grid-columns: 5; } }
@media (max-width: 900px) { .game-grid { --grid-columns: 4; } .site-header { padding-right: 14px; padding-left: 12px; } }
@media (max-width: 600px) {
  :root { --header-height: 122px; }
  .site-header { height: var(--header-height); grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 66px 42px; gap: 0 8px; padding: 5px 10px 7px; }
  .header-brand-wrap { grid-column: 1; grid-row: 1; min-width: 0; gap: 5px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .mobile-menu-toggle { display: grid; flex: none; width: 34px; height: 36px; }
  .brand { min-width: 0; gap: 4px; font-size: 1.5rem; }
  .header-actions { gap: 4px; }
  .search-form { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; width: 100%; height: 39px; padding: 0 4px 0 10px; }
  .search-form input { text-align: center; }
  .search-shortcut { display: none; }
  .desktop-sidebar { display: none; }
  .page-content { margin-left: 0; padding: calc(var(--header-height) + 16px) 9px 28px; }
  .section-heading { margin-bottom: 11px; }

  h1, .section-heading h2 { font-size: 1.5rem; }

  .game-section { margin-bottom: 29px; }
  .game-grid { --grid-columns: 2; grid-auto-flow: dense; gap: 12px 9px; }
  .game-card { border-radius: 7px; }
  .game-cover { border-radius: 7px; }
  .site-footer { flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; padding-top: 18px; font-size: 0.75rem; }
  .site-footer p { margin-right: auto; }
}
@media (max-width: 360px) { .page-content { padding-right: 7px; padding-left: 7px; } .game-grid { gap: 8px 5px; } }

/* Touch devices use an explicit drawer instead of hover-only navigation. */
@media (max-width: 600px), (hover: none), (pointer: coarse) {
  .mobile-menu-toggle { display: grid; }
  .desktop-sidebar { display: none; }
  .page-content { margin-left: 0; }
  .mobile-menu-backdrop { position: fixed; z-index: 39; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0, 0, 0, .68); cursor: pointer; }
  .mobile-menu { position: fixed; z-index: 40; inset: 0 auto 0 0; display: flex; width: min(70vw, 240px); min-height: 100vh; min-height: 100dvh; flex-direction: column; gap: 2px; padding: 48px 7px 16px; overflow-y: auto; overscroll-behavior: contain; background: #302f2e; box-shadow: 12px 0 28px #0005; }
  .mobile-menu-close { position: fixed; z-index: 41; top: 7px; left: 8px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer; }
  .mobile-menu a { display: flex; flex: 0 0 auto; min-height: 36px; align-items: center; gap: 11px; padding: 7px 9px; border-radius: 8px; color: #e7e5e0; font-size: 0.875rem; white-space: normal; overflow-wrap: anywhere; }
  .mobile-menu a:hover { background: #f6f5f2; color: #262523; }
  .mobile-menu-divider { flex: 0 0 1px; margin: 7px 2px; background: var(--line); }
  .mobile-menu-heading { display: flex; flex: 0 0 36px; align-items: center; gap: 11px; margin: 0; padding: 0 9px; color: #aaa8a4; font-size: 0.875rem; font-weight: 700; }
  .mobile-menu a.active { background: #f4f3ef; color: #272624; font-weight: 750; }
}

/* Category page styles */
.breadcrumbs { margin: 0 0 10px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; color: var(--muted); font-size: 1rem; list-style: none; }
.breadcrumbs li + li::before { margin-right: 8px; color: #777570; content: "›"; }
.breadcrumbs a { color: var(--link-color); }
.breadcrumbs a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; }
.category-page-heading { margin: 0 0 27px; }
.category-page-heading h1 { margin: 0 0 8px; font-size: clamp(2.25rem, 4.3vw, 3.25rem); line-height: 1.08; letter-spacing: -.045em; }
.category-page-heading > p:last-child { margin: 0; color: #c3c0bb; font-size: 1rem; line-height: 1.55; }
.category-game-section { margin-bottom: 30px; scroll-margin-top: calc(var(--header-height) + 15px); }

.category-seo-section { margin-top: 36px; }
.category-seo-copy { margin: 0; padding: clamp(22px, 3vw, 38px); color: var(--muted); font-size: 1rem; line-height: 1.55; }
.category-seo-copy > .eyebrow { color: var(--link-color); }
.category-seo-copy h2 { margin: 0 0 12px; color: var(--text); font-size: clamp(1.5rem, 2.7vw, 2rem); line-height: 1.2; letter-spacing: -.035em; }
.category-seo-copy h3 { margin: 24px 0 7px; color: var(--text); font-size: 1.25rem; line-height: 1.35; }
.category-seo-copy p { margin: 0 0 12px; }
.category-seo-copy h2:not(:first-child) { margin-top: 26px; }
.category-seo-copy li + li,
.category-seo-copy dd + dt { margin-top: 8px; }
.category-seo-copy dd { margin: 0 0 8px; }
.category-seo-copy table { width: 100%; margin: 12px 0 18px; border-collapse: collapse; }
.category-seo-copy :is(th, td) { padding: 8px; border: 1px solid var(--line); text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.category-seo-copy th,
.category-seo-copy dt { color: var(--text); }

@media (max-width: 600px) {
  .category-page-heading { margin-bottom: 22px; }
  .category-page-heading h1 { font-size: 2.25rem; }

  .category-seo-section { margin-top: 26px; }
  .category-seo-copy { padding: 18px 15px; }
}

/* Shared detail page layout and game-specific cards */
.content-inner { width: min(100%, 1800px); margin-inline: auto; }
.game-detail-page .breadcrumbs, .article-detail-page .breadcrumbs { margin: 0 0 18px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 310px); align-items: start; gap: 20px; }
.content-main, .content-rail { display: grid; min-width: 0; gap: 16px; }
.game-player-card, .game-info-card, .game-guide-card, .article-content-card, .game-comments-card { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.game-player-card, .game-info-card, .game-guide-card, .article-content-card { overflow: hidden; }
.game-player { position: relative; overflow: hidden; aspect-ratio: 16 / 9; isolation: isolate; background: var(--panel); }
/* Match Driving: a stable phone player height, with 16:9 on wider screens. */
@media (max-width: 640px) {
  .game-player { min-height: 540px; height: 540px; aspect-ratio: auto; }
}
.player-toolbar { display: flex; flex-wrap: wrap; min-height: 48px; align-items: center; justify-content: flex-start; gap: 8px; padding: 7px 13px; }
.player-title, .player-tools { display: flex; align-items: center; gap: 9px; }
.player-title-group { display: flex; min-width: 0; align-items: center; gap: 8px; }
.player-title { min-width: 0; overflow-wrap: anywhere; font-size: 0.875rem; font-weight: 750; }
.player-tools { margin-inline-start: auto; }
.ph-game-reactions { display: inline-flex; flex: none; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); }
.ph-game-reactions button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 60px; min-height: 34px; padding: 4px 12px; border: 0; border-radius: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; font-size: .8125rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.ph-game-reactions button:first-child { border-start-start-radius: 11px; border-end-start-radius: 11px; }
.ph-game-reactions button:last-of-type { border-start-end-radius: 11px; border-end-end-radius: 11px; }
.player-toolbar [data-player-tooltip] { position: relative; }
.player-toolbar [data-player-tooltip]::after { content: attr(data-player-tooltip); position: absolute; z-index: 10; inset-inline-start: 0; bottom: calc(100% + 5px); padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: 500 12px/1.4 system-ui, sans-serif; white-space: nowrap; pointer-events: none; visibility: hidden; opacity: 0; }
.player-tools [data-player-tooltip]::after { inset-inline-start: auto; inset-inline-end: 0; width: max-content; max-width: min(160px, 60vw); white-space: normal; text-align: start; }
.player-toolbar [data-player-tooltip]:is(:hover, :focus-visible)::after { visibility: visible; opacity: 1; }
.ph-game-reactions button + button::before { position: absolute; inset-inline-start: 0; top: 7px; bottom: 7px; width: 1px; background: var(--line); content: ""; }
.ph-game-reactions button:hover { background: var(--panel); }
.ph-game-reactions button[aria-pressed="true"] { background: var(--panel); color: var(--link-color); }
.ph-game-reactions button:focus-visible { outline: 2px solid var(--link-color); outline-offset: -3px; }
.ph-game-reactions button svg { flex: none; width: 14px; height: 14px; }
.ph-game-reactions [data-reaction="dislike"] svg { transform: rotate(180deg); }
.player-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #69df6222; }
.player-tool-button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #ffffff08; color: var(--muted); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.player-tool-button:hover { background: #ffffff14; color: var(--text); }
.player-tool-button:disabled { cursor: default; }
.player-tool-button:disabled svg { opacity: .45; }
.ad-slot {width: 100%; text-align: center; margin:2px 0; padding: 2px; min-height: 280px;}
.game-summary-ad-layout { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(140px, .85fr); align-items: start; gap: 8px; }
.game-summary-content { display: grid; min-width: 0; align-content: start; gap: 8px; }
.game-info-card, .game-guide-card { padding: clamp(16px, 2vw, 24px); }
.game-info-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.game-info-heading .eyebrow { color: var(--link-color); }
.game-info-heading h1 { margin: 0 0 8px; font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.08; letter-spacing: -.04em; }
.game-summary { margin: 0; color: #c2c0bb; font-size: 1rem; line-height: 1.55; }
.game-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 20px 0 0; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.game-facts > div { display: grid; grid-template-columns: minmax(98px, 140px) minmax(0, 1fr); align-items: baseline; gap: 10px; min-width: 0; padding: 6px 0; }
.game-facts dt { margin: 0; color: var(--muted); font-size: 0.875rem; font-weight: 450; }
.game-facts dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; color: var(--text); font-size: 0.875rem; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.game-facts dd span { color: var(--muted); font-size: 0.75rem; font-weight: 400; }
.game-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.game-tags a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: #ffffff08; color: #dedbd5; font-size: 0.9375rem; }
/* .game-tags a span:last-child { color: var(--link-color); font-variant-numeric: tabular-nums; } */
.game-tags a:hover { border-color: #69df6266; color: var(--link-color); }
.game-guide-card { color: #c5c2bd; font-size: 1rem; line-height: 1.55; }
.game-guide-card > .eyebrow, .game-faq > .eyebrow { color: var(--link-color); }
.game-guide-card h2, .game-faq h2 { margin: 0 0 12px; color: var(--text); font-size: clamp(1.5rem, 2.5vw, 1.75rem); line-height: 1.25; letter-spacing: -.025em; }
.game-guide-card h3 { margin: 24px 0 7px; color: var(--text); font-size: 1.125rem; line-height: 1.4; }
.game-guide-card p { margin: 0 0 12px; }
.game-guide-card ul { margin: 5px 0 16px; padding-left: 22px; }
.game-guide-card li { padding-left: 2px; }

.game-faq { margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--line); }

.rail-games { display: grid; gap: 9px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.rail-games h2 { margin: 1px 0 2px; font-size: 1.25rem; }
.rail-game { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; min-height: 78px; padding: 6px; border-radius: 8px; color: #e8e5df; font-size: 0.875rem; font-weight: 650; line-height: 1.35; }
.rail-game:hover { background: #ffffff0c; }
.rail-game > img { display: block; width: 92px; height: 69px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.rail-game > span { display: -webkit-box; min-width: 0; min-height: 2.7em; align-self: center; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rail-game-info { display: grid; gap: 4px; min-width: 0; }
.rail-game-title { display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rail-game-plays { color: var(--muted); font-size: 0.75rem; font-weight: 400; }

.game-detail-page .bottom-actions { margin-top: 30px; }
@media (max-width: 1100px) {
  .content-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; }
  .content-rail { grid-template-columns: minmax(0, 1fr); }
  .game-summary-ad-layout { grid-template-columns: minmax(0, 2fr) minmax(0, .8fr); }
  .rail-game { grid-template-columns: 76px minmax(0, 1fr); }
  .rail-game img { width: 76px; }
}
@media (max-width: 800px) {
  .content-layout { grid-template-columns: minmax(0, 1fr); }
  .content-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .rail-games { grid-row: span 2; }
}
@media (max-width: 600px) {
.game-detail-page, .article-detail-page { width: auto; margin: 0; padding-top: calc(var(--header-height) + 14px); }
  .content-layout { gap: 12px; }
  .game-summary-ad-layout { grid-template-columns: minmax(0, 1fr); }
  .content-main, .content-rail { gap: 12px; }
  .content-rail { grid-template-columns: minmax(0, 1fr); }
  .rail-games { grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-games h2 { grid-column: 1 / -1; }
  .rail-game { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(2.7em, auto); align-content: start; align-items: start; gap: 6px; height: 100%; }
  .rail-game > img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .rail-game > span { min-height: 2.7em; align-self: start; }
  .player-toolbar { min-height: 42px; padding: 5px 9px; }
  .player-tools { gap: 5px; }
  .player-tool-button { width: 29px; height: 29px; }
  .game-info-card, .game-guide-card { padding: 15px; }
  .game-info-heading { gap: 8px; }
  .game-info-heading h1 { font-size: 2rem; }
  .game-facts { margin-top: 15px; padding: 7px 0; }
  .game-facts > div { grid-template-columns: minmax(88px, 104px) minmax(0, 1fr); gap: 8px; padding: 6px 0; }
}

/* Article detail pages share the game detail layout while keeping editorial content styles separate. */
.article-content-card { padding: clamp(20px, 3.2vw, 42px); font-size: 1rem; line-height: 1.55; }
.article-header { padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.article-header .eyebrow { margin-bottom: 10px; color: var(--link-color); }
.article-header h1 { margin: 0; color: var(--text); font-size: clamp(1.8rem, 4.3vw, 2rem); line-height: 1.08; letter-spacing: -.045em; }
.article-deck { margin: 15px 0 18px; color: #d0cdc7; font-size: clamp(1rem, 1.7vw, 1.125rem); line-height: 1.6; }
.article-byline { display: flex; flex-wrap: wrap; gap: 7px 17px; color: var(--text); font-size: 0.8125rem; font-weight: 650; }
.article-byline time { color: var(--muted); }
.article-toc h2 { margin: 0 0 7px; color: var(--text); font-size: 1.125rem; }
.article-toc { margin: 0 0 25px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 9px; background: #ffffff05; }
.article-toc ol { display: grid; gap: 7px; margin: 0; padding-left: 21px; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.article-reading-layout { display: grid; grid-template-columns: clamp(170px, 17vw, 220px) minmax(0, 1fr); gap: 16px; align-items: start; min-width: 0; }
.article-side-column { align-self: stretch; min-width: 0; }
.article-toc-floating { position: sticky; z-index: 5; top: calc(var(--header-height) + 16px); max-height: calc(100dvh - var(--header-height) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; background: var(--bg); }
.article-toc-toggle { display: none; }
.blog-article-page .article-content-card [id] { scroll-margin-top: calc(var(--header-height) + 24px); }
@media (max-width: 1000px) {
  .article-reading-layout { display: block; }
  .article-side-column { display: contents; }
  .article-toc-toggle { position: fixed; z-index: 18; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: block; padding: 12px 18px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; box-shadow: 0 4px 20px #0004; }
  .article-toc-floating { position: fixed; z-index: 18; top: auto; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: min(340px, calc(100vw - 32px)); max-height: calc(100dvh - var(--header-height) - 100px - env(safe-area-inset-bottom, 0px)); margin: 0; visibility: hidden; box-shadow: 0 8px 28px #0004; }
  .article-toc-floating.is-open { visibility: visible; }
  .article-toc-toggle:focus-visible { outline: 2px solid var(--link-color); outline-offset: 3px; }
}
.article-body { color: #c5c2bd; font-size: 1rem; line-height: 1.55; padding-top: 23px; }
.article-body img { max-width: 100%; height: auto; }
.article-body p { margin: 0 0 15px; }
.article-body h2 { margin: 30px 0 9px; color: var(--text); font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.3; letter-spacing: -.02em; scroll-margin-top: calc(var(--header-height) + 18px); }
.article-body ul { display: grid; gap: 7px; margin: 0 0 17px; padding-left: 22px; }
.article-body li { padding-left: 3px; }
.article-body strong { color: var(--text); }
/* Shared tables across blog posts, game content and pages. */
table { width: 100%; margin: 24px 0; border: 1px solid var(--line); border-spacing: 0; border-radius: 10px; background: var(--panel); color: var(--text); font-size: .875rem; line-height: 1.65; }
table caption { padding: 0 0 12px; color: var(--text); font-size: .9375rem; font-weight: 700; line-height: 1.5; text-align: left; }
table :is(th, td) { padding: 13px 16px; border: 0; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
table tr > * + * { border-left: 1px solid var(--line); }
table tr + tr > *, table thead + tbody > tr:first-child > *, table tfoot > tr:first-child > * { border-top: 1px solid var(--line); }
table th { font-weight: 650; }
table thead th { background: color-mix(in srgb, var(--green) 10%, var(--panel)); color: var(--text); }
table th[scope="row"] { width: 25%; min-width: 110px; background: var(--panel-raised); }
table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--panel-raised) 45%, var(--panel)); }
table tbody tr:hover { background: color-mix(in srgb, var(--green) 6%, var(--panel)); }
table > thead > tr:first-child > :first-child, table:not(:has(> thead)) > tbody:first-of-type > tr:first-child > :first-child { border-top-left-radius: 9px; }
table > thead > tr:first-child > :last-child, table:not(:has(> thead)) > tbody:first-of-type > tr:first-child > :last-child { border-top-right-radius: 9px; }
table > :is(tbody, tfoot):last-child > tr:last-child > :first-child { border-bottom-left-radius: 9px; }
table > :is(tbody, tfoot):last-child > tr:last-child > :last-child { border-bottom-right-radius: 9px; }
table a { color: var(--link-color); text-decoration: underline; text-underline-offset: 3px; }
table a:hover { color: var(--link-hover); }
table .num { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  table :is(th, td) { padding: 11px 12px; }
}
.article-detail-page .content-rail { align-content: start; }
.related-articles { align-content: start; }
.related-article-link { display: grid; gap: 5px; padding: 10px 8px; border-radius: 7px; }
.related-article-link:hover { background: #ffffff0c; }
.related-article-label { color: var(--link-color); font-size: 0.75rem; }
.related-article-link strong { color: #e8e5df; font-size: 0.875rem; line-height: 1.45; }
@media (max-width: 600px) {
  .article-content-card { padding: 18px 15px; }
  .article-header h1 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .article-byline { gap: 6px 10px; }
  .article-toc { padding: 14px; }
}

/* Game player launch cover, ad countdown and embedded game. */
.game-player > .game-embed { position: absolute; inset: 0; }
.game-embed iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: #000; }
.game-flash-frame { position: absolute; inset: 0; display: grid; place-items: center; background: #000; color: #fff; }
.game-flash-frame ruffle-player { width: 100%; height: 100%; }
.game-player-cover { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; min-width: 0; aspect-ratio: auto; overflow: hidden; isolation: isolate; border-radius: 0; box-shadow: none; }
.game-player-cover > img { position: relative; z-index: 1; display: block; width: 150px; height: 150px; object-fit: cover; border: 3px solid #fff; border-radius: 15px; box-shadow: 0 2px 5px #17212b45; }
.game-player-cover > img.game-player-blur { position: absolute; inset: -25px; width: calc(100% + 50px); height: calc(100% + 50px); object-fit: cover; filter: blur(8px) brightness(.5); border: 0; border-radius: 0; box-shadow: none; z-index: 0; pointer-events: none; }
.game-cover-title { position: relative; z-index: 1; max-width: calc(100% - 28px); margin: 0; color: #fff; font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 750; line-height: 1.25; text-align: center; text-shadow: 0 2px 8px #0007; }
.game-launch-button { position: relative; z-index: 1; display: inline-flex; width: min(180px, 70vw); height: 52px; min-height: 52px; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; transform: translateY(-1px); border: 1px solid #87e77d; border-bottom: 3px solid #4dbb46; border-radius: 9px; background: var(--green); color: #13310f; font-size: 1.5rem; font-weight: 750; letter-spacing: .045em; cursor: pointer; box-shadow: 0 3px 8px #0003, inset 0 1px #ffffff70; transition: transform .12s ease, background .15s ease, box-shadow .12s ease; }
.game-launch-button::before { content: "▶"; font-size: 1.5rem; letter-spacing: 0; }
.game-launch-button:hover { transform: translateY(-2px); background: #79e872; box-shadow: 0 5px 11px #0004, inset 0 1px #ffffff85; }
.game-launch-button:active { transform: translateY(1px); border-bottom-width: 1px; box-shadow: 0 1px 3px #0003, inset 0 2px 4px #277d2533; }
.game-launch-button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.game-player-ad { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; border-radius: 10px; background: #000; color: #fff; }
.game-ad-label { position: absolute; top: 12px; left: 14px; color: #ffffff80; font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; }
.game-ad-controls { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 8px; }
.game-ad-countdown { padding: 9px 13px; border: 1px solid #ffffff42; border-radius: 8px; background: #1d1d1ddd; color: #fff; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.game-ad-countdown strong { display: inline-grid; min-width: 1.2em; place-items: center; color: #a6f392; font-size: 1.125rem; }
.game-ad-skip, .search-button { min-height: 38px; padding: 0 13px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: #13310f; font-size: 0.8125rem; font-weight: 750; cursor: pointer; }
.game-ad-skip:hover:not(:disabled), .search-button:hover { background: var(--accent-hover); }
/* Search uses the shared accent-button styles above. */
.search-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 0 14px; border-radius: 6px; font-size: 0.875rem; transition: background .15s ease; }
.search-button svg { display: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.search-button:active { filter: brightness(.92); }
@media (max-width: 600px) {
  .search-button { width: 32px; min-height: 31px; padding: 0; }
  .search-form > svg { display: none; }
  .search-button svg { display: block; }
  .search-button-label { display: none; }
}
.game-ad-skip:disabled { border-color: #ffffff24; background: #333231; color: #aaa8a4; cursor: not-allowed; }
.game-player-card:fullscreen [data-comments-link] { display: none; }
body.game-lights-off::before { position: fixed; z-index: 1000; inset: 0; background: #000d; content: ""; }
.game-player-card.game-player-focus { position: relative; z-index: 1001; }
.game-player-card:fullscreen { display: grid; grid-template-rows: minmax(0, 1fr) auto; width: 100vw; height: 100vh; border: 0; border-radius: 0; background: #10131c; }
.game-player-card:fullscreen .game-player { min-height: 0; height: auto; aspect-ratio: auto; }

.game-comments-card { padding: clamp(16px, 2.2vw, 25px); scroll-margin-top: calc(var(--header-height) + 18px); }
.game-comments-card:focus { outline: 2px solid #69df624d; outline-offset: 3px; }
.game-comments-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.game-comments-title-wrap { display: flex; align-items: center; gap: 10px; }
.game-comments-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: #69df6219; color: var(--link-color); font-size: 0.75rem; }
.game-comments-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.game-comments-heading h2 { margin: 0; color: var(--text); font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.25; }
.game-comment-composer { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: start; gap: 12px; margin-bottom: 8px; }
.game-comment-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 50%; color: #fff; font-size: 1.125rem; font-weight: 750; }
.game-comment-avatar-self { background: #3b3a39; color: var(--link-color); }
.game-comment-composer textarea { width: 100%; min-height: 76px; resize: vertical; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #292827; color: var(--text); font: inherit; font-size: 1rem; line-height: 1.5; }
.game-comment-composer textarea::placeholder { color: #8d8b87; }
.game-comment-composer textarea:focus { border-color: #69df6275; box-shadow: 0 0 0 3px #69df6218; }
.game-comment-submit { display: grid; width: 40px; height: 40px; place-items: center; margin-top: 18px; border: 1px solid transparent; border-radius: 9px; background: var(--green); color: #13310f; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.game-comment-submit:hover { transform: translateY(-1px); background: var(--accent-hover); }
.game-comment-submit svg { width: 19px; height: 19px; fill: currentColor; }
.game-comments-note { margin: 0 0 18px; color: var(--muted); font-size: 0.8125rem; }
.game-comment-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
/* WordPress native comments, scoped to the game comment template. */
#game-comments .comment-reply-title { margin: 0 0 12px; font-size: 1.125rem; }
#game-comments .comment-reply-title small { margin-left: 12px; font-size: 0.8125rem; }
#game-comments .game-wordpress-comment-form p { margin: 0 0 14px; }
#game-comments .game-wordpress-comment-form label { display: block; margin-bottom: 6px; font-size: 0.875rem; }
#game-comments .game-wordpress-comment-form input:not([type="checkbox"]):not([type="hidden"]):not([type="submit"]) { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
#game-comments .game-wordpress-comment-form > :not([type="hidden"]) { grid-column: 1 / -1; min-width: 0; }
#game-comments .game-wordpress-comment-form .logged-in-as,
#game-comments .game-wordpress-comment-form .comment-notes { grid-column: 1 / -1; grid-row: 1; line-height: 1.5; overflow-wrap: anywhere; }
#game-comments .game-wordpress-comment-form .comment-form-comment { grid-column: 1 / 3; grid-row: 2; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: inherit; margin: 0; }
#game-comments .game-wordpress-comment-form .comment-form-comment label { margin: 0; }
@media (max-width: 600px) { #game-comments .game-wordpress-comment-form .comment-form-comment { grid-template-columns: 34px minmax(0, 1fr); } }
#game-comments .comment-form-comment textarea { grid-column: 2; }
#game-comments .game-wordpress-comment-form .form-submit { grid-column: 3; grid-row: 2; margin: 0; }
#game-comments .comment-form-cookies-consent label { display: inline; }
#game-comments .comment-notes, #game-comments .logged-in-as, #game-comments .comment-awaiting-moderation { color: var(--muted); font-size: 0.8125rem; }
#game-comments .comment-body { padding: 16px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; overflow-wrap: anywhere; }
#game-comments .comment-author .avatar { float: left; width: 42px; height: 42px; margin: 0 12px 8px 0; border-radius: 50%; }
#game-comments .comment-metadata { margin-top: 4px; color: var(--muted); font-size: 0.75rem; }
#game-comments .comment-content { clear: both; line-height: 1.5; }
#game-comments .comment-content p { margin: 10px 0; }
#game-comments .reply, #game-comments .comment-reply-title a { color: var(--link-color); font-size: 0.8125rem; }
#game-comments .children { margin: 0; padding-left: clamp(12px, 3vw, 36px); list-style: none; }
#game-comments .comments-pagination { margin-top: 16px; }
#game-comments .comments-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 600px) {
  .game-comments-card { padding: 15px; }
  .game-comments-heading { margin-bottom: 15px; }
  .game-comment-composer { grid-template-columns: 34px minmax(0, 1fr) 36px; gap: 8px; }
  .game-comment-avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 0.9375rem; }
  .game-comment-composer textarea { min-height: 72px; padding: 10px; }
  .game-comment-submit { width: 36px; height: 36px; }

}

.blog-list-section { min-width: 0; }
.blog-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 0 0 16px; }
.blog-list-heading .eyebrow { color: var(--link-color); }
.blog-list-heading h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.blog-article-count { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.75rem; white-space: nowrap; }
.blog-article-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 14px; }
.blog-article-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.blog-article-card:hover { transform: translateY(-2px); border-color: #69df624d; box-shadow: 0 9px 24px #0003; }
.blog-article-cover { width: 100%; flex: 0 0 auto; aspect-ratio: 16 / 10; border-radius: 0; box-shadow: none; }
.blog-article-cover::before { width: 45%; top: -34%; right: -15%; }
.blog-article-cover::after { width: 52%; bottom: -47%; left: -10%; }
.blog-article-cover .game-image { transition: transform .25s ease; }
.blog-article-card:hover .blog-article-cover .game-image { transform: scale(1.035); }
.blog-article-content { display: flex; min-height: 145px; flex: 1 1 auto; flex-direction: column; padding: 13px 14px 0; }
.blog-article-category { margin: 0 0 5px; color: var(--link-color); font-size: 0.75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.blog-article-content h2 { display: -webkit-box; margin: 0 0 15px; overflow: hidden; color: var(--text); font-size: clamp(1rem, 1.25vw, 1.125rem); font-weight: 700; line-height: 1.38; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.blog-article-description { margin: 0 0 14px; color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.blog-article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: auto; padding: 11px 0 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; }
.blog-article-meta span, .blog-article-byline > span { display: inline-flex; align-items: center; gap: 5px; }
.blog-article-meta svg, .blog-article-byline svg { width: 13px; height: 13px; flex: 0 0 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1100px) {
  .blog-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .blog-list-heading { margin-bottom: 12px; }
  .blog-article-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .blog-article-content { min-height: 130px; padding-inline: 13px; }

}

/* Complete SVG brand with responsive sizing and explicit site theme colors. */
:root { --logo-text-main: #FFFFFF; }
:root[data-theme="light"] { --logo-text-main: #0F172A; }
.brand .willing-games-logo { display: block; flex-shrink: 0; width: 246px; max-width: 100%; height: auto; aspect-ratio: 468 / 90; }
.header-brand-wrap .willing-games-logo { width: 291px; }
.footer-brand .willing-games-logo { width: 224px; }
@media (max-width: 680px) {
  .header-brand-wrap .willing-games-logo { width: 246px; }
  .footer-brand .willing-games-logo { width: 190px; }
}
@media (max-width: 600px) {
  .header-brand-wrap .brand { flex: 1; }
  .header-brand-wrap .willing-games-logo { width: min(100%, 310px); }
}
/* Shared SVG category icons: sidebar, mobile menu and homepage cards. */
.side-icon img { display: block; width: 24px; height: 24px; object-fit: contain; }
.mobile-category-icon { display: block; width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.category-icon img { display: block; width: 36px; height: 36px; object-fit: contain; }
.category-tile > span:last-child { min-width: 0; overflow-wrap: break-word; }

/* Monochrome SVGs loaded through img src: dark icons on light pages,
   inverted icons on dark pages. Category artwork keeps its own colors. */
.side-icon img.information-icon { filter: invert(1); opacity: .82; }
.side-link:hover .information-icon, .side-link:focus-visible .information-icon { opacity: 1; }
:root[data-theme="light"] .side-icon img.information-icon { filter: none; opacity: .72; }
:root[data-theme="light"] .side-link:hover .information-icon,
:root[data-theme="light"] .side-link:focus-visible .information-icon { opacity: 1; }

/* Site information is also available in the phone navigation menu. */
.mobile-information { display: flex; flex-direction: column; gap: 2px; }
.mobile-information > a { display: flex; flex: 0 0 auto; min-height: 36px; align-items: center; gap: 11px; padding: 7px 9px; border-radius: 8px; font-size: 0.875rem; white-space: normal; overflow-wrap: anywhere; }

.mobile-information .information-icon { filter: invert(1); opacity: .82; }
.mobile-information a:hover .information-icon, .mobile-information a:focus-visible .information-icon { opacity: 1; }
:root[data-theme="light"] .mobile-information .information-icon { filter: none; opacity: .72; }

/* Keep row spacing when navigation items are grouped by purpose. */
.mobile-shortcuts, .mobile-categories { display: flex; flex-direction: column; gap: 2px; }
.sidebar-shortcuts, .sidebar-categories, .sidebar-information,
.mobile-shortcuts, .mobile-categories, .mobile-information { flex-shrink: 0; }

/* Game technology badges. */
.game-cover > .game-technology-icon {
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 4px;
  display: block;
  width: auto;
  height: 18px;
  max-width: calc(100% - 8px);
  object-fit: contain;
  border-radius: 2px;
  pointer-events: none;
}

/*===== 适配WordPress原生 .navigation.pagination，复用category‑pagination设计 =====*/
.navigation.pagination {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 32px auto 38px;
  padding: 7px 10px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #ffffff08;
  border-radius: 999px;
  background: #242321;
}

.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
}
/* 所有页码共用基础布局，状态规则仅覆盖视觉差异。 */
.navigation.pagination .page-numbers {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  background: transparent;
  color: var(--text);
  text-decoration: none;
}

/* 上一页 / 下一页 */
.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
  background: #2e2d2b;
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.prev:hover,
.navigation.pagination .page-numbers.next:hover {
  background: #ffffff12;
}

/* 当前页 */
.navigation.pagination .page-numbers.current {
  border: 1px solid var(--green);
  font-weight: 750;
  background: transparent;
}

/* 省略号 dots → pagination‑ellipsis */
.navigation.pagination .page-numbers.dots {
  padding: 0 1px;
  color: var(--muted);
  cursor: default;
}

/* focus‑visible 焦点样式 */
.navigation.pagination .page-numbers:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/*===== 亮色主题适配（继承你已有的light变量）=====*/
:root[data-theme="light"] .navigation.pagination {
  border-color: var(--line);
  background: #fff;
}
:root[data-theme="light"] .navigation.pagination .page-numbers.prev,
:root[data-theme="light"] .navigation.pagination .page-numbers.next {
  background: #f0efff;
}
:root[data-theme="light"] .navigation.pagination .page-numbers.prev:hover,
:root[data-theme="light"] .navigation.pagination .page-numbers.next:hover,
:root[data-theme="light"] .navigation.pagination .page-numbers:hover {
  background: #e6e2ff;
}
/*===== 移动端适配，复制原category‑pagination 600px规则 =====*/
@media (max-width: 600px) {
  .navigation.pagination,
  .navigation.pagination .nav-links {
    gap: 3px;
  }
  .navigation.pagination {
    margin: 25px auto 28px;
    padding: 6px 8px;
  }
  .navigation.pagination .page-numbers {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }
}
/* Navigation remains a landmark inside the mobile dialog. */
.mobile-menu-navigation { display: flex; flex-direction: column; gap: 2px; }

/* Shared reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .game-hover-info { transition: none; }
}
/* Center official badge artwork, including Google Play's transparent padding. */
.game-store-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.game-store-links a, .game-store-links img { display: block; }
.game-store-links .game-store-steam { background: #000; border: 1px solid #a6a6a6; border-radius: 6px; }
.game-store-steam img { box-sizing: border-box; padding: 8px 12px; object-fit: contain; }

/* Shared share dialog; social buttons are generated on demand by ShareThis. */
.share-trigger { cursor: pointer; }
.share-trigger.side-link { width: 100%; border: 0; background: transparent; text-align: left; }
.share-trigger.side-link:hover, .share-trigger.side-link:focus-visible { background: #ffffff12; }
:root[data-theme="light"] .share-trigger.side-link:hover,
:root[data-theme="light"] .share-trigger.side-link:focus-visible { background: #f0efff; }
.share-icon { display: block; width: 18px; height: 18px; filter: invert(1); opacity: .82; }
.side-icon .share-icon, .mobile-share-button .share-icon { width: 24px; height: 24px; }
:root[data-theme="light"] .share-icon { filter: none; opacity: .72; }
.mobile-share-button { display: flex; flex: 0 0 36px; align-items: center; gap: 11px; min-height: 36px; padding: 0 9px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: .875rem; text-align: left; }
.mobile-share-button:hover { background: var(--panel-raised); }
.share-modal { position: fixed; z-index: 99998; inset: 0; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: #000b; }
.share-modal-panel { position: relative; width: min(100%, 600px); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); box-shadow: 0 20px 70px #0006; }
.share-modal-panel h2 { margin: 0 48px 12px 0; font-size: 1.5rem; }
.share-modal-panel > p { color: var(--muted); line-height: 1.5; }
.share-modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--panel-raised); color: var(--text); font-size: 1.5rem; cursor: pointer; }
.sharethis-share-buttons { min-height: 48px; margin: 20px 0; }
/* Keep networks visible when ShareThis measures the closed dialog at zero width. */
.sharethis-share-buttons .st-btn { display: inline-block !important; margin-bottom: 8px; }
.share-copy-row { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.share-copy-row input { flex: 1; min-width: 0; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: .875rem; }
.share-copy-row button { flex: 0 0 auto; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--green); color: #13310f; font: inherit; cursor: pointer; }
:root[data-theme="light"] .share-copy-row button { color: #fff; }
.share-copy-row button:hover { background: var(--accent-hover); }
.share-copy-status { min-height: 1.5em; margin-bottom: 0; font-size: .875rem; }
@media (max-width: 600px) {
  .share-modal { padding: 12px; }
  .share-modal-panel { padding: 22px 16px; max-height: calc(100dvh - 24px); }
  .share-modal-panel h2 { font-size: 1.25rem; }
  .share-copy-row button { padding-inline: 10px; font-size: .875rem; }
}
/* Hide unfilled units and their overflowing iframe descendants. */
.ad-slot ins.adsbygoogle[data-ad-status="unfilled"],
.google-auto-placed ins.adsbygoogle[data-ad-status="unfilled"] {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Optional game walkthrough: reserve space before the player loads. */
.player-tool-button.player-walkthrough { flex-shrink: 0; text-decoration: none; }
.game-video { margin-top: 24px; }
.game-video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #000; }
.game-video-cover { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.game-video-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.game-video-play { position: absolute; display: grid; place-items: center; width: 68px; height: 48px; border-radius: 12px; background: #c00; color: #fff; font-size: 24px; }
.game-video-cover:hover .game-video-play { background: #f00; }
.game-video-cover:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.game-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
