/* ranking.html — site-wide ArenaElite leaderboard, Discord-login users only. */

.ranking-main {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 36px 16px 48px;
}

#rankingContent {
  width: 100%;
  max-width: 720px;
}

.ranking-explain {
  text-align: center;
  margin-bottom: 20px;
}

.my-achievements-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

/* Collapsed by default (see js/ranking.js's achievementsExpanded) — the
   whole section is just this one clickable summary line until opened, so
   15+ cards' worth of grid doesn't push the actual ranking list below the
   fold. Reset to a plain block-level button so it still reads as this
   section's title/header, not as a generic button; negative margin cancels
   the extra padding's own offset so the row still lines up flush with the
   card's edges like every other section title on this page. */
.my-achv-summary-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  border-radius: 10px;
  padding: 6px 8px;
  margin: -6px -8px;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.my-achv-summary-btn:hover {
  background: var(--accent-soft);
}

.my-achv-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.my-achv-count {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 9px;
  border-radius: 999px;
}

/* Unread-achievement dot (js/ranking.js's renderMyAchievements) — same
   "viewed" cursor (Auth.hasUnviewedAchievement/markAchievementsViewed) as
   css/style.css's .icon-btn-dot on #rankingBtn, so the two point at the
   same underlying "you have something new to look at" state: one nudges
   toward this page, the other right at the section to open once here.
   Cleared the moment this summary button is clicked open. */
.my-achv-dot {
  display: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
}

.my-achv-dot.show {
  display: block;
}

.my-achv-chevron {
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.my-achv-summary-btn--open .my-achv-chevron {
  transform: rotate(180deg);
}

.my-achv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

/* Locked: an empty "socket" waiting to be filled, not just a dim copy of
   the unlocked card — dashed border, no fill, muted 🔒 — reads instantly
   as "not yet earned" without needing the opacity alone to carry that.
   The name/hint stays fully legible either way (nothing hidden behind
   "???" the way a PS trophy silhouette would be — the name IS the hint). */
.my-achv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 8px;
  border-radius: 14px;
  background: transparent;
  border: 1.5px dashed var(--card-border);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

/* Unlocked-but-not-picked: plain, calm, "sitting in your case" — a solid
   neutral card, full color icon, no tier glow at all. A previous version
   gave every unlocked card its tier glow (just dimmed via opacity when
   not picked), which read as "everything's lit up" — glow now means one
   specific thing only (picked to show publicly), not "owned" in general,
   so the two states stop blurring together. */
.my-achv-card--unlocked {
  opacity: 1;
  border-style: solid;
  border-color: var(--card-border);
  background: var(--card-bg);
  /* Only unlocked cards are clickable at all — see js/ranking.js's
     data-achv-id (locked cards never get it, so a click on one is a no-op). */
  cursor: pointer;
}

.my-achv-card--unlocked:hover {
  border-color: var(--achv-color, var(--accent));
  transform: translateY(-2px);
}

/* The (up to 3) cards currently picked to show publicly (js/ranking.js's
   achievementBadges) — this is now the ONLY state that gets the tier
   glow/wash at all, so "owned" and "owned AND picked" read as genuinely
   different things at a glance, not just a brightness difference. */
.my-achv-card--unlocked.my-achv-card--selected {
  border-color: var(--achv-color, #ffd700);
  background: radial-gradient(circle at 50% 0%, var(--achv-glow, transparent) 0%, var(--card-bg) 75%);
  box-shadow: 0 0 16px var(--achv-glow, rgba(255, 215, 0, 0.4));
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  transform: translateY(-3px);
}

/* PS-trophy-style rarity — only ever visible once unlocked (see
   renderMyAchievements), matching each achievement's own difficulty. */
.my-achv-card--bronze   { --achv-color: #cd7f32; --achv-glow: rgba(205, 127, 50, 0.4); }
.my-achv-card--silver   { --achv-color: #c0c0c0; --achv-glow: rgba(192, 192, 192, 0.4); }
.my-achv-card--gold     { --achv-color: #ffd700; --achv-glow: rgba(255, 215, 0, 0.4); }
.my-achv-card--platinum {
  --achv-color: #7dd3fc;
  --achv-glow: rgba(125, 211, 252, 0.55);
}

/* The rarest tier gets the same pulsing-halo treatment as a Champion row/
   progress card elsewhere on this page (::after overlay + that existing
   keyframe) — pulses the glow only, without fading the icon/name too.
   Gated to --selected (not just --platinum) same as the border/background
   glow above — an owned-but-not-picked Platinum card stays as calm as any
   other owned card, no pulsing halo just for sitting in the case. */
.my-achv-card--platinum.my-achv-card--selected::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  box-shadow: 0 0 14px 3px var(--achv-glow);
  pointer-events: none;
  animation: ranking-champion-pulse 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .my-achv-card--platinum.my-achv-card--selected::after { animation: none; opacity: 0.75; }
}

/* Locked cards never get a --bronze/--silver/--gold/--platinum class (see
   renderMyAchievements), so they stay this plain neutral "empty socket"
   circle — a ring makes sense there since there's no tier color yet to
   glow with. Unlocked cards drop this ring entirely (see below) in favor
   of a color-matched aura around the trophy art itself. */
.my-achv-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  filter: grayscale(1) opacity(0.7);
}

/* Unlocked cards render the real cropped trophy PNG here (see ACHIEVEMENTS'
   icon field in js/ranking.js) instead of a plain emoji glyph. Locked cards
   render plain "🔒" text instead (no img), unaffected by this rule. */
.my-achv-icon img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

/* Owned-but-not-picked: the coin-face ring/disc is gone by explicit
   request — the hand-drawn trophy art already carries its own bronze/
   silver/gold coloring, so a ring behind it just doubled up. Replaced with
   a soft aura in the tier's own color instead: --achv-color/--achv-glow
   already vary per tier via .my-achv-card--{tier} above (used for the
   card's own border glow), so the icon just inherits them rather than
   redefining a coin-face per tier like before. A drop-shadow on the icon
   box follows the PNG's own alpha silhouette, not a plain box, so the aura
   actually hugs the trophy shape. */
.my-achv-card--unlocked .my-achv-icon {
  border: none;
  background: none;
  filter: drop-shadow(0 0 4px var(--achv-color, transparent)) drop-shadow(0 0 9px var(--achv-glow, transparent));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Selected (shown publicly) gets a stronger version of the same aura —
   same idea as before, just no longer layered on top of a ring. */
.my-achv-card--unlocked.my-achv-card--selected .my-achv-icon {
  filter: drop-shadow(0 0 6px var(--achv-color, transparent)) drop-shadow(0 0 14px var(--achv-glow, transparent));
}

.my-achv-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}

.my-achv-card:not(.my-achv-card--unlocked) .my-achv-name {
  color: var(--muted);
}

/* Hint-shop tap target (js/ranking.js's HINT_PRICE + buyHint) — a locked,
   eligible, not-yet-bought card. No separate button/tag on the card
   (dropped by explicit request): the card itself is clickable, exactly
   like an unlocked card's badge-toggle below, opening a showConfirm()
   popup instead of a plain toggle since this one actually spends T-coin.
   Dashed border stays (still "locked"), just with the accent color +
   pointer cursor as the only affordance — same restrained "hover the title
   for detail" convention the rest of this grid already uses. */
.my-achv-card--hintable {
  cursor: pointer;
  border-color: var(--accent);
}

.my-achv-card--hintable:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 10px var(--accent-soft);
}

.my-log-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.my-log-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.my-log-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.my-log-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--card-border);
}

