/* GP Gaming Theme color modes — loaded after all other theme and Models styles. */
.gp-theme-mode-toggle{flex:0 0 auto;width:38px;height:38px;min-width:38px;padding:0;font-size:18px;line-height:1;border-radius:11px;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.gp-theme-mode-toggle:hover{transform:translateY(-1px)}
.gp-theme-mode-toggle:focus-visible{outline:3px solid var(--gp-secondary,#22d3ee);outline-offset:2px}
.gp-theme-mode-toggle [data-gp-theme-mode-icon]{display:block}
@media(max-width:800px){.gp-theme-mode-toggle{width:38px;height:40px;min-width:38px;margin-inline-start:4px;border-radius:11px}}

html[data-gp-color-mode="dark"]{color-scheme:dark}
html[data-gp-color-mode="light"]{
 color-scheme:light;
 --gp-bg:#f5f7fb;
 --gp-surface:#ffffff;
 --gp-card:#ffffff;
 --gp-text:#182230;
 --gp-muted:#596579;
 --gp-border:#dce3ed;
}
html[data-gp-color-mode="light"] body,
html[data-gp-color-mode="light"] .gp-site-shell,
html[data-gp-color-mode="light"] .gp-main,
html[data-gp-color-mode="light"] .gp-page-wrap{background-color:var(--gp-bg)!important;color:var(--gp-text)!important}
html[data-gp-color-mode="light"] .gp-header{background:rgba(255,255,255,.96)!important;border-bottom-color:#dce3ed!important;box-shadow:0 4px 18px rgba(15,23,42,.045)}
html[data-gp-color-mode="light"] .gp-sidebar{background:#fff!important;border-right-color:#dce3ed!important}
html[data-gp-color-mode="light"] .gp-sidebar-head,
html[data-gp-color-mode="light"] .gp-sidebar-section{border-color:#e4e9f1!important}
html[data-gp-color-mode="light"] .gp-sidebar-title{color:#64748b!important}
html[data-gp-color-mode="light"] .gp-sidebar-link{color:#344054!important}
html[data-gp-color-mode="light"] .gp-sidebar-link:hover{background:#eef2f8!important;color:#111827!important}
html[data-gp-color-mode="light"] .gp-sidebar-link.is-active{background:#eee9ff!important;border-color:#d8ccff!important;color:#4c1d95!important}
html[data-gp-color-mode="light"] .gp-sidebar-icon{background:#f0edff!important;color:#5b21b6!important}
html[data-gp-color-mode="light"] .gp-header-search label,
html[data-gp-color-mode="light"] .gp-icon-btn,
html[data-gp-color-mode="light"] .gp-header-icon,
html[data-gp-color-mode="light"] .gp-btn-ghost,
html[data-gp-color-mode="light"] .gp-language-trigger,
html[data-gp-color-mode="light"] .gp-account-control,
html[data-gp-color-mode="light"] .gp-account-pill{background:#fff!important;border-color:#d8e0eb!important;color:#344054!important}
html[data-gp-color-mode="light"] .gp-header-search input{color:#182230!important}
html[data-gp-color-mode="light"] .gp-header-search input::placeholder{color:#667085!important}
html[data-gp-color-mode="light"] .gp-header-link{color:#344054!important}
html[data-gp-color-mode="light"] .gp-header-link:hover{color:#5b21b6!important}
html[data-gp-color-mode="light"] .gp-account-dropdown,
html[data-gp-color-mode="light"] .gp-language-options,
html[data-gp-color-mode="light"] .gp-notification-panel,
html[data-gp-color-mode="light"] .gp-mobile-panel,
html[data-gp-color-mode="light"] .gp-mobile-nav{background:#fff!important;border-color:#dce3ed!important;color:#182230!important;box-shadow:0 16px 42px rgba(15,23,42,.13)!important}
html[data-gp-color-mode="light"] .gp-account-dropdown a,
html[data-gp-color-mode="light"] .gp-language-options a,
html[data-gp-color-mode="light"] .gp-mobile-nav a,
html[data-gp-color-mode="light"] .gp-mobile-panel-nav a{color:#344054!important}
html[data-gp-color-mode="light"] .gp-account-dropdown a:hover,
html[data-gp-color-mode="light"] .gp-language-options a:hover,
html[data-gp-color-mode="light"] .gp-mobile-nav a:hover,
html[data-gp-color-mode="light"] .gp-mobile-panel-nav a:hover{background:#f1f5f9!important;color:#111827!important}
html[data-gp-color-mode="light"] .gp-discovery-item,
html[data-gp-color-mode="light"] .gp-model-cat,
html[data-gp-color-mode="light"] .gp-models-category-card,
html[data-gp-color-mode="light"] .gp-models-feature-card,
html[data-gp-color-mode="light"] .gp-models-stat-card,
html[data-gp-color-mode="light"] .gp-models-lb-card,
html[data-gp-color-mode="light"] .gp-models-gotd-chip{background:#fff!important;border-color:#dce3ed!important;box-shadow:0 5px 18px rgba(15,23,42,.045)}
html[data-gp-color-mode="light"] .gp-discovery-icon,
html[data-gp-color-mode="light"] .gp-models-category-icon,
html[data-gp-color-mode="light"] .gp-models-feature-icon,
html[data-gp-color-mode="light"] .gp-models-stat-icon,
html[data-gp-color-mode="light"] .gp-models-title-icon{background:#f0edff!important;color:#5b21b6!important;border-color:#d8ccff!important;box-shadow:none!important}
html[data-gp-color-mode="light"] .gp-models-side-panel{background:linear-gradient(145deg,#fff7ed,#fff)!important;border-color:#fed7aa!important;color:#273244!important;box-shadow:0 8px 22px rgba(15,23,42,.08)!important}
html[data-gp-color-mode="light"] .gp-models-side-panel--multiplayer{background:linear-gradient(145deg,#f5f0ff,#fff)!important;border-color:#d8ccff!important}
html[data-gp-color-mode="light"] .gp-models-side-copy,
html[data-gp-color-mode="light"] .gp-models-side-copy p,
html[data-gp-color-mode="light"] .gp-models-side-footer,
html[data-gp-color-mode="light"] .gp-models-side-footer span{color:#475467!important}
html[data-gp-color-mode="light"] .gp-models-side-copy h2,
html[data-gp-color-mode="light"] .gp-models-side-footer strong{color:#182230!important}
html[data-gp-color-mode="light"] .gp-models-lb-tabs{background:#eef2f7!important;border-color:#dce3ed!important}
html[data-gp-color-mode="light"] .gp-models-lb-tab{color:#475467!important}
html[data-gp-color-mode="light"] .gp-models-lb-tab.is-active,
html[data-gp-color-mode="light"] .gp-models-lb-tab[aria-selected="true"]{background:#5b21b6!important;color:#fff!important}
html[data-gp-color-mode="light"] .gp-models-gotd-card{background:linear-gradient(120deg,#ede9fe,#fff 70%)!important;border-color:#d8ccff!important}
html[data-gp-color-mode="light"] .gp-models-gotd-copy h3{color:#182230!important}
html[data-gp-color-mode="light"] .gp-models-gotd-copy p,
html[data-gp-color-mode="light"] .gp-models-gotd-meta{color:#475467!important}
html[data-gp-color-mode="light"] .gp-models-gotd-chip{color:#344054!important}
html[data-gp-color-mode="light"] .gp-models-lb-name,
html[data-gp-color-mode="light"] .gp-models-lb-info,
html[data-gp-color-mode="light"] .gp-models-lb-card{color:#182230!important}
html[data-gp-color-mode="light"] .gp-models-lb-username{color:#596579!important}
html[data-gp-color-mode="light"] .gp-models-section-title h2,
html[data-gp-color-mode="light"] .gp-models-render-heading,
html[data-gp-color-mode="light"] .gp-models-section-title,
html[data-gp-color-mode="light"] .gp-section-title,
html[data-gp-color-mode="light"] .gp-page-heading h1,
html[data-gp-color-mode="light"] .gp-home-intro h1,
html[data-gp-color-mode="light"] .gp-home-intro h2,
html[data-gp-color-mode="light"] .gp-home-models h2,
html[data-gp-color-mode="light"] .gp-page-wrap h1,
html[data-gp-color-mode="light"] .gp-page-wrap h2,
html[data-gp-color-mode="light"] .gp-page-wrap h3,
html[data-gp-color-mode="light"] .gp-page-wrap h4{color:#182230!important}
html[data-gp-color-mode="light"] .gp-game-title,
html[data-gp-color-mode="light"] .gp-models-category-copy strong,
html[data-gp-color-mode="light"] .gp-models-stat-copy strong,
html[data-gp-color-mode="light"] .gp-models-feature-card h3{color:#182230!important}
html[data-gp-color-mode="light"] .gp-home-intro p,
html[data-gp-color-mode="light"] .gp-page-heading p,
html[data-gp-color-mode="light"] .gp-section-count,
html[data-gp-color-mode="light"] .gp-models-category-copy small,
html[data-gp-color-mode="light"] .gp-models-feature-card p,
html[data-gp-color-mode="light"] .gp-models-stat-copy span,
html[data-gp-color-mode="light"] .gp-models-lb-empty,
html[data-gp-color-mode="light"] .gp-empty-state{color:#596579!important}
html[data-gp-color-mode="light"] .gp-game-card-media,
html[data-gp-color-mode="light"] .gp-model-game-card,
html[data-gp-color-mode="light"] .gp-model-game-media{background:#e9edf4!important;border-color:#dce3ed!important}
html[data-gp-color-mode="light"] .gp-empty-state{background:#fff!important;border-color:#cbd5e1!important}
html[data-gp-color-mode="light"] .gp-footer{background:#eef2f7!important;border-top-color:#dce3ed!important}
html[data-gp-color-mode="light"] .gp-footer-panel,
html[data-gp-color-mode="light"] .gp-footer-social-strip{background:#fff!important;border-color:#dce3ed!important;box-shadow:0 6px 20px rgba(15,23,42,.045)!important}
html[data-gp-color-mode="light"] .gp-footer-about-content{color:#344054!important}
html[data-gp-color-mode="light"] .gp-footer-kicker,
html[data-gp-color-mode="light"] .gp-footer-panel-head h2{color:#5b21b6!important}
html[data-gp-color-mode="light"] .gp-footer-bottom{color:#596579!important;border-top-color:#dce3ed!important}
html[data-gp-color-mode="light"] .gp-footer-empty{color:#596579!important}
html[data-gp-color-mode="light"] .gp-back-top{background:#fff!important;color:#344054!important;border-color:#dce3ed!important}
html[data-gp-color-mode="light"] .gp-theme-mode-toggle{background:#f0edff!important;color:#5b21b6!important;border-color:#d8ccff!important}
html[data-gp-color-mode="light"] input:not([type="checkbox"]):not([type="radio"]),
html[data-gp-color-mode="light"] select,
html[data-gp-color-mode="light"] textarea{background-color:#fff;color:#182230;border-color:#cbd5e1}
html[data-gp-color-mode="light"] input::placeholder,
html[data-gp-color-mode="light"] textarea::placeholder{color:#667085}
html[data-gp-color-mode="light"] .gp-contact-modal-dialog,
html[data-gp-color-mode="light"] .gp-contact-modal-body{background:#fff!important;color:#182230!important}
html[data-gp-color-mode="light"] .gp-contact-modal-dialog h2,
html[data-gp-color-mode="light"] .gp-contact-modal-dialog p,
html[data-gp-color-mode="light"] .gp-contact-modal-dialog label{color:#182230!important}
html[data-gp-color-mode="light"] .gp-notification-item,
html[data-gp-color-mode="light"] .gp-friend-card,
html[data-gp-color-mode="light"] .gp-request-card,
html[data-gp-color-mode="light"] .gp-profile-card,
html[data-gp-color-mode="light"] .gp-profile-panel{background:#fff!important;color:#182230!important;border-color:#dce3ed!important}
html[data-gp-color-mode="light"] .gp-notification-item p,
html[data-gp-color-mode="light"] .gp-notification-item small,
html[data-gp-color-mode="light"] .gp-friend-card small,
html[data-gp-color-mode="light"] .gp-request-card small{color:#596579!important}
html[data-gp-color-mode="light"] .gp-models-scroll-btn,
html[data-gp-color-mode="light"] .gp-models-rail-next{background:#fff!important;border-color:#dce3ed!important;color:#344054!important;box-shadow:0 5px 18px rgba(15,23,42,.12)!important}
html[data-gp-color-mode="light"] .gp-models-view-all,
html[data-gp-color-mode="light"] .gp-section-link{color:#5b21b6!important}
html[data-gp-color-mode="light"] .gp-discovery-label{color:#344054!important}
html[data-gp-color-mode="light"] .gp-models-feature-card:hover,
html[data-gp-color-mode="light"] .gp-models-category-card:hover{box-shadow:0 9px 24px rgba(15,23,42,.09)!important}
@media(prefers-reduced-motion:reduce){.gp-theme-mode-toggle{transition:none!important}}

/* Cross-plugin surfaces: keep GP Games and GP Auth readable without modifying those plugins. */
html[data-gp-color-mode="light"] .gp-auth-box,
html[data-gp-color-mode="light"] .gp-edit-box,
html[data-gp-color-mode="light"] .gp-stat-card,
html[data-gp-color-mode="light"] .gp-tabbed-section,
html[data-gp-color-mode="light"] .gp-profile-private-box,
html[data-gp-color-mode="light"] .gp-modal-inner,
html[data-gp-color-mode="light"] .gp-dropdown-menu,
html[data-gp-color-mode="light"] .gp-profile-message-row,
html[data-gp-color-mode="light"] .gp-profile-notification-row,
html[data-gp-color-mode="light"] .gp-activity-row{background:#fff!important;border-color:#dce3ed!important;color:#182230!important;box-shadow:0 7px 24px rgba(15,23,42,.055)!important}
html[data-gp-color-mode="light"] .gp-box-title,
html[data-gp-color-mode="light"] .gp-hero-name,
html[data-gp-color-mode="light"] .gp-stat-value,
html[data-gp-color-mode="light"] .gp-act-title,
html[data-gp-color-mode="light"] .gp-profile-messages-head h3,
html[data-gp-color-mode="light"] .gp-profile-notification-main strong,
html[data-gp-color-mode="light"] .gp-dropdown-menu a,
html[data-gp-color-mode="light"] .gp-profile-message-row{color:#182230!important}
html[data-gp-color-mode="light"] .gp-profile-hero,
html[data-gp-color-mode="light"] .gp-social-profile .gp-profile-hero{background:linear-gradient(135deg,#f4efff 0%,#fff 72%)!important;border-color:#d8ccff!important}
html[data-gp-color-mode="light"] .gp-card-gold{background:linear-gradient(135deg,#fff9e9,#fff)!important;border-color:#f3d99b!important}
html[data-gp-color-mode="light"] .gp-activity-row,
html[data-gp-color-mode="light"] .gp-profile-message-row,
html[data-gp-color-mode="light"] .gp-profile-notification-row,
html[data-gp-color-mode="light"] .gp-social-section,
html[data-gp-color-mode="light"] .gp-social-message-box,
html[data-gp-color-mode="light"] .gp-social-conversations,
html[data-gp-color-mode="light"] .gp-social-thread,
html[data-gp-color-mode="light"] .gp-social-thread-messages{background:#fff!important;border-color:#dce3ed!important;color:#344054!important}
html[data-gp-color-mode="light"] .gp-social-section h3,
html[data-gp-color-mode="light"] .gp-social-message-box h3,
html[data-gp-color-mode="light"] .gp-social-conversation,
html[data-gp-color-mode="light"] .gp-social-thread-head,
html[data-gp-color-mode="light"] .gp-social-game-grid a{color:#182230!important}
html[data-gp-color-mode="light"] .gp-social-conversation{border-bottom-color:#e4e9f1!important}
html[data-gp-color-mode="light"] .gp-social-conversation:hover{background:#f3f0ff!important}
html[data-gp-color-mode="light"] .gp-social-bubble{background:#eef2f7!important;color:#263244!important}
html[data-gp-color-mode="light"] .gp-social-message.is-mine .gp-social-bubble{background:#eee9ff!important;color:#3b1b77!important}
html[data-gp-color-mode="light"] .gp-social-compose input,
html[data-gp-color-mode="light"] .gp-form-group input,
html[data-gp-color-mode="light"] .gp-modal-inner textarea{background:#fff!important;color:#182230!important;border-color:#cbd5e1!important}
html[data-gp-color-mode="light"] .gp-dropdown-menu a:hover{background:#f1f5f9!important}
html[data-gp-color-mode="light"] .gp-tbtn.active{background:#eee9ff!important;color:#4c1d95!important;border-color:#d8ccff!important}
html[data-gp-color-mode="light"] .gp-mobile-bottom-nav{background:rgba(255,255,255,.97)!important;border-top-color:#dce3ed!important;box-shadow:0 -10px 28px rgba(15,23,42,.10)!important}
html[data-gp-color-mode="light"] .gp-mobile-nav-item{color:#596579!important}
html[data-gp-color-mode="light"] .gp-mobile-nav-item:hover,
html[data-gp-color-mode="light"] .gp-mobile-nav-item:focus,
html[data-gp-color-mode="light"] .gp-mobile-nav-icon{color:#344054!important}
html[data-gp-color-mode="light"] .gp-mobile-points-item,
html[data-gp-color-mode="light"] .gp-mobile-points-item .gp-mobile-nav-icon{color:#8a4b00!important}

/* GP Games player/catalog screens. Artwork and the game viewport remain intentionally dark. */
html[data-gp-color-mode="light"] .gp-controls-bar,
html[data-gp-color-mode="light"] .gp-content-card,
html[data-gp-color-mode="light"] .gp-related-card,
html[data-gp-color-mode="light"] .gp-game-card-item,
html[data-gp-color-mode="light"] .gp-chat-room-container{background:#fff!important;border-color:#dce3ed!important;color:#182230!important}
html[data-gp-color-mode="light"] .gp-ctrl-btn{background:#f1f5f9!important;color:#263244!important;border-color:#cbd5e1!important;box-shadow:none!important}
html[data-gp-color-mode="light"] .gp-ctrl-btn:hover{background:#e8e0ff!important;color:#3b1b77!important}
html[data-gp-color-mode="light"] .gp-chat-locked-box,
html[data-gp-color-mode="light"] .gp-chat-messages-box{background:#f1f5f9!important;color:#344054!important}
html[data-gp-color-mode="light"] .gp-chat-input-row input,
html[data-gp-color-mode="light"] .gp-search-filter-field select,
html[data-gp-color-mode="light"] .gp-search-main-row input,
html[data-gp-color-mode="light"] .gp-share-modal-link-only #gpShareReferralLink{background:#fff!important;color:#182230!important;border-color:#cbd5e1!important}
html[data-gp-color-mode="light"] .gp-search-filters{background:#fff!important;border-color:#dce3ed!important}
html[data-gp-color-mode="light"] .gp-like-people-bar{background:rgba(255,255,255,.94)!important;border-color:#dce3ed!important;color:#182230!important}
html[data-gp-color-mode="light"] .gp-like-people-bar h2,
html[data-gp-color-mode="light"] .gp-like-people-bar strong,
html[data-gp-color-mode="light"] .gp-like-people-bar span{color:#263244!important}
html[data-gp-color-mode="light"] .gp-like-modal-box,
html[data-gp-color-mode="light"] .gp-share-modal{background:#fff!important;color:#182230!important;border-color:#dce3ed!important}
html[data-gp-color-mode="light"] .gp-like-modal-head,
html[data-gp-color-mode="light"] .gp-share-head,
html[data-gp-color-mode="light"] .gp-like-person-row{color:#182230!important;border-color:#e4e9f1!important}
html[data-gp-color-mode="light"] .gp-like-modal-head button,
html[data-gp-color-mode="light"] .gp-share-head button{background:#f1f5f9!important;color:#344054!important}
html[data-gp-color-mode="light"] .gp-share-choice{background:#f8fafc!important;color:#263244!important;border-color:#dce3ed!important}
html[data-gp-color-mode="light"] .gp-share-hint{color:#596579!important}

/* Accent labels use deeper tones on light backgrounds so small text stays legible. */
html[data-gp-color-mode="light"] .gp-eyebrow,
html[data-gp-color-mode="light"] .gp-models-kicker,
html[data-gp-color-mode="light"] .gp-models-hero-mark,
html[data-gp-color-mode="light"] .gp-models-lb-score{color:#5b21b6!important}
html[data-gp-color-mode="light"] .gp-footer-tag-1{color:#5b21b6!important}
html[data-gp-color-mode="light"] .gp-footer-tag-2{color:#0e7490!important}
html[data-gp-color-mode="light"] .gp-footer-tag-3{color:#166534!important}
html[data-gp-color-mode="light"] .gp-footer-tag-4{color:#854d0e!important}
html[data-gp-color-mode="light"] .gp-footer-tag-5{color:#9d174d!important}
html[data-gp-color-mode="light"] .gp-footer-tag-6{color:#1d4ed8!important}
html[data-gp-color-mode="light"] .gp-footer-tag-7{color:#991b1b!important}
html[data-gp-color-mode="light"] .gp-footer-tag-8{color:#115e59!important}
html[data-gp-color-mode="light"] .gp-profile-messages-head p,
html[data-gp-color-mode="light"] .gp-profile-message-main span,
html[data-gp-color-mode="light"] .gp-profile-notification-main span,
html[data-gp-color-mode="light"] .gp-profile-notification-main small,
html[data-gp-color-mode="light"] .gp-social-message small{color:#596579!important}

/* Theme-to-plugin color bridge: the theme owns day/night mode; GP plugins inherit this palette. */
html[data-gp-color-mode="light"]{
 --gp-theme-bg:#f5f7fb;
 --gp-theme-surface:#ffffff;
 --gp-theme-card:#ffffff;
 --gp-theme-text:#182230;
 --gp-theme-muted:#596579;
 --gp-theme-border:#dce3ed;
}
html[data-gp-color-mode="dark"] .gp-single-game-page,
html[data-gp-color-mode="dark"] .gp-profile-layout,
html[data-gp-color-mode="dark"] .gp-social-profile,
html[data-gp-color-mode="dark"] .gp-auth-box,
html[data-gp-color-mode="dark"] .gp-player-ranks-page,
html[data-gp-color-mode="dark"] .gp-header-widget,
html[data-gp-color-mode="dark"] .gp-header-widget-v2,
html[data-gp-color-mode="dark"] .gp-private-chat-modal .gp-modal-inner,
html[data-gp-color-mode="dark"] .gp-user-message-box,
html[data-gp-color-mode="dark"] .gp-dedicated-search-page,
html[data-gp-color-mode="dark"] .gp-profile-private-modal .gp-modal-inner,
html[data-gp-color-mode="dark"] .gp-notification-panel,
html[data-gp-color-mode="dark"] .gp-points-center,
html[data-gp-color-mode="dark"] .gp-public-packages{
 --gp-bg:var(--gp-theme-bg,#080b12);
 --gp-card:var(--gp-theme-card,#151c2a);
 --gp-card-elevated:var(--gp-theme-surface,#101522);
 --gp-accent:var(--gp-theme-primary,#7c3aed);
 --gp-accent-hover:var(--gp-theme-primary,#7c3aed);
 --gp-gold:var(--gp-theme-accent,#f59e0b);
 --gp-text:var(--gp-theme-text,#f5f7fb);
 --gp-muted:var(--gp-theme-muted,#8d98ab);
 --gp-border:var(--gp-theme-border,#252d3d);
}
html[data-gp-color-mode="light"] .gp-single-game-page,
html[data-gp-color-mode="light"] .gp-profile-layout,
html[data-gp-color-mode="light"] .gp-social-profile,
html[data-gp-color-mode="light"] .gp-auth-box,
html[data-gp-color-mode="light"] .gp-player-ranks-page,
html[data-gp-color-mode="light"] .gp-header-widget,
html[data-gp-color-mode="light"] .gp-header-widget-v2,
html[data-gp-color-mode="light"] .gp-private-chat-modal .gp-modal-inner,
html[data-gp-color-mode="light"] .gp-user-message-box,
html[data-gp-color-mode="light"] .gp-dedicated-search-page,
html[data-gp-color-mode="light"] .gp-profile-private-modal .gp-modal-inner,
html[data-gp-color-mode="light"] .gp-notification-panel,
html[data-gp-color-mode="light"] .gp-points-center,
html[data-gp-color-mode="light"] .gp-public-packages{
 --gp-bg:var(--gp-theme-bg,#f5f7fb);
 --gp-card:var(--gp-theme-card,#fff);
 --gp-card-elevated:var(--gp-theme-surface,#fff);
 --gp-accent:var(--gp-theme-primary,#5b21b6);
 --gp-accent-hover:var(--gp-theme-primary,#5b21b6);
 --gp-gold:var(--gp-theme-accent,#a16207);
 --gp-text:var(--gp-theme-text,#182230);
 --gp-muted:var(--gp-theme-muted,#596579);
 --gp-border:var(--gp-theme-border,#dce3ed);
}

/* Category icon integration. The uploaded GP Games term icon is the shared source of truth. */
.gp-category-icon-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;line-height:1}
.gp-discovery-icon .gp-category-icon-image{width:24px;height:24px;object-fit:contain}
.gp-model-cat-icon{width:34px;height:34px;display:inline-grid;place-items:center;flex:0 0 34px;overflow:hidden}
.gp-model-cat-icon .gp-category-icon-image{width:30px;height:30px}
.gp-category-page-heading h1{display:flex;align-items:center;gap:12px}
.gp-category-heading-icon{display:inline-grid;place-items:center;width:42px;height:42px;flex:0 0 42px;object-fit:contain;border-radius:10px}
.gp-category-page-heading h1 .gp-category-heading-icon{width:42px;height:42px}
.gp-sidebar-icon .gp-sidebar-custom-icon{width:23px;height:23px;object-fit:contain;display:block}
.gp-sidebar-icon .gp-sidebar-fallback-icon{display:grid;place-items:center;width:100%;height:100%;font-size:15px;line-height:1}
@media(max-width:800px){.gp-category-page-heading h1{gap:9px}.gp-category-heading-icon,.gp-category-page-heading h1 .gp-category-heading-icon{width:34px;height:34px;flex-basis:34px}}

/* Light mode: complete readable surfaces for GP Auth/Profile, messages and GP Games. */
html[data-gp-color-mode="light"] .gp-auth-box,
html[data-gp-color-mode="light"] .gp-edit-box,
html[data-gp-color-mode="light"] .gp-stat-card,
html[data-gp-color-mode="light"] .gp-tabbed-section,
html[data-gp-color-mode="light"] .gp-profile-private-box,
html[data-gp-color-mode="light"] .gp-profile-admin-messages,
html[data-gp-color-mode="light"] .gp-profile-privacy-card,
html[data-gp-color-mode="light"] .gp-danger-zone-card,
html[data-gp-color-mode="light"] .gp-affiliate-profile-card,
html[data-gp-color-mode="light"] .gp-private-chat-layout,
html[data-gp-color-mode="light"] .gp-private-conversations,
html[data-gp-color-mode="light"] .gp-private-thread,
html[data-gp-color-mode="light"] .gp-rank-row,
html[data-gp-color-mode="light"] .gp-ranks-info-grid article,
html[data-gp-color-mode="light"] .gp-activation-pending-card,
html[data-gp-color-mode="light"] .gp-modal-inner,
html[data-gp-color-mode="light"] .gp-user-message-box{background:#fff!important;border-color:#dce3ed!important;color:#182230!important;box-shadow:0 7px 24px rgba(15,23,42,.055)!important}
html[data-gp-color-mode="light"] .gp-profile-admin-messages-head,
html[data-gp-color-mode="light"] .gp-profile-admin-message-row,
html[data-gp-color-mode="light"] .gp-profile-messages-head,
html[data-gp-color-mode="light"] .gp-profile-notification-row,
html[data-gp-color-mode="light"] .gp-notification-item,
html[data-gp-color-mode="light"] .gp-conversation-item,
html[data-gp-color-mode="light"] .gp-rank-row{border-color:#e4e9f1!important}
html[data-gp-color-mode="light"] .gp-profile-admin-messages-head,
html[data-gp-color-mode="light"] .gp-profile-messages-head,
html[data-gp-color-mode="light"] .gp-profile-notification-row,
html[data-gp-color-mode="light"] .gp-notification-item,
html[data-gp-color-mode="light"] .gp-conversation-item,
html[data-gp-color-mode="light"] .gp-rank-row{color:#182230!important}
html[data-gp-color-mode="light"] .gp-box-title,
html[data-gp-color-mode="light"] .gp-hero-name,
html[data-gp-color-mode="light"] .gp-hero-details,
html[data-gp-color-mode="light"] .gp-hero-tags,
html[data-gp-color-mode="light"] .gp-stat-value,
html[data-gp-color-mode="light"] .gp-stat-info strong,
html[data-gp-color-mode="light"] .gp-act-title,
html[data-gp-color-mode="light"] .gp-profile-admin-messages-head strong,
html[data-gp-color-mode="light"] .gp-profile-admin-message-main strong,
html[data-gp-color-mode="light"] .gp-profile-admin-message-main>span,
html[data-gp-color-mode="light"] .gp-profile-message-main,
html[data-gp-color-mode="light"] .gp-profile-notification-main strong,
html[data-gp-color-mode="light"] .gp-social-section h3,
html[data-gp-color-mode="light"] .gp-social-message-box h3,
html[data-gp-color-mode="light"] .gp-social-conversation,
html[data-gp-color-mode="light"] .gp-social-thread-head,
html[data-gp-color-mode="light"] .gp-private-thread-head,
html[data-gp-color-mode="light"] .gp-rank-player,
html[data-gp-color-mode="light"] .gp-rank-title,
html[data-gp-color-mode="light"] .gp-ranks-hero h1,
html[data-gp-color-mode="light"] .gp-activation-pending-card h1,
html[data-gp-color-mode="light"] .gp-user-message-head{color:#182230!important}
html[data-gp-color-mode="light"] .gp-subtitle,
html[data-gp-color-mode="light"] .gp-form-group label,
html[data-gp-color-mode="light"] .gp-form-footer,
html[data-gp-color-mode="light"] .gp-hero-handle,
html[data-gp-color-mode="light"] .gp-stat-label,
html[data-gp-color-mode="light"] .gp-act-time,
html[data-gp-color-mode="light"] .gp-profile-admin-message-main small,
html[data-gp-color-mode="light"] .gp-profile-admin-messages-empty,
html[data-gp-color-mode="light"] .gp-profile-message-main span,
html[data-gp-color-mode="light"] .gp-profile-notification-main span,
html[data-gp-color-mode="light"] .gp-profile-notification-main small,
html[data-gp-color-mode="light"] .gp-social-message small,
html[data-gp-color-mode="light"] .gp-conversation-main,
html[data-gp-color-mode="light"] .gp-conversation-item small,
html[data-gp-color-mode="light"] .gp-rank-position,
html[data-gp-color-mode="light"] .gp-activation-pending-card p,
html[data-gp-color-mode="light"] .gp-user-message-body{color:#596579!important}
html[data-gp-color-mode="light"] .gp-auth-box input:not([type="checkbox"]):not([type="radio"]),
html[data-gp-color-mode="light"] .gp-auth-box select,
html[data-gp-color-mode="light"] .gp-auth-box textarea,
html[data-gp-color-mode="light"] .gp-form-group input,
html[data-gp-color-mode="light"] .gp-country-select,
html[data-gp-color-mode="light"] .gp-private-input-row input,
html[data-gp-color-mode="light"] .gp-social-compose input,
html[data-gp-color-mode="light"] .gp-user-message-box textarea,
html[data-gp-color-mode="light"] .gp-user-message-box input{background:#fff!important;color:#182230!important;border-color:#cbd5e1!important;box-shadow:none!important}
html[data-gp-color-mode="light"] .gp-auth-box input::placeholder,
html[data-gp-color-mode="light"] .gp-auth-box textarea::placeholder,
html[data-gp-color-mode="light"] .gp-social-compose input::placeholder{color:#667085!important}
html[data-gp-color-mode="light"] .gp-profile-admin-message-sender-icon,
html[data-gp-color-mode="light"] .gp-profile-notification-icon,
html[data-gp-color-mode="light"] .gp-stat-icon{background:#f0edff!important;color:#5b21b6!important}
html[data-gp-color-mode="light"] .gp-profile-admin-message-row:hover,
html[data-gp-color-mode="light"] .gp-notification-item:hover,
html[data-gp-color-mode="light"] .gp-conversation-item:hover{background:#f5f3ff!important}

/* GP Games views: keep only the actual game viewport/cover dark; surrounding UI follows the mode. */
html[data-gp-color-mode="light"] .gp-single-game-page,
html[data-gp-color-mode="light"] .gp-dedicated-search-page{background:#f5f7fb!important;color:#182230!important}
html[data-gp-color-mode="light"] .gp-controls-bar,
html[data-gp-color-mode="light"] .gp-content-card,
html[data-gp-color-mode="light"] .gp-related-card,
html[data-gp-color-mode="light"] .gp-game-card-item,
html[data-gp-color-mode="light"] .gp-chat-room-container,
html[data-gp-color-mode="light"] .gp-game-intro-card,
html[data-gp-color-mode="light"] .gp-download-card,
html[data-gp-color-mode="light"] .gp-share-reward-card,
html[data-gp-color-mode="light"] .gp-share-link-box,
html[data-gp-color-mode="light"] .gp-search-filters,
html[data-gp-color-mode="light"] .gp-search-results-head,
html[data-gp-color-mode="light"] .gp-dedicated-search-form{background:#fff!important;border-color:#dce3ed!important;color:#182230!important;box-shadow:0 7px 24px rgba(15,23,42,.045)!important}
html[data-gp-color-mode="light"] .gp-game-title,
html[data-gp-color-mode="light"] .gp-block-heading,
html[data-gp-color-mode="light"] .gp-chat-header,
html[data-gp-color-mode="light"] .gp-rel-title,
html[data-gp-color-mode="light"] .gp-download-title,
html[data-gp-color-mode="light"] .gp-download-copy,
html[data-gp-color-mode="light"] .gp-download-subline,
html[data-gp-color-mode="light"] .gp-tags-title,
html[data-gp-color-mode="light"] .gp-chat-message-text,
html[data-gp-color-mode="light"] .gp-chat-author,
html[data-gp-color-mode="light"] .gp-chat-message-time,
html[data-gp-color-mode="light"] .gp-share-choice-name,
html[data-gp-color-mode="light"] .gp-search-results-head h2{color:#182230!important}
html[data-gp-color-mode="light"] .gp-gameplay-notice,
html[data-gp-color-mode="light"] .gp-chat-locked-box,
html[data-gp-color-mode="light"] .gp-chat-messages-box,
html[data-gp-color-mode="light"] .gp-chat-hint,
html[data-gp-color-mode="light"] .gp-share-hint,
html[data-gp-color-mode="light"] .gp-share-note,
html[data-gp-color-mode="light"] .gp-rel-meta,
html[data-gp-color-mode="light"] .gp-tag-pill-sm{background:#f1f5f9!important;color:#475467!important;border-color:#dce3ed!important}
html[data-gp-color-mode="light"] .gp-chat-input-row input,
html[data-gp-color-mode="light"] .gp-search-filter-field select,
html[data-gp-color-mode="light"] .gp-search-main-row input,
html[data-gp-color-mode="light"] .gp-dedicated-search-form input,
html[data-gp-color-mode="light"] .gp-dedicated-search-form select,
html[data-gp-color-mode="light"] .gp-dedicated-search-form textarea,
html[data-gp-color-mode="light"] .gp-share-modal-link-only #gpShareReferralLink{background:#fff!important;color:#182230!important;border-color:#cbd5e1!important}
html[data-gp-color-mode="light"] .gp-game-login-notice{background:#fff7ed!important;border-color:#fed7aa!important;color:#9a3412!important}
html[data-gp-color-mode="light"] .gp-game-login-notice a{color:#6d28d9!important}
html[data-gp-color-mode="light"] .gp-like-people-bar{background:rgba(255,255,255,.96)!important;border-color:#dce3ed!important;color:#182230!important}
html[data-gp-color-mode="light"] .gp-like-people-bar h2,
html[data-gp-color-mode="light"] .gp-like-people-bar strong,
html[data-gp-color-mode="light"] .gp-like-people-bar span{color:#263244!important}
html[data-gp-color-mode="light"] .gp-like-modal-box,
html[data-gp-color-mode="light"] .gp-share-modal,
html[data-gp-color-mode="light"] .gp-modal-inner{background:#fff!important;color:#182230!important;border-color:#dce3ed!important}
html[data-gp-color-mode="light"] .gp-like-modal-head,
html[data-gp-color-mode="light"] .gp-share-head,
html[data-gp-color-mode="light"] .gp-like-person-row{color:#182230!important;border-color:#e4e9f1!important}
html[data-gp-color-mode="light"] .gp-like-modal-head button,
html[data-gp-color-mode="light"] .gp-share-head button{background:#f1f5f9!important;color:#344054!important}
html[data-gp-color-mode="light"] .gp-share-choice{background:#f8fafc!important;color:#263244!important;border-color:#dce3ed!important}
html[data-gp-color-mode="light"] .gp-viewport-wrapper{background:#000!important}

/* Preserve legible contrast in dark mode for plugin forms and modal controls. */
html[data-gp-color-mode="dark"] .gp-auth-box,
html[data-gp-color-mode="dark"] .gp-edit-box,
html[data-gp-color-mode="dark"] .gp-modal-inner,
html[data-gp-color-mode="dark"] .gp-user-message-box,
html[data-gp-color-mode="dark"] .gp-single-game-page,
html[data-gp-color-mode="dark"] .gp-dedicated-search-page{color:var(--gp-theme-text,#f5f7fb)}


/* GP Points Core: its cards follow the selected theme mode without changing the plugin. */
html[data-gp-color-mode="light"] .gp-points-center{color:#182230!important}
html[data-gp-color-mode="light"] .gp-points-hero{background:linear-gradient(135deg,#eee8ff,#fff 72%)!important;border-color:#d8ccff!important;color:#182230!important;box-shadow:0 18px 42px rgba(15,23,42,.08)!important}
html[data-gp-color-mode="light"] .gp-points-hero h1,
html[data-gp-color-mode="light"] .gp-points-hero h1 small{color:#182230!important}
html[data-gp-color-mode="light"] .gp-points-hero p,
html[data-gp-color-mode="light"] .gp-points-feature-grid span,
html[data-gp-color-mode="light"] .gp-public-package p{color:#596579!important}
html[data-gp-color-mode="light"] .gp-points-feature-grid>div{background:#fff!important;border-color:#dce3ed!important;color:#182230!important;box-shadow:0 8px 25px rgba(15,23,42,.04)!important}
html[data-gp-color-mode="light"] .gp-public-package{background:linear-gradient(160deg,#fff,#f8fafc)!important;border-color:#dce3ed!important;color:#182230!important;box-shadow:0 10px 30px rgba(15,23,42,.055)!important}
html[data-gp-color-mode="light"] .gp-public-package.featured{background:linear-gradient(155deg,#fff9e8,#fff)!important;border-color:#e8c56d!important;box-shadow:0 14px 34px rgba(161,98,7,.09)!important}
html[data-gp-color-mode="light"] .gp-public-package h3,
html[data-gp-color-mode="light"] .gp-package-points,
html[data-gp-color-mode="light"] .gp-package-price{color:#182230!important}
html[data-gp-color-mode="light"] .gp-package-index{color:#596579!important}
html[data-gp-color-mode="light"] .gp-public-package button{background:#f1edff!important;border-color:#d8ccff!important;color:#4c1d95!important}
html[data-gp-color-mode="light"] .gp-points-method-card{background:linear-gradient(148deg,color-mix(in srgb,var(--method-accent,#8b5cf6) 10%,#fff),#fff 75%)!important;border-color:color-mix(in srgb,var(--method-accent,#8b5cf6) 32%,#dce3ed)!important;box-shadow:0 12px 30px rgba(15,23,42,.055)!important;color:#182230!important}
html[data-gp-color-mode="light"] .gp-points-method-card:hover,
html[data-gp-color-mode="light"] .gp-points-method-card:focus{background:linear-gradient(148deg,color-mix(in srgb,var(--method-accent,#8b5cf6) 16%,#fff),#fff 75%)!important;color:#182230!important}
html[data-gp-color-mode="light"] .gp-points-method-card>strong{color:#182230!important}
html[data-gp-color-mode="light"] .gp-points-method-card>span:not(.gp-points-method-icon):not(.gp-points-method-glow){color:#596579!important}
html[data-gp-color-mode="light"] .gp-points-method-index{color:#667085!important}
html[data-gp-color-mode="light"] .gp-points-method-action{border-top-color:#e4e9f1!important}
html[data-gp-color-mode="light"] .gp-points-method-icon{background:color-mix(in srgb,var(--method-accent,#8b5cf6) 12%,#fff)!important;box-shadow:none!important}
html[data-gp-color-mode="light"] .gp-points-method-icon svg{stroke:currentColor!important}
.gp-category-icon-image:not(img){display:grid;place-items:center;text-align:center}
html[data-gp-color-mode="light"] .gp-private-messages,
html[data-gp-color-mode="light"] .gp-social-thread-messages{background:#f1f5f9!important;border-color:#dce3ed!important;color:#263244!important}
html[data-gp-color-mode="light"] .gp-notification-head{color:#182230!important;border-bottom-color:#e4e9f1!important}
html[data-gp-color-mode="light"] .gp-notification-head button{color:#6d28d9!important}
html[data-gp-color-mode="light"] .gp-notification-trigger{background:#fff!important;border-color:#dce3ed!important;color:#344054!important}
html[data-gp-color-mode="light"] .gp-notification-copy strong{color:#182230!important}
html[data-gp-color-mode="light"] .gp-notification-copy span,
html[data-gp-color-mode="light"] .gp-notification-copy small{color:#596579!important}
html[data-gp-color-mode="light"] .gp-points-pill{background:#fff!important;border-color:#e5c16b!important;color:#8a4b00!important}
html[data-gp-color-mode="light"] .gp-add-points{background:#8b5cf6!important;color:#fff!important}
html[data-gp-color-mode="light"] .gp-download-cost{color:#b91c1c!important}


/* v2.2.1 readability fixes for GP Games headings and GP Auth Friends panels in light mode. */
html[data-gp-color-mode="light"] .gp-single-game-page .gp-game-header-bar .gp-game-title,
html[data-gp-color-mode="light"] .gp-single-game-page .gp-header-left .gp-game-title,
html[data-gp-color-mode="light"] .gp-single-game-page .gp-content-card .gp-card-title,
html[data-gp-color-mode="light"] .gp-single-game-page .gp-block-heading h3,
html[data-gp-color-mode="light"] .gp-single-game-page .gp-chat-header h4,
html[data-gp-color-mode="light"] .gp-single-game-page .gp-related-card h4,
html[data-gp-color-mode="light"] .gp-single-game-page .gp-recommendations-block h3,
html[data-gp-color-mode="light"] .gp-single-game-page .gp-content-card h2,
html[data-gp-color-mode="light"] .gp-single-game-page .gp-content-card h3,
html[data-gp-color-mode="light"] .gp-single-game-page .gp-content-card h4,
html[data-gp-color-mode="light"] .gp-single-game-page .gp-game-title,
html[data-gp-color-mode="light"] .gp-social-friends-head h3,
html[data-gp-color-mode="light"] .gp-social-friends-panel h4 {
  color: #182230 !important;
}
html[data-gp-color-mode="light"] .gp-single-game-page .gp-content-card,
html[data-gp-color-mode="light"] .gp-single-game-page .gp-chat-room-container,
html[data-gp-color-mode="light"] .gp-single-game-page .gp-related-card {
  color: #344054 !important;
}
html[data-gp-color-mode="light"] .gp-single-game-page .gp-rel-item,
html[data-gp-color-mode="light"] .gp-single-game-page .gp-rel-title,
html[data-gp-color-mode="light"] .gp-single-game-page .gp-content-card a:not(.gp-btn-primary):not(.gp-btn-card-play) {
  color: #263244 !important;
}
html[data-gp-color-mode="light"] .gp-single-game-page .gp-chat-header,
html[data-gp-color-mode="light"] .gp-single-game-page .gp-block-heading,
html[data-gp-color-mode="light"] .gp-single-game-page .gp-content-card .gp-card-title {
  border-color: #dce3ed !important;
}
html[data-gp-color-mode="light"] .gp-social-friends-panel {
  background: #fff !important;
  border-color: #dce3ed !important;
  color: #344054 !important;
}
html[data-gp-color-mode="light"] .gp-social-person a,
html[data-gp-color-mode="light"] .gp-social-person a strong {
  color: #182230 !important;
}
html[data-gp-color-mode="light"] .gp-social-person small,
html[data-gp-color-mode="light"] .gp-social-pending-label {
  color: #596579 !important;
}
html[data-gp-color-mode="light"] .gp-social-person {
  border-bottom-color: #e4e9f1 !important;
}
html[data-gp-color-mode="light"] .gp-social-person-action {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #344054 !important;
}
html[data-gp-color-mode="light"] .gp-social-person-action:hover {
  background: #eee9ff !important;
  border-color: #d8ccff !important;
  color: #4c1d95 !important;
}


/* Contact form readability fix for light mode (theme-only; does not alter plugin styles). */
html[data-gp-color-mode="light"] .gp-contact-form,
html[data-gp-color-mode="light"] .gp-contact-modal-dialog {
  background: #ffffff !important;
  color: #182230 !important;
  border-color: #dce3ed !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .08) !important;
}
html[data-gp-color-mode="light"] .gp-contact-modal-head {
  background: rgba(255, 255, 255, .96) !important;
  border-bottom-color: #e4e9f1 !important;
}
html[data-gp-color-mode="light"] .gp-contact-modal-head h2,
html[data-gp-color-mode="light"] .gp-contact-modal-head p,
html[data-gp-color-mode="light"] .gp-contact-modal-dialog label,
html[data-gp-color-mode="light"] .gp-contact-form label {
  color: #263244 !important;
}
html[data-gp-color-mode="light"] .gp-contact-kicker { color: #6d28d9 !important; }
html[data-gp-color-mode="light"] .gp-contact-close {
  background: #f8fafc !important;
  color: #344054 !important;
  border-color: #d0d5dd !important;
}
html[data-gp-color-mode="light"] .gp-contact-form input:not([type="checkbox"]):not([type="radio"]),
html[data-gp-color-mode="light"] .gp-contact-form select,
html[data-gp-color-mode="light"] .gp-contact-form textarea,
html[data-gp-color-mode="light"] .gp-contact-modal .gp-contact-form input:not([type="checkbox"]):not([type="radio"]),
html[data-gp-color-mode="light"] .gp-contact-modal .gp-contact-form select,
html[data-gp-color-mode="light"] .gp-contact-modal .gp-contact-form textarea {
  background: #ffffff !important;
  color: #182230 !important;
  border-color: #cbd5e1 !important;
  box-shadow: none;
}
html[data-gp-color-mode="light"] .gp-contact-form input::placeholder,
html[data-gp-color-mode="light"] .gp-contact-form textarea::placeholder { color: #667085 !important; opacity: 1; }
html[data-gp-color-mode="light"] .gp-contact-form input:focus,
html[data-gp-color-mode="light"] .gp-contact-form select:focus,
html[data-gp-color-mode="light"] .gp-contact-form textarea:focus {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .13) !important;
  outline: none;
}
html[data-gp-color-mode="light"] .gp-contact-limit-note { color: #667085 !important; }
html[data-gp-color-mode="light"] .gp-contact-login-note {
  background: #f8fafc !important;
  border-color: #dce3ed !important;
  color: #344054 !important;
}
html[data-gp-color-mode="light"] .gp-contact-status.success {
  background: #ecfdf3 !important;
  border-color: #abefc6 !important;
  color: #067647 !important;
}
html[data-gp-color-mode="light"] .gp-contact-status.limit {
  background: #fffaeb !important;
  border-color: #fedf89 !important;
  color: #93370d !important;
}
html[data-gp-color-mode="light"] .gp-contact-form input[type="checkbox"],
html[data-gp-color-mode="light"] .gp-contact-form input[type="radio"] { accent-color: #6d28d9; }
