/*
 * Rankings: match the deep navy Liquid Glass surfaces used throughout the
 * Daily Challenges pages. This changes presentation only, not rank data,
 * icon artwork, medal treatment, sorting or the responsive grid.
 * The optional Growtopia skin keeps its own independent theme.
 */
body[data-theme="glass"][data-current-view="rankings"]:not([data-dc-skin="growtopia"]) #content{
  --dc-rank-edge:rgba(165,205,247,.32);
  --dc-rank-rule:rgba(165,205,247,.18);
}
/* The filter strip and the two leaderboard windows should share the same
   sapphire/navy tint as Overview's rotation and the other DC data panels. */
body[data-theme="glass"][data-current-view="rankings"]:not([data-dc-skin="growtopia"]) #content > .v84-rank-controls{
  background:radial-gradient(ellipse at 0 0,rgba(111,173,240,.14),transparent 57%),linear-gradient(125deg,#142d50,#102747 58%,#0d213d)!important;
  background-image:radial-gradient(ellipse at 0 0,rgba(111,173,240,.14),transparent 57%),linear-gradient(125deg,#142d50,#102747 58%,#0d213d)!important;
  border-color:var(--dc-rank-edge)!important;
  box-shadow:inset 0 1px rgba(230,244,255,.15),0 10px 24px rgba(1,10,29,.14)!important;
}
body[data-theme="glass"][data-current-view="rankings"]:not([data-dc-skin="growtopia"]) #content > .v84-rank-columns > .v84-rank-panel{
  background:radial-gradient(ellipse at 12% 0,rgba(111,173,240,.14),transparent 57%),linear-gradient(150deg,#162f51,#102846 52%,#0c213d)!important;
  background-image:radial-gradient(ellipse at 12% 0,rgba(111,173,240,.14),transparent 57%),linear-gradient(150deg,#162f51,#102846 52%,#0c213d)!important;
  border:1px solid var(--dc-rank-edge)!important;
  box-shadow:inset 0 1px rgba(230,244,255,.14),0 12px 28px rgba(1,10,29,.16)!important;
  backdrop-filter:blur(18px) saturate(125%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(125%)!important;
}
/* Older generic glass pseudo-elements lay a gray-blue wash over the panel.
   The panel now owns its surface and inset highlight directly. */
body[data-theme="glass"][data-current-view="rankings"]:not([data-dc-skin="growtopia"]) #content > .v84-rank-columns > .v84-rank-panel::before,
body[data-theme="glass"][data-current-view="rankings"]:not([data-dc-skin="growtopia"]) #content > .v84-rank-columns > .v84-rank-panel::after{
  content:none!important;
  display:none!important;
}
body[data-theme="glass"][data-current-view="rankings"]:not([data-dc-skin="growtopia"]) #content .v84-rank-panel-title{
  background:transparent!important;
  border-bottom-color:var(--dc-rank-rule)!important;
}
body[data-theme="glass"][data-current-view="rankings"]:not([data-dc-skin="growtopia"]) #content .v84-rank-panel .v5-ranking-head{
  background:transparent!important;
  border-bottom-color:var(--dc-rank-rule)!important;
}
/* Quiet rows inside the windows. Keep the original gold/silver/bronze
   background and left-edge winner accents completely untouched. */
body[data-theme="glass"][data-current-view="rankings"]:not([data-dc-skin="growtopia"]) #content .v84-rank-panel .v5-ranking-row:not(.place-1):not(.place-2):not(.place-3){
  background:linear-gradient(105deg,rgba(94,152,218,.10),rgba(10,32,60,.44))!important;
  border-color:rgba(157,205,252,.19)!important;
  box-shadow:inset 0 1px rgba(234,246,255,.045)!important;
}
body[data-theme="glass"][data-current-view="rankings"]:not([data-dc-skin="growtopia"]) #content .v84-rank-panel .v5-ranking-row:not(.place-1):not(.place-2):not(.place-3):hover{
  background:linear-gradient(105deg,rgba(108,175,244,.20),rgba(25,58,103,.50))!important;
  border-color:rgba(170,216,255,.48)!important;
}
@media(max-width:860px){
  /* Keep the existing one-column mobile grids, stat widths and touch targets. */
  body[data-theme="glass"][data-current-view="rankings"]:not([data-dc-skin="growtopia"]) #content > .v84-rank-columns > .v84-rank-panel{
    box-shadow:inset 0 1px rgba(230,244,255,.14),0 6px 16px rgba(1,10,29,.13)!important;
  }
}
