/* wci26 additional keyframes (loaded after styles.css) */

/* ── Background override: WCI pattern ─────────────────── */
.bg-arcs {
  background-image: url('../assets/wci-pattern.png') !important;
  background-size: 130% auto !important;
  background-position: center center !important;
  filter: blur(3px) saturate(0.8) brightness(0.9) !important;
  mix-blend-mode: normal !important;
  opacity: 0.22 !important;
  mask-image: radial-gradient(ellipse 110% 80% at center, black 0%, black 35%, transparent 85%) !important;
  -webkit-mask-image: radial-gradient(ellipse 110% 80% at center, black 0%, black 35%, transparent 85%) !important;
}

/* Heavy dark overlay between pattern and content for readability */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(10,6,21,0.0) 0%, rgba(10,6,21,0.5) 55%, rgba(10,6,21,0.9) 100%),
    linear-gradient(180deg, rgba(10,6,21,0.4) 0%, rgba(10,6,21,0.2) 50%, rgba(10,6,21,0.5) 100%);
}

@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(120vh) rotate(720deg); opacity: 0.6; }
}

@keyframes ball-toss {
  0%   { transform: translateX(0) translateY(0) rotate(0deg) scale(0.5); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateX(var(--bx, 0)) translateY(-200px) rotate(var(--br, 540deg)) scale(0.8); opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes hud-scan {
  0%   { transform: translateY(-100%); opacity: 0; }
  50%  { opacity: 0.6; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes runner-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

@keyframes race-fill-in {
  from { transform: scaleX(0.08); filter: saturate(0.8); }
  to { transform: scaleX(1); filter: saturate(1.25); }
}

@keyframes race-orb-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.12); }
}

@keyframes chart-scan {
  0% { transform: translateX(-100%); opacity: 0; }
  35% { opacity: 0.45; }
  100% { transform: translateX(100%); opacity: 0; }
}

@keyframes modal-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Range slider styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
  margin: 4px 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 12px var(--gold), inset 0 1px 0 rgba(255,255,255,0.5);
  border: 1px solid rgba(0,0,0,0.4);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 12px var(--gold);
  border: 1px solid rgba(0,0,0,0.4);
}

/* Fix html/body overflow so app fills viewport */
html, body { overflow: hidden; }

/* Marquee */
.marquee { animation: marquee 120s linear infinite; }

/* HUD corner brackets (used when map is unfolded) */
.hud-bracket {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(78, 209, 230, 0.6);
  pointer-events: none;
}
.hud-bracket.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.hud-bracket.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.hud-bracket.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.hud-bracket.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }

/* Contract-aware command center surfaces */
.command-page {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 26px 104px;
}

.command-page-inner {
  width: min(1380px, 100%);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.command-hero-band,
.command-panel,
.country-detail-hero,
.federation-loop-panel {
  background:
    linear-gradient(180deg, rgba(16, 18, 42, 0.88), rgba(9, 8, 24, 0.86)),
    linear-gradient(120deg, rgba(78, 209, 230, 0.08), rgba(245, 208, 32, 0.05));
  border: 1px solid var(--hair-strong);
  box-shadow: 0 18px 54px -28px rgba(0,0,0,0.95), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
}

.command-hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 18px;
  align-items: stretch;
  min-width: 0;
  padding: 20px;
  border-radius: 18px;
}

.command-hero-band > *,
.command-panel,
.country-detail-hero,
.reward-semantics {
  min-width: 0;
}

.command-hero-band h1,
.country-detail-hero h1 {
  margin: 4px 0 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 34px;
  line-height: 1;
  color: var(--t1);
  letter-spacing: 0;
}

.command-hero-band p,
.command-copy {
  margin: 10px 0 0;
  max-width: 820px;
  color: var(--t2);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.command-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.command-panel {
  border-radius: 16px;
  padding: 16px;
}

.command-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.command-panel h2 {
  margin: 3px 0 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 21px;
  line-height: 1.05;
  color: var(--t1);
  letter-spacing: 0;
}

.wci-metric-tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 12px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 0%, rgba(245,208,32,0.11), transparent 38%),
    linear-gradient(145deg, rgba(78,209,230,0.08), rgba(255,255,255,0.042) 42%, rgba(4,5,14,0.48));
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 16px 34px -30px rgba(78,209,230,0.7);
}

.wci-metric-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  right: 28px;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--fifa-cyan), var(--gold));
  box-shadow: 0 0 16px rgba(245,208,32,0.46);
}

.wci-metric-tile.tone-lime { border-color: rgba(159,214,52,0.25); }
.wci-metric-tile.tone-gold { border-color: rgba(245,208,32,0.28); }
.wci-metric-tile.tone-cyan { border-color: rgba(78,209,230,0.25); }
.wci-metric-tile.tone-magenta { border-color: rgba(230,55,168,0.22); }

.wci-metric-value {
  margin-top: 5px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.wci-metric-meta {
  margin-top: 7px;
  color: var(--t3);
  font-size: 11px;
  line-height: 1.35;
}

.federation-loop-panel {
  position: absolute;
  z-index: 4;
  top: 216px;
  left: 24px;
  width: 390px;
  max-width: calc(100% - 48px);
  padding: 15px;
  border-radius: 16px;
  transition: opacity 260ms var(--ease), transform 320ms var(--ease);
  overflow: hidden;
}

.federation-loop-panel::before,
.country-command-panel::before,
.globe-stat-chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 34px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--fifa-cyan), var(--gold), var(--lime));
  box-shadow: 0 0 18px rgba(245,208,32,0.45);
  pointer-events: none;
}

.country-command-panel,
.globe-stat-chip {
  position: relative;
  overflow: hidden;
}

.federation-loop-panel.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.federation-loop-title {
  margin-top: 5px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
}

.federation-loop-chain {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.federation-loop-chain span {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 7px;
  border-radius: 10px;
  border: 1px solid rgba(78,209,230,0.16);
  background: rgba(78,209,230,0.055);
  color: var(--t2);
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}

.federation-loop-grid,
.country-metric-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.federation-loop-selected {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: var(--t2);
  font-size: 12px;
}

.federation-loop-selected .mono {
  margin-left: auto;
  color: #fff;
  font-weight: 800;
}

.battle-grid,
.rewards-grid,
.country-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

.season-champion-name {
  margin-top: 8px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.season-delta {
  margin-top: 8px;
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--lime);
  background: rgba(159,214,52,0.1);
  border: 1px solid rgba(159,214,52,0.24);
  font-weight: 800;
}

.wci-event-feed {
  display: grid;
  gap: 8px;
}

.wci-event-row {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.wci-event-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--fifa-cyan);
  box-shadow: 0 0 14px var(--fifa-cyan);
}

