/* Shared collection, navigation and member components. Theme colors live in theme-light/dark.css. */
/* One palette for links, solid actions, and focus rings; text and fill colors are deliberately separate. */
html[data-theme] {
    --gm-action:#1e3852;
    --gm-action-hover:#2a5272;
    --gm-on-action:#ffffff;
    --gm-focus:#c9a15d;
    --gm-control-radius:.5rem;
    --gm-card-radius:.85rem;
    --gm-shadow-soft:0 5px 18px rgba(12,30,40,.06);
}
html[data-theme="light"] { --gm-accent:#376887; --gm-accent-strong:#294f6b; --gm-accent-soft:#eaf1f6; }
html[data-theme="dark"] { --gm-accent:#93b8d2; --gm-accent-strong:#b7d1e3; --gm-accent-soft:#162a3d; }
/* Uploaded clips retain their native proportions and never upscale to fill the feed. */
.game-feed-post__media--video { aspect-ratio:auto; min-height:0; }
.game-feed-post__media--video video,
.game-clip-player video {
    display:block;
    width:auto;
    height:auto;
    max-width:100%;
    max-height:min(65vh,540px);
    max-height:min(65svh,540px);
    margin-inline:auto;
    object-fit:contain;
    background:#02070a;
}
.game-clip-player video { max-height:min(75vh,720px); max-height:min(75svh,720px); }
.game-feed-post__media--video video:fullscreen,
.game-clip-player video:fullscreen { width:100%; height:100%; max-width:none; max-height:none; }
/* Page canvases only: cards, navigation and artwork heroes keep their own surfaces. */
html[data-theme] body:not(.forum-theme),
html[data-theme] body:not(.forum-theme) > main:not(.gmh) {
    background-color: var(--gm-canvas-base) !important;
    background-image: radial-gradient(ellipse at 50% 0, var(--gm-canvas-glow), transparent 42rem),
        url('/img/gaming-pattern-v3.svg') !important;
    background-position: center top, center top !important;
    background-repeat: no-repeat, repeat !important;
    background-size: auto, 640px 480px !important;
}
/* Avoid skipped paint/lazy-image interactions on the already paginated library. */
.community-layout .game-vault-card { content-visibility:visible; contain-intrinsic-size:none; }
.community-layout .game-vault-card__art picture { position:absolute; inset:0; }
/* Scoped collection refinements; the existing site themes and game hero remain the foundation. */
.community-layout { --collection-surface:var(--gm-surface,#fff); --collection-line:var(--gm-border,#dfe7f0); --collection-ink:var(--gm-ink,#142034); --collection-muted:var(--gm-copy,#586a80); --collection-accent:var(--gm-accent,#0b94bc); }
.community-layout .collection-tools { display:flex; flex-wrap:wrap; gap:.5rem; margin:0 0 1rem; }
.community-layout .collection-tools[hidden], .community-layout .game-feed-card[hidden] { display:none!important; }
.community-layout .collection-tools :is(a,button) { padding:.55rem .8rem; border:1px solid var(--collection-line); border-radius:.5rem; color:var(--collection-ink); background:var(--collection-surface); font:inherit; font-size:.8rem; font-weight:700; text-decoration:none; }
.community-layout .collection-tools :is([aria-pressed="true"],[aria-current="page"]) { color:var(--collection-accent); border-color:var(--collection-accent); }
.community-layout .collection-tools span { margin-left:.3rem; opacity:.75; }
.community-layout :is(a,button,summary):focus-visible { outline:2px solid var(--collection-accent); outline-offset:4px; }
.community-layout .game-briefing { padding:1.25rem; min-height:0; margin-bottom:1rem; }
.community-layout .game-briefing h2 { font-size:1.25rem; margin:.5rem 0; }
.community-layout .game-briefing__signals { margin-top:1rem; }
.community-layout .hub-about summary { cursor:pointer; color:var(--collection-accent); padding:.4rem 0; font-weight:600; }
.community-layout .hub-about[open] summary { margin-bottom:.6rem; }
.community-layout .game-hub-live__heading { align-items:start; gap:1rem; }
.community-layout .game-hub-live--signal .game-hub-live__grid { background:var(--collection-surface); box-shadow:none; }
.community-layout .game-hub-live--signal .game-feed-card__body > strong { font-size:1rem; line-height:1.4; }
.community-layout .game-hub-live--signal .game-feed-card__body > span { font-size:.8rem; color:var(--collection-muted); }
.community-layout .game-page--vault .glitch-signal-list--game .glitch-signal-card { grid-template-columns:190px minmax(0,1fr); padding:1rem 0; }
.community-layout .game-page--vault .glitch-signal-list--game .glitch-signal-card__media { height:auto; aspect-ratio:16/9; }
.community-layout .glitch-signal-card__body { overflow-wrap:anywhere; }
.community-layout.game-vault .game-vault-hero { min-height:0; padding-top:1.65rem; padding-bottom:2.45rem; }
.content-index__hero { padding:1.2rem 1.4rem; margin-bottom:1.2rem; }
.news-hero { min-height:0; padding:1.85rem 0 2.65rem; }
.mod-detail__hero { min-height:0; padding:1.45rem 0 3.5rem; }
.mod-detail__breadcrumbs { margin-bottom:1rem; }
.mod-detail__hero h1 { font-size:clamp(2rem,4.25vw,3.35rem); }
.community-layout.game-vault .game-vault-card__body { padding:1rem; }
.community-layout.game-vault .game-vault-card__body h2 { font-size:1.1rem; line-height:1.4; }
.community-layout.game-vault .game-vault-card__metrics a { min-height:38px; }
.community-layout.mod-vault .mod-vault__hero { padding:2.5rem 0 3.5rem; }
.community-layout.mod-vault .mod-vault__hero-grid { gap:2rem; }
.community-layout.mod-vault .mod-vault__toolbar { gap:.75rem; padding:1rem; border-radius:1rem; }
.community-layout.mod-vault .mod-vault__toolbar :is(input,select,button) { min-height:46px; font-size:.875rem; }
.community-layout.mod-vault .mod-vault__toolbar :is(input,select) { color:var(--collection-ink); background:var(--collection-surface); border:1px solid var(--collection-line); min-width:0; }
.community-layout.mod-vault .mod-vault__side { align-content:start; }
.community-layout.mod-vault .mod-vault-card__body > strong { overflow-wrap:anywhere; }
.community-layout.mod-vault .mod-vault-card__body > span { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.community-layout.mod-vault .mod-vault-card:hover { border-color:var(--collection-accent); }
.community-layout .mod-install-guide li::marker { color:var(--collection-accent); font-weight:800; }
.community-layout .mod-install-guide strong { color:var(--collection-ink); }
.community-layout .mod-faq details { border-top:1px solid var(--collection-line); padding:.75rem 0; }
.community-layout .mod-faq summary { cursor:pointer; font-size:.85rem; font-weight:700; line-height:1.5; }
.community-layout .mod-faq p { margin:.65rem 0 0; color:var(--collection-muted); font-size:.8rem; line-height:1.7; }
.community-layout.mod-vault .mod-vault__hero h1 { font-size:clamp(2rem,4vw,3.5rem); line-height:1.08; }
.community-layout.mod-vault .mod-vault__main { background:var(--bs-body-bg, #0b1723); }
.community-layout.mod-vault .mod-vault__heading h2 { color:var(--collection-ink); }
.community-layout.mod-vault .mod-vault__heading small { color:var(--collection-muted); }
.community-layout.mod-vault .mod-vault__toolbar { background:var(--collection-surface); border:1px solid var(--collection-line); }
.community-layout.mod-vault .mod-vault__layout { grid-template-columns:minmax(0,1fr) 300px; gap:1.5rem; }
.community-layout.mod-vault .mod-vault__layout > * { min-width:0; }
.community-layout.mod-vault .mod-vault__grid { grid-template-columns:minmax(0,1fr); gap:.65rem; }
.community-layout.mod-vault .mod-vault-card { display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--collection-line); border-radius:.85rem; color:var(--collection-ink); background:var(--collection-surface); box-shadow:none; }
.community-layout.mod-vault .mod-vault-card__media { height:auto; aspect-ratio:16/9; flex-shrink:0; }
.community-layout.mod-vault .mod-vault-card__media img { width:100%; height:100%; object-fit:contain; }
.community-layout.mod-vault .mod-vault-card:hover .mod-vault-card__media img,
.community-layout .game-feed-card--mod:hover .game-feed-card__media img { transform:none; }
.community-layout .game-feed-card--mod .game-feed-card__media img { object-fit:contain; }
.community-layout.mod-vault .mod-vault-card__body { display:flex; flex:1; flex-direction:column; padding:1.15rem; gap:.5rem; }
.community-layout.mod-vault .mod-vault-card__body > strong { color:var(--collection-ink); font-size:1.1rem; line-height:1.35; }
.community-layout.mod-vault .mod-vault-card__body > span { color:var(--collection-muted); font-size:.85rem; line-height:1.6; }
.community-layout.mod-vault .mod-vault-card__body > b { margin-top:auto; padding-top:.8rem; border-top:1px solid var(--collection-line); color:var(--collection-muted); }
.community-layout.mod-vault .mod-vault-card__body .mod-creator { color:var(--collection-muted); font-size:.7rem; text-transform:none; letter-spacing:0; }
.community-layout.mod-vault .mod-vault__side { position:static; display:grid; gap:1rem; border:0; background:none; box-shadow:none; overflow:visible; }
.community-layout .mod-resource { padding:1.1rem; border:1px solid var(--collection-line); border-radius:.85rem; background:var(--collection-surface); color:var(--collection-ink); }
.community-layout .mod-resource > small { color:var(--collection-accent); font-size:.65rem; text-transform:uppercase; letter-spacing:.08em; font-weight:800; }
.community-layout .mod-resource h2 { font-size:1rem; line-height:1.4; margin:.35rem 0 1rem; color:var(--collection-ink); }
.community-layout .mod-popular { padding-left:1.2rem; margin:0; }
.community-layout .mod-popular li { padding:.65rem 0 .65rem .3rem; border-top:1px solid var(--collection-line); color:var(--collection-accent); }
.community-layout .mod-popular a { text-decoration:none; color:var(--collection-ink); }
.community-layout .mod-popular strong { display:block; font-size:.85rem; line-height:1.4; }
.community-layout .mod-popular span { display:block; margin-top:.3rem; font-size:.72rem; color:var(--collection-muted); }
.community-layout .mod-game-links > a { display:flex; justify-content:space-between; gap:.75rem; padding:.65rem 0; font-size:.8rem; color:var(--collection-ink); text-decoration:none; border-bottom:1px solid var(--collection-line); }
.community-layout .mod-game-links > a.active { color:var(--collection-accent); font-weight:800; }
.community-layout .mod-game-links .mod-vault__side-head { padding:0 0 .7rem; background:none; }
.community-layout .mod-game-links .mod-vault__side-head span { color:var(--collection-ink); }
.community-layout .mod-checklist { padding-left:1.15rem; margin:0; color:var(--collection-muted); font-size:.8rem; line-height:1.65; }
.community-layout .mod-checklist li + li { margin-top:.65rem; }
.community-layout .mod-resource-note { color:var(--collection-muted); font-size:.75rem; margin:.8rem 0 0; }
.community-layout.mod-vault .mod-vault__side-cta { border-radius:.85rem; padding:1.25rem; }
@media(max-width:991px) {
 .community-layout.mod-vault .mod-vault__layout { grid-template-columns:1fr; }
 .community-layout.mod-vault .mod-vault__side { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:575px) {
 .community-layout.mod-vault .mod-vault__stats { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.4rem; }
 .community-layout.mod-vault .mod-vault__stats > div { padding:.8rem .3rem; }
 .community-layout.mod-vault .mod-vault__stats strong { font-size:1.3rem; }
 .community-layout.mod-vault .mod-vault__stats span { font-size:.65rem; }
 .community-layout.mod-vault .mod-vault__grid,.community-layout.mod-vault .mod-vault__side { grid-template-columns:1fr; }
 .community-layout .game-hub-live__heading { flex-direction:column; }
 .community-layout .game-page--vault .glitch-signal-list--game .glitch-signal-card { grid-template-columns:112px minmax(0,1fr); }
 .community-layout .game-hub-live--signal .game-feed-card__body > strong { font-size:.9rem; }
 .community-layout .game-briefing { padding:1rem; }
}
/* Shared navigation and membership promotion, with both themes supported. */
.gm-premium-promo { padding:1.2rem; margin:1rem 0; border:1px solid #655838; border-radius:.85rem; color:#e9eff4; background:linear-gradient(140deg,#202b32,#14222d); }
.gm-premium-promo__eyebrow { color:#f5d28a; font-size:.7rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.gm-premium-promo h2 { margin:.7rem 0 .5rem; font-size:1.15rem; line-height:1.4; color:#f3f7fa; }
.gm-premium-promo p { font-size:.85rem; line-height:1.6; color:#bdccd6; }
.gm-premium-promo > div { display:flex; flex-wrap:wrap; align-items:center; gap:.8rem; justify-content:space-between; }
.gm-premium-promo strong { font-size:1rem; color:#f5d28a; }
.gm-premium-promo small { font-size:.75rem; }
.gm-premium-promo a { display:inline-flex; align-items:center; gap:.6rem; padding:.65rem .8rem; border-radius:.5rem; background:#f5d28a; color:#201a0d; text-decoration:none; font-size:.8rem; font-weight:800; }
.gm-header .dropdown-item { min-height:44px; }
.gm-header .nav-link:focus-visible { outline:2px solid var(--gm-focus); outline-offset:3px; }

/* A tighter command-deck header keeps the primary routes readable without
   making the navigation compete with page content. */
#header .gm-navbar { min-height: 66px; }
#header .gm-navbar .navbar-nav { gap: .08rem; }
#header .gm-navbar .nav-link { min-height: 38px; padding-inline: .58rem !important; font-size: .75rem; }
#header .gm-nav-secondary-start { margin-left: .2rem; padding-left: .2rem; border-left: 1px solid rgba(137,184,214,.14); }
#header .gm-utility-nav { gap: .08rem; }
#header .gm-message-link { padding-inline: .55rem !important; }
@media (min-width: 1200px) {
    #header .gm-brand__name { font-size: 1.32rem; }
    #header .gm-brand__tagline { font-size: .4rem; }
}
@media (max-width: 1199.98px) {
    #header .gm-navbar { min-height: 60px; }
    #header .gm-nav-secondary-start { margin-left: 0; padding-left: 0; border-left: 0; }
}
/* Search fields sit inside styled labels; keep the inner surface transparent. */
html[data-theme] .game-vault-search :is(input,select) { background:transparent; box-shadow:none; border:0; min-height:44px; color:inherit; }
html[data-theme] .game-vault-search label { color:var(--gm-ink,#eaf5fb); }
html[data-theme] .game-vault-search input::placeholder { color:var(--gm-copy,#9aafbd); opacity:1; }
html[data-theme] .game-vault-search :is(input,select):focus-visible { outline:2px solid var(--gm-accent,#2b8a9d); outline-offset:3px; }
.hub-start { margin:0 0 1.5rem; padding:1.1rem; border:1px solid var(--gm-border,#d9e3e9); border-radius:.85rem; background:var(--gm-surface,#fff); }
.hub-start h2 { margin:0 0 .5rem; font-size:1.3rem; }
.hub-start p { margin:0; color:var(--gm-copy,#526b7a); font-size:.9rem; line-height:1.6; }
.hub-start__links { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1rem; }
.hub-start__links a { padding:.65rem .85rem; border:1px solid var(--gm-border,#d9e3e9); border-radius:.5rem; color:var(--gm-accent,#087b9b); text-decoration:none; font-size:.85rem; font-weight:700; }
/* A compact overview lead, separate from the full game hero. */
.hub-start--game { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:1.5rem; padding:1.35rem 1.5rem; border-top:0; border-left:3px solid #2b8a9d; background:var(--gm-surface,#fff); }
.hub-start--game > .hub-start__links { display:flex; flex-direction:column; margin:0; align-items:stretch; text-align:center; }
.hub-start--game .hub-start__intro p { margin:0; max-width:42rem; font-size:.9rem; line-height:1.6; }
.hub-start__intro { min-width:0; }
.hub-start__eyebrow { display:block; margin-bottom:.65rem; color:var(--gm-accent,#087b9b); font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.1em; }
.hub-start--game h2 { max-width:36rem; font-size:clamp(1.35rem,2.3vw,1.85rem); line-height:1.2; letter-spacing:-.025em; margin-bottom:.65rem; }
.hub-start--game .hub-start__links a:first-child { background:#2b8a9d; color:#082331; border-color:#2b8a9d; }
.hub-start__activity { display:grid; grid-template-columns:repeat(2,minmax(80px,1fr)); gap:.65rem; }
.hub-start__activity:empty { display:none; }
.hub-start__activity > div { padding:.85rem; border:1px solid var(--gm-border,#d9e3e9); border-radius:.65rem; text-align:center; }
.hub-start__activity strong { display:block; color:var(--gm-ink,#263c4c); font-size:1.4rem; line-height:1.2; }
.hub-start__activity span { display:block; margin-top:.3rem; color:var(--gm-copy,#526b7a); font-size:.7rem; }
@media(max-width:767px) { .hub-start--game { grid-template-columns:1fr; padding:1.1rem; gap:1rem; } .hub-start__activity { grid-template-columns:repeat(auto-fit,minmax(90px,1fr)); } }
/* Optional grid; the default keeps the compact list. */
.community-layout .game-page--vault .glitch-signal-list--game.is-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; padding:0; border:0; background:transparent!important; box-shadow:none; }
.community-layout .game-page--vault .glitch-signal-list--game.is-grid > .glitch-signal-card:nth-child(n) { display:flex; flex-direction:column; grid-column:auto; grid-row:auto; min-width:0; padding:0; overflow:hidden; border:1px solid var(--gm-border); border-radius:.85rem; background:var(--gm-surface); }
.community-layout .game-page--vault .glitch-signal-list--game.is-grid > .glitch-signal-card:nth-child(n) .glitch-signal-card__media { width:100%; height:auto; min-height:0; aspect-ratio:16/9; border-radius:0; }
.community-layout .game-page--vault .glitch-signal-list--game.is-grid > .glitch-signal-card:nth-child(n) .glitch-signal-card__body { flex:1; min-height:0; padding:1rem; }
.community-layout .game-page--vault .glitch-signal-list--game.is-grid .glitch-signal-card__title { font-size:1rem; line-height:1.45; }
@media(max-width:639px) { .community-layout .game-page--vault .glitch-signal-list--game.is-grid { grid-template-columns:1fr; } }
@media(min-width:1200px) { .community-layout .game-page--vault .glitch-signal-list--game.is-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.game-glitch-view { display:flex; justify-content:flex-end; gap:.4rem; margin:.75rem 0; }
.game-glitch-view[hidden] { display:none; }
.game-glitch-view button { padding:.5rem .8rem; border:1px solid var(--gm-border); border-radius:.5rem; background:var(--gm-surface); color:var(--gm-ink); font:inherit; font-size:.8rem; }
.game-glitch-view button[aria-pressed="true"] { border-color:#159bc0; background:#2b8a9d; color:#082331; }
.game-glitch-view button:focus-visible { outline:2px solid #159bc0; outline-offset:3px; }
/* Isolate username markup from legacy rules that style every nested span. */
.gm-member-identity,
.gm-member-identity > .gm-member-name {
    all: unset !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
.gm-member-identity {
    display: inline-flex !important;
    align-items: center !important;
    gap: .3em !important;
    vertical-align: baseline !important;
    white-space: nowrap !important;
}
.gm-member-identity > .gm-member-name {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.gm-premium-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: clamp(13px, 1em, 22px);
    height: clamp(13px, 1em, 22px);
    overflow: visible;
    vertical-align: -.12em;
    filter: none;
}
.gm-premium-icon__seal { fill: #e8b747; }
.gm-premium-icon__star { fill: #503711; }
/* Fixed metrics prevent header links and narrow author columns growing. */
:where(a, strong, b, small, span, h1, h2, h3):has(> .gm-member-identity) {
    min-width: 0;
    max-width: 100%;
}
#header .gm-user-link__copy strong,
#header .gm-account-home strong { line-height: 1.4; }
.gm-member-identity > .gm-premium-icon { align-self: center; }
/* Forum access labels stay separate from the compact username emblem. */
.gm-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    max-width: 100%;
    padding: .3em .65em;
    border: 1px solid #dec477;
    border-radius: .4rem;
    background: #fff5d5;
    color: #765117;
    font-size: .65rem;
    font-weight: 750;
    line-height: 1.4;
    vertical-align: middle;
}
.gm-premium-badge > .bi { flex: none; line-height: 1; }
/* Premium identity: fixed-size gold insignia and readable names in both themes. */
.gm-member-identity > .gm-member-name { color:#876017!important; font-weight:800!important; }
.gm-premium-icon { filter:drop-shadow(0 1px 2px #80570030); }
.profile-identity-card:has(.gm-member-identity) { border-color:#b08a42; box-shadow:0 0 0 1px #c99d4930,0 16px 40px #0002; }
.profile-identity-card:has(.gm-member-identity) .profile-avatar { border:3px solid #d5ad56; box-shadow:0 0 0 5px #c99d491c; }
.profile-identity-card:has(.gm-member-identity)::before { content:"PREMIUM MEMBER"; display:block; position:absolute; right:1rem; top:.7rem; color:#876017; font-size:.6rem; font-weight:800; letter-spacing:.1em; }
.profile-identity-card:has(.gm-member-identity) { position:relative; padding-top:2.1rem; }
@media(prefers-reduced-motion:reduce) { .gm-premium-icon { filter:none; } }
/* Member emphasis is scoped to the real author identity, never quoted content. */
.forum-post:has(> .forum-post__author .forum-post__username > .gm-member-identity) { border-color:#ae8845; }
.forum-post__author:has(.forum-post__username > .gm-member-identity) { background:linear-gradient(160deg,#fff6dd,#f8fafb); border-right-color:#d5bc82; }
.forum-post__author:has(.forum-post__username > .gm-member-identity) .forum-post__avatar { outline:3px solid #d5ad56; box-shadow:0 0 0 6px #c99d4920; }
.forum-post__username:has(> .gm-member-identity)::after { content:"PREMIUM MEMBER"; display:block; width:fit-content; margin:.55rem 0 .2rem; padding:.3rem .55rem; border:1px solid #c6a35b; border-radius:.4rem; background:#fff1c9; color:#745014; font-size:.58rem; font-weight:800; letter-spacing:.08em; line-height:1.4; }
.content-discussion__reply:has(.content-discussion__author > a > .gm-member-identity) { border-left:3px solid #c6a35b; }
.content-discussion__reply:has(.content-discussion__author > a > .gm-member-identity) > .content-discussion__avatar img { outline:2px solid #c6a35b; outline-offset:2px; }
.gm-comment__author:has(> .gm-member-identity) { padding:.15rem .4rem; border-radius:.35rem; background:#c99d4914; }
#header .gm-user-link:has(.gm-member-identity) { border-color:#b08a42; }
.forum-post:has(> .forum-post__author .forum-post__username > .gm-member-identity) { border-color:#ae8845!important; }
/* A single surface for fields nested inside a styled search label. */
html[data-theme] .game-library-tools .game-library-tools__search input { background:transparent; border:0; box-shadow:none; color:inherit; min-height:42px; }
html[data-theme] .game-library-tools__search { color:var(--game-ink,var(--gm-ink)); }
html[data-theme] .game-library-tools__search input:focus-visible { outline:2px solid var(--gm-accent,#168eaf); outline-offset:2px; }
/* Keep Premium author furniture aligned with the normal forum author column. */
.forum-post__username:has(> .gm-member-identity)::after { margin:.55rem auto .2rem; border-radius:.35rem; padding:.25rem .45rem; font-size:.55rem; letter-spacing:.055em; }
.forum-post__author:has(.forum-post__username > .gm-member-identity) .forum-post__avatar { outline-width:2px; outline-offset:2px; box-shadow:none; }
@media(max-width:767.98px) { .forum-post__username:has(> .gm-member-identity)::after { margin-left:0; margin-right:0; } }
/* Search labels supply the field surface, including the forum page filter. */
.game-instant-demo { margin-bottom:1rem; padding:1.2rem; border:1px solid var(--gm-border,#d9e3e9); border-top:3px solid #4bc8e8; border-radius:.85rem; background:var(--gm-surface,#fff); color:var(--gm-ink,#263c4c); }
.game-instant-demo__label { color:var(--gm-accent,#087b9b); font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.game-instant-demo h2 { margin:.65rem 0; font-size:1.15rem; line-height:1.4; }
.game-instant-demo p { font-size:.85rem; line-height:1.6; }
.game-instant-demo a { display:flex; align-items:center; justify-content:space-between; gap:.5rem; padding:.7rem .85rem; border-radius:.5rem; background:#2b8a9d; color:#082331; text-decoration:none; font-size:.8rem; font-weight:800; }
.game-instant-demo small { display:block; margin-top:.7rem; color:var(--gm-copy,#526b7a); font-size:.7rem; line-height:1.5; }
html[data-theme] .forum-thread-tools .forum-thread-tools__search input { background:transparent!important; border:0; box-shadow:none; color:inherit; min-height:42px; }
html[data-theme] .forum-thread-tools__search input::placeholder { color:var(--gm-copy,#526b7a); opacity:1; }
/* Webmaster identity is distinct from paid membership. */
.gm-member-identity--webmaster > .gm-member-name { color:#805a12!important; font-weight:900!important; }
.gm-webmaster-icon { display:inline-block; width:1.05em; height:1.05em; flex:none; color:#b88721; }
.forum-post--webmaster { border-color:#b58a32!important; }
.forum-post--webmaster .forum-post__author { background:linear-gradient(150deg,#fff3cf,#f5f8fb)!important; }
.forum-post--webmaster .forum-post__avatar { outline:2px solid #e3b94f!important; outline-offset:3px; box-shadow:none!important; }
.forum-post--webmaster .forum-post__username::after { display:none!important; }
.forum-post--webmaster .forum-badge--webmaster { background:#fff0bd; border:1px solid #c59a3c; color:#67450a; border-radius:.45rem; padding:.4rem .65rem; box-shadow:none; }
.profile-identity-card:has(.gm-member-identity--webmaster)::before { content:"WEBMASTER Â· SITE OWNER"; color:#805a12; }
.profile-identity-card:has(.gm-member-identity--webmaster) { border-color:#b58a32; }
.profile-identity-card:has(.gm-member-identity--webmaster) .profile-avatar { border-color:#e3b94f; box-shadow:none; }
/* Reduce author-column bulk without hiding gamer identities or contribution stats. */
body.forum-theme > main.forum-thread-page .forum-post__author { padding:1rem .8rem; }
body.forum-theme > main.forum-thread-page .forum-post__avatar { width:4.5rem; height:4.5rem; }
body.forum-theme > main .forum-post__signature { margin-top:1.25rem; }
/* Clip every author/content surface to one consistent post outline. */
body.forum-theme > main.forum-thread-page .forum-post {
    border-radius:.85rem;
    overflow:hidden;
    clip-path:inset(0 round .85rem);
    isolation:isolate;
}
.forum-post--webmaster > .forum-post__main { position:relative; isolation:isolate; overflow:hidden; }
.forum-post--webmaster > .forum-post__main > :not(.forum-post__watermark) { position:relative; z-index:1; }
.forum-post__watermark { position:absolute; z-index:0; right:.08em; bottom:.02em; pointer-events:none; user-select:none; font-size:clamp(8rem,20vw,19rem); font-weight:950; line-height:.85; letter-spacing:-.08em; color:#91650e; opacity:.065; transform:rotate(-10deg); transform-origin:center; }
/* Mod directories use the same visual rhythm as the glitch archive grids. */
.community-layout .mod-catalog-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; align-content:start; }
.community-layout .mod-catalog-list > :is(.mod-vault-card,.game-mod-card) { display:flex; min-width:0; flex-direction:column; padding:0; overflow:hidden; border-radius:.85rem; text-decoration:none; box-shadow:none; transform:none; }
.community-layout .mod-catalog-list :is(.mod-vault-card__media,.game-mod-card__media) { position:relative; width:100%; height:auto; min-height:0; aspect-ratio:16/9; border-radius:0; background:var(--collection-surface); overflow:hidden; }
.community-layout .mod-catalog-list :is(.mod-vault-card__media,.game-mod-card__media) img { position:static; width:100%; height:100%; object-fit:contain; transform:none; }
.community-layout .mod-catalog-list :is(.mod-vault-card__type,.mod-vault-card__open,.game-mod-card__badge) { display:inline-flex; }
.community-layout .mod-catalog-list :is(.mod-vault-card__body,.game-mod-card__body) { display:flex; flex:1; min-width:0; flex-direction:column; padding:1rem; gap:.35rem; }
.community-layout .mod-catalog-list :is(.mod-vault-card__body > strong,.game-mod-card__title) { margin:0; font-size:1rem; line-height:1.4; white-space:normal; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.community-layout .mod-catalog-list :is(.mod-vault-card__body > span,.game-mod-card__text) { margin:0; font-size:.82rem; line-height:1.5; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; }
.community-layout .mod-catalog-list :is(.mod-vault-card__body > b,.game-mod-card__footer) { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.4rem 1rem; margin:.35rem 0 0; padding:0; border:0; font-size:.72rem; line-height:1.5; }
.community-layout .mod-catalog-list .mod-vault-card__body > small { font-size:.7rem; line-height:1.4; }
.community-layout .mod-catalog-list > a:focus-visible { outline:2px solid var(--collection-accent); outline-offset:3px; }
@media(max-width:767px) {
 .community-layout .mod-catalog-list { grid-template-columns:1fr; }
 .community-layout .mod-catalog-list :is(.mod-vault-card__body > strong,.game-mod-card__title) { font-size:.9rem; }
}
/* Context cards inherit the active game palette in either theme. */
.game-sidebar .game-side-context__body { padding:1rem; font-size:.82rem; line-height:1.65; color:var(--bs-body-color); }
.game-sidebar .game-side-context__body p { margin:.55rem 0 1rem; }
.game-sidebar .game-side-context__body ol { padding-left:1.15rem; margin:0 0 1rem; }
.game-sidebar .game-side-context__body li + li { margin-top:.5rem; }
.game-sidebar .game-side-context__body a { font-weight:700; text-decoration:none; }
.game-sidebar .game-side-mod-link { display:grid; grid-template-columns:56px minmax(0,1fr); gap:.75rem; width:100%; align-items:center; text-decoration:none; color:inherit; }
.game-sidebar .game-side-mod-link img { width:56px; height:56px; object-fit:contain; border-radius:.4rem; }
.game-sidebar .game-side-mod-link strong { display:block; font-size:.82rem; line-height:1.4; overflow-wrap:anywhere; }
.game-sidebar .game-side-mod-link small { display:block; font-size:.72rem; margin-top:.3rem; opacity:.75; }
/* Game hub discussions use the same scan-friendly hierarchy as forum category rows. */
.game-discussion-list { display:grid; gap:.6rem; }
.game-discussion-row { display:grid; grid-template-columns:2.75rem minmax(0,1fr) auto 14px; align-items:center; gap:.8rem; min-width:0; padding:.8rem; border:1px solid var(--gm-border,#d9e3e9); border-left:3px solid transparent; border-radius:.8rem; color:inherit; background:var(--gm-surface,#fff); text-decoration:none; transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease; }
.game-discussion-row:hover { color:inherit; border-left-color:var(--gm-accent,#0e99c2); background:var(--gm-surface-raised,#f8fbfd); box-shadow:0 8px 22px rgba(15,50,70,.08); transform:translateY(-1px); }
.game-discussion-row:focus-visible { outline:2px solid var(--gm-accent,#0e99c2); outline-offset:3px; }
.game-discussion-row.is-pinned { border-left-color:#d49d25; }
.game-discussion-row__icon { display:grid; width:2.75rem; height:2.75rem; place-items:center; border-radius:.65rem; color:var(--gm-accent,#0e99c2); background:color-mix(in srgb,var(--gm-accent,#0e99c2) 11%,var(--gm-surface,#fff)); }
.game-discussion-row.is-pinned .game-discussion-row__icon { color:#b27d0c; background:#fff5d9; }
.game-discussion-row__body { display:grid; min-width:0; gap:.18rem; }
.game-discussion-row__labels { display:flex; gap:.4rem; min-width:0; overflow:hidden; }
.game-discussion-row__labels span { overflow:hidden; color:var(--gm-accent,#0e99c2); font-size:.56rem; font-weight:850; letter-spacing:.04em; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.game-discussion-row__labels span.is-pinned { color:#b27d0c; }
.game-discussion-row__body strong { display:-webkit-box; overflow:hidden; color:var(--gm-ink,#132438); font-size:.86rem; font-weight:900; line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.game-discussion-row__body small { overflow:hidden; color:var(--gm-copy,#526b7a); font-size:.68rem; text-overflow:ellipsis; white-space:nowrap; }
.game-discussion-row__body em { color:var(--gm-copy,#526b7a); font-size:.56rem; font-style:normal; font-weight:800; text-transform:uppercase; }
.game-discussion-row__stats { display:flex; gap:.8rem; }
.game-discussion-row__stats span { display:grid; min-width:2.8rem; justify-items:center; gap:.08rem; }
.game-discussion-row__stats b { color:var(--gm-ink,#132438); font-size:.8rem; font-weight:900; }
.game-discussion-row__stats small { color:var(--gm-copy,#526b7a); font-size:.5rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.game-discussion-row__arrow { color:var(--gm-copy,#526b7a); font-size:.7rem; }
@media (max-width:575px) { .game-discussion-row { grid-template-columns:2.35rem minmax(0,1fr) 12px; gap:.6rem; padding:.65rem; } .game-discussion-row__icon { width:2.35rem; height:2.35rem; } .game-discussion-row__stats { grid-column:2; justify-content:flex-start; gap:.8rem; } .game-discussion-row__stats span { display:flex; min-width:0; gap:.25rem; } .game-discussion-row__arrow { grid-column:3; grid-row:1; } }

/* Discussions follow the same surfaces and controls as the other game archives. */
.game-page--vault .game-main--discussions > .container > .row > .col-lg-9 > .game-discussions-heading {
    display:flex; align-items:center; justify-content:space-between; gap:1rem;
    margin-bottom:1rem; padding:1rem 1.1rem; border:1px solid #30464f;
    border-radius:var(--gm-card-radius); background:linear-gradient(120deg,#10232e,#182e39);
    box-shadow:var(--gm-shadow-soft);
}
.game-page--vault .game-main--discussions .game-discussions-heading .section-heading__eyebrow { color:#c3d8d5!important; }
.game-page--vault .game-main--discussions .game-discussions-heading .section-heading__title { color:#f3f8fa!important; line-height:1.2; }
.game-page--vault .game-main--discussions .game-discussion-list { gap:0; border:1px solid var(--gm-border); border-radius:var(--gm-card-radius); overflow:hidden; }
.game-page--vault .game-main--discussions .game-discussion-row {
    padding:1rem; border:0; border-bottom:1px solid var(--gm-border); border-left:3px solid transparent;
    border-radius:0; background:var(--gm-surface); box-shadow:none; transform:none;
}
.game-page--vault .game-main--discussions .game-discussion-row:last-child { border-bottom:0; }
.game-page--vault .game-main--discussions .game-discussion-row:hover { border-left-color:var(--gm-accent); background:var(--gm-surface-2); }
.game-page--vault .game-main--discussions .game-discussion-row__icon { color:var(--gm-accent); background:var(--gm-accent-soft); }
.game-page--vault .game-main--discussions .game-discussion-row__labels span { color:var(--gm-accent); font-size:.65rem; }
.game-page--vault .game-main--discussions .game-discussion-row__body strong { color:var(--gm-ink); font-size:.95rem; }
.game-page--vault .game-main--discussions .game-discussion-row__body small { color:var(--gm-copy); font-size:.75rem; }
.game-page--vault .game-main--discussions .game-discussion-row__stats b { color:var(--gm-ink); }
.game-page--vault .game-main--discussions .game-discussion-row__stats small { color:var(--gm-copy); font-size:.6rem; }
.game-page--vault .game-main--discussions .game-discussion-row.is-pinned { border-left-color:#b38832; }
.game-page--vault .game-main--discussions .game-discussion-row.is-pinned .game-discussion-row__icon { color:#87621e; background:#f7efd9; }
.game-page--vault .game-main--discussions .game-discussion-row__labels span.is-pinned { color:#87621e; }
html[data-theme="dark"] .game-page--vault .game-main--discussions .game-discussion-row__labels span.is-pinned { color:#d7bb79; }
@media(max-width:575.98px) {
    .game-page--vault .game-main--discussions > .container > .row > .col-lg-9 > .game-discussions-heading { align-items:stretch; flex-direction:column; gap:.75rem; }
    .game-page--vault .game-main--discussions .game-discussion-row { padding:.85rem .7rem; }
}
/* Forum reading and composer refinements share the existing site palette. */
body.forum-theme .forum-similar-section { margin-top:1.75rem; }
body.forum-theme > main.forum-thread-page .forum-post { margin-bottom:1.25rem; scroll-margin-top:6rem; }
body.forum-theme > main.forum-thread-page .forum-post__main { min-width:0; }
body.forum-theme > main.forum-thread-page .forum-post__top { gap:.75rem; flex-wrap:wrap; padding:.75rem 1.1rem; }
body.forum-theme > main.forum-thread-page .forum-post__top-actions { flex-wrap:wrap; gap:.4rem; }
body.forum-theme > main.forum-thread-page .forum-post__body { padding:1.25rem; font-size:.95rem; line-height:1.8; overflow-wrap:anywhere; }
body.forum-theme > main.forum-thread-page .forum-post__signature { margin:1rem 1.25rem; padding:.75rem; font-size:.8rem; }
.forum-bbcode-toolbar { flex-wrap:wrap; gap:.3rem; }
.forum-bbcode-toolbar button { min-width:36px; min-height:36px; }
.forum-bbcode-toolbar button:focus-visible,.forum-code-copy:focus-visible { outline:2px solid var(--gm-accent,#087ead); outline-offset:3px; }
.forum-bbcode-heading { margin:1.1rem 0 .5rem; color:var(--gm-ink); font-size:1.2rem; font-weight:800; line-height:1.4; }
.forum-bbcode-mark { padding:.1em .25em; border-radius:.2rem; color:#49370a; background:#ffe79a; }
.forum-bbcode-inline { padding:.15em .4em; border:1px solid var(--gm-border); border-radius:.3rem; background:var(--gm-surface-raised,var(--gm-page)); color:var(--gm-ink); font-size:.85em; white-space:pre-wrap; overflow-wrap:anywhere; }
kbd.forum-bbcode-inline { box-shadow:0 2px 0 var(--gm-border); font-family:inherit; }
.forum-bbcode-align-left { text-align:left; }
.forum-bbcode-align-center { text-align:center; }
.forum-bbcode-align-right { text-align:right; }
.forum-bbcode-list { padding-left:1.5rem; }
.forum-bbcode-list li + li { margin-top:.35rem; }
.forum-code-shell { min-width:0; margin:1rem 0; border:1px solid var(--gm-border); border-radius:.65rem; overflow:hidden; background:var(--gm-surface); }
.forum-code-copy { display:block; margin:.5rem .65rem .5rem auto; border:1px solid var(--gm-border); border-radius:.35rem; padding:.4rem .65rem; background:var(--gm-page); color:var(--gm-ink); font-size:.75rem; cursor:pointer; }
.forum-code-shell .forum-bbcode-code { max-width:100%; margin:0; border:0; border-radius:0; overflow:auto; white-space:pre; tab-size:4; }
@media(max-width:575px) { body.forum-theme > main.forum-thread-page .forum-post__body { padding:1rem; font-size:.9rem; } body.forum-theme > main.forum-thread-page .forum-post__signature { margin:.75rem 1rem; } .forum-bbcode-toolbar button { min-width:38px; min-height:38px; } }

/* Shared interface rules belong here, after page and theme styles. */
html[data-theme] :is(.game-page.game-page--vault,.game-vault,.member-home,.community-layout,.gm-admin-area) {
    --collection-accent:var(--gm-accent);
    --member-cyan:var(--gm-accent);
    --vault-cyan:var(--gm-action);
    --vault-blue:var(--gm-accent);
    --gm-game-blue:var(--gm-accent);
    --gm-game-blue-soft:var(--gm-accent-soft);
    --admin-accent:var(--gm-accent);
}
html[data-theme] body :is(
    .btn-primary,
    .btn-info,
    .gmh-button--primary,
    .gmh-search button,
    .member-button--primary,
    .gm-message-button--primary,
    .profile-action--primary,
    .game-hero__action--primary,
    .game-library-tools button,
    .game-vault-search > button,
    .glitch-archive__toolbar button,
    .mod-vault__toolbar button,
    .ga-search button,
    .game-feed-composer__submit,
    .game-shorts-composer__submit,
    .game-feed-comment-form button,
    .game-community-vote__actions button,
    .game-review-form__actions button,
    .game-engagement__action,
    .login-submit,
    .register-submit,
    .usercp-save,
    .search-console__bar button,
    .forum-games-filters button,
    .forum-board-filters button,
    .forum-games-board__head > a,
    .forum-thread-tools__actions .is-primary,
    .submission-button:not(.submission-button--secondary),
    .content-discussion__composer-foot > button,
    .game-instant-demo a,
    .hub-start__links a:first-child
) {
    --gm-button-fill:var(--gm-action);
    display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
    min-height:var(--gm-button-height,42px); padding:var(--gm-button-padding,.6rem .95rem);
    border:1px solid var(--gm-button-fill)!important;
    border-radius:var(--gm-control-radius);
    color:var(--gm-on-action)!important;
    background:var(--gm-button-fill)!important;
    box-shadow:none!important; text-shadow:none; text-decoration:none;
    font-weight:750; line-height:1.4; letter-spacing:normal; text-transform:none;
    transition:background-color .15s ease,border-color .15s ease;
}
html[data-theme] body :is(
    .btn-primary,
    .btn-info,
    .gmh-button--primary,
    .gmh-search button,
    .member-button--primary,
    .gm-message-button--primary,
    .profile-action--primary,
    .game-hero__action--primary,
    .game-library-tools button,
    .game-vault-search > button,
    .glitch-archive__toolbar button,
    .mod-vault__toolbar button,
    .ga-search button,
    .game-feed-composer__submit,
    .game-shorts-composer__submit,
    .game-feed-comment-form button,
    .game-community-vote__actions button,
    .game-review-form__actions button,
    .game-engagement__action,
    .login-submit,
    .register-submit,
    .usercp-save,
    .search-console__bar button,
    .forum-games-filters button,
    .forum-board-filters button,
    .forum-games-board__head > a,
    .forum-thread-tools__actions .is-primary,
    .submission-button:not(.submission-button--secondary),
    .content-discussion__composer-foot > button,
    .game-instant-demo a,
    .hub-start__links a:first-child
):is(:hover,:active):not(:disabled):not(.disabled):not([aria-disabled="true"]) { --gm-button-fill:var(--gm-action-hover); transform:none; filter:none; }
html[data-theme] body :is(.btn-primary,.btn-info,.gmh-button--primary,.member-button--primary,.gm-message-button--primary) :is(span,strong,small,i) { color:inherit!important; }
html[data-theme] .btn { --bs-btn-border-radius:var(--gm-control-radius); --bs-btn-font-weight:750; --bs-btn-focus-shadow-rgb:96,165,250; }
html[data-theme] .btn-sm { --gm-button-height:34px; --gm-button-padding:.35rem .65rem; min-height:34px; padding:.35rem .65rem; }
html[data-theme] body :is(.btn-outline-primary,.btn-outline-info,.btn-outline-secondary,.btn-light) {
    min-height:40px; border:1px solid var(--gm-border)!important; border-radius:var(--gm-control-radius);
    color:var(--gm-ink)!important; background:var(--gm-surface)!important; box-shadow:none;
    font-weight:700; text-decoration:none;
}
html[data-theme] body :is(.btn-outline-primary,.btn-outline-info,.btn-outline-secondary,.btn-light):hover {
    color:var(--gm-accent)!important; border-color:var(--gm-accent)!important; background:var(--gm-surface-2)!important;
}
html[data-theme] body .btn-sm { min-height:34px; }
html[data-theme] body :is(a,button,input,textarea,select,summary):focus-visible { outline:2px solid var(--gm-focus); outline-offset:3px; }
html[data-theme] body :is(button,.btn):is(:disabled,.disabled,[aria-disabled="true"]) { opacity:.55; cursor:not-allowed; box-shadow:none!important; transform:none; }
html[data-theme] body :is(.form-control,.form-select) { border-radius:var(--gm-control-radius); }
html[data-theme] body :is(.form-control,.form-select):not(.is-invalid):not(.is-valid):focus { border-color:var(--gm-focus); box-shadow:0 0 0 3px color-mix(in srgb,var(--gm-focus) 16%,transparent); }

/* Filters use the active theme, including native select menus and empty-search states. */
html[data-theme] .game-page--vault .game-main--archive .game-library-tools {
    gap:.75rem; padding:.7rem; border-color:var(--gm-border);
    background:var(--gm-surface); box-shadow:var(--gm-shadow-soft);
}
html[data-theme] .game-page--vault .game-main--archive :is(.game-library-tools__search,.game-library-tools__sort) {
    min-width:0; margin:0; color:var(--gm-ink); border-color:var(--gm-border); background:var(--gm-surface-2);
}
html[data-theme] .game-page--vault .game-main--archive .game-library-tools :is(input,select) {
    min-width:0; color:var(--gm-ink); background:transparent; font-size:.85rem;
}
html[data-theme="light"] .game-page--vault .game-library-tools :is(input,select) { color-scheme:light; }
html[data-theme="dark"] .game-page--vault .game-library-tools :is(input,select) { color-scheme:dark; }
html[data-theme] .game-page--vault .game-library-tools input::placeholder { color:var(--gm-copy); }
html[data-theme] .game-page--vault .game-library-tools__total { color:var(--gm-copy); }
html[data-theme] .game-page--vault .game-library-tools__clear { display:grid; min-height:42px; color:var(--gm-ink); background:var(--gm-surface-2); border:1px solid var(--gm-border); }
html[data-theme] .game-page--vault .game-library-tools__form:has(.game-library-tools__clear) { grid-template-columns:minmax(0,1fr) minmax(130px,175px) auto auto; }
html[data-theme] .game-page--vault .game-library-pagination :is(a,span) { border-color:var(--gm-border); color:var(--gm-ink); background:var(--gm-surface); min-width:38px; min-height:38px; }
html[data-theme] .game-page--vault .game-library-pagination .active { border-color:var(--gm-action); color:#fff; background:var(--gm-action); }
html[data-theme] .game-page--vault .game-library-pagination a:hover { color:var(--gm-accent); border-color:var(--gm-accent); }

/* Neutral surfaces and readable text take precedence over old pastel page rules. */
html[data-theme] .game-page--vault :is(.game-engagement,.game-hub-live__engage) {
    background:var(--gm-surface)!important; border-color:var(--gm-border); box-shadow:var(--gm-shadow-soft);
}
html[data-theme] .game-page--vault :is(.game-engagement__icon,.empty-state__icon) { color:var(--gm-accent); background:var(--gm-accent-soft); }
html[data-theme] .game-page--vault :is(.section-heading__eyebrow,.game-hub-live__more a,.game-hub-live__engage-copy small) { color:var(--gm-accent); }
html[data-theme] body :is(.game-overview-intro,.game-discussions-heading,.submission-heading,.forum-games-hero) :is(h1,h2) {
    color:#f3f7f8!important; -webkit-text-fill-color:currentColor; line-height:1.2;
}
html[data-theme] body :is(.game-overview-intro,.game-discussions-heading,.submission-heading,.forum-games-hero) :is(.section-heading__eyebrow,.forum-games-hero__eyebrow) { color:#c3d8d5!important; }
html[data-theme] .game-page--vault .game-overview-featured-card__body b { color:#c3d8d5!important; }
html[data-theme] .game-page--vault .game-main--archive > .container > .row > .col-lg-9 > .section-heading:first-child .section-heading__eyebrow { color:#c3d8d5!important; }
html[data-theme] body :is(.submission-layout,.forum-games-layout,.forum-category-layout,.member-workspace,.mod-vault__layout) > * { min-width:0; }
html[data-theme] body :is(.game-library-tools__form,.forum-board-filters,.forum-games-filters,.submission-fields) > * { min-width:0; }
html[data-theme] body :is(.game-side-card,.mod-resource,.forum-side-card,.submission-panel,.member-panel) { border-radius:var(--gm-card-radius); }
html[data-theme] .game-page--vault .game-hero__content { padding-block:1.5rem; }
html[data-theme] .game-page--vault .game-title { font-size:clamp(1.8rem,3.5vw,3rem); line-height:1.12; }
html[data-theme] body :is(.forum-games-hero,.submission-heading) { box-shadow:var(--gm-shadow-soft); }
html[data-theme] .game-page--vault .game-tabs__link.active::after { background:var(--gm-focus); box-shadow:none; }
html[data-theme] .gmh :is(.gmh-community,.gmh-games) { background:var(--gmh-soft); }
html[data-theme] .gmh .gmh-community + .gmh-games { border:0; box-shadow:none; }
html[data-theme] .gmh .gmh-community + .gmh-games > .container { border-top:1px solid var(--gmh-line); padding-top:1.5rem; }
html[data-theme] .gmh .gmh-section-head h2 { font-size:clamp(1.45rem,2.4vw,2rem); line-height:1.2; }
html[data-theme] body.forum-theme .forum-directory-tabs a[aria-current="page"] > i { color:#fff; background:var(--gm-action); }
html[data-theme] #header .gm-search-form > button { color:#fff; background:var(--gm-action); box-shadow:none; }
html[data-theme] #header .gm-search-form > button:hover { color:#fff; background:var(--gm-action-hover); }
html[data-theme] #header .gm-search-form > button i { color:inherit; }
html[data-theme] body [hidden]:not([hidden="until-found"]) { display:none!important; }
html[data-theme] body :is(.game-hero,.forum-hero--lobby,.member-briefing) .section-heading__eyebrow { color:#c3d8d5; }
html[data-theme] body .member-section__kicker { color:var(--gm-accent); }
html[data-theme] body .member-briefing .member-section__kicker { color:#c3d8d5; }
html[data-theme] .article-page .article-hero,
html[data-theme] .article-page .article-hero__content { min-height:0; }
html[data-theme] .article-page .article-hero__content { padding-block:clamp(1.65rem,3vw,2.5rem); }
html[data-theme] .article-page .article-breadcrumb a { color:#c3d8d5; }
html[data-theme] body.forum-theme > main.forum-index .forum-toolbar-wrap { background:transparent!important; box-shadow:none; }
html[data-theme] body.forum-theme > main.forum-index .forum-network-strip { box-shadow:var(--gm-shadow-soft)!important; }
html[data-theme] body.forum-theme > main.forum-index .forum-main { background:transparent!important; }
html[data-theme] body.forum-theme .forum-games-layout .forum-sidebar { min-width:0; max-width:100%; }
html[data-theme] body .game-feed-filters { flex-wrap:wrap; width:auto; max-width:100%; overflow:visible; background:var(--gm-surface-2); border-color:var(--gm-border); }
html[data-theme] body .game-feed-filters a { flex:1 1 auto; justify-content:center; color:var(--gm-copy); }
html[data-theme] body :is(.game-feed-filters a.active,.game-vault-view button.active) { color:#fff!important; background:var(--gm-action)!important; box-shadow:none; }
html[data-theme] body .game-feed-filters a.active span { color:inherit; background:rgba(255,255,255,.12); }
html[data-theme] body .game-vault-view button { min-width:38px; min-height:38px; }
html[data-theme] body .gm-message-empty__art > span { color:#fff; background:var(--gm-action); }

/* Game names are secondary metadata: use the same restrained steel-blue on
   forum rows, thread headers, and the homepage instead of the old gold tone. */
html[data-theme] body :is(.forum-thread__game,.forum-thread-head__game,.forum-related-thread__label,.gmh-discussion__copy > small) {
    color:var(--gm-accent-strong)!important;
}

@media(max-width:991.98px) {
    html[data-theme] .game-page--vault .game-library-tools { flex-direction:column; align-items:stretch; }
    html[data-theme] .game-page--vault .game-library-tools__total { align-self:flex-start; }
}
@media(max-width:575.98px) {
    html[data-theme] .game-page--vault .game-library-tools__form,
    html[data-theme] .game-page--vault .game-library-tools__form:has(.game-library-tools__clear) { grid-template-columns:minmax(0,1fr) auto; }
    html[data-theme] .game-page--vault .game-library-tools__search { grid-column:1/-1; }
    html[data-theme] .game-page--vault .game-library-tools__clear { width:auto; grid-column:1/-1; min-height:36px; }
    html[data-theme] .submission-fields { grid-template-columns:minmax(0,1fr); }
    html[data-theme] .game-page--vault .game-hero__content { padding-block:1.1rem; }
}
@media(prefers-reduced-motion:reduce) {
    html[data-theme] body :is(.btn,.game-discussion-row,.forum-game-directory-row,.forum-games-thread,.member-button,.gmh-button) { transition:none!important; transform:none!important; }
}
