/* Pixel3DLab community color system: theme-aware cards, clear accents and responsive controls. */
.pxh-page-games .pgh-page,.pxh-inner-page .pxh-legacy-forum,.pxh-inner-page:has(.pxm-hero) { --community-blue:#2589a7; --community-green:#36a976; --community-orange:#ec9c38; --community-purple:#8872d5; }
.pxh-page-games .pgh-hero { border-color:rgba(44,165,130,.3);background:radial-gradient(ellipse at 78% 16%,rgba(84,213,164,.28),transparent 36%),radial-gradient(ellipse at 8% 100%,rgba(48,166,192,.24),transparent 44%),linear-gradient(125deg,#f4fbf8,#edf8f7 52%,#edf5fb);color:#173548;box-shadow:0 18px 60px rgba(27,104,106,.10); }
.pxh-page-games .pgh-hero:before { background-image:linear-gradient(rgba(35,113,119,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(35,113,119,.055) 1px,transparent 1px); }
.pxh-page-games .pgh-hero h1,.pxh-page-games .pgh-visual-card strong { color:#173548; }
.pxh-page-games .pgh-hero h1 span { color:#258e83; }
.pxh-page-games .pgh-kicker,.pxh-page-games .pgh-hero-note,.pxh-page-games .pgh-hero-index { color:#456c75; }
.pxh-page-games .pgh-hero-copy>p { color:#45616d; }
.pxh-page-games .pgh-visual-card { border-color:rgba(44,139,125,.26);background:rgba(255,255,255,.72);box-shadow:0 22px 50px rgba(40,117,112,.13); }
.pxh-page-games .pgh-visual-card-label,.pxh-page-games .pgh-visual-card small { color:#527b80; }
.pxh-page-games .pgh-visual-card>svg,.pxh-page-games .pgh-visual-chip svg { color:#238a83; }
.pxh-page-games .pgh-visual-chip { border-color:rgba(44,139,125,.2);background:rgba(255,255,255,.88);color:#294b58;box-shadow:0 10px 25px rgba(30,90,100,.1); }
.pxh-page-games .pgh-primary-action { background:linear-gradient(120deg,#36b77d,#39aeb0);color:#fff;box-shadow:0 7px 20px rgba(45,157,128,.2); }
.pxh-page-games .pgh-primary-action:hover { background:linear-gradient(120deg,#269c68,#218e95); }
.pxh-page-games .pgh-overview-item,.pxh-page-games .pgh-game-card { box-shadow:0 8px 26px rgba(33,62,79,.055); }
.pxh-page-games .pgh-game-card { border-radius:19px; }
.pxh-page-games .pgh-game-card:hover { box-shadow:0 15px 32px rgba(31,89,99,.12); }
.pxh-page-games .pgh-game-art { background:linear-gradient(140deg,color-mix(in srgb,var(--pgh-accent) 13%,#f5fbfa),color-mix(in srgb,var(--pgh-accent) 7%,#eaf5f7)); }
.pxh-page-games .pgh-filter-bar button.is-active { border-color:rgba(49,166,127,.28);background:rgba(49,166,127,.14);color:#176b56; }
.pxh-page-games .pgh-section-eyebrow,.pxh-page-games .pgh-group-heading>div>span { color:#258e83; }
.pxh-page-games .pgh-page :is(a,button):focus-visible,.pxh-inner-page .pxh-legacy-forum :is(a,button,input,select,textarea):focus-visible { outline:3px solid #ed9c38!important;outline-offset:3px!important; }
[data-theme="dark"] .pxh-page-games .pgh-hero { border-color:rgba(83,207,166,.3);background:radial-gradient(ellipse at 78% 16%,rgba(53,182,144,.2),transparent 36%),radial-gradient(ellipse at 8% 100%,rgba(43,142,173,.19),transparent 44%),linear-gradient(125deg,#101f2c,#142c39 55%,#192d42);color:#edf9f7; }
[data-theme="dark"] .pxh-page-games .pgh-hero h1,[data-theme="dark"] .pxh-page-games .pgh-visual-card strong { color:#f0faf8; }
[data-theme="dark"] .pxh-page-games .pgh-hero h1 span { color:#72ddbd; }
[data-theme="dark"] .pxh-page-games .pgh-kicker,[data-theme="dark"] .pxh-page-games .pgh-hero-note,[data-theme="dark"] .pxh-page-games .pgh-hero-index,[data-theme="dark"] .pxh-page-games .pgh-hero-copy>p { color:#b8d1d2; }
[data-theme="dark"] .pxh-page-games .pgh-visual-card { border-color:rgba(116,220,190,.3);background:rgba(25,54,62,.74); }
[data-theme="dark"] .pxh-page-games .pgh-visual-card-label,[data-theme="dark"] .pxh-page-games .pgh-visual-card small { color:#a9d6cf; }
[data-theme="dark"] .pxh-page-games .pgh-visual-chip { border-color:rgba(116,220,190,.24);background:rgba(20,43,53,.92);color:#e4f5f1; }
[data-theme="dark"] .pxh-page-games .pgh-filter-bar button.is-active { border-color:rgba(83,207,166,.35);background:rgba(53,182,144,.2);color:#a8f0d8; }
[data-theme="dark"] .pxh-page-games .pgh-overview-item,[data-theme="dark"] .pxh-page-games .pgh-game-card { box-shadow:0 12px 28px rgba(0,0,0,.16); }
/* Forum: layered topic cards with teal and green cues, still using the site theme tokens. */
.pxh-inner-page .pxh-legacy-forum .card { border-radius:17px!important;box-shadow:0 9px 26px rgba(31,68,82,.07)!important; }
.pxh-inner-page .pxh-legacy-forum .forum-list-item { border-radius:12px;margin:3px 0;padding:16px 18px!important; }
.pxh-inner-page .pxh-legacy-forum .forum-list-item:hover { background:rgba(47,169,126,.09)!important; }
.pxh-inner-page .pxh-legacy-forum .forum-list-item::before { background:linear-gradient(180deg,#39b9a7,#51bd78); }
.pxh-inner-page .pxh-legacy-forum .forum-icon-box { color:#168e82!important;background:linear-gradient(145deg,rgba(54,190,147,.16),rgba(63,161,207,.12))!important;border-color:rgba(48,160,142,.25)!important; }
.pxh-inner-page .pxh-legacy-forum .btn-primary { background:linear-gradient(120deg,#2cae78,#2d9fa8)!important;border-color:transparent!important; }
[data-theme="dark"] .pxh-inner-page .pxh-legacy-forum .forum-icon-box { color:#83e2c2!important;background:linear-gradient(145deg,rgba(54,190,147,.2),rgba(63,161,207,.16))!important;border-color:rgba(83,207,166,.27)!important; }
/* Pixel3DMedia: folder tiles get warm folder cues, media cards get a fresh teal edge. */
.pxm-hero { border-color:rgba(49,166,127,.27)!important;background:radial-gradient(ellipse at 4% 0%,rgba(74,190,144,.14),transparent 38%),radial-gradient(ellipse at 100% 100%,rgba(60,157,197,.12),transparent 42%),var(--card-bg)!important;box-shadow:0 12px 34px rgba(35,95,89,.07); }
.pxm-hero-mark,.pxm-hero-icon { border-color:rgba(49,166,127,.24)!important;background:linear-gradient(145deg,rgba(64,186,131,.17),rgba(60,157,197,.13))!important;color:#238b74!important; }
.pxm-folder-item { border-color:var(--border-color);border-radius:15px;background:var(--card-bg);box-shadow:0 5px 18px rgba(31,68,82,.045);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.pxm-folder-item:hover,.pxm-folder-item.is-active { border-color:rgba(237,156,56,.52);box-shadow:0 9px 24px rgba(182,123,48,.10); }
.pxm-folder-icon { border-radius:12px;background:rgba(237,156,56,.13)!important;color:#bd781c!important; }
.pxm-folder-open-mark { color:#258e83!important; }
.pxm-media-card { border-radius:16px;box-shadow:0 8px 24px rgba(26,66,81,.065); }
.pxm-media-card:hover { border-color:rgba(49,166,127,.38);box-shadow:0 13px 30px rgba(36,113,101,.13); }
.pxm-button-primary,.pxm-action-primary { border-color:#258e83!important;background:linear-gradient(120deg,#31ae78,#278f9c)!important;color:#fff!important; }
.pxm-button-primary:hover,.pxm-action-primary:hover { background:linear-gradient(120deg,#268d62,#207e8a)!important; }
.pxm-eyebrow { color:#258e83!important; }
[data-theme="dark"] .pxm-hero-mark,[data-theme="dark"] .pxm-hero-icon { color:#77dbba!important; }
[data-theme="dark"] .pxm-folder-icon { background:rgba(237,156,56,.18)!important;color:#ffc36e!important; }
[data-theme="dark"] .pxm-folder-item:hover,[data-theme="dark"] .pxm-folder-item.is-active { border-color:rgba(255,185,89,.55); }
/* Shared accessibility bridge for the three requested areas. */
body.a11y-contrast :is(.pgh-page,.pxh-legacy-forum,.pxh-page-pixel3dmedia) { --pgh-line:#ff0!important;--pgh-muted:#fff!important;--border-color:#ff0!important;color:#fff!important; }
body.a11y-contrast .pxh-page-games .pgh-hero,body.a11y-contrast .pxm-hero,body.a11y-contrast .pxh-inner-page .pxh-legacy-forum .card { background:#000!important;border:2px solid #ff0!important;color:#fff!important;box-shadow:none!important; }
body.a11y-contrast .pxh-page-games .pgh-hero :is(h1,h2,p,span,small,strong),body.a11y-contrast .pxm-hero :is(h1,h2,p,span,small,strong),body.a11y-contrast .pxh-inner-page .pxh-legacy-forum :is(h1,h2,h3,h4,p,span,small,strong,a) { color:#fff!important;text-shadow:none!important; }
body.a11y-contrast .pxh-page-games .pgh-hero h1 span { color:#ff0!important; }
body.a11y-contrast :is(.pgh-page,.pxh-legacy-forum,.pxh-page-pixel3dmedia) :is(.pxm-panel,.pxm-folder-item,.pxm-media-card,.pgh-game-card,.pgh-overview-item,.pgh-filter-bar,.forum-list-item) { background:#000!important;border:2px solid #ff0!important;color:#fff!important;box-shadow:none!important; }
body.a11y-contrast :is(.pgh-page,.pxh-legacy-forum,.pxh-page-pixel3dmedia) :is(a,button):focus-visible { outline:3px solid #ff0!important;outline-offset:4px!important; }
body.a11y-contrast :is(.pxh-page-games,.pxh-inner-page .pxh-legacy-forum,.pxh-page-pixel3dmedia) :is(a,button,.pxm-eyebrow,.pgh-section-eyebrow) { color:#ff0!important; }
body.a11y-contrast :is(.pxh-page-games,.pxh-page-pixel3dmedia) :is(.pxm-button-primary,.pxm-action-primary,.pgh-primary-action,.pgh-play-link) { background:#ff0!important;color:#000!important;border:2px solid #ff0!important; }
body.a11y-highlight-links :is(.pgh-page,.pxh-legacy-forum,.pxh-page-pixel3dmedia) a { text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:3px!important; }
body.a11y-text-large :is(.pxh-page-games,.pxh-inner-page .pxh-legacy-forum,.pxh-page-pixel3dmedia) :is(p,small,label,button,a,.pxm-card-meta,.pxm-card-details,.forum-topic-meta,.f-stats) { font-size:1.12em!important; }
body.a11y-dyslexia :is(.pxh-page-games,.pxh-inner-page .pxh-legacy-forum,.pxh-page-pixel3dmedia),body.a11y-dyslexia :is(.pxh-page-games,.pxh-inner-page .pxh-legacy-forum,.pxh-page-pixel3dmedia) * { font-family:"Trebuchet MS",Verdana,sans-serif!important;letter-spacing:.025em!important;word-spacing:.08em!important;line-height:1.65!important; }
body.a11y-no-animations :is(.pxh-page-games,.pxh-inner-page .pxh-legacy-forum,.pxh-page-pixel3dmedia) *,body.a11y-no-animations :is(.pxh-page-games,.pxh-inner-page .pxh-legacy-forum,.pxh-page-pixel3dmedia) *::before,body.a11y-no-animations :is(.pxh-page-games,.pxh-inner-page .pxh-legacy-forum,.pxh-page-pixel3dmedia) *::after { animation:none!important;transition:none!important;scroll-behavior:auto!important; }
@media(max-width:900px){.pxh-page-games .pgh-game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pxh-page-games .pgh-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.pxh-inner-page .pxh-legacy-forum .forum-list-item{padding:14px 12px!important}.pxm-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.pxh-page-games .pgh-game-grid,.pxh-page-games .pgh-overview,.pxm-media-grid{grid-template-columns:1fr}.pxh-page-games .pgh-game-card{display:grid;grid-template-columns:104px minmax(0,1fr)}.pxh-page-games .pgh-game-art{height:100%;min-height:144px}.pxh-page-games .pgh-game-content{padding:13px}.pxh-page-games .pgh-hero{border-radius:20px;padding:24px 19px}.pxh-page-games .pgh-hero h1{font-size:clamp(36px,10vw,52px)}.pxh-page-games .pgh-overview-item{min-height:60px}.pxh-inner-page .pxh-legacy-forum .forum-header-flex{align-items:stretch}.pxh-inner-page .pxh-legacy-forum .forum-header-flex .btn{width:100%;min-height:44px}.pxh-inner-page .pxh-legacy-forum .forum-list-item{gap:10px;padding:13px 10px!important}.pxm-button,.pxm-action-primary{min-height:42px}.pxm-folder-open{min-height:54px}.pxm-media-card{grid-template-columns:1fr}.pxm-media-visual{height:190px;min-height:190px;border-radius:14px 14px 0 0}.pxm-card-content{padding:14px}.pxm-card-actions{gap:8px}.pxm-card-actions>*{flex:1 1 auto}}
@media(hover:none){.pxh-page-games .pgh-game-card:hover,.pxm-folder-item:hover,.pxm-media-card:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.pxh-page-games .pgh-game-card,.pxm-folder-item,.pxm-media-card{transition:none!important}}

/* Requested charcoal + mint palette for the community areas. */
[data-theme="dark"] body.pxh-page-games,
[data-theme="dark"] body.pxh-page-forum,
[data-theme="dark"] body.pxh-forum-page,
[data-theme="dark"] body.pxh-page-pixel3dmedia {
  --bg-color:#121418;
  --card-bg:#1A1D24;
  --text-main:#F0F2F5;
  --text-muted:#aab2bf;
  --border-color:#2A2F3A;
  --input-bg:#1A1D24;
  --input-border:#2A2F3A;
  --hover-bg:#242933;
  --color-blue:#3B82F6;
  --pl-accent:#00E599;
  --pl-line:#2A2F3A;
  --pl-glass:#1A1D24;
  --pl-glass-strong:#20242d;
  --pxh-page-glass:#1A1D24;
  --pxh-page-line:#2A2F3A;
  color:#F0F2F5!important;
  background:#121418!important;
}
[data-theme="dark"] :is(body.pxh-page-games,body.pxh-page-forum,body.pxh-forum-page,body.pxh-page-pixel3dmedia) :is(.pxm-panel,.pxm-stat-card,.pxm-folder-item,.pxm-media-card,.pxh-legacy-forum .card,.pxh-forum-intro,.pgh-overview-item,.pgh-filter-bar,.pgh-game-card,.pgh-account-panel,.pgh-visual-card) {
  background-color:#1A1D24!important;
  border-color:#2A2F3A!important;
  color:#F0F2F5;
}
[data-theme="dark"] :is(body.pxh-page-games,body.pxh-page-forum,body.pxh-forum-page,body.pxh-page-pixel3dmedia) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  background:#1A1D24!important;
  border-color:#2A2F3A!important;
  color:#F0F2F5!important;
  caret-color:#00E599;
  box-shadow:none!important;
}
[data-theme="dark"] :is(body.pxh-page-games,body.pxh-page-forum,body.pxh-forum-page,body.pxh-page-pixel3dmedia) :is(input,select,textarea)::placeholder { color:#aab2bf!important;opacity:1; }
[data-theme="dark"] :is(body.pxh-page-games,body.pxh-page-forum,body.pxh-forum-page,body.pxh-page-pixel3dmedia) :is(input,select,textarea):focus-visible { border-color:#00E599!important;outline:2px solid rgba(0,229,153,.36)!important;outline-offset:1px!important; }
[data-theme="dark"] :is(body.pxh-page-games,body.pxh-page-forum,body.pxh-forum-page,body.pxh-page-pixel3dmedia) a:not(.pxm-button):not(.pxm-action-primary):not(.pgh-primary-action):not(.pgh-play-link):not(.btn) { color:#3B82F6; }
[data-theme="dark"] :is(body.pxh-page-games,body.pxh-page-forum,body.pxh-forum-page,body.pxh-page-pixel3dmedia) :is(.pxm-button-primary,.pxm-action-primary,.pgh-primary-action,.pgh-play-link,.btn-primary) { background:#00E599!important;border-color:#00E599!important;color:#121418!important; }
[data-theme="dark"] .pxh-page-games .pgh-hero { border-color:#2A2F3A;background:radial-gradient(ellipse at 78% 16%,rgba(0,229,153,.11),transparent 36%),radial-gradient(ellipse at 8% 100%,rgba(59,130,246,.11),transparent 44%),linear-gradient(125deg,#1A1D24,#171b22 55%,#1A1D24); }
[data-theme="dark"] .pxh-page-games .pgh-hero h1 span,[data-theme="dark"] :is(.pxh-page-games,.pxh-page-pixel3dmedia) :is(.pgh-section-eyebrow,.pxm-eyebrow) { color:#00E599!important; }
[data-theme="dark"] .pxh-page-games .pgh-visual-card { background:#20242d!important; }
[data-theme="dark"] .pxh-page-games .pgh-visual-chip { background:#20242d;color:#F0F2F5;border-color:#2A2F3A; }
[data-theme="dark"] .pxh-page-games .pgh-filter-bar button.is-active { border-color:rgba(0,229,153,.38);background:rgba(0,229,153,.12);color:#00E599; }
[data-theme="dark"] .pxh-page-pixel3dmedia .pxm-hero { background:radial-gradient(ellipse at 4% 0%,rgba(0,229,153,.09),transparent 38%),radial-gradient(ellipse at 100% 100%,rgba(59,130,246,.09),transparent 42%),#1A1D24!important; }
[data-theme="dark"] .pxh-page-pixel3dmedia .pxm-hero-mark,[data-theme="dark"] .pxh-page-pixel3dmedia .pxm-hero-icon { background:rgba(0,229,153,.10)!important;color:#00E599!important;border-color:rgba(0,229,153,.25)!important; }
[data-theme="dark"] .pxh-page-pixel3dmedia .pxm-folder-icon { background:rgba(237,156,56,.16)!important;color:#ffc36e!important; }
[data-theme="dark"] .pxh-page-pixel3dmedia .pxm-folder-item:hover,[data-theme="dark"] .pxh-page-pixel3dmedia .pxm-folder-item.is-active { border-color:#ec9c38!important; }