.wci-event-title {
  color: var(--t1);
  font-size: 12px;
  font-weight: 800;
}

.wci-event-meta {
  margin-top: 2px;
  color: var(--t3);
  font-size: 11px;
}

.battle-rivalry-panel,
.battle-activity-panel {
  position: relative;
  overflow: hidden;
}

.battle-rivalry-panel::before,
.battle-activity-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(245,208,32,0.09), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(78,209,230,0.13), transparent 30%);
  opacity: 0.88;
}

.battle-rivalry-panel > *,
.battle-activity-panel > * {
  position: relative;
  z-index: 1;
}

.battle-duel-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  margin-top: 14px;
}

.battle-duel-team {
  min-width: 0;
  display: grid;
  gap: 11px;
  padding: 13px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 82% 4%, color-mix(in srgb, var(--team-color) 26%, transparent), transparent 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--team-color) 18%, transparent), rgba(6,7,20,0.72));
  border: 1px solid color-mix(in srgb, var(--team-color) 45%, rgba(255,255,255,0.08));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 18px 34px -30px color-mix(in srgb, var(--team-color) 80%, #000);
}

.battle-duel-team-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.battle-duel-team-head span {
  display: block;
  color: var(--t2);
  font-size: 11px;
  font-weight: 900;
}

.battle-duel-team-head strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-duel-score {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.battle-duel-track {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.075);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.battle-duel-track span {
  display: block;
  width: var(--duel-pct);
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  animation: race-fill-in 680ms var(--ease) both;
  background: linear-gradient(90deg, var(--team-color), var(--gold));
  box-shadow: 0 0 16px color-mix(in srgb, var(--team-color) 68%, var(--gold));
}

.battle-duel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.battle-duel-stats span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px;
  border-radius: 9px;
  color: var(--t3);
  background: rgba(4,5,14,0.42);
  border: 1px solid rgba(255,255,255,0.065);
  font-size: 9px;
  font-weight: 900;
}

.battle-duel-stats strong {
  color: #fff;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.battle-duel-vs {
  align-self: center;
  justify-self: center;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  cursor: pointer;
  color: #120d18;
  background: radial-gradient(circle at 38% 32%, #fff8b6, var(--gold) 52%, #946d05);
  border: 1px solid rgba(245,208,32,0.72);
  box-shadow:
    0 0 26px rgba(245,208,32,0.42),
    inset 0 1px 0 rgba(255,255,255,0.72);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 950;
  animation: race-orb-pulse 2.2s ease-in-out infinite;
}

.battle-rival-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.battle-rival-chip {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 11px;
  color: var(--t2);
  cursor: pointer;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
}

.battle-rival-chip.is-active {
  color: #fff;
  border-color: color-mix(in srgb, var(--team-color) 55%, rgba(245,208,32,0.32));
  background: color-mix(in srgb, var(--team-color) 16%, rgba(255,255,255,0.05));
  box-shadow: 0 0 22px -16px color-mix(in srgb, var(--team-color) 90%, var(--gold));
}

.battle-rival-chip span {
  font-size: 11px;
  font-weight: 900;
}

.battle-rival-chip strong {
  justify-self: end;
  min-width: 0;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
}

.battle-comparison-graph {
  margin-top: 13px;
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(78,209,230,0.14), transparent 38%),
    rgba(4,5,14,0.38);
  border: 1px solid rgba(255,255,255,0.08);
}

.battle-comparison-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.battle-comparison-head strong {
  color: #fff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 900;
}

.battle-compare-row {
  display: grid;
  gap: 6px;
}

.battle-compare-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.battle-compare-label span {
  color: var(--t3);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.battle-compare-label strong {
  color: var(--t2);
  font-size: 10px;
  font-weight: 900;
}

.battle-compare-bars {
  display: grid;
  gap: 4px;
}

.battle-compare-bars span {
  display: block;
  height: 6px;
  border-radius: 999px;
  transform-origin: left center;
  animation: race-fill-in 620ms var(--ease) both;
}

.battle-compare-bars .leader-line {
  width: var(--leader-pct);
  background: linear-gradient(90deg, var(--leader-color), var(--gold));
  box-shadow: 0 0 14px color-mix(in srgb, var(--leader-color) 60%, transparent);
}

.battle-compare-bars .rival-line {
  width: var(--rival-pct);
  background: linear-gradient(90deg, var(--rival-color), var(--fifa-cyan));
  box-shadow: 0 0 14px color-mix(in srgb, var(--rival-color) 60%, transparent);
}

.battle-battle-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.battle-battle-metric {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(4,5,14,0.42);
  border: 1px solid rgba(255,255,255,0.07);
}

.battle-battle-metric span {
  display: block;
  color: var(--t3);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.battle-battle-metric strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
}

.battle-battle-metric small {
  display: block;
  margin-top: 6px;
  color: var(--t3);
  font-size: 10px;
  line-height: 1.25;
}

.battle-battle-metric.tone-cyan { border-color: rgba(78,209,230,0.28); }
.battle-battle-metric.tone-gold { border-color: rgba(245,208,32,0.28); }
.battle-battle-metric.tone-lime { border-color: rgba(159,214,52,0.24); }
.battle-battle-metric.tone-magenta { border-color: rgba(230,55,168,0.24); }

.battle-feed-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.battle-feed-row {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 11px;
  color: var(--t1);
  text-align: left;
  cursor: pointer;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--feed-color) 12%, transparent), rgba(255,255,255,0.035)),
    rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.065);
}

.battle-feed-row:hover {
  border-color: color-mix(in srgb, var(--feed-color) 48%, rgba(255,255,255,0.12));
}

.battle-feed-pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--feed-color);
  box-shadow: 0 0 14px var(--feed-color);
}

.battle-feed-row small {
  display: block;
  color: color-mix(in srgb, var(--feed-color) 65%, var(--t2));
  font-size: 9px;
  font-weight: 950;
}

.battle-feed-row strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.battle-feed-row em {
  display: block;
  margin-top: 2px;
  color: var(--t3);
  font-size: 10px;
  font-style: normal;
}

.battle-feed-row > .mono {
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.command-segmented {
  display: flex;
  gap: 5px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
}

.command-segmented button {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 8px 10px;
  background: transparent;
  color: var(--t2);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.command-segmented button.is-active {
  color: var(--gold);
  background: rgba(245,208,32,0.12);
  border-color: rgba(245,208,32,0.28);
}

.battle-hero-mode-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.battle-hero-mode-strip button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 11px;
  color: var(--t2);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.battle-hero-mode-strip button.is-active {
  color: var(--gold);
  background: linear-gradient(180deg, rgba(245,208,32,0.16), rgba(245,208,32,0.055));
  border-color: rgba(245,208,32,0.35);
  box-shadow: 0 0 22px -16px var(--gold);
}

.battle-race-hero {
  position: relative;
  overflow: hidden;
}

.battle-race-hero::after {
  content: '';
  position: absolute;
  inset: auto 20px 0 auto;
  width: 44%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245,208,32,0.9), rgba(78,209,230,0.6), transparent);
  box-shadow: 0 0 28px rgba(245,208,32,0.45);
  pointer-events: none;
}

