:root {
  --score-gold: #f59e0b;
  --score-silver: #94a3b8;
  --score-bronze: #d97706;
  --score-first: #22c55e;
  --score-last: #ef4444;
  --crown-glow: #fbbf24;
  --magic-score: #a78bfa;
}

.score-main-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.5rem;
  color: var(--text-base);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  animation: wrapper-appear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes wrapper-appear {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.player-setup-panel {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: panel-glide 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes panel-glide {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-title {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0;
}

.add-player-row {
  display: flex;
  gap: 0.5rem;
}

.add-player-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  color: var(--text-base);
  font-weight: 700;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.add-player-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.player-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: player-slide-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes player-slide-in {
  0% {
    opacity: 0;
    transform: translateX(-12px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.player-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.player-card:active {
  transform: scale(0.98);
}

.player-card-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-base);
  position: relative;
}

.player-rank-badge {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--color-white);
  background: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.player-rank-badge.rank-1 {
  background: var(--score-gold);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
  animation: badge-champion 2s infinite ease-in-out;
}

@keyframes badge-champion {
  0%, 100% {
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.7);
    transform: scale(1.1);
  }
}

.player-rank-badge.rank-2 {
  background: var(--score-silver);
}

.player-rank-badge.rank-3 {
  background: var(--score-bronze);
}

.player-card-actions {
  display: flex;
  gap: 0.35rem;
}

.btn-icon-sm {
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-icon-sm:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.15) rotate(-5deg);
}

.btn-icon-sm:active {
  transform: scale(0.9);
}

.btn-icon-sm.remove:hover {
  border-color: var(--score-last);
  color: var(--score-last);
}

.btn-score-action {
  border: 1px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-base);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
}

.btn-score-action:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px) scale(1.03);
}

.btn-score-action:active {
  transform: translateY(0) scale(0.97);
}

.btn-score-action.primary {
  background: var(--accent);
  color: var(--color-white);
  border-color: var(--accent);
}

.btn-score-action.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
}

.btn-score-action.primary:hover::before {
  animation: shine-sweep-score 1.2s infinite ease-in-out;
}

@keyframes shine-sweep-score {
  0% { left: -150%; }
  100% { left: 150%; }
}

.btn-score-action.primary:hover {
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.35);
  transform: translateY(-2px) scale(1.04);
}

.btn-score-action.danger {
  border-color: var(--score-last);
  color: var(--score-last);
}

.btn-score-action.danger:hover {
  border-color: var(--score-last);
  opacity: 0.85;
}

.score-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 820px) {
  .score-layout { grid-template-columns: 1fr; }
}

.round-scoring-panel {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.4s ease;
  animation: panel-glide 0.3s ease;
}

.round-scoring-panel.has-scores {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.08), inset 0 0 20px rgba(244, 63, 94, 0.03);
  animation: portal-pulse-score 4s infinite ease-in-out alternate;
}

@keyframes portal-pulse-score {
  0% { box-shadow: 0 0 20px rgba(244, 63, 94, 0.08), inset 0 0 20px rgba(244, 63, 94, 0.03); }
  100% { box-shadow: 0 0 30px rgba(167, 139, 250, 0.12), inset 0 0 25px rgba(167, 139, 250, 0.05); }
}

.round-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.round-label {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent);
  animation: round-glow 2s infinite ease-in-out;
}

@keyframes round-glow {
  0%, 100% { text-shadow: 0 0 4px rgba(244, 63, 94, 0.1); }
  50% { text-shadow: 0 0 12px rgba(244, 63, 94, 0.3); }
}

.round-score-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: score-row-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes score-row-in {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.score-row:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-surface), rgba(244, 63, 94, 0.03));
  transform: translateX(3px);
}

.score-row:active {
  transform: scale(0.99);
}

.score-row-name {
  flex: 1;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-base);
}

.score-row-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-score-adjust {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-base);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.btn-score-adjust:hover {
  color: var(--color-white);
  border-color: transparent;
}

