/* badges.css — name-line ticks and the founding compass (20 Nov 2026).
   Pearl / Midnight / Amethyst / Champagne. Never raises the cascade with an important flag. Animation is one-shot;
   prefers-reduced-motion keeps the marks still. */

/* Pearl (day / white) */
:root,
html[data-theme="day"][data-pal="white"] {
  --ga-gold: #E8B44A;
  --ga-gold-hi: #F7E3A8;
  --ga-gold-lo: #9C7424;
  --ga-gold-line: #5A3F0A;
  --ga-dfe: #1D9BF0;
  --ga-official: #1D4ED8;
  --ga-shine: rgba(255, 255, 255, .62);
}

/* Midnight */
html[data-theme="night"][data-pal="black"] {
  --ga-gold: #F0C056;
  --ga-gold-hi: #FFE9B0;
  --ga-gold-lo: #B8892A;
  --ga-gold-line: #F6E3A6;
  --ga-dfe: #5CB6F5;
  --ga-official: #8AB4FF;
  --ga-shine: rgba(255, 255, 255, .5);
}

/* Amethyst */
html[data-theme="night"][data-pal="purple"] {
  --ga-gold: #F0C056;
  --ga-gold-hi: #FFE6B8;
  --ga-gold-lo: #C4923A;
  --ga-gold-line: #F6E3A6;
  --ga-dfe: #7EB6F7;
  --ga-official: #C4A5FF;
  --ga-shine: rgba(255, 248, 255, .55);
}

/* Champagne */
html[data-theme="day"][data-pal="beige"] {
  --ga-gold: #C8962A;
  --ga-gold-hi: #F0D48A;
  --ga-gold-lo: #8A6418;
  --ga-gold-line: #5A3F0A;
  --ga-dfe: #0B6FBF;
  --ga-official: #1C4A8C;
  --ga-shine: rgba(255, 255, 250, .58);
}

.ga-who {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08em;
  min-width: 0;
}

.ga-display {
  font-size: 0.82em;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.78;
  line-height: 1.2;
}

.ga-name-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  min-width: 0;
}
.ga-name {
  display: inline;
  min-width: 0;
}

.ga-suffix,
.official-suffix,
.dfe-suffix {
  color: var(--ga-official, #1D4ED8);
  font-weight: 600;
}

.ga-badge,
svg.ga-badge,
svg.ico-rosette.is-gold,
svg.ico-rosette.is-dfe,
svg.ico-founding.is-gold {
  width: 1.05em;
  height: 1.05em;
  display: inline-block;
  vertical-align: -0.18em;
  flex: 0 0 auto;
  overflow: visible;
}

.ga-badge-pro {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.18em;
}

/* Gold tick + gold compass: a soft shine that crosses once on first appear. */
.ga-badge.is-gold .ga-shine,
svg.ico-rosette.is-gold .ga-shine,
svg.ico-founding.is-gold .ga-shine {
  animation: ga-shine-sweep 0.9s ease-out 0.12s 1 both;
}

@keyframes ga-shine-sweep {
  from { transform: translateX(-24px); }
  to { transform: translateX(24px); }
}

/* Blue DFE tick: a gentle scale pop, once. */
.ga-badge.is-dfe,
svg.ico-rosette.is-dfe {
  transform-origin: 50% 62%;
  animation: ga-dfe-pop 0.42s cubic-bezier(0.2, 1.35, 0.32, 1) 1 both;
}

@keyframes ga-dfe-pop {
  0% { transform: scale(0.82); }
  62% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ga-badge.is-gold .ga-shine,
  svg.ico-rosette.is-gold .ga-shine,
  svg.ico-founding.is-gold .ga-shine,
  .ga-badge.is-dfe,
  svg.ico-rosette.is-dfe {
    animation: none;
  }
}

.ga-handle {
  margin: 0.15em 0 0;
  font-size: 0.78em;
  line-height: 1.25;
  color: var(--ga-official, #1D4ED8);
  font-weight: 600;
}
