:root {
  --bg: #0b1220;
  --card: #121b2f;
  --text: #e7eefc;
  --muted: #a6b3d1;
  --border: #223054;
  --accent: #5aa3ff;
}

* { box-sizing: border-box; }
.container { max-width: 1880px; margin: 0 auto; padding: 8px 8px 40px; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: linear-gradient(180deg, #0b1220 0%, #0a162a 55%, #0b1220 100%);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }


.topbar {
  background: #070c16;
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 var(--border);
  position: sticky;
  top: 0;
  height: 56px;
  z-index: 1000;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 700; color: var(--text); }
.nav a { margin-left: 12px; color: var(--muted); }

.footer { border-top: 1px solid var(--border); margin-top: 32px; padding: 12px 0; color: var(--muted); }

.card {
  background: var(--card);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0;
  color: var(--text);
}

.page-logo {
  display: flex;
  justify-content: center;
  margin: 12px 0 18px;
}
.page-logo img {
  width: 96px;
  height: 96px;
  opacity: 0.95;
}

.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.right { display: flex; justify-content: flex-end; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; align-items: flex-end; margin-top: 4px; }
@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
input, select {
  background: #0c1426;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: 10px;
  padding: 10px;
  color: var(--text);
}
.input-small {
  width: 120px;
  max-width: 100%;
}

/* Make game inputs fill the form column for consistent alignment */
.form-grid .game-field input {
  width: 100%;
  box-sizing: border-box;
}

/* Highlight rows for matches currently assigned on status board */
.match-now {
  background: rgba(255, 239, 160, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 239, 160, 0.18);
}
.match-next {
  background: rgba(90, 163, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(90, 163, 255, 0.15);
}

/* Badge for Now/Next indicators in match table */
.match-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  vertical-align: baseline;
  line-height: 1.2;
  white-space: nowrap;
}
.badge-now {
  background: rgba(255, 239, 160, 0.2);
  color: #FFEFA0;
  box-shadow: inset 0 0 0 1px rgba(255, 239, 160, 0.3);
}
.badge-next {
  background: rgba(90, 163, 255, 0.15);
  color: #5aa3ff;
  box-shadow: inset 0 0 0 1px rgba(90, 163, 255, 0.25);
}

button, .btn {
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  color: #031127;
  font-weight: 700;
  cursor: pointer;
}
.btn-small {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 8px;
}
.btn-danger {
  background: #ff5a5a;
  color: #2b0505;
}
.btn-present {
  background: #32c46c;
  color: #07200c;
}
.btn { display: inline-block; }

.player-status {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.list { list-style: none; padding-left: 0; margin: 10px 0 0 0; }
.list li { padding: 6px 0; border-bottom: 0; box-shadow: inset 0 -1px 0 rgba(255,255,255,0.04); }

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}
.table th, .table td {
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06);
  padding: 8px 6px;
  vertical-align: middle;
}
.table th { text-align: left; color: var(--muted); font-weight: 600; }
.match-table th,
.match-table td {
  text-align: center;
}
.match-table th:nth-child(1),
.match-table td:nth-child(1) {
  text-align: left;
}
.match-table th:nth-child(7),
.match-table td:nth-child(7) {
  text-align: right;
}
.cell-left { text-align: left; }
.cell-center { text-align: center; }
.cell-center .inline {
  justify-content: center;
}
.cell-right { text-align: right; }
.leaderboard-table th,
.leaderboard-table td {
  text-align: center;
}

.leaderboard-hero {
  text-align: center;
  position: sticky;
  top: var(--topbar-height, 56px);
  z-index: 10;
  background: var(--bg);
  padding: 16px 12px 12px;
  box-shadow: inset 0 -1px 0 var(--border);
  border-bottom: 2px solid var(--border);
}


.divider {
  border: 0;
  box-shadow: inset 0 1px 0 var(--border);
  margin: 12px 0;
}

.public-standings-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

}
.public-card .public-name {
  font-size: 1rem;
}
.public-card .public-total {
  font-size: 1rem;
}
.public-card .public-rank {
  font-size: 1.1rem;
}
.public-card-game {
  font-size: 0.95rem;
}
.public-standings .leaderboard-table th,
.public-standings .leaderboard-table td {
  font-size: 1rem;
  padding: 8px 6px;
  height: auto;
}
.public-standings .leaderboard-table tbody td:nth-child(1),
.public-standings .leaderboard-table tbody td:nth-child(2),
.public-standings .leaderboard-table tbody td:last-child {
  font-size: 1.05rem;
  font-weight: 700;
}
.public-card-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.public-rank {
  font-weight: 700;
}
.public-name {
  font-weight: 600;
}
.public-total {
  font-weight: 700;
  color: var(--accent);
}
.public-card-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.public-card-game {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-radius: 10px;
  background: #0b1324;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

@media (max-width: 900px) {
  .public-standings-table {
    display: block;
  }
}

@media (max-width: 600px) {
  .public-game-col {
    display: none;
  }
  .public-standings {
    padding: 8px;
  }
  .public-card {
    padding: 10px;
  }
}
.leaderboard-card .table {
  margin-top: 0;
}

/* Arrow column - fixed narrow width */
.leaderboard-table .leaderboard-arrow,
.leaderboard-table th:first-child {
  width: 24px;
  flex-shrink: 0;
}

/* Other columns share remaining space equally */
.leaderboard-table th:not(:first-child),
.leaderboard-table td:not(.leaderboard-arrow) {
  width: calc((100% - 24px) / (var(--leaderboard-cols, 1) - 1));
}
.leaderboard-table th,
.leaderboard-table td {
  font-size: 1.35rem;
  padding: 10px 8px;
  min-height: 60px;
  height: 60px;
}

/* Emphasize Rank, Player and Total columns in body rows */
.leaderboard-table tbody td:nth-child(2),
.leaderboard-table tbody td:nth-child(3),
.leaderboard-table tbody td:last-child {
  font-size: 1.9rem;
  font-weight: 700;
}

.leaderboard-rank {
  font-size: 1.9rem;
  font-weight: 700;
}

/* Title style matching leaderboard player names */
.leaderboard-player-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #FFEFA0;
  text-shadow: 0 0 14px rgba(255,239,160,0.32);
}

