/* Crilo score treatment: reversed neon. The glow lives inside the edge,
   never as a bright halo that overwhelms the rarity-colored digits. */
.wheel-score-amount,#finalScore,
.leader-panel .leader-score,.best-card #bestScore,
.spin-history-side .spin-history-score{
 --crilo-glow-ink:#7b8796;
 --crilo-glow-inner:color-mix(in srgb,var(--crilo-glow-ink) 23%,transparent);
 --crilo-glow-rim:color-mix(in srgb,var(--crilo-glow-ink) 56%,#c1c6ce);
 box-sizing:border-box;
 width:max-content;
 max-width:100%;
 border:1.5px solid var(--crilo-glow-rim);
 border-radius:14px;
 background:color-mix(in srgb,var(--crilo-glow-ink) 5%,#fffefb);
 color:var(--crilo-glow-ink);
 box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--crilo-glow-ink) 15%,transparent),
  inset 0 0 11px 2px var(--crilo-glow-inner),
  0 2px 5px rgba(31,40,55,.065);
 text-shadow:none;
 font-variant-numeric:tabular-nums;
 /* Negative tracking shortened the inline advance without centering the
    visible glyph. Keep both one-digit and multi-digit scores truly balanced. */
 letter-spacing:0;
 text-align:center;
 transform:none;
}
.wheel-score-amount{
 --crilo-glow-ink:var(--score-accent,#7b8796);
 display:inline-block;
 align-self:center;
 text-align:center;
 margin:4px auto 0;
 padding:7px 18px 10px;
 min-height:1.2em;
 border-radius:17px;
 line-height:1.16;
}
#finalScore{
 display:table;
 text-align:center;
 margin:12px auto 15px;
 padding:10px 21px;
 border-radius:17px;
 font-variant-numeric:tabular-nums;
}
#result[data-rarity="trash"]{--crilo-result-accent:#8d531a}
#result[data-rarity="common"]{--crilo-result-accent:#7f8794}
#result[data-rarity="uncommon"]{--crilo-result-accent:#338d69}
#result[data-rarity="rare"]{--crilo-result-accent:#317ac0}
#result[data-rarity="epic"]{--crilo-result-accent:#8052cd}
#result[data-rarity="anomaly"]{--crilo-result-accent:#be572c}
#result[data-rarity="mythic"]{--crilo-result-accent:#bd48a9}
#finalScore{--crilo-glow-ink:var(--crilo-result-accent,#7b8796)}
.leader-panel .leader-score,.best-card #bestScore{
 --crilo-glow-ink:var(--leader-tier-ink,#7b8796);
 border-color:var(--crilo-glow-rim);
 background:color-mix(in srgb,var(--crilo-glow-ink) 5%,#fffefb);
 color:var(--crilo-glow-ink);
 box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--crilo-glow-ink) 15%,transparent),
  inset 0 0 11px 2px var(--crilo-glow-inner),
  0 2px 5px rgba(31,40,55,.065);
}
.spin-history-side .spin-history-score{
 --crilo-glow-ink:var(--spin-rarity,#7b8796);
 display:inline-block;
 padding:8px 13px 9px;
 line-height:1.2;
 font-weight:950;
 font-size:clamp(19px,2.6vw,27px);
 letter-spacing:-.035em;
 white-space:nowrap;
}
.spin-history-side .spin-history-units{
 display:block;
 margin:4px 2px 0;
 color:var(--muted,#7c828d);
 font-size:10px;
 font-weight:850;
 letter-spacing:.065em;
}
/* Comfortable, still-identifiable tier colors on charcoal. */
html[data-theme="dark"]{
 --crilo-reverse-core:#232833;
}
html[data-theme="dark"] #result[data-rarity="trash"]{--crilo-result-accent:#d0ad83}
html[data-theme="dark"] #result[data-rarity="common"]{--crilo-result-accent:#bec6cf}
html[data-theme="dark"] #result[data-rarity="uncommon"]{--crilo-result-accent:#8fbea9}
html[data-theme="dark"] #result[data-rarity="rare"]{--crilo-result-accent:#98b9df}
html[data-theme="dark"] #result[data-rarity="epic"]{--crilo-result-accent:#b5a1d6}
html[data-theme="dark"] #result[data-rarity="anomaly"]{--crilo-result-accent:#d8a287}
html[data-theme="dark"] #result[data-rarity="mythic"]{--crilo-result-accent:#d5a1c8}
html[data-theme="dark"] .spin-history-item[data-rarity="trash"]{--spin-rarity:#d0ad83}
html[data-theme="dark"] .spin-history-item[data-rarity="common"]{--spin-rarity:#bec6cf}
html[data-theme="dark"] .spin-history-item[data-rarity="uncommon"]{--spin-rarity:#8fbea9}
html[data-theme="dark"] .spin-history-item[data-rarity="rare"]{--spin-rarity:#98b9df}
html[data-theme="dark"] .spin-history-item[data-rarity="epic"]{--spin-rarity:#b5a1d6}
html[data-theme="dark"] .spin-history-item[data-rarity="anomaly"]{--spin-rarity:#d8a287}
html[data-theme="dark"] .spin-history-item[data-rarity="mythic"]{--spin-rarity:#d5a1c8}
html[data-theme="dark"] .wheel-score-amount,
html[data-theme="dark"] #finalScore,
html[data-theme="dark"] .leader-panel .leader-score,
html[data-theme="dark"] .best-card #bestScore,
html[data-theme="dark"] .spin-history-side .spin-history-score{
 --crilo-glow-rim:color-mix(in srgb,var(--crilo-glow-ink) 57%,#313946);
 --crilo-glow-inner:color-mix(in srgb,var(--crilo-glow-ink) 15%,transparent);
 background:color-mix(in srgb,var(--crilo-glow-ink) 5%,#242a35);
 border-color:var(--crilo-glow-rim);
 color:var(--crilo-glow-ink);
 box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--crilo-glow-ink) 22%,transparent),
  inset 0 0 12px 2px var(--crilo-glow-inner),
  0 2px 6px rgba(0,0,0,.18);
 text-shadow:none;
}
html[data-theme="dark"] .leader-panel .leader-score,
html[data-theme="dark"] .best-card #bestScore{
 --crilo-glow-ink:var(--leader-tier-dark,#b9c1cd);
}
@media(max-width:600px){
 .wheel-score-amount{padding:6px 13px 8px;max-width:100%}
 #finalScore{padding:8px 15px}
 .spin-history-side .spin-history-score{font-size:20px;padding:6px 11px 7px;border-radius:12px}
}

/* Preserve the original spacious Today's Top hero-card presentation.
   Keep its sole visual upgrade: one rarity-colored, reverse-neon number. */
.best-card #bestScore{
 display:block;
 width:fit-content;
 max-width:100%;
 min-width:0;
 min-height:0;
 margin:14px auto 16px;
 padding:9px 20px 12px;
 border-radius:17px;
 font-size:clamp(44px,6.2vw,64px);
 font-weight:1000;
 letter-spacing:-.055em;
 line-height:1.08;
 text-align:center;
 white-space:normal;
 overflow-wrap:anywhere;
}
@media(max-width:700px){
 .best-card #bestScore{
  font-size:clamp(40px,10.4vw,54px);
  margin:12px auto 14px;
  padding:8px 15px 10px;
 }
}

#result[data-rarity="divine"]{--crilo-result-accent:var(--tier-divine)}
html[data-theme="dark"] #result[data-rarity="divine"]{--crilo-result-accent:var(--tier-divine)}
html[data-theme="dark"] .spin-history-item[data-rarity="divine"]{--spin-rarity:var(--tier-divine)}

/* Obsidian Divine score presentation. A bright rim contrasts on either theme. */
:is(.wheel-score-amount,#finalScore,.leader-score,.best-score,.spin-history-score)[data-score-rarity="divine"],
.wheel-score[data-rarity="divine"] .wheel-score-amount,
#result[data-rarity="divine"] #finalScore,
.best-card #bestScore[data-score-rarity="divine"],
.leader-panel .leader-score[data-score-rarity="divine"],
.spin-history-item[data-rarity="divine"] .spin-history-score{
 --crilo-glow-ink:#d8e6ff;
 --crilo-glow-rim:#d8e6ff;
 --crilo-glow-inner:rgba(170,210,255,.2);
 color:#f5f7ff!important;
 background:linear-gradient(135deg,#111318,#1a1f26 57%,#111318)!important;
 border:1.5px solid #d8e6ff!important;
 box-shadow:inset 0 0 10px rgba(170,210,255,.16),0 0 8px rgba(170,210,255,.24)!important;
}