.my-log-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.my-log-delta {
  flex-shrink: 0;
  font-weight: 800;
  color: var(--accent);
  min-width: 30px;
}

.my-log-reason {
  flex: 1;
  color: var(--text);
  overflow-wrap: anywhere;
}

.my-log-time {
  flex-shrink: 0;
  color: var(--muted);
  white-space: nowrap;
}

.my-progress-card {
  align-items: center;
  gap: 18px;
  background: var(--card-bg);
  border: 2px solid var(--frame-color, var(--accent));
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px var(--frame-glow, transparent);
}

/* Same pulsing halo as a Champion row in the list (.ranking-row--champion
   above), for when the viewer's own progress card is the one at tier 1. */
.my-progress-card--champion {
  position: relative;
}

.my-progress-card--champion::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  box-shadow: 0 0 22px 5px var(--frame-glow, transparent);
  pointer-events: none;
  animation: ranking-champion-pulse 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .my-progress-card--champion::after { animation: none; opacity: 0.75; }
}

.my-progress-badge {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.my-progress-info {
  flex: 1;
  min-width: 0;
}

.my-progress-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.my-progress-points {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.my-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--card-border);
  overflow: hidden;
  margin-bottom: 6px;
}

.my-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.my-progress-remaining {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.badge-guild-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  text-transform: none;
  letter-spacing: normal;
  vertical-align: middle;
}