.battle-race-command {
  overflow: hidden;
}

.battle-race-board {
  display: grid;
  gap: 9px;
  max-height: min(72vh, 760px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 8px 2px 2px;
  scrollbar-color: rgba(245,208,32,0.55) rgba(255,255,255,0.06);
}

.battle-race-row {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 46px auto 54px minmax(220px, 1fr) minmax(170px, auto);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--t1);
  text-align: left;
  cursor: pointer;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--row-color) 13%, transparent), rgba(255,255,255,0.035) 58%, rgba(8,8,22,0.68)),
    rgba(255,255,255,0.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 16px 34px -30px color-mix(in srgb, var(--row-color) 80%, #000);
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}

.battle-race-row:hover,
.battle-race-row.is-selected {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--row-color) 62%, rgba(245,208,32,0.35));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--row-color) 19%, transparent), rgba(245,208,32,0.05) 58%, rgba(8,8,22,0.72)),
    rgba(255,255,255,0.055);
}

.battle-race-rank {
  color: var(--gold);
  font-weight: 900;
  font-size: 12px;
}

.battle-race-code {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.battle-race-track {
  position: relative;
  display: block;
  height: 12px;
  border-radius: 999px;
  overflow: visible;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 10%),
    rgba(0,0,0,0.35);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.55);
}

.battle-race-fill {
  display: block;
  width: var(--primary-pct);
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  animation: race-fill-in 620ms var(--ease) both;
  background:
    linear-gradient(90deg, var(--row-color), color-mix(in srgb, var(--row-secondary) 50%, var(--gold)), var(--gold)),
    linear-gradient(90deg, rgba(255,255,255,0.16), transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--row-color) 55%, transparent);
}

.battle-race-orb {
  position: absolute;
  left: var(--primary-pct);
  top: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #120d18;
  background: radial-gradient(circle at 38% 34%, #fff9b8, var(--gold) 48%, color-mix(in srgb, var(--row-color) 60%, #8a6400));
  box-shadow:
    0 0 18px color-mix(in srgb, var(--row-color) 55%, var(--gold)),
    inset 0 1px 0 rgba(255,255,255,0.7);
  font-size: 10px;
  font-weight: 900;
  animation: race-orb-pulse 1.8s ease-in-out infinite;
}

.battle-race-values {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.battle-race-values strong {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.battle-race-values small {
  color: var(--t3);
  font-size: 10px;
  font-weight: 800;
}

.battle-leaderboard-list {
  display: grid;
  gap: 7px;
}

.battle-leader-row {
  width: 100%;
  display: grid;
  grid-template-columns: 42px auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--t1);
  cursor: pointer;
  text-align: left;
}

.battle-leader-row:hover {
  border-color: color-mix(in srgb, var(--row-color) 45%, rgba(255,255,255,0.12));
  background: rgba(255,255,255,0.06);
}

.battle-leader-row .mono:last-child {
  color: var(--gold);
  font-weight: 800;
}

.command-state-pill,
.reward-semantics div {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--gold);
  background: rgba(245,208,32,0.09);
  border: 1px solid rgba(245,208,32,0.22);
  font-size: 11px;
  font-weight: 800;
}

.group-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.team-monitor-inner {
  gap: 16px;
}

.team-monitor-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 16px;
  align-items: stretch;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(21, 24, 52, 0.94), rgba(10, 9, 26, 0.9)),
    linear-gradient(90deg, rgba(245, 208, 32, 0.07), rgba(78, 209, 230, 0.08));
  border: 1px solid rgba(245,208,32,0.18);
  box-shadow:
    0 20px 60px -30px rgba(0,0,0,0.95),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.team-monitor-hero h1 {
  margin: 4px 0 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 34px;
  line-height: 1;
  color: var(--t1);
  letter-spacing: 0;
}

.team-monitor-hero p {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--t2);
  font-size: 13px;
  line-height: 1.5;
}

.team-monitor-copy {
  min-width: 0;
  display: grid;
  align-content: start;
}

.team-monitor-spotlight {
  width: min(520px, 100%);
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--team-color) 20%, transparent), rgba(255,255,255,0.045)),
    rgba(10,8,24,0.56);
  border: 1px solid color-mix(in srgb, var(--team-color) 42%, rgba(255,255,255,0.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.team-monitor-spotlight svg {
  border-radius: 7px;
  box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--team-color) 80%, #000);
}

.team-monitor-spotlight strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  line-height: 1.05;
}

.team-monitor-spotlight small {
  display: block;
  margin-top: 4px;
  color: var(--t3);
  font-size: 11px;
  font-weight: 800;
}

.team-focus-tabs {
  width: min(520px, 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.team-focus-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--t2);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.045);
  font-size: 11px;
  font-weight: 900;
}

.team-focus-tab.is-active {
  color: #fff;
  border-color: color-mix(in srgb, var(--team-color) 62%, rgba(245,208,32,0.35));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--team-color) 20%, transparent), rgba(245,208,32,0.08)),
    rgba(255,255,255,0.06);
  box-shadow: 0 0 24px -15px color-mix(in srgb, var(--team-color) 90%, var(--gold));
}

.team-watch-chart {
  position: relative;
  width: min(620px, 100%);
  margin-top: 12px;
  padding: 13px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--team-color) 20%, transparent), rgba(10,8,24,0.72)),
    rgba(255,255,255,0.045);
  border: 1px solid color-mix(in srgb, var(--team-color) 42%, rgba(255,255,255,0.1));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 18px 42px -30px color-mix(in srgb, var(--team-color) 70%, #000);
}

.team-watch-chart::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: chart-scan 4.4s ease-in-out infinite;
  pointer-events: none;
}

.team-watch-chart.is-empty {
  min-height: 94px;
  display: grid;
  place-content: center start;
  color: var(--t2);
}

.team-chart-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.team-chart-head strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.team-chart-head > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.team-chart-track-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.team-chart-track-stack span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.team-chart-track-stack span::before {
  content: '';
  display: block;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  animation: race-fill-in 700ms var(--ease) both;
}

.team-chart-track-stack .mcap-line::before {
  width: var(--focus-mcap);
  background: linear-gradient(90deg, var(--team-color), var(--gold));
}

.team-chart-track-stack .volume-line::before {
  width: var(--focus-volume);
  background: linear-gradient(90deg, var(--fifa-cyan), var(--team-secondary));
}

