/* The Daily hero: an inviting, balanced celebration of the actual top run.
   The player artwork and its click-to-preview behavior are untouched.
   Use rarity-score-frames.css for the ONLY score box + its inward colored glow. */

.best-card{
 margin:22px auto 28px;
 width:min(100%,632px);
 max-width:632px;
 padding:23px 25px 23px;
 border-radius:24px;
 background:linear-gradient(129deg,#fff9dc 0%,#f8faee 52%,#eaf6fd 100%);
 border:1px solid #d8e0e6;
 box-shadow:0 10px 27px rgba(37,47,62,.075);
 overflow:hidden;
}
.best-card .best-crown{
 display:flex;
 justify-content:center;
 align-items:center;
 gap:10px;
 width:max-content;
 max-width:100%;
 margin:0 auto 8px;
 color:#e5b54d;
}
.best-card .best-crown::before,.best-card .best-crown::after{
 content:"";
 display:block;
 width:26px;
 height:3px;
 border-radius:999px;
 background:rgba(219,194,144,.36);
}
.best-card .best-crown svg{display:block;flex-shrink:0;width:23px;height:20px}
.best-card #bestHeading{
 font-size:clamp(15px,1.8vw,19px);
 letter-spacing:.135em;
 line-height:1.23;
 color:#304359;
 font-weight:950;
}