.btn-score-adjust.inc:hover {
  background: var(--score-first);
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.btn-score-adjust.dec:hover {
  background: var(--score-last);
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.btn-score-adjust:active {
  transform: scale(0.9);
}

.score-row-value {
  min-width: 2.5rem;
  text-align: center;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--accent);
  transition: all 0.2s ease;
}

.score-row-value.pulse-score {
  animation: score-pop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes score-pop {
  0% { transform: scale(1); }
  40% {
    transform: scale(1.45);
    color: var(--score-gold);
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
  }
  100% { transform: scale(1); }
}

.no-round-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  text-align: center;
  gap: 0.75rem;
  animation: float-empty 3s infinite ease-in-out;
}

@keyframes float-empty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.no-round-message svg {
  width: 3rem;
  height: 3rem;
  opacity: 0.3;
  animation: spin-slow 8s infinite linear;
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.leaderboard-panel {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: panel-glide 0.4s ease;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: lb-slide-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

@keyframes lb-slide-in {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.leaderboard-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.leaderboard-item:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.leaderboard-item:active {
  transform: scale(0.98);
}

.leaderboard-item.first {
  border-color: var(--score-gold);
  background: linear-gradient(135deg, var(--bg-surface), rgba(245, 158, 11, 0.06));
  animation: champion-glow-pulse 2s infinite ease-in-out, lb-slide-in 0.3s ease;
}

.leaderboard-item.first::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  background: var(--score-gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.25;
  pointer-events: none;
}

@keyframes champion-glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.1), inset 0 0 8px rgba(245, 158, 11, 0.02); }
  50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.25), inset 0 0 15px rgba(245, 158, 11, 0.05); }
}

.leaderboard-item.first::before {
  background: var(--score-gold);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.leaderboard-rank {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--color-white);
  background: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.leaderboard-rank.rank-1 {
  background: linear-gradient(135deg, var(--score-gold), #fbbf24);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  animation: crown-pulse 2s infinite ease-in-out;
}

@keyframes crown-pulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.7);
    transform: scale(1.08);
  }
}

.leaderboard-rank.rank-2 {
  background: linear-gradient(135deg, var(--score-silver), #cbd5e1);
  box-shadow: 0 0 6px rgba(148, 163, 184, 0.3);
}

.leaderboard-rank.rank-3 {
  background: linear-gradient(135deg, var(--score-bronze), #f59e0b);
  box-shadow: 0 0 6px rgba(217, 119, 6, 0.3);
}

.leaderboard-name {
  flex: 1;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-base);
}

.leaderboard-total {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--accent);
  transition: all 0.3s ease;
}

.leaderboard-item.first .leaderboard-total {
  color: var(--score-gold);
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.score-history-panel {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-top: 1rem;
  animation: panel-glide 0.5s ease;
}

.tabs-nav-score {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.tab-score-btn {
  background: none;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  border-radius: 99px;
  border: 1px solid transparent;
}

.tab-score-btn:hover {
  color: var(--text-base);
  transform: translateY(-1px) scale(1.03);
}

.tab-score-btn:active {
  transform: scale(0.97);
}

.tab-score-btn.active {
  background: var(--accent);
  color: var(--color-white);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.2);
}

.tab-score-pane {
  display: none;
}

.tab-score-pane.active {
  display: block;
  animation: pane-fade 0.25s ease;
}

@keyframes pane-fade {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.history-round-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0;
  margin-bottom: 0.6rem;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: history-card-in 0.3s ease;
  overflow: hidden;
}

@keyframes history-card-in {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.history-round-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.history-round-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-color);
}

.history-round-title {
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.history-round-total {
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.history-scores-body {
  padding: 0.5rem 1rem;
}

.history-score-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-color);
}

.history-score-line:last-child {
  border-bottom: none;
}

