/* V4.7D — final visual polish. NO layout geometry changes. */

/* Hide remaining native duplicate panel titles */
body.gpv47b .gpv47b-majority .section-title,
body.gpv47b .gpv47b-riksdag .section-title{
  display:none !important;
}

/* Make our HUD headers feel like actual arcade plaques */
body.gpv47b .gpv47b-majority::before,
body.gpv47b .gpv47b-riksdag::before,
body.gpv47b .gpv47b-reaction::before,
body.gpv47b .gpv47b-source::before,
body.gpv47b .gpv47b-stat::before{
  background:
    linear-gradient(180deg,#081529 0%,#020914 100%) !important;
  box-shadow:
    3px 3px 0 #000,
    inset 0 0 0 1px rgba(255,255,255,.12) !important;
}

/* Subtle 8-bit corner pixels */
body.gpv47b .gpv47b-card{
  --pxdot:rgba(255,255,255,.10);
}
body.gpv47b .gpv47b-card{
  background-image:
    linear-gradient(180deg,rgba(8,27,50,.97),rgba(4,15,31,.98)),
    radial-gradient(circle at 6px 6px,var(--pxdot) 1px,transparent 1.5px) !important;
  background-size:100% 100%,12px 12px !important;
}

/* Stats: extra arcade separation between label and big number */
body.gpv47b .gpv47b-stat .label{
  border-bottom:1px solid color-mix(in srgb,var(--gpv-accent) 40%,transparent);
  padding-bottom:3px !important;
  margin-bottom:4px !important;
}
body.gpv47b .gpv47b-stat .districtPct{
  color:#dceafa !important;
}

/* Boss 175 deserves to pop */
body.gpv47b .gpv47b-boss .mid,
body.gpv47b .gpv47b-boss strong{
  color:#ffe33b !important;
  text-shadow:3px 3px 0 #000,0 0 8px rgba(255,227,59,.26) !important;
}

/* Mandatkampen: plaque at top, bar remains hero */
body.gpv47b .gpv47b-majority{
  background-image:
    linear-gradient(180deg,rgba(7,24,49,.97),rgba(4,14,31,.98)),
    url('/assets/v46curated/maps/sweden.png') !important;
  background-repeat:no-repeat,no-repeat !important;
  background-size:100% 100%,92px auto !important;
  background-position:0 0,right 12px top 10px !important;
}
body.gpv47b .gpv47b-majority .track{
  height:auto !important;
  min-height:40px !important;
}

/* Riksdagen: make the chamber graphic slightly more present, still behind seats */
body.gpv47b .gpv47b-riksdag{
  background-image:
    linear-gradient(180deg,rgba(5,19,40,.92),rgba(4,13,28,.96)),
    url('/assets/v46curated/backgrounds/riksdagen.png') !important;
  background-size:100% 100%,48% auto !important;
  background-position:0 0,right 16px bottom 16px !important;
}
body.gpv47b .gpv47b-riksdag .seatmap{
  filter:drop-shadow(3px 3px 0 rgba(0,0,0,.55));
}

/* Reaction Arena: stronger studio standby visual */
body.gpv47b .gpv47b-reaction{
  background-image:
    linear-gradient(90deg,rgba(4,18,40,.93),rgba(15,12,52,.70)),
    url('/assets/v46curated/backgrounds/studio.png') !important;
  background-size:100% 100%,46% auto !important;
  background-position:0 0,right 10px bottom 8px !important;
}
body.gpv47b .gpv47b-reaction .showHead{
  color:#9bc7e6 !important;
}
body.gpv47b .gpv47b-reaction .kicker{
  color:#21dcff !important;
  text-shadow:2px 2px 0 #000 !important;
}

/* Datamotor: cleaner hierarchy */
body.gpv47b .gpv47b-source .sourceText{
  color:#fff !important;
  text-shadow:2px 2px 0 #000 !important;
}
body.gpv47b .gpv47b-source .clock{
  color:#fff !important;
  text-shadow:3px 3px 0 #000 !important;
}

/* Parties: subtle scanline border glow, no geometry changes */
body.gpv47b .gpv47b-parties .party{
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    3px 3px 0 #02060d !important;
}

/* Ticker: stronger separation and cleaner label */
body.gpv47b .gpv47b-ticker{
  box-shadow:
    0 -3px 0 #02060d,
    inset 0 1px 0 rgba(255,255,255,.06) !important;
}
body.gpv47b .gpv47b-ticker::before{
  background:
    linear-gradient(135deg,#ff2d9d 0 48%,#7627d8 49% 100%) !important;
  border-right:3px solid #21dcff !important;
}
body.gpv47b .gpv47b-ticker .marquee{
  color:#f5fbff !important;
}

/* Native WAITING/LIVE: keep them compact */
body.gpv47b .v43safe-topstack img{
  filter:drop-shadow(3px 3px 0 #000) !important;
}
body.gpv47b .gpv47b-livechip{
  transform:none !important;
}

/* 9:16: visual polish only */
body[data-pixel-layout="9"].gpv47b .gpv47b-majority{
  background-size:100% 100%,70px auto !important;
}
body[data-pixel-layout="9"].gpv47b .gpv47b-reaction{
  background-size:100% 100%,52% auto !important;
}
body[data-pixel-layout="9"].gpv47b .gpv47b-riksdag{
  background-size:100% 100%,54% auto !important;
}