.team-chart-track-stack .pressure-line::before {
  width: var(--focus-pressure);
  background: linear-gradient(90deg, var(--lime), var(--gold));
}

.team-chart-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.team-chart-row {
  display: grid;
  grid-template-columns: auto 42px minmax(120px, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 11px;
  color: var(--t2);
  background: rgba(4,5,14,0.42);
  border: 1px solid rgba(255,255,255,0.06);
}

.team-chart-row.is-focused {
  color: #fff;
  border-color: color-mix(in srgb, var(--team-color) 50%, rgba(245,208,32,0.2));
  background: color-mix(in srgb, var(--team-color) 12%, rgba(4,5,14,0.55));
}

.team-chart-mini-bars {
  display: grid;
  gap: 4px;
}

.team-chart-mini-bars span {
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.team-chart-cap::before,
.team-chart-pressure::before {
  content: '';
  display: block;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  animation: race-fill-in 640ms var(--ease) both;
}

.team-chart-cap::before {
  width: var(--cap-pct);
  background: linear-gradient(90deg, var(--team-color), var(--gold));
}

.team-chart-pressure::before {
  width: var(--pressure-pct);
  background: linear-gradient(90deg, var(--lime), var(--team-color));
}

.team-chart-row strong {
  color: #fff;
  font-size: 11px;
}

.team-chart-legend {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  color: var(--t3);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.team-monitor-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.team-supporter-slot {
  min-width: 0;
  display: grid;
}

.wallet-connected-routing {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 11px 40px 11px 12px;
  border-radius: 14px;
  color: var(--t1);
  background:
    radial-gradient(circle at 92% 0%, rgba(159,214,52,0.20), transparent 34%),
    linear-gradient(135deg, rgba(78,209,230,0.13), rgba(245,208,32,0.08)),
    rgba(8,8,22,0.66);
  border: 1px solid rgba(159,214,52,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 16px 34px -28px var(--lime);
}

.wallet-connected-routing span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.wallet-connected-routing strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
}

.wallet-connected-routing button {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--t2);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  font-size: 0;
}

.wallet-connected-routing button::before,
.wallet-connected-routing button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.wallet-connected-routing button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.wallet-connected-routing button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.team-monitor-kpi {
  min-width: 0;
  padding: 13px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035)),
    rgba(8,8,22,0.62);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.team-monitor-kpi span,
.team-card-metric span,
.team-card-power span {
  display: block;
  color: var(--t3);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.team-monitor-kpi strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 25px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.team-monitor-kpi small {
  display: block;
  margin-top: 7px;
  color: var(--t3);
  font-size: 11px;
  line-height: 1.3;
}

.team-monitor-kpi.tone-lime { border-color: rgba(159,214,52,0.32); }
.team-monitor-kpi.tone-gold { border-color: rgba(245,208,32,0.32); }
.team-monitor-kpi.tone-cyan { border-color: rgba(78,209,230,0.28); }
.team-monitor-kpi.tone-magenta { border-color: rgba(230,55,168,0.26); }

.team-monitor-empty {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-radius: 14px;
  color: var(--t2);
  background:
    linear-gradient(135deg, rgba(245,208,32,0.08), rgba(78,209,230,0.035)),
    rgba(255,255,255,0.035);
  border: 1px dashed rgba(245,208,32,0.32);
}

.monitored-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 12px;
}

.team-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  max-height: min(72vh, 760px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 8px 2px 2px;
  scrollbar-color: rgba(245,208,32,0.55) rgba(255,255,255,0.06);
}

.team-picker-card {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 13px;
  padding: 14px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--team-color) 32%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--team-color) 18%, transparent), rgba(255,255,255,0.045) 45%, rgba(6,7,20,0.82)),
    rgba(255,255,255,0.042);
  border: 1px solid color-mix(in srgb, var(--team-color) 34%, rgba(255,255,255,0.09));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 0 0 1px rgba(255,255,255,0.02),
    0 18px 38px -28px color-mix(in srgb, var(--team-color) 86%, #000);
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}

.team-card-edge-line {
  position: absolute;
  top: 0;
  left: 14px;
  right: 34px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--team-color), var(--gold), color-mix(in srgb, var(--team-color) 40%, var(--fifa-cyan)));
  box-shadow: 0 0 18px color-mix(in srgb, var(--team-color) 74%, var(--gold));
  pointer-events: none;
}

.team-picker-card.is-monitored {
  border-color: color-mix(in srgb, var(--team-color) 58%, rgba(245,208,32,0.34));
  background:
    radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--team-color) 38%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--team-color) 22%, transparent), rgba(245,208,32,0.06) 45%, rgba(8,8,22,0.82)),
    rgba(245,208,32,0.055);
}

.team-picker-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--team-color) 50%, rgba(255,255,255,0.16));
}

.team-picker-card.is-compact {
  height: 100%;
  gap: 11px;
}