.best-card .best-feature-row{
 display:grid;
 grid-template-columns:minmax(0,1fr) minmax(0,170px);
 column-gap:clamp(13px,3vw,24px);
 align-items:center;
 justify-items:stretch;
 width:min(100%,490px);
 max-width:490px;
 margin:18px auto 14px;
 min-width:0;
}
.best-card .best-score-stage,
.best-card .best-art-stage{
 position:relative;
 display:grid;
 place-items:center;
 min-width:0;
 width:100%;
 isolation:isolate;
}
/* Quiet, hand-drawn-looking emphasis without an animated light show. */
.best-card .best-score-stage::before,
.best-card .best-score-stage::after{
 content:"";
 position:absolute;
 left:-26px;
 width:16px;
 height:4px;
 border-radius:999px;
 background:color-mix(in srgb,var(--leader-tier-ink,#599fd4) 36%,#9dcaf0);
 transform:rotate(48deg);
 opacity:.75;
 pointer-events:none;
}
.best-card .best-score-stage::before{top:4%}
.best-card .best-score-stage::after{bottom:40%;transform:rotate(-35deg)}
.best-card .best-feature-row #bestScore{
 display:flex;
 justify-content:center;
 align-items:center;
 width:fit-content;
 max-width:calc(100% - 25px);
 min-width:123px;
 min-height:96px;
 margin:0 auto;
 padding:12px 17px;
 font-size:clamp(34px,4.6vw,58px);
 line-height:1;
 border-radius:20px;
 border-width:2px;
 letter-spacing:0;
 font-variant-numeric:tabular-nums;
 white-space:nowrap;
 overflow-wrap:normal;
 text-shadow:none;
}
/* Count size rather than game rules: additional digits must not push the
   artwork off-screen. Not applied to the small leaderboard list chips. */
.best-card .best-feature-row #bestScore[data-digits="5"]{font-size:clamp(35px,4.4vw,63px)}
.best-card .best-feature-row #bestScore[data-digits="6"]{font-size:clamp(28px,3.8vw,54px)}
.best-card .best-feature-row #bestScore[data-digits="7"]{font-size:clamp(24px,3.1vw,45px)}
.best-card .best-feature-row #bestScore[data-digits="8"]{font-size:clamp(20px,2.7vw,36px)}
.best-card .best-feature-row #bestScore[data-digits="9"]{font-size:clamp(17px,2.3vw,31px)}
.best-card .best-feature-row #bestScore[data-digits="long"]{
 font-size:clamp(13px,1.8vw,24px);
 white-space:normal;
 overflow-wrap:anywhere;
}
.best-card .best-art-stage::before{
 content:"";
 position:absolute;
 left:0;
 bottom:15%;
 width:13px;
 height:13px;
 background:#f0c556;
 clip-path:polygon(50% 0%,63% 36%,100% 50%,63% 64%,50% 100%,37% 64%,0% 50%,37% 36%);
 opacity:.8;
 pointer-events:none;
}
.best-card .best-art-stage::after{
 content:"";
 position:absolute;
 right:0;
 top:19%;
 width:10px;
 height:10px;
 border-radius:50%;
 background:#f0c556;
 opacity:.7;
 pointer-events:none;
}
.best-card .best-feature-row #bestDrawing{
 display:block;
 width:min(100% - 20px,158px);
 max-width:158px;
 height:auto;
 aspect-ratio:1;
 margin:0 auto;
 background:#fff;
 border:4px solid #fff;
 outline:3px solid #9a89d8;
 border-radius:50%;
 object-fit:contain;
 box-shadow:0 7px 19px rgba(83,76,115,.12),0 0 0 1px rgba(77,64,109,.2);
 cursor:zoom-in;
 transition:box-shadow .15s ease;
}
.best-card .best-feature-row #bestDrawing:hover{
 box-shadow:0 13px 26px rgba(83,76,115,.2),0 0 0 1px rgba(77,64,109,.2);
}
.best-card .best-feature-row #bestDrawing:focus-visible{
 outline:4px solid #6485d1;
 outline-offset:5px;
}
.best-card .best-feature-row #bestDrawing.hidden{display:none!important}
.best-card .best-feature-row:has(#bestDrawing.hidden){
 grid-template-columns:minmax(0,1fr);
 max-width:380px;
}
.best-card .best-feature-row:has(#bestDrawing.hidden) .best-art-stage{
 display:none;
}
.best-card .best-feature-row:has(#bestDrawing.hidden) .best-score-stage::before,
.best-card .best-feature-row:has(#bestDrawing.hidden) .best-score-stage::after{
 display:none;
}
.best-card .best-user{
 margin:8px auto 0;
 max-width:100%;
 font-size:clamp(20px,2.6vw,27px);
 font-weight:950;
 letter-spacing:-.04em;
 line-height:1.2;
 color:#376fae;
 overflow-wrap:anywhere;
 text-shadow:0 1px 0 rgba(255,255,255,.55);
}
.best-card .best-stats{
 display:block;
 width:fit-content;
 max-width:100%;
 margin:10px auto 0;
 padding:9px 15px;
 border:1px solid rgba(137,176,217,.37);
 background:rgba(255,255,255,.52);
 border-radius:999px;
 color:#586577;
 line-height:1.45;
 font-size:clamp(12px,1.2vw,14px);
 font-weight:600;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
 white-space:normal;
 overflow-wrap:anywhere;
}
html[data-theme="dark"] .best-card{
 background:linear-gradient(130deg,#292b36 0%,#252e37 60%,#253541 100%);
 border-color:#4d5668;
 box-shadow:0 13px 33px rgba(0,0,0,.2);
}
html[data-theme="dark"] .best-card .best-crown{color:#d6ad60}
html[data-theme="dark"] .best-card .best-crown::before,
html[data-theme="dark"] .best-card .best-crown::after{background:rgba(212,179,108,.22)}
html[data-theme="dark"] .best-card #bestHeading{color:#e7ecf5}
html[data-theme="dark"] .best-card .best-user{
 color:#b8cdec;
 text-shadow:0 1px 0 rgba(0,0,0,.2);
}
html[data-theme="dark"] .best-card .best-stats{
 background:rgba(61,74,90,.65);
 border-color:#566a80;
 color:#d8e0ec;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
html[data-theme="dark"] .best-card .best-feature-row #bestDrawing{
 outline-color:#9282c4;
 border-color:#e9e9f0;
 box-shadow:0 10px 25px rgba(0,0,0,.2);
}
html[data-theme="dark"] .best-card .best-art-stage::before,
html[data-theme="dark"] .best-card .best-art-stage::after{background:#c8a15c}
@media(max-width:700px){
 .best-card{padding:23px 15px 25px}
 .best-card .best-feature-row{
  column-gap:clamp(11px,3.6vw,22px);
  margin:19px auto 15px;
 }
 .best-card .best-feature-row #bestScore{
  min-width:0;
  min-height:clamp(75px,16vw,115px);
  max-width:calc(100% - 16px);
  padding:12px clamp(8px,2.2vw,18px);
  font-size:clamp(30px,7vw,49px);
  border-radius:17px;
 }
 .best-card .best-feature-row #bestScore[data-digits="5"]{font-size:clamp(24px,5.7vw,40px)}
 .best-card .best-feature-row #bestScore[data-digits="6"]{font-size:clamp(20px,4.7vw,34px)}
 .best-card .best-feature-row #bestScore[data-digits="7"]{font-size:clamp(17px,4vw,28px)}
 .best-card .best-feature-row #bestScore[data-digits="8"]{font-size:clamp(15px,3.5vw,25px)}
 .best-card .best-feature-row #bestScore[data-digits="9"]{font-size:clamp(13px,3vw,21px)}
 .best-card .best-feature-row #bestScore[data-digits="long"]{font-size:clamp(12px,2.5vw,17px)}
 .best-card .best-feature-row #bestDrawing{
  width:min(100% - 18px,160px);
  border-width:4px;
  outline-width:3px;
 }
 .best-card .best-score-stage::before,
 .best-card .best-score-stage::after{height:5px;width:12px}
 .best-card .best-art-stage::before{width:13px;height:13px}
 .best-card .best-art-stage::after{width:7px;height:7px}
 .best-card .best-stats{border-radius:18px}
}
@media(max-width:370px){
 .best-card{padding-left:12px;padding-right:12px}
 .best-card .best-feature-row{
  grid-template-columns:minmax(0,1fr) minmax(0,.95fr);
  column-gap:9px;
 }
 .best-card .best-feature-row #bestScore{
  font-size:30px;
  min-height:72px;
  padding:9px 7px;
 }
 .best-card .best-feature-row #bestDrawing{width:min(100% - 12px,130px)}
 .best-card .best-score-stage::before,
 .best-card .best-score-stage::after{display:none}
}
@media(prefers-reduced-motion:reduce){
 .best-card .best-feature-row #bestDrawing{transition:none}
}


/* Small-screen orientation: at phone widths keep the real wheel big enough
   to understand and tap, rather than squeezing two tiny columns together. */
@media(max-width:440px){
 .best-card{width:min(100%,375px);padding:17px 12px 19px;border-radius:20px}
 .best-card .best-crown{margin-bottom:7px}
 .best-card #bestHeading{font-size:16px}
 
 .best-card .best-feature-row{
  grid-template-columns:minmax(0,1fr);
  width:min(100%,275px);
  max-width:275px;
  row-gap:14px;
  margin:14px auto 12px;
 }
 .best-card .best-feature-row #bestScore{
  min-width:121px;
  min-height:78px;
  padding:10px 13px;
  border-radius:18px;
  font-size:clamp(32px,9vw,40px);
 }
 .best-card .best-feature-row #bestScore[data-digits="5"]{font-size:clamp(27px,7.3vw,34px)}
 .best-card .best-feature-row #bestScore[data-digits="6"]{font-size:clamp(22px,6.4vw,29px)}
 .best-card .best-feature-row #bestScore[data-digits="7"]{font-size:clamp(19px,5.4vw,26px)}
 .best-card .best-feature-row #bestScore[data-digits="8"]{font-size:clamp(17px,4.4vw,22px)}
 .best-card .best-feature-row #bestScore[data-digits="9"]{font-size:clamp(14px,3.8vw,19px)}
 .best-card .best-feature-row #bestScore[data-digits="long"]{font-size:clamp(12px,3.2vw,16px)}
 .best-card .best-feature-row #bestDrawing{width:min(100%,128px);max-width:128px}
 .best-card .best-score-stage::before,.best-card .best-score-stage::after,
 .best-card .best-art-stage::before,.best-card .best-art-stage::after{display:none}
 .best-card .best-user{margin-top:6px;font-size:clamp(20px,6vw,24px)}
 .best-card .best-stats{margin-top:9px;padding:8px 12px;border-radius:17px;font-size:12px}
}


