/* DSX0 Neon Blue & Silver — V3 laboratory refinements
 * Restores layout contracts omitted by v2 CSS without touching any leaderboard API scripts.
 * Active ONLY on the home page. The existing public DOM IDs/data attributes are preserved.
 */
:root { --dsx-v3-cyan:#08d7ff; --dsx-v3-ice:#e8f7ff; --dsx-v3-steel:#8cb5d1; }

/* MATCH THE TYPOGRAPHY ACROSS HERO, CLOCK, RANKING AND BUTTONS */
.neon-home, .neon-home button, .neon-home a,
.neon-home .time, .neon-home .dsx-countdown-boxes,
.neon-home .neon-ranking, .neon-home .neon-social {
  font-family:Inter, "Segoe UI", Arial, sans-serif;
}

/* Restore the approved sequence: prize first, then clock, then CTA.
 * V2 accidentally moved prizePool after the call-to-action by giving it order:2.
 */
.neon-hero-inner > .neon-hero-eyebrow { order:0; }
.neon-hero-inner > .neon-chip { order:1; }
.neon-hero-inner > h1 { order:2; }
.neon-hero-inner > .neon-pool-label { order:3; margin-top:1px; }
.neon-hero-inner > .neon-hero-prize { order:4; margin-bottom:4px; font-size:clamp(43px,4.2vw,65px); line-height:1.02; }
.neon-hero-inner > .neon-timer-label { order:5; }
.neon-hero-inner > .time { order:6; }
.neon-hero-inner > .neon-primary-btn { order:7; }
@media(max-width:720px){
  .neon-hero-inner > .neon-hero-prize { font-size:clamp(43px,10vw,63px); margin-bottom:5px; }
}

/* Keep the CTA fully inside the hero's fixed desktop height. */
@media(min-width:721px){
  .neon-hero-inner { padding-top:15px; padding-bottom:10px; }
  .neon-hero-eyebrow { margin-bottom:1px; }
  .neon-hero h1 { margin-top:1px; margin-bottom:3px; }
  .neon-hero .time { margin-top:3px; margin-bottom:7px; min-height:56px; }
  .neon-hero .dsx-countdown-unit { min-height:54px; height:54px; }
  .neon-hero .neon-primary-btn { min-height:34px; padding-top:8px; padding-bottom:8px; }
}
/* HERO COUNTDOWN — four stable, equally-sized, high-contrast metal cells */
.neon-hero-inner { min-width:0; }
.neon-hero .neon-timer-label {
  display:block; font-size:10px !important; letter-spacing:.15em !important;
  font-weight:850; color:#c7e0f0 !important; margin:1px 0 3px;
}
.neon-hero .time {
  display:flex; align-items:center; width:auto; max-width:100%;
  margin:4px 0 12px; min-height:61px;
}
.neon-hero #gold-countdown {
  display:block; min-width:0; max-width:100%; color:var(--dsx-v3-ice);
  font-variant-numeric:tabular-nums; font-size:13px; font-weight:750;
}
.neon-hero .dsx-countdown-boxes {
  display:grid !important; grid-template-columns:repeat(4, minmax(0, 1fr));
  align-items:stretch; gap:7px; width:292px; max-width:100%; margin:0;
}
.neon-hero .dsx-countdown-unit {
  box-sizing:border-box; min-width:0; width:auto; height:58px; min-height:58px;
  display:flex !important; flex-direction:column; align-items:center; justify-content:center;
  gap:2px; padding:6px 3px 5px; border-radius:9px;
  border:1px solid rgba(117,201,242,.56);
  background:linear-gradient(155deg,#1a3e59 0%,#0c2034 42%,#07111d 100%);
  box-shadow:inset 0 1px 0 rgba(224,246,255,.22),inset 0 -2px 5px rgba(0,0,0,.48),
             0 5px 9px rgba(0,0,0,.28),0 0 12px rgba(0,179,255,.18);
}
.neon-hero .dsx-countdown-value {
  display:block; font-family:inherit; font-variant-numeric:tabular-nums;
  font-size:25px; line-height:1; letter-spacing:-.025em;
  font-weight:850; color:#f7fcff;
  text-shadow:0 1px 0 rgba(0,0,0,.8),0 0 13px rgba(80,209,255,.25);
}
.neon-hero .dsx-countdown-label {
  display:block; font-family:inherit; font-size:9px; line-height:1.1;
  font-weight:750; margin-top:2px; letter-spacing:.08em;
  text-transform:uppercase; color:#a8d8f0;
}

/* ORIGINAL, CLEAR FOUR-COLUMN RANKING STRUCTURE IN THE NEW SILVER STYLE */
.neon-ranking .neon-section-head {
  display:flex !important; flex-wrap:wrap; align-items:center;
  justify-content:space-between; gap:8px 16px; padding:0 0 10px;
  border-bottom:1px solid rgba(126,175,211,.26);
}
.neon-ranking .neon-section-head > div { min-width:0; }
.neon-ranking .neon-section-head h2 {
  font-family:inherit; margin:0; font-size:clamp(18px,1.6vw,25px);
  line-height:1.15; font-weight:900; letter-spacing:-.04em;
}
.neon-ranking .neon-section-head a { font-size:12px; line-height:1.4; font-weight:700; }
.neon-ranking .gold-ranking-period {
  display:flex !important; align-items:center; flex-wrap:wrap; gap:7px;
  font-size:11px; line-height:1.4; padding:9px 0;
  border-bottom:1px solid rgba(125,169,199,.20); color:#d0e3ef;
}
.neon-ranking .gold-ranking-period .neon-period-icon { display:inline-block; font-size:16px; color:#13d5ff; }
.neon-ranking .boardhead,
.neon-ranking .rank {
  display:grid !important;
  grid-template-columns:44px minmax(0,1.55fr) minmax(103px,.8fr) minmax(86px,.65fr);
  align-items:center; gap:10px; width:100%; min-width:0;
}
.neon-ranking .boardhead {
  padding:10px 0 8px; font-size:10px; letter-spacing:.1em; font-weight:800;
  color:#a3bcd1; border-bottom:1px solid rgba(115,167,207,.30);
}
.neon-ranking .rank {
  min-height:44px; padding:8px 0; font-size:13px;
  border-top:0; border-bottom:1px solid rgba(99,141,175,.23);
  color:#eaf7ff; font-variant-numeric:tabular-nums;
}
.neon-ranking .rank:last-child { border-bottom:0; }
.neon-ranking .rank > * { min-width:0; }
.neon-ranking .rank > span:nth-child(2) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:750; }
.neon-ranking .rank > span:nth-child(3),
.neon-ranking .rank > span:nth-child(4),
.neon-ranking .boardhead > span:nth-child(3),
.neon-ranking .boardhead > span:nth-child(4) { text-align:right; white-space:nowrap; }
.neon-ranking .rank > span:nth-child(4) { font-weight:850; color:#f2fbff; }
.neon-ranking .rank > strong {
  display:flex !important; align-items:center; justify-content:center;
  flex:none; width:32px; height:32px; min-width:32px;
  padding:0; margin:0; border-radius:8px; font-size:12px;
  border:1px solid #466982; color:#cce7f8;
  background:linear-gradient(150deg,#22394e,#0e1d2b);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.13),0 3px 8px rgba(0,0,0,.18);
}
/* Same trophy-index treatment as the old leaderboard, now in chrome/cyan. */
.neon-ranking .rank[data-podium] > strong { font-size:0; }
.neon-ranking .rank[data-podium] > strong::before {
  content:""; display:block; width:19px; height:19px; flex:none;
  -webkit-mask:url('./dsx0-neon-rank-cup-v3.svg') center / contain no-repeat;
  mask:url('./dsx0-neon-rank-cup-v3.svg') center / contain no-repeat;
  background:linear-gradient(155deg,#f9fcff,#39dcff 65%,#007dbd);
  filter:drop-shadow(0 0 5px rgba(31,207,255,.25));
}
.neon-ranking .rank[data-podium="2"] > strong::before { background:linear-gradient(160deg,#fff,#beced9 65%,#738ca0); }
.neon-ranking .rank[data-podium="3"] > strong::before { background:linear-gradient(160deg,#ffddb9,#ba7f65 60%,#8f5b49); }
.neon-ranking .rank[data-podium="1"] > strong { border-color:#16b7e5; box-shadow:inset 0 0 0 1px #a2eaff18,0 0 13px #00cbff20; }

/* EXISTING OFFICIAL SOCIAL SVGS — PRESERVED, RECOLORED WHITE AND SHARP */
.neon-social .gold-social-grid {
  display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px; margin-top:15px; width:100%;
}
.neon-social .gold-social-button {
  display:flex !important; align-items:center; justify-content:flex-start;
  gap:8px; min-width:0; min-height:46px; padding:7px 10px;
  border-radius:10px; position:relative; overflow:hidden;
  color:#f3faff; border:1px solid #427b9b;
  background:linear-gradient(166deg,rgba(34,77,108,.94) 0%,rgba(14,39,62,.96) 46%,rgba(6,18,31,.97) 100%);
  box-shadow:inset 0 1px 0 rgba(234,251,255,.23),inset 0 -2px 4px rgba(0,0,0,.46),
             0 4px 10px rgba(0,0,0,.25),0 0 12px rgba(0,166,255,.11);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.neon-social .gold-social-button::before {
  content:""; position:absolute; inset:0 auto 0 0; width:2px;
  background:linear-gradient(180deg,transparent,#31d9ff,transparent); opacity:.85;
}
.neon-social .gold-social-icon {
  display:grid !important; place-items:center; flex:0 0 29px;
  width:29px; height:29px; border-radius:8px;
  background:linear-gradient(140deg,#264a64,#0b233b);
  border:1px solid rgba(130,219,255,.29);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 2px 6px rgba(0,0,0,.25);
}
.neon-social .gold-social-icon img {
  display:block !important; width:19px !important; height:19px !important;
  object-fit:contain; opacity:1 !important;
  filter:brightness(0) invert(1) drop-shadow(0 0 3px rgba(40,218,255,.28));
}
.neon-social .gold-social-name { display:block; min-width:0; flex:1 1 auto; font-size:12px; font-weight:800; white-space:nowrap; }
.neon-social .gold-social-arrow { display:inline-block; flex:none; color:#4edbff; font-size:13px; line-height:1; font-weight:900; }
.neon-social .gold-social-button:hover,
.neon-social .gold-social-button:focus-visible {
  transform:translateY(-2px); border-color:#36d9ff;
  box-shadow:inset 0 1px 0 rgba(234,251,255,.31),inset 0 -2px 4px rgba(0,0,0,.45),
             0 8px 16px rgba(0,0,0,.35),0 0 21px rgba(0,208,255,.35);
  background:linear-gradient(155deg,#286e9b,#134b71 52%,#081d32);
}
.neon-social .gold-social-button:active { transform:translateY(1px); }

@media(max-width:1020px){
  .neon-ranking .boardhead,.neon-ranking .rank {
    grid-template-columns:36px minmax(0,1.35fr) minmax(85px,.8fr) minmax(70px,.65fr);
    gap:7px;
  }
  .neon-social .gold-social-grid { max-width:390px; }
}
@media(max-width:720px){
  .neon-hero .dsx-countdown-boxes { width:272px; gap:6px; }
  .neon-hero .dsx-countdown-unit { height:56px; min-height:56px; }
  .neon-hero .dsx-countdown-value { font-size:23px; }
  .neon-ranking .boardhead,.neon-ranking .rank {
    grid-template-columns:34px minmax(0,1.4fr) minmax(75px,.8fr) minmax(66px,.65fr);
    gap:6px;
  }
  .neon-ranking .rank { font-size:12px; }
  .neon-ranking .rank > strong { width:29px; height:29px; min-width:29px; }
  .neon-ranking .boardhead { font-size:9px; }
  .neon-social .gold-social-button { min-height:44px; padding:7px; gap:6px; }
  .neon-social .gold-social-icon { flex-basis:25px; width:25px; height:25px; }
  .neon-social .gold-social-name { font-size:11px; }
}
@media(max-width:400px){
  .neon-hero .dsx-countdown-boxes { width:244px; gap:4px; }
  .neon-hero .dsx-countdown-unit { height:53px; min-height:53px; padding:5px 2px; }
  .neon-hero .dsx-countdown-value { font-size:21px; }
  .neon-hero .dsx-countdown-label { font-size:8px; }
  .neon-ranking .boardhead,.neon-ranking .rank {
    grid-template-columns:28px minmax(0,1.4fr) minmax(65px,.85fr) minmax(55px,.75fr);
    gap:4px;
  }
  .neon-ranking .rank { font-size:11px; }
  .neon-ranking .rank > strong { width:26px; height:26px; min-width:26px; }
  .neon-ranking .rank[data-podium] > strong::before { width:17px; height:17px; }
  .neon-ranking .boardhead { font-size:8px; }
  .neon-social .gold-social-arrow { display:none; }
  .neon-social .gold-social-icon { flex-basis:22px; width:22px; height:24px; }
  .neon-social .gold-social-icon img { width:17px !important; height:17px !important; }
}
@media(prefers-reduced-motion:reduce){.neon-social .gold-social-button{transition:none}}