.team-picker-card.is-compact .team-card-metrics {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.team-card-top {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.team-flag-frame {
  display: grid;
  place-items: center;
}

.team-flag-frame svg {
  border-radius: 6px;
  box-shadow:
    0 10px 26px -17px color-mix(in srgb, var(--team-color) 80%, #000),
    inset 0 0 0 1px rgba(255,255,255,0.2);
}

.team-picker-identity {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.team-picker-name {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-picker-code {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.team-picker-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  color: var(--t3);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.team-status-stack {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.team-rank-badge,
.team-live-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.team-rank-badge {
  color: #140e1d;
  background: linear-gradient(180deg, var(--gold), #b99408);
}

.team-live-badge {
  color: var(--lime);
  background: rgba(159,214,52,0.1);
  border: 1px solid rgba(159,214,52,0.25);
}

.team-live-badge.is-off {
  color: var(--coral);
  background: rgba(232,57,44,0.1);
  border-color: rgba(232,57,44,0.25);
}

.team-card-price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.team-card-price-line strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.team-card-price-line span {
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
}

.team-card-segment-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.team-card-segment-bars span {
  height: 8px;
  border-radius: 3px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.4);
}

.team-card-segment-bars span.is-lit {
  background: linear-gradient(180deg, color-mix(in srgb, var(--team-color) 60%, #fff), var(--team-color), var(--gold));
  border-color: color-mix(in srgb, var(--team-color) 60%, rgba(245,208,32,0.42));
  box-shadow:
    0 0 13px color-mix(in srgb, var(--team-color) 64%, var(--gold)),
    inset 0 1px 0 rgba(255,255,255,0.45);
}

.team-card-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.team-card-metric {
  min-width: 0;
  padding: 9px 8px;
  border-radius: 7px;
  background: rgba(8,8,22,0.38);
  border: 1px solid rgba(255,255,255,0.065);
}

.team-card-metric strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

.team-card-metric small {
  display: block;
  margin-top: 5px;
  color: var(--t3);
  font-size: 9px;
  line-height: 1.25;
}

.team-card-power {
  display: grid;
  gap: 8px;
}

.team-card-power > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-card-power strong {
  color: var(--gold);
  font-size: 12px;
}

.team-live-bars,
.team-live-bars > div:first-child {
  display: grid;
  gap: 8px;
}

.team-metric-bar {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.team-metric-bar > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.team-metric-bar strong {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.team-metric-bar.tone-gold strong { color: var(--gold); }
.team-metric-bar.tone-lime strong { color: var(--lime); }

.team-metric-track {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.team-metric-track span {
  display: block;
  width: var(--bar-pct);
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  animation: race-fill-in 620ms var(--ease) both;
}

.team-metric-bar.tone-gold .team-metric-track span {
  background: linear-gradient(90deg, var(--team-color), var(--gold));
  box-shadow: 0 0 16px color-mix(in srgb, var(--team-color) 55%, transparent);
}

.team-metric-bar.tone-lime .team-metric-track span {
  background: linear-gradient(90deg, var(--lime), var(--gold));
  box-shadow: 0 0 16px rgba(159,214,52,0.28);
}

.team-power-track {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.07);
}

.team-power-track span {
  display: block;
  width: var(--team-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--team-color), var(--gold));
  box-shadow: 0 0 18px color-mix(in srgb, var(--team-color) 70%, transparent);
}

.team-picker-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.team-picker-actions button,
.team-uncheck-action {
  appearance: none;
  min-height: 38px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.team-secondary-action {
  flex: 0 0 auto;
  padding: 0 11px;
  color: var(--t2);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035)),
    rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.1);
}

.team-buy-action {
  flex: 0 0 auto;
  padding: 0 13px;
  color: #061109;
  background:
    linear-gradient(180deg, #cfff54 0%, #50d64e 54%, #0d8b45 100%);
  border: 1px solid rgba(113,255,107,0.6);
  text-shadow: 0 1px 0 rgba(255,255,255,0.32);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 10px 22px -16px rgba(80,214,78,0.9);
}

.team-buy-action:hover {
  filter: brightness(1.08);
}

.team-buy-action.is-large {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  font-size: 14px;
  text-transform: uppercase;
}

.team-pick-action {
  flex: 1;
  padding: 0 12px;
  color: #140e1d;
  background: linear-gradient(180deg, #ffe866, var(--gold) 54%, #a87908);
  border: 1px solid rgba(245,208,32,0.5);
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

.team-pick-action.is-active {
  color: var(--lime);
  background:
    linear-gradient(180deg, rgba(159,214,52,0.18), rgba(159,214,52,0.08)),
    rgba(159,214,52,0.10);
  border-color: rgba(159,214,52,0.42);
  text-shadow: none;
}

.team-pick-action.is-danger {
  color: var(--coral);
  background:
    linear-gradient(180deg, rgba(232,57,44,0.18), rgba(232,57,44,0.08)),
    rgba(232,57,44,0.09);
  border-color: rgba(232,57,44,0.28);
  text-shadow: none;
}

.team-uncheck-action {
  width: 100%;
  margin-top: 8px;
  color: var(--coral);
  background: rgba(232,57,44,0.09);
  border: 1px solid rgba(232,57,44,0.24);
}

.country-inspect-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--country-color, var(--gold)) 16%, transparent), transparent 36%),
    rgba(5,4,13,0.72);
  backdrop-filter: blur(16px);
}

.country-inspect-modal {
  position: relative;
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--country-color) 20%, transparent), rgba(14,12,34,0.96) 36%, rgba(5,4,13,0.98)),
    rgba(8,7,20,0.98);
  border: 1px solid color-mix(in srgb, var(--country-color) 55%, rgba(245,208,32,0.24));
  box-shadow:
    0 30px 90px -35px #000,
    0 0 46px -28px color-mix(in srgb, var(--country-color) 90%, var(--gold)),
    inset 0 1px 0 rgba(255,255,255,0.1);
  animation: modal-rise 220ms var(--ease) both;
}

.country-inspect-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--t2);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  font-weight: 900;
}

.country-inspect-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-right: 78px;
}

.country-inspect-hero svg {
  border-radius: 8px;
  box-shadow: 0 18px 36px -22px color-mix(in srgb, var(--country-color) 85%, #000);
}

.country-inspect-hero h2 {
  margin: 4px 0 0;
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 30px;
  line-height: 1;
}

.country-inspect-hero p {
  margin: 7px 0 0;
  color: var(--t3);
  font-size: 11px;
  font-weight: 900;
}

.country-inspect-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.country-inspect-metric {
  padding: 13px;
  border-radius: 13px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
}

.country-inspect-metric span,
.country-inspect-contracts span {
  display: block;
  color: var(--t3);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.country-inspect-metric strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.country-inspect-metric small {
  display: block;
  margin-top: 6px;
  color: var(--t3);
  font-size: 11px;
}

.country-inspect-contracts {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(4,5,14,0.42);
  border: 1px solid rgba(255,255,255,0.08);
}

.country-inspect-contracts div {
  display: grid;
  gap: 6px;
}

.country-inspect-contracts strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.country-inspect-actions {
  margin-top: 14px;
}

.group-result-row {
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 6px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  color: var(--t2);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
}

.group-result-row strong {
  color: #fff;
}

.reward-semantics {
  display: grid;
  align-content: center;
  gap: 9px;
}

.rewards-locked-shell {
  min-height: min(680px, calc(100vh - 140px));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(8,8,22,0.68), rgba(8,8,22,0.88)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 72px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.rewards-locked-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 24%, rgba(245,208,32,0.18), transparent 28%),
    radial-gradient(circle at 76% 68%, rgba(78,209,230,0.14), transparent 30%);
  filter: saturate(0.35) grayscale(0.35);
  opacity: 0.58;
  pointer-events: none;
}

.rewards-coming-soon-modal {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 44px));
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: 34px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035)),
    rgba(8,8,22,0.84);
  border: 1px solid rgba(245,208,32,0.26);
  box-shadow:
    0 28px 80px -34px #000,
    0 0 60px -30px rgba(245,208,32,0.7),
    inset 0 1px 0 rgba(255,255,255,0.1);
  backdrop-filter: blur(18px);
}

.rewards-coming-soon-modal h1 {
  margin: 0;
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 0.92;
  letter-spacing: 0;
}

.rewards-coming-soon-modal p {
  margin: 0;
  max-width: 520px;
  color: var(--t2);
  font-size: 14px;
  line-height: 1.55;
}

