/* GET.NEXDO V26 — single authoritative platform button theme + hover system.
   Shared by every PC, mobile and games detail page; no legacy overrides.
   Buttons are light on dark theme, dark on light theme; SVG/logo/text inherit
   readable foreground colors, with a 2-second hover loop only for mouse. */
html[data-theme="dark"]{
 --nexdo-download-bg:#fff;--nexdo-download-ink:#101010;
 --nexdo-download-hover:#e6b340;--nexdo-download-hover-ink:#121212;
}
html[data-theme="light"]{
 --nexdo-download-bg:#101010;--nexdo-download-ink:#fff;
 --nexdo-download-hover:#1768f5;--nexdo-download-hover-ink:#fff;
}
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-grid{
 display:grid!important;
 grid-template-columns:minmax(0,1fr)!important;
 gap:10px!important;width:100%!important;max-width:680px!important;
 margin:12px 0 0!important;padding:0!important;
 align-items:stretch!important;justify-items:stretch!important;
}
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-grid[data-count="2"],
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-grid[data-count="4"],
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-grid[data-count="5"]{
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-grid[data-count="3"]{
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-download-below-art .nexdo-platform-grid[data-count="2"]{
 max-width:min(100%,440px)!important;
}
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-grid[data-count="4"],
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-grid[data-count="5"]{
 max-width:450px!important;
}
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-download{
 box-sizing:border-box!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 gap:9px!important;min-width:0!important;width:100%!important;max-width:none!important;
 height:56px!important;min-height:56px!important;max-height:56px!important;
 margin:0!important;padding:7px 10px!important;
 background:var(--nexdo-download-bg)!important;
 color:var(--nexdo-download-ink)!important;
 border:1px solid var(--nexdo-download-bg)!important;
 border-radius:8px!important;
 box-shadow:none!important;filter:none!important;opacity:1!important;
 text-align:center!important;text-decoration:none!important;
 text-shadow:none!important;transform:none!important;
 font:inherit!important;font-weight:700!important;line-height:1.1!important;
 white-space:normal!important;overflow:hidden!important;
 transition:none!important;
}
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-download:is(:visited,:link,:active){
 color:var(--nexdo-download-ink)!important;
}
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-download :is(.nexdo-platform-label,.nexdo-platform-label strong,.nexdo-platform-label small,.nexdo-platform-brand-svg,.nexdo-platform-brand-symbol){
 color:inherit!important;opacity:1!important;text-shadow:none!important;
}
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-label{
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;
 justify-content:center!important;gap:2px!important;
 text-align:start!important;min-width:0!important;max-width:100%!important;
}
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-label small{
 display:block!important;font-size:9px!important;font-weight:650!important;
 line-height:1.05!important;white-space:nowrap!important;
}
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-label strong{
 display:block!important;font-size:clamp(12px,1.15vw,17px)!important;
 font-weight:800!important;line-height:1.1!important;white-space:normal!important;
 overflow-wrap:normal!important;
}
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-brand-svg,
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-store-brand-svg{
 display:block!important;flex:0 0 27px!important;
 width:27px!important;height:27px!important;
 max-width:27px!important;max-height:27px!important;
 fill:currentColor!important;overflow:visible!important;
}
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-brand-symbol{
 font-size:23px!important;line-height:1!important;flex:none!important;
}
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-official-badge-img{
 display:block!important;max-width:100%!important;max-height:100%!important;
 width:100%!important;height:100%!important;
 object-fit:contain!important;object-position:center!important;
 background:transparent!important;border:0!important;
}
/* Existing legacy source links are kept for data integrity, not duplicated as buttons. */
html[data-theme] .nexdo-publisher-source{display:none!important}
html[data-theme] .nexdo-platform-note{
 font-size:11px!important;line-height:1.5!important;
 margin:7px auto!important;color:var(--muted)!important;
}
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-download:focus-visible{
 outline:3px solid var(--nexdo-download-hover)!important;outline-offset:3px!important;
}
/* A pseudo-element animates ABOVE the base surface, BELOW the actual
   icon/text. Unlike animated background-color, it is not blocked by the
   button's !important theme background declaration. */
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-download{
 position:relative!important;isolation:isolate!important;
}
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-download::before{
 content:"";display:block;position:absolute;inset:0;
 border-radius:inherit;background:var(--nexdo-download-hover);
 opacity:0;z-index:0;pointer-events:none;
}
html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-download > *{
 position:relative;z-index:1;
}
@keyframes nexdoStoreHoverPulse{
 0%,100%{opacity:0}50%{opacity:1}
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-download:hover::before{
  animation:nexdoStoreHoverPulse 2s ease-in-out infinite!important;
 }
}
/* Light theme retains white text on both black base and blue hover.
   Dark theme retains near-black text on both white base and gold hover. */
html[data-theme="light"] :is(.detail-hero,.v-detail) .nexdo-platform-download:hover{
 color:#fff!important;
}
html[data-theme="dark"] :is(.detail-hero,.v-detail) .nexdo-platform-download:hover{
 color:#101010!important;
}
@media (hover:none),(pointer:coarse),(prefers-reduced-motion:reduce){
 html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-download{
  animation:none!important;
 }
}
@media(max-width:760px){
 html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-grid{
  gap:8px!important;max-width:100%!important;
 }
 html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-grid[data-count="3"],
 html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-grid[data-count="4"],
 html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-grid[data-count="5"]{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-download{
  height:52px!important;min-height:52px!important;max-height:52px!important;
  gap:6px!important;padding:6px!important;
 }
 html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-brand-svg,
 html[data-theme] :is(.detail-hero,.v-detail) .nexdo-store-brand-svg{
  flex-basis:22px!important;width:22px!important;height:22px!important;
  max-width:22px!important;max-height:22px!important;
 }
 html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-label small{font-size:7.5px!important}
 html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-label strong{font-size:clamp(10px,3vw,13px)!important}
}
@media(max-width:350px){
 html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-label strong{font-size:10px!important}
 html[data-theme] :is(.detail-hero,.v-detail) .nexdo-platform-brand-svg{flex-basis:18px!important;width:18px!important;height:18px!important}
}
/* Defensive theme contrast for content around buttons on all detail pages. */
html[data-theme="light"] .v-detail :is(h1,.v-lead,.v-rank),
html[data-theme="light"] .v-article :is(h2,p),
html[data-theme="light"] .detail-hero :is(h1,.detail-lead,.detail-os),
html[data-theme="light"] .detail-main :is(.detail-related h2,.detail-related-card strong){
 color:var(--ink)!important;
}
html[data-theme="dark"] .v-detail :is(h1,.v-lead),
html[data-theme="dark"] .v-article :is(h2,p){
 color:var(--ink)!important;
}
/* V24 — Equal-size store badges; V25 - Store badges are the same WHITE surface.
   V26 canonical theme replaces contradictory earlier badge styles entirely. */

/* V27 — Explicit foreground on every nested badge text/logo.
   Some older detail styles apply their own strong/small colors; inherit alone
   loses to those selectors. These theme-specific declarations win consistently. */
html[data-theme="dark"] :is(.detail-hero,.v-detail) .nexdo-platform-download :is(.nexdo-platform-label,.nexdo-platform-label strong,.nexdo-platform-label small,.nexdo-platform-brand-svg,.nexdo-store-brand-svg,.nexdo-platform-brand-symbol){
 color:#101010!important;
}
html[data-theme="light"] :is(.detail-hero,.v-detail) .nexdo-platform-download :is(.nexdo-platform-label,.nexdo-platform-label strong,.nexdo-platform-label small,.nexdo-platform-brand-svg,.nexdo-store-brand-svg,.nexdo-platform-brand-symbol){
 color:#fff!important;
}

/* Logo-only artwork in new catalog detail pages. */
.v-detail[data-nexdo-logo-only] .v-detail-image > img{object-fit:contain!important;aspect-ratio:1!important;max-height:320px!important;object-position:center!important}
.v-card[data-nexdo-logo-only] img,.nexdo-featured-card[data-nexdo-logo-only] img{object-fit:contain!important}
