/* Game Head: scoped presentation; existing parent navigation remains functional. */
.gamehead-design {
    --gh-accent: #6831b3;
    --gh-accent-hover: #4d228d;
    --gh-ink: #20202b;
    --gh-muted: #595967;
    --gh-surface: #fff;
    --gh-bg: #f5f4f8;
    --gh-soft: #eee7f8;
    --gh-border: #e3dfea;
    --bloglo-primary: var(--gh-accent);
    --bloglo-primary_04: rgba(104,49,179,.04);
    --bloglo-primary_09: rgba(104,49,179,.09);
    --bloglo-primary_15: rgba(104,49,179,.15);
    color: var(--gh-ink);
    background: var(--gh-bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
[data-theme="dark"] .gamehead-design {
    --gh-accent: #c49af9;
    --gh-accent-hover: #dec2ff;
    --gh-ink: #eeeaf5;
    --gh-muted: #bab5c5;
    --gh-surface: #24202d;
    --gh-bg: #19161f;
    --gh-soft: #30263e;
    --gh-border: #44394f;
    --bloglo-primary_04: rgba(196,154,249,.04);
    --bloglo-primary_09: rgba(196,154,249,.09);
    --bloglo-primary_15: rgba(196,154,249,.15);
}
.gamehead-design :is(h1,h2,h3,h4,h5,h6,input,button,select,textarea) {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
/* Existing site CSS resets every element to 1.3rem. Restore inherited text rhythm. */
.gamehead-design :where(p,li,span,strong,em,a,ul,ol,blockquote,td,th,figcaption,label) { line-height: inherit; }
.gamehead-design #page :is(#content,.widget,.bloglo-widget,.bloglo-article,#bloglo-header-inner,.bloglo-nav-container,.site-navigation,.sub-menu) {
    background-color: var(--gh-surface);
    color: var(--gh-ink);
    border-color: var(--gh-border);
}
.gamehead-design #page :is(.entry-title,.entry-content h2,.entry-content h3,.entry-content h4,.widget-title,.wp-block-heading) { color: var(--gh-ink); }
.gamehead-design #page #bloglo-header-inner :is(.bloglo-nav,.bloglo-hamburger,.bloglo-header-widgets a) { color: var(--gh-ink); }
.gamehead-design #page .page-header { background-color: var(--gh-soft); color: var(--gh-ink); }
.gamehead-design #page .bloglo-widget { border-radius: 12px; }
.gamehead-design #page .entry-meta, .gamehead-design #page .entry-meta :is(a,span,time) { color: var(--gh-muted); }
.gamehead-design #page .entry-meta { font-size: 14px; }
.gamehead-design #page :is(.entry-category,.cat-links) a { background: var(--gh-accent); color: #fff; }
[data-theme="dark"] .gamehead-design #page :is(.entry-category,.cat-links) a { color: #21132e; }
.gamehead-design:is(.archive,.search) #page .bloglo-article { border-radius: 14px; box-shadow: none; }
.gamehead-design:is(.archive,.search) #page .entry-title { font-size: 24px; line-height: 1.35; letter-spacing: -.02em; overflow-wrap: anywhere; }
.gamehead-design:is(.archive,.search) #page .entry-image-link { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.gamehead-design:is(.archive,.search) #page .entry-image-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gamehead-design.single #page #content { border: 1px solid var(--gh-border); border-radius: 14px; box-shadow: none; }
.gamehead-design.single #page .bloglo-article { border: 0; border-radius: 0; background: transparent; }
[data-theme="dark"] .gamehead-design .bloglo-logo img { background: #fff; padding: 6px; border-radius: 8px; box-sizing: content-box; }
.gamehead-design :is(a,button,input,select,textarea,summary):focus-visible {
    outline: 3px solid var(--gh-accent);
    outline-offset: 4px;
}
.gamehead-design #page { background: var(--gh-bg); }
.gamehead-design #masthead { background: var(--gh-surface); color: var(--gh-ink); }
.gamehead-design #bloglo-header-inner .bloglo-logo-container > .bloglo-container { padding-top: 12px; padding-bottom: 12px; }
.gamehead-design .bloglo-logo .custom-logo, .gamehead-design .bloglo-logo img { max-height: 52px; width: auto; }
.gamehead-design .site-description { color: var(--gh-muted); }
.gamehead-design .bloglo-nav-container { border-top: 1px solid var(--gh-border); border-bottom: 1px solid var(--gh-border); }
.gamehead-design #bloglo-header-inner .bloglo-nav > ul > li > a { font-size: 15px; font-weight: 600; }
.gamehead-design .bloglo-container { max-width: 1240px; }
.gamehead-design .gh-wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.gamehead-design .gh-home { padding: 0 0 64px; }
.gamehead-design .gh-intro {
    display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 56px; padding-block: 54px 44px; align-items: center;
}
.gamehead-design .gh-eyebrow { color: var(--gh-accent); font-size: 12px; letter-spacing: .09em; font-weight: 750; margin: 0 0 14px; }
.gamehead-design .gh-intro h1 { font-size: clamp(32px, 3.4vw, 48px); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; color: var(--gh-ink); margin: 0 0 18px; max-width: 640px; }
.gamehead-design .gh-intro-text { font-size: 17px; line-height: 1.7; color: var(--gh-muted); max-width: 570px; margin: 0 0 24px; }
.gamehead-design .gh-search { display: flex; padding: 6px; border: 1px solid var(--gh-border); border-radius: 12px; background: var(--gh-surface); gap: 6px; max-width: 560px; }
.gamehead-design .gh-search input[type="search"] { flex: 1; min-width: 0; width: 100%; padding: 12px 10px; height: 48px; min-height: 48px; border: 0; background: transparent; box-shadow: none; color: var(--gh-ink); font-size: 15px; }
.gamehead-design .gh-search input::placeholder { color: var(--gh-muted); opacity: 1; }
.gamehead-design .gh-search button { border: 0; border-radius: 8px; background: var(--gh-accent); color: var(--gh-surface); font-size: 14px; font-weight: 700; padding: 12px 20px; margin: 0; cursor: pointer; min-height: 44px; }
.gamehead-design .gh-search button:hover { background: var(--gh-accent-hover); }
[data-theme="dark"] .gamehead-design .gh-search button { color: #21132e; }
.gamehead-design .gh-topics { padding: 24px; border: 1px solid var(--gh-border); border-radius: 16px; background: var(--gh-surface); }
.gamehead-design .gh-topics a { display: flex; gap: 16px; align-items: center; justify-content: space-between; color: var(--gh-ink); font-size: 16px; font-weight: 700; padding: 14px 0; border-top: 1px solid var(--gh-border); text-decoration: none; min-height: 48px; }
.gamehead-design .gh-topics a:hover { color: var(--gh-accent); }
.gamehead-design .gh-topics a > span:last-child { color: var(--gh-accent); }
.gamehead-design .gh-section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin-bottom: 20px; padding-top: 28px; border-top: 1px solid var(--gh-border); }
.gamehead-design .gh-section-heading h2 { font-size: 25px; font-weight: 750; letter-spacing: -.025em; color: var(--gh-ink); margin: 0; }
.gamehead-design .gh-section-heading > span { color: var(--gh-muted); font-size: 13px; }
.gamehead-design .gh-featured { margin-bottom: 32px; }
.gamehead-design .gh-featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gamehead-design #page .gh-featured-link { display: flex; flex-direction: column; min-width: 0; padding: 24px; background: var(--gh-surface); border: 1px solid var(--gh-border); border-radius: 14px; color: var(--gh-ink); text-decoration: none; }
.gamehead-design #page .gh-featured-link h3 { color: var(--gh-ink); font-size: 22px; line-height: 1.35; letter-spacing: -.02em; margin: 0 0 12px; overflow-wrap: anywhere; }
.gamehead-design .gh-featured-link p { color: var(--gh-muted); font-size: 14px; line-height: 1.75; margin: 0 0 16px; }
.gamehead-design #page .gh-featured-link:is(:hover,:focus-visible) h3 { color: var(--gh-accent); text-decoration: underline; text-underline-offset: 4px; }
.gamehead-design .gh-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gamehead-design .gh-card { min-width: 0; background: var(--gh-surface); border: 1px solid var(--gh-border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 3px 12px #24133b06; }
.gamehead-design .gh-card-media { display: block; aspect-ratio: 16 / 10; background: var(--gh-soft); overflow: hidden; }
.gamehead-design .gh-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.gamehead-design .gh-card-copy { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.gamehead-design .gh-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--gh-muted); font-size: 11px; margin-bottom: 13px; }
.gamehead-design .gh-category { background: var(--gh-soft); color: var(--gh-accent); border-radius: 5px; padding: 3px 8px; font-size: 11px; font-weight: 700; }
.gamehead-design .gh-card-title { font-size: 20px; line-height: 1.35; font-weight: 750; letter-spacing: -.02em; margin: 0 0 12px; overflow-wrap: anywhere; }
.gamehead-design #page .gh-card-link { display:flex; flex-direction:column; flex:1; min-width:0; color:var(--gh-ink); text-decoration:none; }
.gamehead-design #page .gh-card-title { color:var(--gh-ink); }
.gamehead-design #page .gh-card-link:is(:hover,:focus-visible) .gh-card-title { color:var(--gh-accent); text-decoration:underline; text-underline-offset:4px; }
.gamehead-design #page .gh-card-link:focus-visible { outline-offset:-3px; }
.gamehead-design .gh-card-media--empty { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; color:var(--gh-accent); background:radial-gradient(circle at 20% 20%,var(--gh-surface),transparent 65%),var(--gh-soft); border-bottom:1px solid var(--gh-border); }
.gamehead-design .gh-card-placeholder-brand { font-size:12px; font-weight:750; letter-spacing:.12em; }
.gamehead-design .gh-card-mark { display:block; width:56px; height:56px; }
.gamehead-design .gh-card-excerpt { font-size: 14px; line-height: 1.75; color: var(--gh-muted); margin: 0 0 20px; }
.gamehead-design .gh-card-more { margin-top: auto; padding-block: 4px; font-size: 13px; font-weight: 700; color: var(--gh-accent); text-decoration: underline; text-underline-offset: 4px; }
.gamehead-design .gh-page-heading { padding-block: 32px; }
.gamehead-design .gh-page-heading h1 { color: var(--gh-ink); font-size: 32px; }
.gamehead-design .gh-home .pagination { margin: 32px auto 0; text-align: center; }
.gamehead-design .gh-home .page-numbers { border-radius: 8px; }
.gamehead-design .entry-content { color: var(--gh-ink); font-size: 18px; line-height: 1.8; }
.gamehead-design .entry-content :is(p,ul,ol) { margin-bottom: 1.3em; }
.gamehead-design .entry-content p { max-width: 72ch; }
.gamehead-design .entry-content h2 { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.3; margin-block: 1.65em .6em; }
.gamehead-design .entry-content h3 { font-size: 22px; line-height: 1.4; margin-block: 1.4em .55em; }
.gamehead-design .entry-content a { color: var(--gh-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gamehead-design .entry-content :is(h2,h3,h4,[id]) { scroll-margin-top: 100px; }
.gamehead-design .entry-content .wp-block-table { max-width: 100%; overflow-x: auto; }
.gamehead-design .entry-content .wp-block-table table { width: 100%; }
.gamehead-design .entry-content .gh-comparison-table table { min-width: 580px; }
.gamehead-design .entry-content .gh-comparison-table figcaption { color: var(--gh-muted); font-size: 13px; line-height: 1.5; margin-top: 10px; }
.gamehead-design #page .entry-content table { line-height: 1.6; color: var(--gh-ink); }
.gamehead-design #page .entry-content table :is(thead,tbody,tfoot,tr,td,th) { line-height: inherit; border-color: var(--gh-border); }
.gamehead-design #page .entry-content table tbody tr { background: var(--gh-surface); }
.gamehead-design #page .entry-content table thead, .gamehead-design #page .entry-content table tbody tr:nth-child(odd) { background: var(--gh-soft); }
.gamehead-design .single .entry-title, .gamehead-design.single .entry-title { font-size: clamp(28px, 3vw, 42px); line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.gamehead-design #ez-toc-container { border: 1px solid var(--gh-border); background: var(--gh-surface); border-radius: 12px; padding: 20px; box-shadow: none; max-width: 100%; }
.gamehead-design .widget, .gamehead-design .bloglo-article { border-radius: 12px; border: 1px solid var(--gh-border); box-shadow: none; }
.gamehead-design .widget-title { color: var(--gh-ink); }
.gamehead-design #colophon { background: var(--gh-surface); border-top: 1px solid var(--gh-border); color: var(--gh-muted); }
@media (max-width: 980px) {
    .gamehead-design .gh-intro { gap: 28px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
    .gamehead-design .gh-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gamehead-design .gh-topics { padding: 20px; }
}
@media (max-width: 640px) {
    .gamehead-design .gh-featured-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .gamehead-design .gh-wrap { width: calc(100% - 40px); }
    .gamehead-design .gh-intro { grid-template-columns: minmax(0, 1fr); padding-block: 32px; gap: 24px; }
    .gamehead-design .gh-intro h1 { font-size: 36px; }
    .gamehead-design .gh-intro-text { font-size: 16px; }
    .gamehead-design .gh-search button { padding: 12px 14px; }
    .gamehead-design .gh-topics { padding: 18px 20px; }
    .gamehead-design .gh-topics a { padding-block: 11px; }
    .gamehead-design .gh-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .gamehead-design .gh-section-heading h2 { font-size: 24px; }
    .gamehead-design .gh-card-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .gamehead-design .gh-card-title { font-size: 22px; }
    .gamehead-design .entry-content { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .gamehead-design *, .gamehead-design *::before, .gamehead-design *::after { scroll-behavior: auto !important; }
}

/* Native color-scheme buttons retain Bloglo's moon/sun icon and visible focus. */
.gamehead-design button.gamehead-color-scheme { display:inline-flex; align-items:center; justify-content:center; width:44px; min-width:44px; min-height:44px; padding:0; border:0; border-radius:8px; background:transparent; color:inherit; cursor:pointer; line-height:1; }
.gamehead-design button.gamehead-color-scheme:focus-visible { outline:3px solid var(--gh-accent); outline-offset:3px; }
.gamehead-design .pyml-slide-item .gh-related-title { margin:0; font-size:20px; line-height:1.3; }
.gamehead-design .pyml-slide-item .gh-related-title a:is(:hover,:focus-visible) { color:var(--gh-accent); text-decoration:underline; }
@media (prefers-reduced-motion:reduce) { .gamehead-design .bloglo-darkmode-toogle { transition:none; } }