.badge-guild-legends {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* หนิกเสือ — same blue as ICONYX's badge elsewhere in the app. */
.badge-guild-nik-suea {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
}

/* เสือหนิก — a redder orange than the owner's amber-gold badge
   (.badge-first-pick, #fbbf24/#f5a623) so they read as clearly different. */
.badge-guild-suea-nik {
  background: linear-gradient(135deg, #ea580c, #f97316);
}

.badge-guild-egg4k { background: linear-gradient(135deg, #ca8a04, #eab308); }
.badge-guild-iris7 { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }

/* Site-wide Discord admin role — distinct from any guild badge so it never
   gets mistaken for "last guild touched" (see js/ranking.js's roleBadge). */
.badge-admin-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  text-transform: none;
  letter-spacing: normal;
  vertical-align: middle;
  background: linear-gradient(135deg, #9333ea, #f97316);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --icon-bg (js/ranking.js's rowIconBg) is a purchased shop icon's own
   medallion image (public/ranking/icon-badges/) — retired 2026-09-13 as
   an inline badge next to the name (iconBadgeHtml) in favor of a big,
   faint watermark bleeding off the row's OWN right edge instead, since a
   badge that's always exactly one per person read as an odd fit sitting
   in the same small-badge row as up to 3 achievement trophies. Sized well
   past the row's own height on purpose (a deliberate bleed off the right
   edge — briefly shrunk to fit fully uncropped inside the row instead,
   92% height/no bleed, but the site owner preferred this bigger bled-off
   look back after comparing both) and shifted right -18px so its
   busiest/most detailed part sits closer to the edge, away from the
   points/tier text.
   Fixed PIXEL width (114px), not a height percentage with auto width —
   the 3 shop-icon medallions (coin/points/diamond) aren't all the same
   aspect ratio, so sizing by height alone let the wider ones (coin,
   points) reach further left into the points-text area than the
   narrower one (diamond) did at the exact same height. A fixed width
   makes every icon bleed the same amount regardless of its own aspect
   ratio; height is left to vary (auto) since that only changes how much
   gets cropped off the top/bottom, not how far the icon reaches toward
   the text. A plain `background-image: var(--icon-bg, none)` layer (not a
   pseudo-element) on purpose — CSS clips background painting to the
   element's own border-box (respecting border-radius) automatically
   regardless of `overflow`, so this can't bleed past the row's rounded
   corners or need `overflow: hidden`. The
   fade-to-solid gradient layer in FRONT of it (first in the list =
   painted on top) is what makes it read as "faint" — there's no `opacity`
   knob for a single background layer on its own, so a semi-opaque wash of
   the row's own --card-bg color standing between it and the viewer is
   the standard trick instead. Fully see-through only right at the edge;
   nearly opaque well before it reaches the name/badges text, so it never
   fights with what's actually meant to be read. `color-mix()` (not a
   literal rgba value) since --card-bg is itself a variable — this is the
   only clean way to make an arbitrary CSS color partially transparent
   without knowing its actual r/g/b numbers. --owner/--hof rows (below)
   reuse this exact --icon-wash var too, layering it in front of their own
   shimmer gradient rather than skipping it. */
.ranking-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  /* Shared with --owner/--hof below (var(), not repeated inline) — the
     fade wash that makes --icon-bg read as "faint" rather than a flat
     sticker. Declared once here since every row variant needs the exact
     same wash regardless of what (if anything) sits behind it. */
  --icon-wash: linear-gradient(to right, var(--card-bg) 0%, color-mix(in srgb, var(--card-bg) 15%, transparent) 100%);
  background-color: var(--card-bg);
  background-image: var(--icon-wash), var(--icon-bg, none);
  background-repeat: no-repeat, no-repeat;
  background-position: right center, right -18px center;
  background-size: auto, 114px auto;
  border: 1px solid var(--frame-color, var(--card-border));
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: var(--shadow);
}

/* Deepened border + a contained amber-gold background shimmer (same safe
   technique .ranking-row--hof uses — a background-position sweep fully
   inside the row's own box, not an outward glow like the pulse below,
   which would bleed into neighboring rows at any real size) for a richer,
   more premium owner treatment than a flat border + small pulse alone.
   A third background-image layer (not a full `background` shorthand
   anymore, which would silently drop the base rule's --icon-wash/
   --icon-bg layers) so the owner's own equipped shop icon still shows as
   a watermark too — every layer's position/size below is repeated in the
   SAME order as the base .ranking-row rule for the first two, with this
   row's own shimmer gradient as the third; ranking-hof-bg-shimmer's
   keyframes (below .ranking-row--hof) sweep only that third layer's
   position, leaving the icon/wash layers fixed in place. */
.ranking-row--owner {
  border-color: #d4a017;
  box-shadow: 0 0 0 1px #d4a017, 0 8px 24px rgba(245, 166, 35, 0.22);
  background-image: var(--icon-wash), var(--icon-bg, none), linear-gradient(120deg, var(--card-bg), #4a3a12, #6b4f10, #4a3a12, var(--card-bg));
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: right center, right -18px center, 0% 0%;
  background-size: auto, 114px auto, 300% 100%;
  animation: ranking-hof-bg-shimmer 6s ease-in-out infinite alternate;
}

/* Viewer's own row gets an extra ring + glow on top of the plain tier
   border every row now has (js/ranking.js's TIER_FRAME/frameStyle), so it
   still stands out from everyone else's same-colored tier frame. */
.ranking-row--mine {
  box-shadow: 0 0 0 1px var(--frame-color, var(--accent)), 0 8px 20px var(--frame-glow, transparent);
}

/* Champion (tier 1) — stays gold like Gold (tier 7) rather than a different
   hue (gold "reads as more premium"), so the standout treatment here is a
   soft pulsing halo instead: a ::after glow layer, kept separate from the
   row's actual border/box-shadow so it never fights with .ranking-row--mine
   above when someone's own row happens to be Champion too. inset:-3px sits
   just outside the row's edges rather than over its content. */
.ranking-row--champion::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  box-shadow: 0 0 18px 4px var(--frame-glow, transparent);
  pointer-events: none;
  animation: ranking-champion-pulse 2.4s ease-in-out infinite;
}

/* Owner gets the same pulsing halo, own amber tone — hardcoded rather than
   var(--frame-glow) since js/ranking.js's renderRow deliberately never sets
   that variable on the owner's row (their border is already the fixed
   amber above, not a TIER_FRAME color). */
.ranking-row--owner::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  box-shadow: 0 0 18px 4px rgba(245, 166, 35, 0.45);
  pointer-events: none;
  animation: ranking-champion-pulse 2.4s ease-in-out infinite;
}

@keyframes ranking-champion-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ranking-row--champion::after,
  .ranking-row--owner::after {
    animation: none;
    opacity: 0.75;
  }
}

/* Hall of Fame (the META "collect all 14 other achievements" trophy) — the
   single rarest badge on the whole site, so its row gets a treatment no
   other tier has. Tried an outward-pulsing glow (::before box-shadow)
   first, twice — even toned down it kept bleeding past the row's own
   edges into neighboring rows (.ranking-list's gap is only 10px, nowhere
   near enough clearance for a 44-60px blur+spread halo), overpowering
   the rows next to it instead of just standing out itself. A shimmering
   BACKGROUND fill instead stays fully inside the row's own box — same
   "unmistakably special" read, zero spillover onto neighbors. Stays
   anchored to Platinum's own established color (#7dd3fc — the same one
   .my-achv-card--platinum/.ranking-achv-badge--platinum use everywhere
   else) rather than unrelated hues. */