.rewards-lock-orbit {
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245,208,32,0.2), rgba(78,209,230,0.08) 48%, transparent 70%);
}

.rewards-lock-orbit::before {
  content: '$';
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #120d18;
  background: linear-gradient(180deg, #fff4a4, var(--gold) 52%, #a87908);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 24px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 16px 34px -18px var(--gold);
}

.rewards-lock-orbit span {
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  border: 1px solid rgba(245,208,32,0.28);
  animation: reward-orbit 4.6s linear infinite;
}

.rewards-lock-orbit span:nth-child(2) {
  inset: 18px;
  border-color: rgba(78,209,230,0.25);
  animation-duration: 6.8s;
  animation-direction: reverse;
}

.rewards-lock-orbit span:nth-child(3) {
  inset: 28px;
  border-color: rgba(159,214,52,0.22);
  animation-duration: 5.4s;
}

.rewards-soon-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.rewards-soon-stats span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--t2);
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

@keyframes reward-orbit {
  from { transform: rotate(0deg) scaleX(1); }
  to { transform: rotate(360deg) scaleX(1); }
}

.wci-allocation-row {
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.wci-allocation-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.wci-allocation-head,
.wci-allocation-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.wci-allocation-name {
  color: var(--t1);
  font-weight: 800;
  font-size: 13px;
}

.wci-allocation-purpose,
.wci-allocation-foot {
  color: var(--t3);
  font-size: 11px;
}

.wci-allocation-number {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.wci-allocation-track {
  height: 7px;
  margin: 8px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.wci-allocation-fill {
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 0 14px rgba(255,255,255,0.24);
}

.wci-country-picker-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scrollbar-width: thin;
}

.wci-country-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--t2);
  cursor: pointer;
}

.wci-country-chip.is-selected {
  color: #fff;
  border-color: color-mix(in srgb, var(--chip-color) 62%, rgba(255,255,255,0.16));
  background: color-mix(in srgb, var(--chip-color) 14%, rgba(255,255,255,0.05));
}

.country-detail-inner {
  gap: 14px;
}

.country-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  border-color: color-mix(in srgb, var(--country-color) 52%, rgba(255,255,255,0.12));
}

.country-detail-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.country-detail-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.country-detail-tags span {
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--t2);
  font-size: 11px;
  font-weight: 800;
}

.country-detail-back {
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.55);
  background: linear-gradient(180deg, var(--country-color), var(--gold));
  color: #080615;
  padding: 12px 15px;
  cursor: pointer;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.contract-kv:first-of-type {
  border-top: 0;
}

.contract-kv span {
  color: var(--t3);
  font-size: 12px;
}

.contract-kv strong {
  color: #fff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  text-align: right;
  overflow-wrap: anywhere;
}

.country-buyback-progress {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: var(--t2);
  font-size: 12px;
  font-weight: 800;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 9px;
  align-items: center;
  padding: 9px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--t2);
  font-size: 12px;
}

.history-row strong {
  color: #fff;
}

.command-panel h3 {
  margin: 16px 0 10px;
  color: var(--t1);
  font-size: 14px;
}

.topbar-social-links {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar-social-link {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--fifa-cyan);
  background:
    radial-gradient(circle at 50% 0%, rgba(78,209,230,0.16), transparent 58%),
    linear-gradient(180deg, rgba(78,209,230,0.12), rgba(78,209,230,0.035));
  border: 1px solid rgba(78,209,230,0.30);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 12px 24px -20px var(--fifa-cyan);
  text-decoration: none;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.topbar-social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(254,219,0,0.42);
  color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 22px -12px var(--gold);
}

@media (max-width: 1500px) {
  .topbar {
    gap: 10px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .topbar-stats {
    gap: 7px !important;
    min-width: 0;
  }

  .wci26-home-link {
    width: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .wci26-home-link::before {
    content: "W";
    font-size: 12px;
    font-weight: 950;
  }

  .wallet-connect-button {
    max-width: 118px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .wci26-buy-link {
    padding-left: 13px !important;
    padding-right: 13px !important;
  }
}

@media (max-width: 1320px) {
  .topbar-stats > div:first-child {
    display: none !important;
  }
}

.wallet-readonly-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 24%, rgba(78,209,230,0.18), transparent 34%),
    rgba(5,4,13,0.74);
  backdrop-filter: blur(16px);
}

.wallet-readonly-modal {
  position: relative;
  width: min(480px, calc(100vw - 32px));
  display: grid;
  gap: 13px;
  padding: 20px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(78,209,230,0.13), rgba(14,12,34,0.96) 38%, rgba(5,4,13,0.98)),
    rgba(8,7,20,0.98);
  border: 1px solid rgba(78,209,230,0.32);
  box-shadow:
    0 30px 90px -35px #000,
    0 0 46px -28px var(--fifa-cyan),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.wallet-readonly-modal h2 {
  margin: 0;
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  line-height: 1;
}

.wallet-readonly-modal p {
  margin: 0;
  color: var(--t2);
  font-size: 13px;
  line-height: 1.5;
}

.wallet-modal-close {
  justify-self: end;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--t2);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  font-weight: 900;
}

.wallet-readonly-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wallet-readonly-points span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 12px;
  color: var(--t2);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.wallet-nickname-field,
.supporter-nickname-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.wallet-nickname-field span,
.supporter-nickname-field span {
  color: var(--t3);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wallet-nickname-field input,
.supporter-nickname-input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  box-sizing: border-box;
  border-radius: 13px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(78,209,230,0.12), transparent 42%),
    rgba(6,8,20,0.62);
  border: 1px solid rgba(78,209,230,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  outline: none;
  padding: 0 12px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.wallet-nickname-field input:focus,
.supporter-nickname-input:focus {
  border-color: rgba(254,219,0,0.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 3px rgba(254,219,0,0.09);
}

.wallet-error {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--coral);
  background: rgba(232,57,44,0.1);
  border: 1px solid rgba(232,57,44,0.28);
  font-size: 12px;
  font-weight: 800;
}

.wallet-connect-confirm {
  min-height: 46px;
  border-radius: 14px;
  color: #07101a;
  background: linear-gradient(180deg, #c9fbff, var(--fifa-cyan) 54%, #13849a);
  border: 1px solid rgba(78,209,230,0.66);
  cursor: pointer;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 18px 34px -22px var(--fifa-cyan);
}

.wallet-view-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: none;
  overflow: visible;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 86% 0%, rgba(78,209,230,0.18), transparent 36%),
    linear-gradient(145deg, rgba(16,18,42,0.92), rgba(7,8,22,0.9));
  border: 1px solid rgba(78,209,230,0.26);
  box-shadow: 0 22px 58px -34px #000, inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
}