.history-score-line:hover {
  background: rgba(244, 63, 94, 0.02);
  margin: 0 -1rem;
  padding: 0.35rem 1rem;
}

.history-player-name {
  font-weight: 700;
  color: var(--text-base);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.history-player-score {
  font-weight: 900;
  font-size: 0.95rem;
  padding: 0.1rem 0.5rem;
  border-radius: 0.375rem;
}

.history-player-score.positive {
  color: var(--score-first);
  background: rgba(34, 197, 94, 0.08);
}

.history-player-score.negative {
  color: var(--score-last);
  background: rgba(239, 68, 68, 0.08);
}

.history-player-score.zero {
  color: var(--text-muted);
  background: transparent;
}

.rename-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: overlay-in 0.2s ease;
  backdrop-filter: blur(4px);
}

@keyframes overlay-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.rename-popup-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  animation: modal-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-pop {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.rename-popup-content h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--accent);
}

.rename-popup-content input {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  color: var(--text-base);
  font-weight: 700;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.rename-popup-content input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.rename-popup-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-rename-confirm {
  background: var(--accent);
  color: var(--color-white);
  border: none;
  font-weight: 800;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-rename-confirm:hover {
  opacity: 0.9;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.btn-rename-confirm:active {
  transform: scale(0.97);
}

.btn-rename-cancel {
  background: var(--bg-page);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-weight: 800;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-rename-cancel:hover {
  color: var(--text-base);
  border-color: var(--accent);
}

.floating-score-particle {
  position: absolute;
  color: var(--color-white);
  font-weight: 900;
  font-size: 1.5rem;
  pointer-events: none;
  z-index: 50;
  animation: particle-float-up 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.floating-score-particle.particle-positive {
  text-shadow: 0 0 10px var(--score-first), 0 0 20px var(--score-first), 0 0 30px rgba(34, 197, 94, 0.3);
  color: var(--score-first);
}

.floating-score-particle.particle-negative {
  text-shadow: 0 0 10px var(--score-last), 0 0 20px var(--score-last), 0 0 30px rgba(239, 68, 68, 0.3);
  color: var(--score-last);
}

@keyframes particle-float-up {
  0% {
    transform: translateY(0) scale(0.4) rotate(-10deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
    transform: translateY(-12px) scale(1.4) rotate(5deg);
  }
  100% {
    transform: translateY(-70px) scale(1.8) rotate(-15deg);
    opacity: 0;
  }
}

.floating-big-particle {
  position: fixed;
  pointer-events: none;
  z-index: 200;
  font-weight: 900;
  font-size: 3rem;
  animation: big-particle-float 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.floating-big-particle.big-positive {
  text-shadow: 0 0 20px var(--score-first), 0 0 40px var(--score-first), 0 0 60px rgba(34, 197, 94, 0.2);
  color: var(--score-first);
}

.floating-big-particle.big-negative {
  text-shadow: 0 0 20px var(--score-last), 0 0 40px var(--score-last), 0 0 60px rgba(239, 68, 68, 0.2);
  color: var(--score-last);
}

@keyframes big-particle-float {
  0% {
    transform: translate(-50%, -50%) scale(0.3) rotate(-20deg);
    opacity: 0;
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -60%) scale(1.3) rotate(10deg);
  }
  100% {
    transform: translate(-50%, -120%) scale(1) rotate(-5deg);
    opacity: 0;
  }
}



.no-history-msg {
  text-align: center;
  color: var(--text-muted);
  font-weight: 700;
  padding: 2rem 1rem;
}

.score-header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.score-round-actions {
  display: flex;
  gap: 0.5rem;
}

.score-footer-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.btn-score-action.lp-active {
  position: relative;
  overflow: hidden;
}

.btn-score-action.lp-active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0.55;
  animation: lp-fill var(--lp-dur) linear forwards;
  transform-origin: left center;
}

.btn-score-action.danger.lp-active::before {
  background: var(--score-last);
  opacity: 0.6;
}

@keyframes lp-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
