/* Captain: the armband "C", by tier — 1 gold, 2 silver-gold, 3 plain. */
.captain-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--weight-heavy);
  line-height: 1;
}
.captain-mark--md {
  width: 20px;
  height: 20px;
  font-size: 14px;
}
.captain-mark--t1 {
  background: linear-gradient(160deg, var(--gold-300), var(--gold-500));
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.35),
    0 0 0 2.5px rgb(245 200 76 / 0.3),
    0 0 10px rgb(245 200 76 / 0.6);
  color: var(--on-gold);
}
.captain-mark--t2 {
  background: linear-gradient(160deg, #f3f0e4, #cfc39a);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.35),
    0 0 6px rgb(245 232 190 / 0.35);
  color: #2a2410;
}
.captain-mark--t3 {
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1.5px var(--gold-500);
  color: var(--gold-300);
}

/* Game Changer: a bolt, by tier — 3 a refined outline, 2 holographic, 1 holographic with a
   glow that breathes. The edge (`is-gc-edge`) is what a tier 1 or 2 row, card and pitch
   token wear. The sheen and the glow move on transform / opacity only and stand still with
   reduced motion. */
.gc-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  line-height: 1;
}
.gc-mark--md {
  width: 20px;
  height: 20px;
}
.gc-mark .icon {
  position: relative;
  z-index: 1;
  fill: currentColor;
}
/* An opaque ground: the mark sits on rows, cards and the pitch's stripes alike. */
.gc-mark--t3 {
  background: color-mix(in srgb, #9be7ff 12%, var(--surface-1));
  box-shadow: inset 0 0 0 1.5px rgb(155 231 255 / 0.7);
  color: #9be7ff;
}
.gc-mark--t2,
.gc-mark--t1 {
  overflow: hidden;
  background: linear-gradient(110deg, #ffe9a3, #f5c84c 28%, #9be7ff 52%, #d9b8ff 74%, #ffe9a3);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.4),
    0 0 10px rgb(245 200 76 / 0.55);
  color: #1b1405;
}
.gc-mark--t1 {
  overflow: visible;
  border-radius: 5px;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.4),
    0 0 0 2.5px rgb(255 255 255 / 0.55),
    0 0 14px rgb(155 231 255 / 0.8);
}
.gc-mark--t1::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 8px;
  background: radial-gradient(closest-side, rgb(255 233 163 / 0.75), transparent);
  opacity: 0.35;
  animation: gc-breathe 1.8s ease-in-out infinite;
  pointer-events: none;
}
.gc-mark--t2::after,
.is-gc-edge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgb(255 255 255 / 0.55) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: gc-sheen 3.2s ease-in-out infinite;
  pointer-events: none;
}
.is-gc-edge {
  position: relative;
  overflow: hidden;
  border-color: transparent !important;
  box-shadow:
    0 0 0 1.5px #f5c84c,
    0 0 0 3px rgb(155 231 255 / 0.35),
    0 0 18px rgb(245 200 76 / 0.35) !important;
}
.is-gc-edge::after {
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgb(255 255 255 / 0.14) 50%,
    transparent 60%
  );
}
/* Tier 1: a second ring and a quicker, brighter sheen. */
.is-gc-edge--t1 {
  box-shadow:
    0 0 0 2px #ffe9a3,
    0 0 0 4px rgb(155 231 255 / 0.6),
    0 0 0 5.5px rgb(217 184 255 / 0.35),
    0 0 26px rgb(155 231 255 / 0.5) !important;
}
.is-gc-edge--t1::after {
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgb(255 255 255 / 0.26) 50%,
    transparent 64%
  );
  animation-duration: 2.2s;
}
@keyframes gc-sheen {
  0%,
  55% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}
@keyframes gc-breathe {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gc-mark::before,
  .gc-mark::after,
  .is-gc-edge::after {
    animation: none;
  }
}
:root[data-motion='reduce'] .gc-mark::before,
:root[data-motion='reduce'] .gc-mark::after,
:root[data-motion='reduce'] .is-gc-edge::after {
  animation: none;
}

/* The tier, T1 / T2 / T3, beside the symbol: the mark grows into a small pill. */
.captain-mark.has-tier,
.gc-mark.has-tier {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  width: max-content;
  padding: 0 3px 0 4px;
}
.gc-mark.has-tier {
  padding-left: 3px;
}
.has-tier .icon {
  flex: none;
}
.mark-tier {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: var(--weight-heavy);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
  opacity: 0.9;
}
.captain-mark--md .mark-tier,
.gc-mark--md .mark-tier {
  font-size: 11px;
}
.captain-mark.has-tier .mark-symbol {
  line-height: 1;
}

/* A double (Game Changer and Captain): one pill — the armband C with its tier, a hairline,
   the bolt with its tier — on the Game Changer's holographic ground. */
.double-mark.has-tier {
  gap: 2px;
  padding: 0 3px 0 4px;
}
.double-mark__c {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: var(--weight-heavy);
  line-height: 1;
}
.gc-mark--md .double-mark__c {
  font-size: 13px;
}
.double-mark__sep {
  position: relative;
  z-index: 1;
  width: 1px;
  height: 60%;
  margin: 0 1px;
  background: currentColor;
  opacity: 0.4;
}
.double-mark.gc-mark--t3 .double-mark__c {
  color: var(--gold-300);
}

/* Duos: the link symbol of a player with duo or trio partners, in the duo line's violet.
   Quiet by default (an outline); filled and glowing when drafting him completes a duo. */
.duo-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: color-mix(in srgb, #a98bff 14%, var(--surface-1));
  box-shadow: inset 0 0 0 1.5px rgb(196 176 255 / 0.55);
  color: #c4b0ff;
  line-height: 1;
}
.duo-mark--md {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.duo-mark.is-complete {
  background: linear-gradient(160deg, #e2d6ff, #a98bff 60%, #8a67ff);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.35),
    0 0 10px rgb(169 139 255 / 0.75);
  color: #1a1033;
}
/* A World champion: a small gold trophy disc (no text), with his other marks. */
.champion-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    var(--gold-200),
    var(--gold-400) 60%,
    var(--gold-600)
  );
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.35);
  color: var(--on-gold);
  line-height: 1;
}
.champion-mark--md {
  width: 20px;
  height: 20px;
}