.wallet-view-panel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 20px;
  right: 20px;
  height: 10px;
  border-left: 1px solid rgba(78,209,230,0.38);
  border-right: 1px solid rgba(78,209,230,0.38);
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(78,209,230,0.30) 16% 17%, transparent 17% 83%, rgba(78,209,230,0.30) 83% 84%, transparent 84%),
    linear-gradient(180deg, rgba(78,209,230,0.18), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.wallet-view-panel.is-team-compact .wallet-view-head {
  padding: 1px 2px 0;
}

.wallet-view-panel.is-team-compact .supporter-profile-card {
  gap: 8px;
  padding: 10px;
  border-radius: 13px;
}

.wallet-view-panel.is-team-compact .supporter-profile-card.is-collapsed {
  min-height: 74px;
  align-content: center;
}

.wallet-view-panel.is-team-compact .supporter-profile-head h3 {
  font-size: 16px;
}

.wallet-view-panel.is-team-compact .supporter-tier {
  max-width: 96px;
  padding: 6px;
  font-size: 8px;
}

.wallet-view-panel.is-team-compact .supporter-profile-toggle {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
}

.wallet-view-panel.is-team-compact .supporter-profile-body {
  max-height: min(47vh, 420px);
  overflow-y: auto;
  padding-right: 2px;
}

.wallet-view-head,
.wallet-buy-summary,
.wallet-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wallet-view-name {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-view-address {
  display: block;
  margin-top: 2px;
  color: var(--t2);
  font-size: 11px;
  font-weight: 900;
}

.wallet-view-head button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 11px;
  color: var(--fifa-cyan);
  background: rgba(78,209,230,0.1);
  border: 1px solid rgba(78,209,230,0.24);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.supporter-profile-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px;
  overflow: visible;
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 8%, rgba(254,219,0,0.2), transparent 34%),
    linear-gradient(145deg, rgba(30,34,72,0.78), rgba(11,10,28,0.88));
  border: 1px solid rgba(254,219,0,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 18px 42px -32px rgba(254,219,0,0.8);
  transform-origin: top center;
  transition:
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease),
    transform 220ms var(--ease),
    padding 220ms var(--ease);
}

.supporter-profile-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--fifa-cyan), var(--gold), var(--lime));
  opacity: 0.9;
}

.supporter-profile-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.045);
  pointer-events: none;
}

.supporter-profile-card.is-collapsed {
  gap: 0;
  padding-bottom: 10px;
  border-color: rgba(78,209,230,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.09),
    0 12px 28px -26px rgba(78,209,230,0.95);
  transform: translateY(-2px) rotateX(-1deg);
}

.supporter-profile-linkage {
  position: absolute;
  top: -15px;
  left: 22px;
  right: 22px;
  height: 16px;
  pointer-events: none;
}

.supporter-profile-linkage::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 6px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(78,209,230,0.18), rgba(254,219,0,0.62), rgba(78,209,230,0.18));
  box-shadow: 0 0 14px rgba(254,219,0,0.34);
}

.supporter-profile-linkage i {
  position: absolute;
  top: 0;
  width: 2px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(78,209,230,0.0), rgba(78,209,230,0.76));
  box-shadow: 0 0 10px rgba(78,209,230,0.4);
}

.supporter-profile-linkage i:first-child {
  left: 24px;
}

.supporter-profile-linkage i:last-child {
  right: 24px;
}