/* Make leaderboard headers stand out for TV display */
.leaderboard-table thead th {
  background: transparent !important;
  box-shadow: none !important;
}

/* Remove all default table lines from leaderboard cells */
.leaderboard-table th,
.leaderboard-table td {
  box-shadow: none !important;
}
.leaderboard-table thead th {
  background: transparent !important;
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(90,163,255,0.12);
  border-bottom: none;
  padding: 12px 8px;
}

/* Table wrapper: align with banner edges, rounded corners, and clamp width */
.leaderboard-table-wrap {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  max-width: calc(100% - 16px);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Make the leaderboard table mostly transparent, but allow row styling */
.leaderboard-table,
.leaderboard-table thead,
.leaderboard-table tbody {
  background: transparent !important;
  border: none !important;
}

.leaderboard-table tr {
  border: none !important;
}

.leaderboard-table th,
.leaderboard-table td {
  border: none !important;
}

.leaderboard-table thead th {
  background: transparent !important;
  box-shadow: none !important;
}
.leaderboard-table thead th {
  position: static; /* disable pinning */
  top: auto;
  background: var(--card);
  z-index: 2;
}

/* Leaderboard arrow column - narrow width */
.leaderboard-arrow {
  width: 24px;
  text-align: center;
  padding: 10px 2px;
}

/* Pulse animation for recently moved player */
@keyframes pulse {
  0%, 100% {
    background-color: rgba(255, 255, 255, 0.05);
  }
  50% {
    background-color: rgba(100, 200, 255, 0.15);
  }
}

.leaderboard-row.pulse-row td {
  animation: pulse 1.5s ease-in-out infinite !important;
}

/* Bright border for recently moved player */
.leaderboard-row.moved-row td {
  border-top: 2px solid rgba(100, 200, 255, 0.8) !important;
  border-bottom: 2px solid rgba(100, 200, 255, 0.8) !important;
}

.leaderboard-row.moved-row td:first-child {
  border-left: 2px solid rgba(100, 200, 255, 0.8) !important;
}

.leaderboard-row.moved-row td:last-child {
  border-right: 2px solid rgba(100, 200, 255, 0.8) !important;
}

/* Override rank backgrounds for pulsing rows */
.leaderboard-table tbody tr.pulse-row[data-dense-rank="1"] td,
.leaderboard-table tbody tr.pulse-row[data-dense-rank="2"] td,
.leaderboard-table tbody tr.pulse-row[data-dense-rank="3"] td {
  animation: pulse 1.5s ease-in-out infinite !important;
}

/* Leaderboard rank group styling - apply to all cells in the row */
.leaderboard-table tbody tr[data-dense-rank="1"] td {
  background: rgba(242, 214, 117, 0.1);
}

.leaderboard-table tbody tr[data-dense-rank="2"] td {
  background: rgba(207, 216, 227, 0.1);
}

.leaderboard-table tbody tr[data-dense-rank="3"] td {
  background: rgba(217, 160, 122, 0.1);
}

/* Separator line between rank groups */
.leaderboard-table tbody tr.rank-separator td {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.match-table {
  table-layout: fixed;
}
.match-table th:nth-child(1),
.match-table td:nth-child(1) {
  width: 48px;
}
.match-table th:nth-child(n+2):nth-child(-n+6),
.match-table td:nth-child(n+2):nth-child(-n+6) {
  width: calc((100% - 48px) / 5);
}
.match-table th:nth-child(7),
.match-table td:nth-child(7) {
  width: 80px;
}

.leaderboard-pinned thead th {
  position: static;
}

.leaderboard-main thead {
  display: none;
}

.leaderboard-pinned {
  position: sticky;
  top: calc(var(--topbar-height, 56px) + var(--leaderboard-hero-height, 0px));
  z-index: 6;
  background: var(--card);
  box-shadow: inset 0 -1px 0 var(--border);
  margin-top: -4px;
}
.leaderboard-pinned .leaderboard-table {
  margin-top: 0;
}

.inline { display: flex; gap: 8px; align-items: center; }
.muted { color: var(--muted); }

.score-form {
  width: auto;
  margin: 0 auto;
  justify-content: center;
  display: inline-flex;
}
.score-input {
  width: 48px;
  text-align: center;
  padding: 6px 8px;
}
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.score-input {
  -moz-appearance: textfield;
  appearance: textfield;
}

.player-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.sticky-subheader {
  position: sticky;
  top: 56px;
  z-index: 900;
  background: var(--bg);
  padding: 8px;
  margin-top: -8px;
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 var(--border);
}

.leaderboard-rank {
  width: 70px;
  font-weight: 700;
}

/* Medal colors removed - using default text color for rank column */
/* Only glow effects are applied via inline styles in JavaScript */

/* Status board highlight for player names */
.status-match { display:flex; align-items:baseline; gap:8px; }

/* Now (most prominent) and Next (slightly less prominent) players */
.status-player {
  font-size: 1.76rem;
  font-weight: 900;
  color: #FFEFA0; /* brighter */
  animation: status-pulse 1.6s ease-in-out infinite;
  text-shadow: 0 0 14px rgba(255,239,160,0.32);
  display: inline-block;
  line-height: 1;
}

.status-player-next {
  font-size: 1.35rem;
  font-weight: 800;
  color: #8899aa; /* grey to de-emphasize */
  animation: status-pulse-next 1.6s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(255,208,160,0.18);
  display: inline-block;
  line-height: 1;
}

.status-vs { font-weight:600; color:var(--muted); margin: 0 8px; display: inline-block; }

@keyframes status-pulse {
  0% { color: #FFDDA0; text-shadow: 0 0 6px rgba(255, 221, 160, 0.15); }
  50% { color: #FFEFA0; text-shadow: 0 0 12px rgba(255, 239, 160, 0.28); }
  100% { color: #FFDDA0; text-shadow: 0 0 6px rgba(255, 221, 160, 0.15); }
}

@keyframes status-pulse-next {
  0% { color: #4a8fe7; text-shadow: 0 0 6px rgba(90, 163, 255, 0.15); }
  50% { color: #5aa3ff; text-shadow: 0 0 8px rgba(90, 163, 255, 0.25); }
  100% { color: #4a8fe7; text-shadow: 0 0 6px rgba(90, 163, 255, 0.15); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .status-player, .status-player-next { animation: none; }
}

/* Game name on the status board should use the blue accent */
.status-game-name {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent);
}

/* Round indicator - subtle text below game name */
.status-round-indicator {
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 4px;
  opacity: 0.7;
}

/* Game name on the status board should use the blue accent */
.status-call-to-arms {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent);
}

.highlight-now {
  color: #FFEFA0;
  text-shadow: 0 0 8px rgba(255, 239, 160, 0.25);
}

/* Center-align the status board content and rows */
.card.leaderboard-card { text-align: center; }
/* More comfortable vertical spacing for status board */
.status-game { padding: 12px 10px; border-bottom: 0; box-shadow: none; display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 8px; }

/* Two-column layout for live games on the status page */
.status-grid {
  display: grid;
  gap: 18px 18px;
  align-items: start;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
@media (max-width: 1400px) {
  .status-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 900px) {
  .status-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
.status-game-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 84px; /* same as leaderboard-hero for consistent sizing */
  padding: 6px 8px;
}
.status-game-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}
.status-row { margin-top: 20px; display: flex; gap: 12px; align-items: center; justify-content: center; }
.status-label { font-size: 0.98rem; min-width: auto; }
.next-meta { margin-left: 10px; }

/* Up next heading and subtle spacing for upcoming matches */
.next-block {
  /* Make sections clearly separated with consistent spacing */
  margin-top: 24px;
  padding-top: 14px;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.next-block:first-of-type {
  /* First block (Now) shouldn't have extra top margin */
  margin-top: 20px;
}
.status-next-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.95;
  margin: 0 0 10px 0;
  text-align: center;
}
.next-row { margin-top: 10px; }

/* Ensure list separators are removed for status board items */
.list .status-game { box-shadow: none !important; border-bottom: 0 !important; background: transparent; }

/* Progress bar for status board */
.status-progress-wrap { margin-top: 8px; margin-bottom: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.status-progress { width: 100%; max-width: 50%; height: 12px; background: rgba(255,255,255,0.04); border-radius: 10px; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,0.02); }
.status-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #6bd1ff); width: 0%; transition: width 600ms ease; }
.status-progress-meta { font-size: 0.92rem; }

.alert {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}
.alert-error {
  color: #ffd0d0;
  background: rgba(255, 90, 90, 0.12);
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 90, 90, 0.35);
}

/* Leaderboard hero section */
.leaderboard-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  min-height: 84px; /* keep title area consistent */
  padding: 8px 12px;
}

.leaderboard-hero h1 {
  margin: 0 0 8px 0;
  font-size: 1.9rem;
  line-height: 1.05;
  max-width: 100%;
}

/* banner removed: left styles intentionally blank */

/* Subtle sticky refresh note at bottom center */
.status-refresh-note {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  background: rgba(10,14,20,0.6);
  color: rgba(255,255,255,0.9);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  z-index: 60;
  opacity: 0.95;
}

/* Tournament banner used on leaderboard and status pages */
.tournament-banner {
  /* Keep banner visually inset from the page edges and responsive */
  width: calc(100% - 160px);
  max-width: 1400px;
  margin: 8px auto 16px; /* center horizontally */
    /* Enforce the canonical banner aspect ratio (1200x216) so the container
      always matches the crop output. Use aspect-ratio and constrain max/min
      heights to avoid extreme sizes on very wide or narrow viewports. */
    aspect-ratio: 1200 / 216;
    min-height: 120px;
    max-height: 420px;
  border-radius: 12px;
  /* Themed border and subtle outer shadow, while keeping inset separator
     so the banner reads as a card element. Clip background to padding box
     to avoid border overlapping the image on some browsers. */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
@media (max-width: 900px) {
  .tournament-banner {
    width: calc(100% - 32px);
    margin: 8px auto 12px;
    height: 20vh;
    min-height: 120px;
    max-height: 260px;
    border-radius: 10px;
  }
}

/* Image inside banner: size to fit, keep aspect ratio, and display border/rounded corners */
.tournament-banner img {
  display: block;
  /* Fill the container completely while preserving aspect ratio */
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  background-color: transparent;
}

/* Inline timestamp inside the refresh note */
#last-updated {
  color: var(--muted);
  font-weight: 600;
  margin-left: 6px;
}

/* Status-card specific styling (rounded like banner) */
.card.status-card {
  border-radius: 12px;
  overflow: hidden;
}

/* Players list container used on tournament detail page */
.players-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  margin-top: 10px;
  border-radius: 8px;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.02);
  background: transparent;
}

.add-player-block {
  margin-bottom: 8px;
}

/* Slightly tighter spacing for the add-player form */
.add-player-form input { flex: 1 1 auto; }
.add-player-form { gap: 8px; align-items: center; }

.player-tile h2 { margin: 0; }

/* Leaderboard row animations for rank changes */
.leaderboard-row {
  transition: all 400ms ease;
}

/* Rank up animation: slide from bottom with green highlight */
.leaderboard-row.rank-up {
  animation: rank-up-slide 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rank-up-slide {
  0% {
    opacity: 0.7;
    transform: translateY(12px);
    background: rgba(0, 255, 0, 0);
  }
  50% {
    background: rgba(76, 175, 80, 0.15);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    background: rgba(76, 175, 80, 0);
  }
}

/* Rank down animation: slide from top with red highlight */
.leaderboard-row.rank-down {
  animation: rank-down-slide 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rank-down-slide {
  0% {
    opacity: 0.7;
    transform: translateY(-12px);
    background: rgba(255, 0, 0, 0);
  }
  50% {
    background: rgba(244, 67, 54, 0.15);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    background: rgba(244, 67, 54, 0);
  }
}

/* Rank indicator (up/down arrows) */
.rank-indicator {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.9em;
  opacity: 0;
  transform: scale(0.8);
  animation: indicator-fade-in 400ms ease-out 200ms forwards;
}

.rank-indicator.rank-up {
  color: #4CAF50;
  text-shadow: 0 0 6px rgba(76, 175, 80, 0.4);
}

.rank-indicator.rank-down {
  color: #F44336;
  text-shadow: 0 0 6px rgba(244, 67, 54, 0.4);
}

@keyframes indicator-fade-in {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse effect for top 3 (gold/silver/bronze) */
.medal-gold,
.medal-silver,
.medal-bronze {
  animation: medal-pulse 2s ease-in-out infinite;
}

@keyframes medal-pulse {
  0%, 100% {
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
  }
  50% {
    text-shadow: 0 0 16px rgba(255, 215, 0, 0.6);
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .leaderboard-row.rank-up,
  .leaderboard-row.rank-down,
  .rank-indicator,
  .medal-gold,
  .medal-silver,
  .medal-bronze {
    animation: none;
  }
}