/* Sweeps through BOTH colors this row actually carries — gold (the
   Champion border/tier every Hall of Fame holder already has, tier_1
   being one of the 14 required achievements) blending into Platinum blue
   (Hall of Fame's own color) — rather than the two just sitting next to
   each other unblended (a solid gold border around a blue-only shimmer
   read as two separate treatments stacked, not one cohesive "you're
   both" row). Animated with `alternate` (reverse instead of loop-restart)
   so there's never a jump-cut to a mismatched start/end color, regardless
   of how asymmetric this gradient's stops are. */
/* Same three-layer background as .ranking-row--owner above (own comment
   there explains why it's no longer a `background` shorthand) — this
   row's equipped shop icon still shows as a watermark on top of the
   shimmer. */
.ranking-row--hof {
  background-image: var(--icon-wash), var(--icon-bg, none), linear-gradient(120deg, var(--card-bg), #4a3a12, #1e3a5f, var(--card-bg));
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: right center, right -18px center, 0% 0%;
  background-size: auto, 114px auto, 300% 100%;
  animation: ranking-hof-bg-shimmer 6s ease-in-out infinite alternate;
}

/* Only the third layer (each row's own shimmer gradient) actually moves —
   the icon/wash layers stay put at their fixed positions in both
   keyframes, same values as .ranking-row's own base rule. */
@keyframes ranking-hof-bg-shimmer {
  0%   { background-position: right center, right -18px center, 0% 0%; }
  100% { background-position: right center, right -18px center, 100% 0%; }
}

@media (prefers-reduced-motion: reduce) {
  /* All 3 positions still need to be listed even at rest — an
     under-specified list applies its one value to every layer, which
     would also drag the fixed icon/wash layers out of place. */
  .ranking-row--hof { animation: none; background-position: right center, right -18px center, 50% 0%; }
}

/* The name itself gets the "legendary item" treatment too, not just the
   row's border — a shimmer sweeping across the text within the SAME
   Platinum-blue family as the row aura above (deep blue -> the
   established #7dd3fc -> an icy-white highlight -> back), applied as a
   moving background clipped to the glyphs instead of a box-shadow. Plain
   solid Platinum blue as the base `color` is the fallback for the rare
   browser that doesn't support background-clip:text at all — @supports
   gates the gradient/transparent-fill version so that fallback never
   regresses to invisible text. */
.ranking-hof-name {
  color: #7dd3fc;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .ranking-hof-name {
    background: linear-gradient(90deg, #38bdf8, #7dd3fc, #e0f7ff, #7dd3fc, #38bdf8);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: ranking-hof-shimmer 4s linear infinite;
  }
}

@keyframes ranking-hof-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

@media (prefers-reduced-motion: reduce) {
  .ranking-hof-name { animation: none; background-position: 0% center; }
}

/* Owner's own dedicated name shimmer — richer amber-gold, distinct from
   hall_of_fame's Platinum blue, reusing the same mechanic/keyframe (see
   js/ranking.js's nameHtml: owner gets this instead of the hof shimmer
   even if they also hold hall_of_fame, since the owner already has their
   own signature look everywhere else on this page). Same @supports
   fallback-to-solid-color reasoning as .ranking-hof-name above. */
.ranking-owner-name {
  color: #f5a623;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .ranking-owner-name {
    background: linear-gradient(90deg, #b45309, #f5a623, #fde68a, #f5a623, #b45309);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: ranking-hof-shimmer 4s linear infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ranking-owner-name { animation: none; background-position: 0% center; }
}

/* Purchased cosmetic name-color themes (functions/ranking/
   select-name-theme.js, 40 T-coin each) — a STATIC gradient, deliberately
   NOT animated like .ranking-hof-name above (even though it's the same
   background-clip:text mechanic). Money can buy a nice color; it can't
   buy movement — "if the name moves, it's earned, never bought" is a
   simple, permanent rule that also means adding more purchasable themes
   later can never creep into competing with hall_of_fame's prestige,
   without ever needing to re-escalate hall_of_fame's own effect again.
   isHallOfFame always wins over a purchased theme in js/ranking.js's
   renderRow — this rule only ever applies when it doesn't. */
.ranking-name-theme {
  color: var(--theme-mid, var(--muted));
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .ranking-name-theme {
    background: linear-gradient(90deg, var(--theme-dark), var(--theme-mid), var(--theme-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.ranking-name-theme--emerald { --theme-dark: #065f46; --theme-mid: #10b981; --theme-light: #6ee7b7; }
.ranking-name-theme--violet  { --theme-dark: #4c1d95; --theme-mid: #a78bfa; --theme-light: #ddd6fe; }
.ranking-name-theme--rose    { --theme-dark: #881337; --theme-mid: #fb7185; --theme-light: #fecdd3; }
/* Three more — picked to stay clear of every color that already means
   something specific elsewhere on this page: gold (Champion/owner),
   Platinum blue, and the guild badges (LEGENDS red, เสือหนิก orange,
   หนิกเสือ cyan) — as well as the 3 themes above, so none of the 6 read
   as "basically the same color" side by side in the shop grid. */
.ranking-name-theme--indigo  { --theme-dark: #3730a3; --theme-mid: #6366f1; --theme-light: #c7d2fe; }
.ranking-name-theme--fuchsia { --theme-dark: #86198f; --theme-mid: #d946ef; --theme-light: #f5d0fe; }
/* Amber-leaning (not เสือหนิก's own more red-leaning #ea580c/#f97316
   orange badge) so the two don't read as the exact same hue sitting right
   next to each other in the name line. */
.ranking-name-theme--orange  { --theme-dark: #92400e; --theme-mid: #f59e0b; --theme-light: #fde68a; }
.ranking-name-theme--lime    { --theme-dark: #365314; --theme-mid: #84cc16; --theme-light: #d9f99d; }

/* Pricier standouts above the original 7 (functions/ranking/
   select-name-theme.js's NAME_THEME_PRICES) — "onyx"/gunmetal single-hue
   gradient like the ones above (grayscale instead of a color), with a
   silver --theme-light sheen. --theme-dark originally went all the way to
   near-black (#050505) — looked right in isolation, but this page forces
   dark mode with a near-black --bg-page (#0b1430) of its own, so that end
   of the gradient was barely distinguishable from the page behind it
   (unlike every other theme's --theme-dark, which is a saturated COLOR at
   low lightness, not literal near-black, so it keeps hue-contrast the
   background can't match). Floor raised to a proper zinc-600 gunmetal
   gray instead — still reads as "black/onyx," just never dark enough to
   actually vanish into the page under it. */
.ranking-name-theme--black   { --theme-dark: #52525b; --theme-mid: #a1a1aa; --theme-light: #e4e4e7; }

/* Rainbow is the priciest theme and the one exception to every other
   theme's dark/mid/light single-hue gradient — needs its own multi-stop
   override to actually read as "rainbow" rather than 3 stops of one hue.
   Comes after the loop of single-hue themes above so its full background
   override wins at equal selector specificity. Still fully STATIC, same
   as every other purchased theme (see the big comment above
   .ranking-name-theme) — buying the rarest color doesn't buy the one
   thing only an earned name gets: motion. */
.ranking-name-theme--rainbow { --theme-mid: #eab308; } /* plain-color fallback only, no background-clip support */

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .ranking-name-theme--rainbow {
    background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

/* Added 2026-09-28: aquamarine (the one hue family no other theme covers,
   between emerald green and sapphire blue) and pearl (a bright pastel
   iridescent white, nothing like onyx's grey). The multi-stop overrides
   are scoped to .ranking-name-theme.x so the shop's bottle/swatch
   wrappers, which reuse these classes only for the colour vars, never get
   text-clipped backgrounds. */
.ranking-name-theme--aquamarine { --theme-dark: #155e75; --theme-mid: #22d3ee; --theme-light: #a5f3fc; }
.ranking-name-theme--pearl { --theme-dark: #c4b5fd; --theme-mid: #f1f5f9; --theme-light: #fbcfe8; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .ranking-name-theme.ranking-name-theme--pearl {
    background: linear-gradient(90deg, #fbcfe8, #f8fafc, #bae6fd, #f8fafc, #ddd6fe);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

/* ขวดน้ำเรืองแสง (the priciest bottle): the one bought theme that moves,
   as the site owner / developer / Hall of Fame names do: a lime → teal →
   pink aurora flowing through the letters plus a breathing glow. Its
   colours stay clear of the owner's amber and Hall of Fame's platinum. */
.ranking-name-theme--glow { --theme-dark: #65a30d; --theme-mid: #2dd4bf; --theme-light: #f0abfc; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .ranking-name-theme.ranking-name-theme--glow {
    background: linear-gradient(90deg, #a3e635, #2dd4bf, #f0abfc, #2dd4bf, #a3e635);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: ranking-hof-shimmer 4s linear infinite, ranking-glow-breathe 2.4s ease-in-out infinite;
  }
}
@keyframes ranking-glow-breathe {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(45, 212, 191, .45)); }
  50% { filter: drop-shadow(0 0 7px rgba(163, 230, 53, .75)) drop-shadow(0 0 16px rgba(240, 171, 252, .45)); }
}
@media (prefers-reduced-motion: reduce) {
  .ranking-name-theme.ranking-name-theme--glow { animation: none; background-position: 0% center; filter: drop-shadow(0 0 5px rgba(45, 212, 191, .6)); }
}

/* ดาบแดง — the Demon Slayer: Infinity Castle collab bottle (limited, on
   sale through 28 Oct 2026; id stays "nichirin"): crimson → orange → a
   pale steel edge like the red blade (赫刀) Muichiro awakens against
   Kokushibo inside the castle, with a small 滅 seal in front of the name. The seal is
   only on the text spans (.ranking-name-theme.x), never on the shop's
   bottle/swatch wrappers, and paints its own colours over the clipped
   gradient text it sits in. */
.ranking-name-theme--nichirin { --theme-dark: #b91c1c; --theme-mid: #f97316; --theme-light: #fed7aa; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .ranking-name-theme.ranking-name-theme--nichirin {
    background: linear-gradient(90deg, #dc2626, #f97316 55%, #fdba74 80%, #fff7ed);
    -webkit-background-clip: text;
    background-clip: text;
  }
}
/* The seal is an SVG picture, not a text glyph: background-clip: text
   paints the name's gradient through every descendant's text too, so a
   "滅" glyph here left a red ghost copy peeking out from under the tilted
   seal. A picture has no glyph to clip, so it can tilt and glow. */
.ranking-name-theme.ranking-name-theme--nichirin::before {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .3em; vertical-align: -.1em; border-radius: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect width='20' height='20' rx='4' fill='%23c41e3a'/%3E%3Ctext x='10' y='15.3' text-anchor='middle' font-size='14' font-weight='700' fill='%23fff' font-family='Yu Mincho,Hiragino Mincho ProN,Noto Serif JP,Noto Serif CJK JP,serif'%3E%E6%BB%85%3C/text%3E%3C/svg%3E") center / contain no-repeat;
  box-shadow: 0 0 8px rgba(196, 30, 58, .45);
  transform: rotate(-4deg);
}

/* Separates the top-N rows from the viewer's own pinned row when it falls
   outside that cut (see js/ranking.js's RANKING_TOP_N). */
.ranking-divider {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;
  padding: 2px 0;
}

.ranking-place {
  flex: 0 0 34px;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}

.ranking-badge {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.ranking-name {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Up to 3 achievements a user picked to show publicly — see
   js/ranking.js's achievementBadgeHtml/selectAchievementBadges. Each one
   is its own small trophy image with its own tier-colored aura (see
   .ranking-achv-badge--trophy below), not a shared glow filter on a bare
   glyph — tried a single pill wrapping all 3 first, but a flat chip
   housing 3 differently-hued badges read as messier, not calmer. This
   wrapper is now just a flex/gap layout box, no visible shape of its own.
   gap: 6px — went 2px -> 0 -> 1px -> 6px chasing "clear separation"
   without re-wrapping a long name onto a second line (see the width: auto
   comment on .ranking-achv-badge--trophy below for that constraint); each
   cropped PNG's own few px of transparent margin (see
   project_ranking_achievements.md memory) turned out not to read as
   enough breathing room on its own once the badges themselves got bigger. */
.ranking-achv-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.ranking-achv-badge {
  position: relative; /* anchors .ranking-achv-badge-tag below */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  background: var(--card-bg);
}

/* The small public badge (next to a name in the ranking list) renders the
   same cropped trophy PNG as .my-achv-icon above, just smaller — see
   achievementBadgeHtml in js/ranking.js. iconBadgeHtml's shop-bought badges
   still render a plain emoji glyph (no img), so this rule never touches
   those. */
.ranking-achv-badge img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

/* Used to add an outer gold ring here (.ranking-achv-badge--shop, on top
   of the tier ring below) so "bought from the shop" read as its own
   visual language from "earned achievement" — dropped 2026-09-13 along
   with the tier ring itself (see the compound --shop.--{tier} rules
   below) once shop icons got the same custom medallion art as the
   trophies and a bare ring started looking dated next to it. The class
   stays in the markup (js/ranking.js's iconBadgeHtml, js/tcoin-shop.js)
   as a hook, just carries no ring styling of its own anymore. */

/* Base ring look: a solid tier-colored ring + coin-face + a soft matching
   glow outside it. Every badge actually rendered today (achievementBadgeHtml
   always pairs this with --trophy, iconBadgeHtml always pairs it with
   --shop — see both below) overrides this down to a ring-less aura, so
   this bare version is a fallback rather than something currently
   visible anywhere — kept as the sane default for any future badge kind
   that pairs a tier with neither modifier. */
.ranking-achv-badge--bronze {
  border: 2px solid #cd7f32;
  background: radial-gradient(circle at 32% 26%, #e8a06a 0%, #a8571f 75%);
  box-shadow: 0 0 6px rgba(205, 127, 50, 0.5);
}
.ranking-achv-badge--silver {
  border: 2px solid #c0c0c0;
  background: radial-gradient(circle at 32% 26%, #f2f4f6 0%, #9aa1a8 75%);
  box-shadow: 0 0 6px rgba(192, 192, 192, 0.5);
}
.ranking-achv-badge--gold {
  border: 2px solid #ffd700;
  background: radial-gradient(circle at 32% 26%, #ffe27a 0%, #e0951a 75%);
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}
.ranking-achv-badge--platinum {
  border: 2px solid #7dd3fc;
  background: radial-gradient(circle at 32% 26%, #d6f3ff 0%, #3b9eea 75%);
  box-shadow: 0 0 7px rgba(125, 211, 252, 0.6);
}

/* Real achievement badges (achievementBadgeHtml, an <img> inside) drop the
   ring/disc from the block above in favor of a plain aura hugging the
   trophy art itself — same reasoning as .my-achv-card--unlocked .my-achv-icon
   above. Also sized up a little from the base 30px (own width/height, not
   the --shop/--tagged badges' 30/32px pair above — those stay put, this
   only ever coexists with --bronze/silver/gold/platinum, never --shop)
   since a bare-glyph 30px badge and a detailed hand-drawn trophy at the
   same size don't read the same. Needs its own aura color per tier here
   since this badge has no ancestor carrying --achv-color/--achv-glow the
   way a trophy-case card does.
   The blur itself stays tight regardless of size (was 8-9px at one point
   — a small icon with real internal detail, a crown's points, crossed
   swords, just turns into a shapeless glowing blob once the blur radius
   rivals the icon's own size) — a 1-2px rim reads as "this icon glows"
   without smearing its silhouette. Size, separately, went 30 -> 38 (too
   big alongside that era's heavier blur) -> 34 -> 46: .ranking-list's
   10px row gap (see .ranking-row--champion's own comment above on why it
   avoids outward glow entirely) is what actually constrains the BLUR, not
   the icon box itself — the row's own height already grows to fit
   whatever's tallest inside it (align-items: center), so a bigger box
   with the same tight blur doesn't crowd the row's border the way a
   bigger blur did.
   width: auto below (not a fixed square) because most crops aren't
   square — team_liked_10's thumbs-up trophy is notably taller than wide,
   for one — so a fixed-width box left dead air on both sides of anything
   narrower than it was tall. That air was quietly eating into
   .ranking-name's shrinking width budget on a long name + owner pill + 3
   badges row, enough to wrap the name onto a second line. auto lets each
   badge be exactly as wide as its own trophy, no wider. */
.ranking-achv-badge--trophy {
  width: auto;
  height: 46px;
  border: none;
  background: none;
  box-shadow: none;
}
.ranking-achv-badge--trophy img {
  width: auto;
  height: 88%;
}
.ranking-achv-badge--trophy.ranking-achv-badge--bronze {
  filter: drop-shadow(0 0 1.5px #cd7f32) drop-shadow(0 0 4px rgba(205, 127, 50, 0.55));
}
.ranking-achv-badge--trophy.ranking-achv-badge--silver {
  filter: drop-shadow(0 0 1.5px #c0c0c0) drop-shadow(0 0 4px rgba(192, 192, 192, 0.55));
}
.ranking-achv-badge--trophy.ranking-achv-badge--gold {
  filter: drop-shadow(0 0 1.5px #ffd700) drop-shadow(0 0 4px rgba(255, 215, 0, 0.55));
}
.ranking-achv-badge--trophy.ranking-achv-badge--platinum {
  filter: drop-shadow(0 0 1.5px #7dd3fc) drop-shadow(0 0 4px rgba(125, 211, 252, 0.65));
}

/* Shop-bought icon badges (iconBadgeHtml/js/tcoin-shop.js's shop preview)
   get the exact same ring-less aura treatment as --trophy above, just at
   the base 30px size (no reason to size these up the way the trophy
   crops needed — the new medallion art already fills its frame edge to
   edge, nothing to make more legible). Was a solid ring + an extra outer
   gold ring (see the retired comment above .ranking-achv-badge--bronze)
   until the shop icons got custom art too and a bare ring started
   clashing with it — dropped both at once rather than half-matching the
   trophy badges' look. */
.ranking-achv-badge--shop {
  border: none;
  background: none;
  box-shadow: none;
  outline: none;
}
.ranking-achv-badge--shop.ranking-achv-badge--bronze {
  filter: drop-shadow(0 0 1.5px #cd7f32) drop-shadow(0 0 4px rgba(205, 127, 50, 0.55));
}
.ranking-achv-badge--shop.ranking-achv-badge--silver {
  filter: drop-shadow(0 0 1.5px #c0c0c0) drop-shadow(0 0 4px rgba(192, 192, 192, 0.55));
}
.ranking-achv-badge--shop.ranking-achv-badge--gold {
  filter: drop-shadow(0 0 1.5px #ffd700) drop-shadow(0 0 4px rgba(255, 215, 0, 0.55));
}
.ranking-achv-badge--shop.ranking-achv-badge--platinum {
  filter: drop-shadow(0 0 1.5px #7dd3fc) drop-shadow(0 0 4px rgba(125, 211, 252, 0.65));
}

/* .ranking-achv-badge--tagged/.ranking-achv-badge-tag (a floating "x2"
   circle stacked on coin/points' old bare emoji) retired 2026-09-13 along
   with the emoji itself — ICON_BADGE_META/ICON_BADGES' new medallion art
   (see .ranking-achv-badge--trophy's own comment above and
   project_ranking_achievements.md memory) already bakes "x2" into the
   image, so a second floating tag on top would just duplicate it. Nothing
   sets `tag` on any icon badge anymore; if that ever changes, the old
   geometric sizing math (ring radius R, tag radius r, offset o, tag's
   farthest point = sqrt(2)*(R-o-r)+r, must stay <= R) is still valid and
   worth re-deriving rather than guessing a size. */

.ranking-tier {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-page);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 2px 10px;
}

/* Back to the original accent blue (briefly tried plain white) — but with
   a dark text-shadow now, since this sits right where .ranking-row's own
   --icon-bg watermark bleeds in from the edge (see that rule's own
   comment) and a flat accent color started blending into a busy
   medallion image behind it on some rows. The shadow doesn't change the
   color itself, just darkens/outlines it enough to stay legible
   regardless of what's directly behind it. */
.ranking-points {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 6px rgba(0, 0, 0, 0.6);
}

/* Rank-movement indicator — see js/ranking.js's rankDeltaHtml. Muted colors
   on purpose (not a bold red/green scoreboard pop): it's a quiet "since you
   last checked" nudge, not a competitive stat to flex. Renders nothing at
   all (js/ranking.js returns "") when there's no prior visit to compare
   against, so the column just isn't there rather than showing a placeholder. */
.ranking-rank-delta {
  flex-shrink: 0;
  width: 14px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.ranking-rank-delta--up {
  color: #4ade80;
}

.ranking-rank-delta--down {
  color: #fb7185;
}

.ranking-rank-delta--same {
  color: var(--muted);
  opacity: 0.6;
}

/* The rank mascot (bottom-right floating picker) and its popover/collection
   grid now live site-wide in css/mascot.css + js/mascot.js, not here. */

/* 💎 ตราผู้อุปถัมภ์ (js/pets.js patronBadge): its two sparkles twinkle in turn. */
.patron-badge .glint { transform-box: fill-box; transform-origin: center; animation: patron-glint 2.8s ease-in-out infinite; }
.patron-badge .glint2 { animation-delay: 1.4s; }
@keyframes patron-glint { 0%, 60%, 100% { opacity: 0; scale: .4; } 75% { opacity: 1; scale: 1.1; } }
@media (prefers-reduced-motion: reduce) { .patron-badge .glint { animation: none; opacity: .9; } }

/* อนูบิส — never sold, owned by whoever winds the mummy suit to +15
   (functions/ranking/data.js ownedThemesOf): gold with an onyx shadow
   sweeping slowly through the letters, and an onyx seal with a gold ankh in
   front of the name. Same look as the counter cards (css/counter-anubis.css). */
.ranking-name-theme--anubis { --theme-dark: #92400e; --theme-mid: #f5b83d; --theme-light: #fef3c7; }
  @supports (background-clip: text) or (-webkit-background-clip: text) {
    .ranking-name-theme.ranking-name-theme--anubis {
      background: linear-gradient(100deg, #f5b83d 0%, #fde68a 12%, #f5b83d 22%, #7c4a0c 32%, #1c1917 38%, #7c4a0c 44%, #f5b83d 54%, #fffbe8 64%, #f5b83d 74%, #b45309 88%, #f5b83d 100%);
      background-size: 220% auto;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
      animation: anubis-sweep 4.5s linear infinite;
      filter: drop-shadow(0 0 6px rgba(245, 184, 61, .28));
    }
  }
  /* The page's off-screen animation guard (js/home-fx.js fxGuard, .fx-off) can leave this
     stopped after scrolling; the sweep is light, so it keeps running. */
  .ranking-name-theme.ranking-name-theme--anubis.fx-off { animation: anubis-sweep 4.5s linear infinite !important; }
  @keyframes anubis-sweep { from { background-position: 100% center; } to { background-position: -120% center; } }
  .ranking-name-theme.ranking-name-theme--anubis::before {
    content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .3em; vertical-align: -.12em; border-radius: .22em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff7c8'/%3E%3Cstop offset='.45' stop-color='%23f5b83d'/%3E%3Cstop offset='1' stop-color='%2394560a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='20' height='20' rx='4.5' fill='%231c1b26' stroke='%23f5b83d' stroke-width='1.4'/%3E%3Cg fill='none' stroke='url(%23g)' stroke-width='2' stroke-linecap='round'%3E%3Cellipse cx='10' cy='6.6' rx='2.6' ry='3'/%3E%3Cpath d='M5 10.8H15M10 9.6V16.4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    box-shadow: 0 0 8px rgba(245, 184, 61, .4);
  }
  @media (prefers-reduced-motion: reduce) { .ranking-name-theme.ranking-name-theme--anubis { animation: none; background-position: 30% center; } }

/* แบล็กโกลด์ — never sold, comes with the Black Friday top-up pack
   (functions/ranking/tcoin-pack.js): polished platinum letters (bright top,
   a darker line through the middle, bright again below) with a hairline gold
   edge, a pale-gold glint gliding through, and a small diamond that twinkles
   on the top-right corner of the last letter. */
.ranking-name-theme--blackfriday { --theme-dark: #3f3f46; --theme-mid: #e4e4e7; --theme-light: #fbbf24; color: #f4f4f5; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .ranking-name-theme.ranking-name-theme--blackfriday {
    position: relative;
    display: inline-block;
    background:
      linear-gradient(105deg, transparent 0 40%, rgba(253, 230, 138, .85) 48%, #fffdf2 50%, rgba(253, 230, 138, .85) 52%, transparent 60% 100%),
      linear-gradient(180deg, #ffffff 0%, #e4e4e7 45%, #a1a1aa 52%, #e4e4e7 70%, #fafafa 100%);
    background-size: 300% 100%, 100% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: .55px #d4a52a;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .7)) drop-shadow(0 0 6px rgba(234, 179, 8, .25));
    animation: bf-glint 3.6s linear infinite;
  }
  .ranking-name-theme.ranking-name-theme--blackfriday::after {
    content: ""; position: absolute; right: -.3em; top: -.22em; width: .55em; height: .55em; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3E%3Cdefs%3E%3CradialGradient id=%27g%27%3E%3Cstop offset=%270%27 stop-color=%27%23fff7d6%27 stop-opacity=%27.9%27/%3E%3Cstop offset=%271%27 stop-color=%27%23facc15%27 stop-opacity=%270%27/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%276%27 fill=%27url(%23g)%27/%3E%3Cpath d=%27M10 0Q10.9 9.1 20 10Q10.9 10.9 10 20Q9.1 10.9 0 10Q9.1 9.1 10 0Z%27 fill=%27%23fff%27/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0; animation: bf-twinkle 2.6s ease-in-out infinite;
  }
}
.ranking-name-theme.ranking-name-theme--blackfriday.fx-off { animation: bf-glint 3.6s linear infinite !important; }
@keyframes bf-glint { 0% { background-position: 100% 0, 0 0; } 80%, 100% { background-position: 0% 0, 0 0; } }
@keyframes bf-twinkle { 0%, 55%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 68% { opacity: 1; transform: scale(1) rotate(45deg); } 80% { opacity: 0; transform: scale(.4) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) {
  .ranking-name-theme.ranking-name-theme--blackfriday { animation: none; background-position: 100% 0, 0 0; }
  .ranking-name-theme.ranking-name-theme--blackfriday::after { animation: none; opacity: .8; transform: none; }
}