.supporter-profile-head,
.supporter-focus-row,
.supporter-next-mission {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.supporter-profile-head {
  gap: 7px;
}

.supporter-profile-head > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.supporter-profile-head h3 {
  margin: 3px 0 0;
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supporter-tier {
  flex: 0 0 auto;
  max-width: 104px;
  padding: 6px 7px;
  border-radius: 999px;
  color: #061017;
  background: linear-gradient(180deg, #e9ff8d, var(--lime));
  border: 1px solid rgba(159,214,52,0.66);
  font-size: 9px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.supporter-profile-toggle {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #081019;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.96), rgba(233,255,141,0.86) 28%, rgba(159,214,52,0.98) 74%),
    linear-gradient(180deg, #e9ff8d, var(--lime));
  border: 1px solid rgba(159,214,52,0.74);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.66),
    0 0 0 4px rgba(159,214,52,0.11),
    0 0 18px rgba(159,214,52,0.46);
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
  animation: supporterTogglePulse 1.8s ease-in-out infinite;
}

.supporter-profile-toggle:hover {
  transform: translateY(-1px) scale(1.04);
}

.supporter-profile-toggle:active {
  transform: translateY(1px) scale(0.97);
}

.supporter-profile-affordance {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
}

.supporter-profile-affordance::before,
.supporter-profile-affordance::after,
.supporter-profile-affordance i {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: #071019;
  transform-origin: center;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.supporter-profile-affordance::before,
.supporter-profile-affordance::after {
  width: 15px;
  height: 3px;
}

.supporter-profile-affordance::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.supporter-profile-affordance::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.supporter-profile-affordance i {
  width: 9px;
  height: 3px;
}

.supporter-profile-affordance i:first-child {
  transform: translate(-58%, -50%) rotate(42deg);
}

.supporter-profile-affordance i:last-child {
  transform: translate(-6%, -50%) rotate(-42deg);
}

.supporter-profile-toggle[aria-expanded="true"] .supporter-profile-affordance i {
  opacity: 0;
}

.supporter-profile-toggle[aria-expanded="false"] {
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.86), rgba(78,209,230,0.72) 32%, rgba(19,132,154,0.94) 78%),
    linear-gradient(180deg, #c9fbff, var(--fifa-cyan));
  border-color: rgba(78,209,230,0.66);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.58),
    0 0 0 4px rgba(78,209,230,0.11),
    0 0 18px rgba(78,209,230,0.50);
}

.supporter-profile-toggle[aria-expanded="false"] .supporter-profile-affordance::before,
.supporter-profile-toggle[aria-expanded="false"] .supporter-profile-affordance::after {
  opacity: 0;
}

.supporter-profile-body {
  display: grid;
  gap: 10px;
  overflow: hidden;
  animation: supporterPanelDrop 220ms var(--ease);
}

.supporter-profile-body[hidden] {
  display: none;
}

.supporter-profile-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.supporter-profile-metrics div,
.supporter-focus-row,
.supporter-next-mission {
  min-width: 0;
  padding: 9px;
  border-radius: 12px;
  background: rgba(6,8,20,0.58);
  border: 1px solid rgba(255,255,255,0.08);
}

.supporter-profile-metrics span,
.supporter-focus-row span,
.supporter-next-mission span {
  display: block;
  color: var(--t3);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.supporter-profile-metrics strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.supporter-focus-row strong {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.supporter-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.supporter-badge {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(254,219,0,0.09);
  border: 1px solid rgba(254,219,0,0.2);
  font-size: 10px;
  font-weight: 950;
}

.supporter-next-mission {
  display: grid;
  justify-content: stretch;
}

.supporter-next-mission strong {
  margin-top: 4px;
  color: var(--t1);
  font-size: 11px;
  line-height: 1.35;
}

.wallet-buy-summary,
.wallet-empty,
.wallet-buy-row {
  padding: 9px;
  border-radius: 12px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.07);
}

.wallet-buy-summary span,
.wallet-empty {
  color: var(--t3);
  font-size: 11px;
  font-weight: 900;
}

.wallet-buy-summary strong,
.wallet-buy-row strong {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.wallet-buy-list {
  display: grid;
  gap: 7px;
}

.wallet-buy-row {
  justify-content: start;
}

.wallet-buy-row span {
  color: var(--t2);
  font-size: 11px;
  font-weight: 900;
}

@keyframes supporterTogglePulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.66),
      0 0 0 4px rgba(159,214,52,0.11),
      0 0 18px rgba(159,214,52,0.42);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.7),
      0 0 0 7px rgba(159,214,52,0.07),
      0 0 28px rgba(159,214,52,0.62);
  }
}

@keyframes supporterPanelDrop {
  from {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@media (max-width: 980px) {
  .command-hero-band,
  .battle-grid,
  .rewards-grid,
  .country-detail-grid {
    grid-template-columns: 1fr;
  }

  .group-result-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .command-page {
    padding: 14px 14px 102px;
  }

  .command-page-inner {
    gap: 12px;
  }

  .command-hero-band,
  .command-panel,
  .country-detail-hero {
    border-radius: 14px;
    padding: 14px;
    max-width: 100%;
  }

  .command-hero-band h1,
  .country-detail-hero h1 {
    font-size: 26px;
  }

  .command-hero-stats,
  .federation-loop-grid,
  .country-metric-grid,
  .group-result-grid {
    grid-template-columns: 1fr;
  }

  .federation-loop-panel {
    display: none;
  }

  .command-panel-head,
  .country-detail-hero,
  .country-detail-identity {
    align-items: flex-start;
  }

  .command-panel-head,
  .country-detail-hero {
    flex-direction: column;
  }

  .command-segmented {
    width: 100%;
    overflow-x: auto;
  }

  .command-segmented button {
    flex: 1 0 auto;
  }

  .battle-race-row {
    grid-template-columns: 34px auto 44px minmax(0, 1fr);
    gap: 8px;
    min-height: 78px;
  }

  .battle-race-track,
  .battle-race-values {
    grid-column: 1 / -1;
  }

  .battle-race-values {
    justify-items: start;
  }

  .battle-race-board,
  .team-picker-grid {
    max-height: none;
  }

  .battle-duel-stage {
    grid-template-columns: 1fr;
  }

  .battle-duel-vs {
    width: 48px;
    height: 48px;
  }

  .battle-rival-chips,
  .battle-battle-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .battle-feed-row {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .battle-feed-row > .mono {
    grid-column: 2;
    justify-self: start;
  }

  .team-monitor-hero {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .team-monitor-hero h1 {
    font-size: 28px;
  }

  .team-monitor-spotlight,
  .team-watch-chart {
    width: 100%;
  }

  .team-chart-row {
    grid-template-columns: auto 38px minmax(80px, 1fr);
  }

  .team-chart-row strong {
    grid-column: 3;
  }

  .team-card-metrics,
  .country-inspect-metrics {
    grid-template-columns: 1fr;
  }

  .team-picker-actions {
    flex-wrap: wrap;
  }

  .team-pick-action {
    flex-basis: 100%;
  }

  .rewards-coming-soon-modal {
    padding: 22px;
  }

  .rewards-soon-stats,
  .wallet-readonly-points {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .country-inspect-backdrop {
    padding: 12px;
  }

  .country-inspect-modal {
    width: calc(100vw - 24px);
    padding: 14px;
    border-radius: 16px;
  }

  .country-inspect-hero {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .country-inspect-close {
    position: static;
    width: 100%;
    margin-bottom: 12px;
  }

  .battle-leader-row {
    grid-template-columns: 34px auto 1fr;
  }

  .battle-leader-row .mono:last-child {
    grid-column: 3;
    justify-self: start;
  }
}

@media (min-width: 761px) and (max-height: 820px) {
  .federation-loop-panel {
    top: 40px;
    padding: 12px;
  }

  .federation-loop-title {
    font-size: 16px;
  }

  .federation-loop-chain {
    display: none;
  }

  .federation-loop-grid {
    margin-top: 10px;
  }

  .federation-loop-selected {
    margin-top: 8px;
    padding-top: 8px;
  }

  .country-command-panel {
    top: 250px !important;
    transform: scale(0.92);
    transform-origin: top right;
  }

  .globe-trophy-dock,
  .paul-peek {
    display: none !important;
  }
}

@media (min-width: 761px) {
  .globe-trophy-dock {
    display: none !important;
  }
}

@media (min-width: 761px) and (max-height: 520px) {
  .federation-loop-panel {
    top: 12px !important;
    left: 20px !important;
    width: 390px;
    max-height: calc(100vh - 112px);
    box-sizing: border-box;
    overflow-y: auto;
    padding: 12px;
  }

  .federation-loop-title {
    font-size: 16px;
  }

  .federation-loop-chain {
    display: none;
  }

  .federation-loop-grid {
    margin-top: 9px;
    gap: 8px;
  }

  .federation-loop-grid .wci-metric-tile {
    padding: 9px;
  }

  .federation-loop-grid .wci-metric-value {
    font-size: 16px;
  }

  .federation-loop-grid .wci-metric-meta {
    margin-top: 4px;
    font-size: 10px;
  }

  .federation-loop-selected {
    margin-top: 8px;
    padding-top: 8px;
    font-size: 11px;
  }

  .country-command-panel {
    top: 12px !important;
    right: 20px !important;
    max-height: calc(100vh - 112px);
    box-sizing: border-box;
    overflow-y: auto;
    transform: none !important;
  }

  .globe-status-overlay {
    left: 420px !important;
    top: 12px !important;
    bottom: auto !important;
    width: 180px;
    max-width: 180px;
    flex-direction: column;
    align-items: stretch !important;
    flex-wrap: nowrap;
    gap: 6px !important;
    transform: scale(0.88);
    transform-origin: top left;
  }

  .globe-stat-chip {
    min-width: 124px !important;
    width: 100%;
    box-sizing: border-box;
    padding: 7px 9px !important;
  }

  .globe-stat-chip .mono {
    font-size: 14px !important;
  }

  .globe-trophy-dock,
  .globe-unfold-button,
  .paul-peek {
    display: none !important;
  }
}
