/* Planetkey Darkmode fix 2026-10-30. Shared by DE / NET / FR / ES. */
html[data-pk-theme="dark"]{color-scheme:dark;background:#1e292f!important;--pk-dm-bg:#1e292f;--pk-dm-header:#121b20;--pk-dm-nav:#182228;--pk-dm-panel:#29373f;--pk-dm-raised:#354851;--pk-dm-line:#465a65;--pk-dm-text:#f5f7fa;--pk-dm-muted:#c6d0d6;--pk-dm-orange:#ff4d00}
/* Local templates redefine these variables. Override at their point of use too. */
html[data-pk-theme="dark"],html[data-pk-theme="dark"] *{--pk-ink:#f5f7fa!important;--pk-muted:#c6d0d6!important;--pk-line:#465a65!important;--pk-orange:#ff4d00!important;--fg-ink:#f5f7fa!important;--fg-muted:#c6d0d6!important;--fg-orange:#ff4d00!important}
html[data-pk-theme="dark"] body{background:#1e292f!important;color:#f5f7fa}
html[data-pk-theme="dark"] :is(.pk-header,.header-wrap,#footer-top-wrap,#footer-bottom-wrap,#mobile-menu,#account-options-menu){background-color:#121b20!important;border-color:#3c505b!important}
html[data-pk-theme="dark"] :is(.main-menu-wrap,.pk-main-navigation){background-color:#182228!important;border-color:#344650!important}
html[data-pk-theme="dark"] :is(.section-wrap,#pk-game,#pk-shop-overview,#pk-shop-detail,#pk-platform-overview,#pk-platform-detail,#pk-blog,#pk-faq,#pk-free-games,#pk-release-calendar,#pk-giftcards,#pk-page,#pk-coupons,.pk-contact){background-color:#1e292f!important}
html[data-pk-theme="dark"] :is(.pk-panel,.pk-services,.pk-product-card,.pk-shortcuts>a,.headline,.post,.sidebar-item,.form-popup,.pki-panel,.pki-coupon,.pkc-card,.pkp-article,.pkp-group,.fg-section,.fg-editorial,.fg-faq){background-color:#29373f!important;border-color:#465a65!important}
html[data-pk-theme="dark"] :is(.pk-rank-item,.pk-offer,.pk-offer-row,.pk-offer-card,.pk-price-stat,.fg-card,.fg-card-body){background-color:#354851!important;border-color:#4a606c!important}
html[data-pk-theme="dark"] :is(input:not([type=submit]):not([type=button]):not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]),textarea,select,.pk-search){background-color:#2d3e47!important;color:#f5f7fa!important;border-color:#4a606c!important}
html[data-pk-theme="dark"] ::placeholder{color:#c6d0d6!important;opacity:1}
html[data-pk-theme="dark"] :is(input,textarea,select){accent-color:#ff4d00}
html[data-pk-theme="dark"] :is(.dropdown,.inner-dropdown,.pk-nav-children,.pk-locale-menu,.pk-account-options,.pk-platform-info>div){background:#29373f!important;color:#f5f7fa!important;border-color:#465a65!important}
html[data-pk-theme="dark"] :is(.dropdown,.inner-dropdown,.pk-nav-children,.pk-locale-menu,.pk-account-options) :is(a,button,summary,span,p){color:#f5f7fa!important}
html[data-pk-theme="dark"] :is(.dropdown,.pk-nav-children,.pk-locale-menu) :is(a,button,summary):hover{background:#3b505b!important;color:#fff!important}
html[data-pk-theme="dark"] :is(.dropdown,.pk-nav-children) svg{fill:currentColor}
/* Explicit text rules cover headings that arrive with local/late stylesheets. */
html[data-pk-theme="dark"] :is(#pk-page,#pk-cheap,#pk-coupons,#pk-free-games,.pk-contact,.pkp-sidebar) :is(h1,h2,h3,h4,h5,h6,strong,b,summary,dt,label){color:#f5f7fa!important}
html[data-pk-theme="dark"] :is(#pk-page,#pk-cheap,#pk-coupons,#pk-free-games,.pk-contact,.pkp-sidebar) :is(p,li,dd,small,figcaption){color:#c6d0d6!important}
html[data-pk-theme="dark"] :is(.pki-copy,.pki-code,.fg-card-body h3,.fg-card-body h3 a,.fg-card-body strong,.fg-hero h1,.fg-hero h2,.pkc-intro h1){color:#f5f7fa!important}
html[data-pk-theme="dark"] :is(.pki-discount,.pki-intro h1 span,.pkp-body a:not(.button):not(.pk-button),.pkp-sidebar a,.fg-card-cta){color:#ff792f!important}
html[data-pk-theme="dark"] :is(.pki-code,.pki-copy,.fg-hero-tags span,.fg-chip){background-color:#354851!important;border-color:#57707d!important}
html[data-pk-theme="dark"] :is(.fg-kicker,.fg-source,.fg-description,.fg-deadline,.fg-region-note,.fg-count){color:#d2dce2!important}
html[data-pk-theme="dark"] :is(.fg-xbox .fg-kicker,.fg-xbox .fg-chip,.trusted-badge,.trusted-badge-cover,.pks-trusted,.pks-badge-trusted,.pk-trusted,.pk-shop-trusted){color:#a1e9b7!important}
/* Brighter, consistent orange on action buttons, independent of template variables. */
html[data-pk-theme="dark"] :is(.pk-button,.button.primary,.pk-search button,.pki-visit,.pk-shop-button,.pk-alarm button,.pk-alarm-trigger){background:#ff4d00!important;border-color:#ff6a24!important;color:#fff!important}
html[data-pk-theme="dark"] :is(.pk-button,.button.primary,.pk-search button,.pki-visit,.pk-shop-button,.pk-alarm button):hover{background:#ff6a24!important;color:#fff!important}
html[data-pk-theme="dark"] :is(.pk-header,.main-menu-wrap,.pk-main-navigation) :is(.pk-nav-toggle,a,button){color:#f5f7fa}
/**** Banner surfaces: lighter than content cards, with bright orange edges. ****/
html[data-pk-theme="dark"] :is(.pk-promo-designed,.pk-extension-banner,.pk-giveaway,.pke-promo,.pkb-home-promo){background-color:#354e5c!important;border:1px solid #607a89!important;box-shadow:inset 3px 0 0 #ff4d00!important}
html[data-pk-theme="dark"] :is(.pk-chrome-promo,.pk-extension-banner,.pke-promo-extension){background-image:linear-gradient(125deg,#3e5969,#304650)!important}
html[data-pk-theme="dark"] :is(.pk-gift-promo,.pk-giveaway,.pk-mobile-giveaway,.pkb-home-promo){background-image:linear-gradient(125deg,#3d515b,#48574e)!important}
html[data-pk-theme="dark"] :is(.pk-promo-designed,.pk-extension-banner,.pk-giveaway,.pke-promo,.pkb-home-promo) :is(h2,h3,strong,b){color:#fff!important}
html[data-pk-theme="dark"] :is(.pk-promo-designed,.pk-extension-banner,.pk-giveaway,.pke-promo,.pkb-home-promo) p{color:#e0e8ec!important}
html[data-pk-theme="dark"] :is(.pk-promo-cta,.pk-extension-cta,.pk-giveaway>a,.pke-promo-action,.pkb-promo-cta){color:#ff8b4d!important}
html[data-pk-theme="dark"] :is(.pk-extension-mosaic,.pk-giveaway-mosaic){opacity:.3!important}
/**** Logos: no global white background on every logo. ****/
html[data-pk-theme="dark"] :is(img.trustpilot-logo,img[src*="/logos/trustpilot"],img[src*="/shops/icons/"],.pk-platform-logo,.pk-platform-icon,.pk-shortcut-icon){background:transparent!important;box-shadow:none!important;border:0!important}
html[data-pk-theme="dark"] :is(img.trustpilot-logo,img[src*="/logos/trustpilot"]){padding:0!important;border-radius:0!important;filter:none!important}
html[data-pk-theme="dark"] .pki-logo{background:#f5f7fa!important;border-radius:8px;border:1px solid #dce3e8!important}
html[data-pk-theme="dark"] .pki-logo img{background:transparent!important;object-fit:contain!important}
html[data-pk-theme="dark"] img[data-pk-dark-logo]{object-fit:contain!important;filter:none!important}
/**** Switch stays in its place; its full-width grey bar and bottom line disappear. ****/
.pk-theme-bar{clear:both;position:relative;z-index:10;background:transparent;border:0;font:600 12px/1.4 Inter,system-ui,sans-serif;color:#253238}
.pk-theme-inner{max-width:1240px;width:calc(100% - 48px);min-height:38px;margin:auto;display:flex;align-items:center;justify-content:flex-end}
.pk-theme-switch{display:inline-flex!important;align-items:center;gap:9px;min-height:38px;margin:0!important;padding:5px 0!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font:inherit!important;line-height:1.4!important;text-transform:none!important;cursor:pointer;box-shadow:none!important;width:auto!important;height:auto!important}
.pk-theme-track{display:inline-block;width:36px;height:20px;background:#78878f;border-radius:20px;position:relative;flex:none}
.pk-theme-track:after{content:"";position:absolute;left:3px;top:3px;width:14px;height:14px;background:white;border-radius:50%;transition:transform .15s}
.pk-theme-switch[aria-checked=true] .pk-theme-track{background:#ff4d00}
.pk-theme-switch[aria-checked=true] .pk-theme-track:after{transform:translateX(16px)}
html[data-pk-theme="dark"] .pk-theme-bar{background:transparent!important;color:#f5f7fa!important;border:0!important;box-shadow:none!important}
html[data-pk-theme="dark"] .pk-theme-icon{color:#ff792f}
html[data-pk-theme="dark"] :focus-visible{outline:2px solid #ff8b4d!important;outline-offset:3px}
html[data-pk-theme="dark"] ::selection{background:#b83d0b;color:white}
@media(max-width:800px){.pk-theme-inner{width:calc(100% - 28px);min-height:42px}.pk-theme-switch{min-height:42px;gap:10px}}
@media(prefers-reduced-motion:reduce){.pk-theme-track:after{transition:none}}
@media print{.pk-theme-bar{display:none!important}}
html[data-pk-theme-updating] *,html[data-pk-theme-updating] *::before,html[data-pk-theme-updating] *::after{transition:none!important}
/* These templates paint a separate dark overlay above their own background. */
html[data-pk-theme="dark"] body[class] #pk-main .pk-promos a.pk-chrome-promo::after,
html[data-pk-theme="dark"] body[class] #pk-game a.pk-extension-banner::after,
html[data-pk-theme="dark"] body[class] #pk-blog a.pk-extension-banner::after,
html[data-pk-theme="dark"] body[class] a.pke-promo-extension::after{background:linear-gradient(90deg,rgba(62,89,105,.22),rgba(48,70,80,.1))!important}
/* Legacy templates lock text paint separately from color, including their buttons. */
html[data-pk-theme="dark"] .pk-info-page :is(h1,h2,h3,h4,h5,h6,h1 span,.pki-button,.pki-copy),
html[data-pk-theme="dark"] :is(#pk-page,#pk-cheap,#pk-coupons,#pk-free-games,.pk-contact,.form-popup) *{-webkit-text-fill-color:currentColor!important}
html[data-pk-theme="dark"] #pk-free-games .fg-hero{background:linear-gradient(125deg,#354e5c,#29373f)!important}