/* 2026-10: feature the winner as one coherent player-and-artwork pairing.
   Presentation only: keep the rarity score frame, untouched player image, and preview. */
.best-card{
 width:min(100%,670px);
 max-width:670px;
 margin:22px auto 28px;
 padding:24px clamp(17px,4vw,34px) 22px;
 background:
  radial-gradient(ellipse at 3% 0%,rgba(255,244,190,.49),transparent 48%),
  radial-gradient(ellipse at 100% 100%,rgba(213,235,255,.50),transparent 55%),
  linear-gradient(125deg,#fffdf1 0%,#f8fbf7 54%,#f2f8fe 100%);
 border:1px solid #d9e3e9;
 border-radius:27px;
 box-shadow:0 12px 36px rgba(55,74,96,.07);
}
.best-card .best-crown{margin-bottom:9px}
.best-card #bestHeading{
 font-size:clamp(16px,2vw,20px);
 letter-spacing:.12em;
 line-height:1.28;
}

.best-card .best-feature-row{
 display:grid;
 grid-template-columns:minmax(0,1fr) minmax(0,1fr);
 align-items:center;
 justify-items:center;
 width:min(100%,475px);
 max-width:475px;
 gap:clamp(15px,3vw,26px);
 margin:21px auto 19px;
}
.best-card .best-score-stage{
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;
 gap:14px;
}
.best-card .best-feature-row #bestScore{
 display:flex;
 align-items:center;
 justify-content:center;
 box-sizing:border-box;
 width:fit-content;
 min-width:140px;
 min-height:104px;
 max-width:100%;
 padding:14px 21px;
 margin:0;
 font-size:clamp(37px,4.8vw,58px);
 line-height:1.08;
 font-weight:950;
 letter-spacing:0;
 border-radius:19px;
 white-space:nowrap;
 overflow-wrap:normal;
}
.best-card .best-feature-row #bestScore[data-digits="5"]{font-size:clamp(33px,4.1vw,51px)}
.best-card .best-feature-row #bestScore[data-digits="6"]{font-size:clamp(28px,3.5vw,43px)}
.best-card .best-feature-row #bestScore[data-digits="7"]{font-size:clamp(23px,3vw,36px)}
.best-card .best-feature-row #bestScore[data-digits="8"]{font-size:clamp(19px,2.5vw,30px)}
.best-card .best-feature-row #bestScore[data-digits="9"]{font-size:clamp(16px,2.2vw,27px)}
.best-card .best-feature-row #bestScore[data-digits="long"]{
 font-size:clamp(13px,1.8vw,20px);
 white-space:normal;
 overflow-wrap:anywhere;
}
.best-card .best-user{
 margin:0;
 max-width:100%;
 color:#477fb8;
 font-size:clamp(19px,2.6vw,25px);
 font-weight:900;
 line-height:1.2;
 letter-spacing:-.025em;
 overflow-wrap:anywhere;
 text-align:center;
}
.best-card .best-feature-row #bestDrawing{
 width:min(100% - 25px,168px);
 max-width:168px;
 border:4px solid #fff;
 outline:3px solid #9c8fda;
 outline-offset:3px;
 box-shadow:0 8px 23px rgba(91,83,139,.13),0 0 0 8px rgba(171,157,219,.11);
}
.best-card .best-feature-row:has(#bestDrawing.hidden){
 grid-template-columns:minmax(0,1fr);
 max-width:380px;
 margin-bottom:16px;
}
.best-card .best-stats{margin:0 auto}
.best-card .best-stats:has(.best-metric){
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 align-items:stretch;
 width:min(100%,522px);
 max-width:522px;
 padding:11px 7px;
 border-radius:17px;
 background:rgba(255,255,255,.62);
 border:1px solid rgba(158,184,209,.42);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
.best-card .best-metric{
 display:flex;
 flex-direction:column;
 justify-content:center;
 align-items:center;
 min-width:0;
 gap:2px;
 padding:2px 4px;
 line-height:1.15;
 white-space:normal;
}
.best-card .best-metric + .best-metric{border-left:1px solid rgba(148,166,188,.27)}
.best-card .best-metric strong{
 display:block;
 color:#354c67;
 font-size:clamp(17px,2.3vw,21px);
 font-weight:900;
 font-variant-numeric:tabular-nums;
}
.best-card .best-metric span{
 display:block;
 color:#748399;
 font-size:10px;
 font-weight:800;
 letter-spacing:.045em;
 text-transform:uppercase;
}
html[data-theme="dark"] .best-card{
 background:
  radial-gradient(ellipse at 4% 0%,rgba(115,102,78,.16),transparent 49%),
  radial-gradient(ellipse at 98% 100%,rgba(78,112,143,.13),transparent 56%),
  linear-gradient(125deg,#2c2d38,#272e38 56%,#293640);
 border-color:#495666;
 box-shadow:0 12px 32px rgba(0,0,0,.19);
}
html[data-theme="dark"] .best-card .best-user{color:#b8cdec}
html[data-theme="dark"] .best-card .best-stats:has(.best-metric){
 background:rgba(55,65,79,.72);
 border-color:#526073;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
html[data-theme="dark"] .best-card .best-metric + .best-metric{border-left-color:#516073}
html[data-theme="dark"] .best-card .best-metric strong{color:#e5ecf5}
html[data-theme="dark"] .best-card .best-metric span{color:#b9c7d9}
html[data-theme="dark"] .best-card .best-feature-row #bestDrawing{
 border-color:#e8e9ef;
 outline-color:#9b8ccf;
 box-shadow:0 9px 23px rgba(0,0,0,.17),0 0 0 8px rgba(163,152,205,.085);
}
@media(max-width:540px){
 .best-card{padding:21px 15px 20px;border-radius:23px}
 .best-card .best-feature-row{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  width:min(100%,380px);
  max-width:380px;
  gap:14px;
  margin:18px auto 17px;
 }
 .best-card .best-score-stage{gap:12px}
 .best-card .best-feature-row #bestScore{
  min-width:112px;
  min-height:83px;
  max-width:100%;
  padding:10px 12px;
  font-size:clamp(32px,8vw,43px);
  border-radius:16px;
 }
 .best-card .best-feature-row #bestScore[data-digits="5"]{font-size:clamp(23px,6.2vw,34px)}
 .best-card .best-feature-row #bestScore[data-digits="6"]{font-size:clamp(20px,5.3vw,29px)}
 .best-card .best-feature-row #bestScore[data-digits="7"]{font-size:clamp(17px,4.5vw,25px)}
 .best-card .best-feature-row #bestScore[data-digits="8"]{font-size:clamp(15px,3.8vw,22px)}
 .best-card .best-feature-row #bestScore[data-digits="9"]{font-size:clamp(13px,3.4vw,19px)}
 .best-card .best-feature-row #bestScore[data-digits="long"]{font-size:clamp(12px,2.9vw,16px)}
 .best-card .best-user{font-size:clamp(17px,5vw,22px)}
 .best-card .best-feature-row #bestDrawing{
  width:min(100% - 19px,148px);
  max-width:148px;
  border-width:3px;
  outline-width:3px;
 }
 .best-card .best-stats:has(.best-metric){padding:10px 4px}
 .best-card .best-metric strong{font-size:18px}
 .best-card .best-metric span{font-size:9px;letter-spacing:0}
 .best-card .best-score-stage::before,.best-card .best-score-stage::after,
 .best-card .best-art-stage::before,.best-card .best-art-stage::after{display:none}
}
@media(max-width:340px){
 .best-card{padding:18px 11px}
 .best-card .best-feature-row{gap:8px}
 .best-card .best-feature-row #bestScore{min-width:0;min-height:73px;padding:9px 8px}
 .best-card .best-feature-row #bestDrawing{width:min(100% - 10px,126px)}
 .best-card .best-stats:has(.best-metric){grid-template-columns:repeat(2,minmax(0,1fr));row-gap:10px}
 .best-card .best-metric:nth-child(3){border-left:none}
}

/* Leaderboard hero height lock: Today/Week/All-Time/Longest Runs display
   an artwork and four metrics, while Points/Badges/Ducks hide the artwork
   and show one line of text. The card must never resize between categories
   or push the category tabs/list around while loading. */
.best-card{
 box-sizing:border-box;
 height:408px;
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:flex-start;
}
.best-card .best-crown,
.best-card #bestHeading,
.best-card .best-stats{flex:0 0 auto}
.best-card .best-feature-row{
 flex:1 1 auto;
 min-height:0;
}
/* The phone's narrower score and artwork need slightly different reserved
   room; use one fixed height within each viewport band. */
@media(max-width:540px){
 .best-card{height:385px}
}
@media(max-width:340px){
 .best-card{height:415px}
}

/* All-time Points, Badges and Ducks: identical four blue corner rays,
   anchored to the score box. Star positions may differ by board. */
.best-score-frame{display:contents}
.best-score-ray,.best-leader-stars{display:none}
/* Hide the earlier generic two-stroke decoration on the three collection
   boards so only their matching four-corner rays appear. */
.leader-main:has(:is(.leader-tab[data-tab="points"].active,.leader-tab[data-tab="badges"].active,.leader-tab[data-tab="ducks"].active)) .best-card .best-score-stage::before,
.leader-main:has(:is(.leader-tab[data-tab="points"].active,.leader-tab[data-tab="badges"].active,.leader-tab[data-tab="ducks"].active)) .best-card .best-score-stage::after{display:none}
.best-card{position:relative}
.leader-main:has(:is(.leader-tab[data-tab="points"].active,.leader-tab[data-tab="badges"].active,.leader-tab[data-tab="ducks"].active)) .best-card .best-score-frame{
 display:inline-flex;
 position:relative;
 align-items:center;
 justify-content:center;
 max-width:100%;
 min-width:0;
}
.leader-main:has(:is(.leader-tab[data-tab="points"].active,.leader-tab[data-tab="badges"].active,.leader-tab[data-tab="ducks"].active)) .best-card .best-score-ray{
 display:block;
 position:absolute;
 width:22px;
 height:5px;
 border-radius:999px;
 background:#9ac8eb;
 opacity:.88;
 pointer-events:none;
}
.best-score-ray.ray-top-left{top:-16px;left:-30px;transform:rotate(37deg)}
.best-score-ray.ray-top-right{top:-16px;right:-30px;transform:rotate(-37deg)}
.best-score-ray.ray-bottom-left{bottom:-16px;left:-30px;transform:rotate(-37deg)}
.best-score-ray.ray-bottom-right{bottom:-16px;right:-30px;transform:rotate(37deg)}
.leader-main:has(:is(.leader-tab[data-tab="points"].active,.leader-tab[data-tab="badges"].active,.leader-tab[data-tab="ducks"].active)) .best-leader-stars{
 display:block;
 position:absolute;
 inset:0;
 z-index:0;
 pointer-events:none;
}
.best-leader-stars .star{
 position:absolute;
 display:block;
 background:#f5c54f;
 clip-path:polygon(50% 0%,63% 35%,100% 38%,72% 61%,81% 100%,50% 79%,19% 100%,28% 61%,0% 38%,37% 35%);
 filter:drop-shadow(0 1px 0 rgba(167,116,24,.1));
}
.best-leader-stars .star-left{width:20px;height:20px;left:18%;top:43%}
.best-leader-stars .star-upper-right{width:18px;height:18px;right:13%;top:29%}
.best-leader-stars .star-lower-right{width:13px;height:13px;right:18%;top:67%}
.leader-main:has(:is(.leader-tab[data-tab="points"].active,.leader-tab[data-tab="badges"].active,.leader-tab[data-tab="ducks"].active)) .best-card > :not(.best-leader-stars){
 position:relative;
 z-index:1;
}
html[data-theme="dark"] .leader-main:has(:is(.leader-tab[data-tab="points"].active,.leader-tab[data-tab="badges"].active,.leader-tab[data-tab="ducks"].active)) .best-card .best-score-ray{background:#84b8df}
html[data-theme="dark"] .best-leader-stars .star{background:#e8bd55}
@media(max-width:540px){
 .leader-main:has(:is(.leader-tab[data-tab="points"].active,.leader-tab[data-tab="badges"].active,.leader-tab[data-tab="ducks"].active)) .best-card .best-score-ray{
  width:16px;
  height:4px;
 }
 .best-score-ray.ray-top-left{top:-12px;left:-22px}
 .best-score-ray.ray-top-right{top:-12px;right:-22px}
 .best-score-ray.ray-bottom-left{bottom:-12px;left:-22px}
 .best-score-ray.ray-bottom-right{bottom:-12px;right:-22px}
 .best-leader-stars .star-left{left:9%;top:44%;width:15px;height:15px}
 .best-leader-stars .star-upper-right{right:9%;top:31%;width:15px;height:15px}
 .best-leader-stars .star-lower-right{right:11%;top:68%;width:11px;height:11px}
}


/* All-time Badges and Ducks: board-specific gold star arrangements.
   Blue corner rays intentionally match the Total Points leaderboard. */
.leader-main:has(.leader-tab[data-tab="badges"].active) .best-leader-stars,
.leader-main:has(.leader-tab[data-tab="ducks"].active) .best-leader-stars{
 display:block;
 position:absolute;
 inset:0;
 z-index:0;
 pointer-events:none;
}
.leader-main:has(.leader-tab[data-tab="badges"].active) .best-card > :not(.best-leader-stars),
.leader-main:has(.leader-tab[data-tab="ducks"].active) .best-card > :not(.best-leader-stars){
 position:relative;
 z-index:1;
}
/* Badges: one glint above-left, a larger one mid-right, and a tiny
   accent below-right. Positioned clear of the count and name. */
.leader-main:has(.leader-tab[data-tab="badges"].active) .best-leader-stars .star-left{
 left:19%;top:33%;width:16px;height:16px;
}
.leader-main:has(.leader-tab[data-tab="badges"].active) .best-leader-stars .star-upper-right{
 right:15%;top:47%;width:19px;height:19px;
}
.leader-main:has(.leader-tab[data-tab="badges"].active) .best-leader-stars .star-lower-right{
 right:23%;top:69%;width:12px;height:12px;
}
/* Ducks: offset the three glints to the opposite side for an intentionally
   distinct but equally restrained treatment. */
.leader-main:has(.leader-tab[data-tab="ducks"].active) .best-leader-stars .star-left{
 left:14%;top:53%;width:19px;height:19px;
}
.leader-main:has(.leader-tab[data-tab="ducks"].active) .best-leader-stars .star-upper-right{
 right:20%;top:34%;width:16px;height:16px;
}
.leader-main:has(.leader-tab[data-tab="ducks"].active) .best-leader-stars .star-lower-right{
 right:14%;top:69%;width:13px;height:13px;
}
@media(max-width:540px){
 .leader-main:has(.leader-tab[data-tab="badges"].active) .best-leader-stars .star-left{
  left:7%;top:37%;width:13px;height:13px;
 }
 .leader-main:has(.leader-tab[data-tab="badges"].active) .best-leader-stars .star-upper-right{
  right:7%;top:51%;width:15px;height:15px;
 }
 .leader-main:has(.leader-tab[data-tab="badges"].active) .best-leader-stars .star-lower-right{
  right:16%;top:69%;width:10px;height:10px;
 }
 .leader-main:has(.leader-tab[data-tab="ducks"].active) .best-leader-stars .star-left{
  left:7%;top:53%;width:15px;height:15px;
 }
 .leader-main:has(.leader-tab[data-tab="ducks"].active) .best-leader-stars .star-upper-right{
  right:8%;top:37%;width:13px;height:13px;
 }
 .leader-main:has(.leader-tab[data-tab="ducks"].active) .best-leader-stars .star-lower-right{
  right:7%;top:69%;width:10px;height:10px;
 }
}
