/* ===============================
   Velocidrone Leaderboard Styles
   =============================== */

:root {
  --bg: #0b0f1a;
  --panel: #0f1629;
  --text: #cfd5ff;
  --muted: #7d89b0;
  --accent: #5b8cff;
  --accent-2: #00ffe0;
  --good: #16c172;
  --bad: #ff5576;
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(0, 255, 224, 0.07), transparent),
    linear-gradient(180deg, #0b0f1a, #090d17);
  color: var(--text);
  font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  transition: background 0.5s ease, color 0.3s ease;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  position: relative;
  z-index: 1;
}

/* Header */
header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin: 0 0 16px 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.12), rgba(0, 255, 224, 0.06));
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

/* Logo */
.logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #1a1a2e 0%, #0f1629 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 20px rgba(187, 85, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  transition: all 0.3s ease;
}

.logo svg {
  width: 100%;
  height: 100%;
}

.logo .propeller-blades {
  transform-origin: 50px 50px;
  animation: propellerSpin 3s linear infinite;
  filter: drop-shadow(0 0 8px rgba(187, 85, 255, 0.6));
}

@keyframes propellerSpin {
  to { transform: rotate(360deg); }
}

.logo:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 35px rgba(187, 85, 255, 0.8);
}

.logo:hover .propeller-blades {
  animation-duration: 1.5s;
  filter: drop-shadow(0 0 15px rgba(187, 85, 255, 0.9));
}

/* Stop animations when disabled */
.logo.animation-disabled .propeller-blades,
.logo.animation-disabled svg * {
  animation: none !important;
}

h1 {
  font-family: Orbitron, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  text-transform: uppercase;
}

.subtitle {
  color: var(--muted);
  font: 600 12px Orbitron, Inter, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Navigation */
nav {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

nav a {
  font-family: Orbitron, Inter, sans-serif;
  text-decoration: none;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
  transition: all 0.2s ease;
}

nav a.active,
nav a:hover {
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.2), rgba(0, 255, 224, 0.16));
  transform: translateY(-1px);
}

/* Toggle Switches */
.toggles-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.drone-toggle,
.refresh-toggle {
  display: flex;
  align-items: center;
  position: relative;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(35, 42, 58, 0.8);
  border: 2px solid rgba(100, 110, 130, 0.4);
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  width: 20px;
  height: 20px;
  left: 3px;
  top: 2px;
  background: linear-gradient(135deg, #646e82, #4a5468);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  transition: opacity 0.3s ease;
  pointer-events: none;
  user-select: none;
}

.toggle-label.on {
  left: 6px;
  color: #bb55ff;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(187, 85, 255, 0.8));
}

.toggle-label.off {
  right: 6px;
  color: #646e82;
  opacity: 1;
}

/* Toggle checked state */
.toggle-switch input:checked + .toggle-slider {
  background: rgba(45, 55, 75, 0.9);
  border-color: rgba(187, 85, 255, 0.5);
  box-shadow: 0 0 12px rgba(187, 85, 255, 0.3);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
  background: linear-gradient(135deg, #bb55ff, #8800dd);
  box-shadow: 0 2px 8px rgba(187, 85, 255, 0.6);
}

.toggle-switch input:checked + .toggle-slider .toggle-label.on {
  opacity: 1;
}

.toggle-switch input:checked + .toggle-slider .toggle-label.off {
  opacity: 0;
}

/* Toggle tooltips */
.drone-toggle::after,
.refresh-toggle::after {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 10;
}

.drone-toggle::after {
  content: 'Animacijos';
}

.refresh-toggle::after {
  content: 'Auto 60s';
}

.drone-toggle:hover::after,
.refresh-toggle:hover::after {
  opacity: 1;
}

/* Race Navigation */
.race-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 2;
}

.race-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--glass);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.race-nav-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.2), rgba(0, 255, 224, 0.16));
  transform: scale(1.1);
  border-color: var(--accent);
}

.race-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.race-nav-info {
  text-align: center;
  min-width: 200px;
}

.race-nav-info .race-Finished {
  font: 700 14px Orbitron, sans-serif;
  color: var(--accent);
  letter-spacing: 1px;
}

.race-nav-info .race-Running {
  font: 700 14px Orbitron, sans-serif;
  color: var(--good);
  letter-spacing: 1px;
}

.race-nav-info .race-title {
  font: 600 12px Inter, sans-serif;
  color: var(--muted);
  margin-top: 4px;
}

/* Cards */
.card,
.podium-card {
  border: 1px solid var(--border);
  background: var(--glass);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  background-clip: padding-box !important;
  min-height: 90px;
}

.card {margin-bottom: 30px;}
.meta .card {margin-bottom: 0px;}

.card h3 {
  margin: 0 0 6px;
  font: 600 12px/1 Orbitron, Inter, sans-serif;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

.card .v {
  font: 600 14px/1.3 Inter, sans-serif;
  color: var(--text);
  margin-top: 6px;
}

.card-scene {
  overflow: hidden;
}

.prize-winner {
  font: 700 16px Inter, sans-serif;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Meta Cards Grid */
.meta {
  display: grid;
  /* grid-template-columns: repeat(3, 1fr); */
  gap: 12px;
  margin: 22px 0;
}

/* Track Length Bar */
.track-length-bar {
  display: flex;
  align-items: center;
  margin-top: 12px;
  height: 20px;
  background: rgba(20, 25, 35, 0.8);
  border: 1px solid rgba(100, 110, 130, 0.3);
  border-radius: 4px 0 0 4px;
  padding: 3px;
  position: relative;
  overflow: visible;
}

.bar-segment {
  flex: 1;
  height: 100%;
  background: rgba(100, 110, 130, 0.2);
  border-right: 1px solid rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.bar-segment:first-child {
  border-radius: 2px 0 0 2px;
}

.bar-segment.active {
  opacity: 1;
  animation: fillSegment 0.3s ease-out;
  transform-origin: left;
}

@keyframes fillSegment {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Bar segment colors */
.bar-segment.color-orange.active {
  background: linear-gradient(180deg, #ff8c00, #ff6600);
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.5);
}

.bar-segment.color-red.active {
  background: linear-gradient(180deg, #ff4444, #cc0000);
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

.bar-segment.color-purple.active {
  background: linear-gradient(180deg, #aa44ff, #6600cc);
  box-shadow: 0 0 8px rgba(170, 68, 255, 0.5);
}

.bar-segment.color-blue.active {
  background: linear-gradient(180deg, #4488ff, #0044cc);
  box-shadow: 0 0 8px rgba(68, 136, 255, 0.5);
}

/* Animation delays for segments */
.bar-segment.active:nth-child(n) { animation-delay: calc(0.02s * var(--i)); }
.bar-segment.active:nth-child(1) { --i: 1; }
.bar-segment.active:nth-child(2) { --i: 2; }
.bar-segment.active:nth-child(3) { --i: 3; }
.bar-segment.active:nth-child(4) { --i: 4; }
.bar-segment.active:nth-child(5) { --i: 5; }
.bar-segment.active:nth-child(6) { --i: 6; }
.bar-segment.active:nth-child(7) { --i: 7; }
.bar-segment.active:nth-child(8) { --i: 8; }
.bar-segment.active:nth-child(9) { --i: 9; }
.bar-segment.active:nth-child(10) { --i: 10; }
.bar-segment.active:nth-child(11) { --i: 11; }
.bar-segment.active:nth-child(12) { --i: 12; }
.bar-segment.active:nth-child(13) { --i: 13; }
.bar-segment.active:nth-child(14) { --i: 14; }
.bar-segment.active:nth-child(15) { --i: 15; }
.bar-segment.active:nth-child(16) { --i: 16; }
.bar-segment.active:nth-child(17) { --i: 17; }
.bar-segment.active:nth-child(18) { --i: 18; }
.bar-segment.active:nth-child(19) { --i: 19; }
.bar-segment.active:nth-child(20) { --i: 20; }
.bar-segment.active:nth-child(21) { --i: 21; }
.bar-segment.active:nth-child(22) { --i: 22; }
.bar-segment.active:nth-child(23) { --i: 23; }
.bar-segment.active:nth-child(24) { --i: 24; }

.track-length-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  text-align: center;
  margin-top: 12px;
}

/* Podium */
.podium {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 30px 0;
  align-items: end;
}

.podium-card {
  padding: 24px 16px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.podium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.podium-card .position {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 20px Orbitron, sans-serif;
  border: 3px solid;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.podium-card.first {
  order: 2;
}

.podium-card.first .position {
  background: #ffd700;
  color: #000;
  border-color: #ffd700;
  width: 60px;
  height: 60px;
  top: -24px;
  font-size: 24px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.podium-card.second {
  order: 1;
  margin-top: 40px;
}

.podium-card.second .position {
  background: #c0c0c0;
  color: #000;
  border-color: #c0c0c0;
}

.podium-card.third {
  order: 3;
  margin-top: 40px;
}

.podium-card.third .position {
  background: #cd7f32;
  color: #fff;
  border-color: #cd7f32;
}

.podium-card .avatar,
.avatar-sm {
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.podium-card .avatar {
  width: 80px;
  height: 80px;
  margin: 20px auto 12px;
  border: 3px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.podium-card.first .avatar {
  width: 100px;
  height: 100px;
  border-width: 4px;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
}

.podium-card .driver-name {
  font: 700 18px Inter, sans-serif;
  color: var(--text);
  margin: 8px 0;
}

.podium-card.first .driver-name {
  font-size: 22px;
}

.podium-card .time {
  font: 600 16px 'Share Tech Mono', monospace;
  color: var(--accent);
  margin: 8px 0;
}

/* Tables */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  position: relative;
  z-index: 2;
}

thead th {
  font: 700 12px Orbitron, Inter, sans-serif;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
  padding: 0 14px;
}

tbody tr {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

tbody tr:hover {
  transform: translateY(-2px);
}

tbody td {
  padding: 16px 14px;
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

tbody td:first-child {
  border-left: 1px solid var(--border);
  border-radius: 12px 0 0 12px;
}

tbody td:last-child {
  border-right: 1px solid var(--border);
  border-radius: 0 12px 12px 0;
}

.pos {
  font-weight: 700;
  max-width: 35px;
  text-wrap-mode: nowrap;
}

.name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.name {
  font-weight: 600;
}

.centered {
  text-align: center;
  vertical-align: middle;
}

/* Heat highlights */
th.current-heat {
  background: rgba(187, 85, 255, 0.14);
  color: #bb55ff !important;
  border-bottom: 2px solid #bb55ff;
  box-shadow: 0 2px 10px 0 rgba(187, 85, 255, 0.13);
}

td.current-heat {
  background: rgba(187, 85, 255, 0.09) !important;
  border-top: 1px solid #bb55ff59 !important;
  border-bottom: 1px solid #bb55ff59 !important;
  color: #bb55ff !important;
}

th.next-heat {
  background: rgba(22, 193, 114, 0.13);
  color: #16c172!important;
  border-bottom: 2px solid #16c172;
  box-shadow: 0 2px 8px 0 rgba(22, 193, 114, 0.10);
}

td.next-heat {
  background: rgba(22, 193, 114, 0.07)!important;
  border-top: 1px solid #16c1717e!important;
  border-bottom: 1px solid #16c1717e!important;
  color: #16c172!important;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
  transition: all 0.2s ease;
}

.badge.good {
  color: #eafff6;
  border-color: rgba(22, 193, 114, 0.3);
  box-shadow: 0 0 0 1px rgba(22, 193, 114, 0.15) inset;
}

.badge.bad {
  color: #fff0f3;
  border-color: rgba(255, 85, 118, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 85, 118, 0.18) inset;
}

.badge.neutral {
  color: #d8defc;
}

.badge.gold { 
  background: rgba(255, 215, 0, 0.2); 
  border-color: #ffd700;
}

.badge.silver { 
  background: rgba(192, 192, 192, 0.2); 
  border-color: #c0c0c0;
}

.badge.bronze { 
  background: rgba(205, 127, 50, 0.2); 
  border-color: #cd7f32;
}

.arrow {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.9;
}

/* Subtabs */
.subtab-nav {
  display: flex;
  gap: 12px;
  margin: 20px 0 30px;
  padding: 8px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 2;
}

.subtab-link {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: Orbitron, Inter, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.subtab-link:hover {
  color: var(--text);
  background: var(--glass);
}

.subtab-link.active {
  color: var(--text);
  background: var(--panel);
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.subtab-content {
  display: none;
}

.subtab-content.active {
  display: block;
}

.subtab-title {
  font-family: Orbitron, Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Rules Section */
.important-message {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 149, 0, 0.05));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-left: 5px solid #ffd700;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  /* animation: messageSlideIn 0.5s ease-out; */
}

/* @keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */

.message-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #ffd700;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
  /* animation: messagePulse 2s ease-in-out infinite; */
}

/* @keyframes messagePulse {
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
} */

.message-content {
  flex: 1;
  color: #ffeaa7;
  font-size: 15px;
  line-height: 1.5;
}

.message-content strong {
  color: #ffd700;
  font-weight: 700;
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.message-subtitle {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 234, 167, 0.7);
  font-style: italic;
}

/* Section Titles */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 18px Orbitron, sans-serif;
  color: var(--accent);
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.title-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2.5;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 100px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 70px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  /* margin-bottom: 24px; */
  padding: 12px 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 20px;
  width: 14px;
  height: 14px;
  background: var(--panel);
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--panel), 0 0 12px var(--accent);
}

.timeline-item.highlight::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--panel), 0 0 20px var(--accent);
  /* animation: timelinePulse 2s ease-in-out infinite; */
}
/* 
@keyframes timelinePulse {
  50% { transform: scale(1.2); }
} */

.timeline-time {
  position: absolute;
  left: -100px;
  top: 20px;
  font: 700 18px 'Share Tech Mono', monospace;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(91, 140, 255, 0.5);
}

.timeline-content strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 4px;
}

.timeline-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Lists */
.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.simple-list li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  padding-left: 24px;
  position: relative;
  margin-bottom: 4px;
}

.simple-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

.simple-list li strong {
  color: var(--text);
  font-weight: 700;
}

/* Code/Password */
.code-inline {
  background: rgba(91, 140, 255, 0.15);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  font-weight: 600;
}

.password-inline {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 149, 0, 0.15));
  color: #ffd700;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Hotkeys Grid */
.hotkeys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.hotkey-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.hotkey-item:hover {
  background: rgba(91, 140, 255, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.key {
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.2), rgba(0, 255, 224, 0.1));
  border: 2px solid var(--accent);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  text-align: center;
  min-width: 60px;
  box-shadow: 0 2px 8px rgba(91, 140, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.key-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* Grid layout */
.drone-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}

/* Single card */
.drone-type-card {
  background: rgba(15, 20, 30, 0.9);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Top drone photo */
.drone-type-image {
  position: relative;
  padding-top: 56%; /* 16:9 ratio */
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* Label overlay */
.drone-type-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(11, 15, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font: 700 13px Orbitron, Inter, sans-serif;
}

/* Text block */
.drone-type-text {
  padding: 0 4px;
}

.drone-type-text p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 6px;
}

/* Bottom settings image, same width as top image */
.drone-type-settings-wide img {
  width: 100%;          /* full card width */
  height: auto;         /* natural height */
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: block;
  object-fit: contain;  /* ensures full image is visible */
}


/* Discord Links */
.discord-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 2px 6px;
  background: rgba(91, 140, 255, 0.15);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.discord-link:hover {
  background: rgba(91, 140, 255, 0.25);
  text-shadow: 0 0 8px rgba(91, 140, 255, 0.5);
}

/* Misc */
.pill, .pill-green, .pill-yellow, .pill-pink, .pill-blue {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 12px;
}

.pill-pink {
  border: 1px dashed #ff66e3!important;
  color: #ff66e3!important;
  text-shadow: 0 0 10px rgba(255, 102, 227, 0.7)!important;
}

.pill-green {
  border: 1px dashed #00ff88!important;
  color: #00ff88!important;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5)!important;
}

.pill-yellow {
  border: 1px dashed #ffd700!important;
  color: #ffd700!important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5)!important;
}

.pill-blue {
  border: 1px dashed #4488ff!important;
  color: #4488ff!important;
  text-shadow: 0 0 10px rgba(68, 136, 255, 0.5)!important;
}

.pill-red {
  border: 1px dashed #ff0052!important;
  color: #ff0052!important;
  text-shadow: 0 0 10px rgb(255 0 61 / 50%);
}

.pink {
  color: #ff66e3!important;
  text-shadow: 0 0 10px rgba(255, 102, 227, 0.7)!important;
}

.green {
  color: #00ff88!important;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5)!important;
}

.yellow {
  color: #ffd700!important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5)!important;
}

.blue {
  color: #4488ff!important;
  text-shadow: 0 0 10px rgba(68, 136, 255, 0.5)!important;
}

.red {
  color: #ff0052!important;
  text-shadow: 0 0 10px rgb(255 0 61 / 50%);
}

.placeholder {
  color: var(--muted);
  font-style: italic;
  /* color: #a3a3a3; */
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

.drone-settings img {
  width: 200px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 16px;
}

.drone-subtitle {
  font: 700 14px Orbitron, sans-serif;
  font-weight: 700;
}

/* Racing Drone Light Trails Canvas */
#droneTrails {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* Footer */
footer {
  margin: 32px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Pilot flights (training) */
.pilot-flights-details {
  padding: 10px 0;
}

.expand-flights {
  border: none;
  background: #232a35;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 0 auto;
}

.expand-flights:hover {
  background: #2c3442;
}

.expand-flights .chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(.4,2,.3,1);
}

.expand-flights .chevron.open {
  transform: rotate(180deg);
}

.expand-flights svg {
  stroke: #ffd700;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* ===============================
   MOBILE RESPONSIVE
   =============================== */

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  
  .wrap {
    padding: 12px;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  header {
    flex-wrap: wrap;
    padding: 12px;
    gap: 10px;
  }
  
  header h1 {
    font-size: 22px;
  }
  
  .subtitle {
    font-size: 11px;
  }
  
  nav {
    width: 100%;
    margin: 10px 0 0 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  nav a {
    font-size: 12px;
    padding: 8px 10px;
    flex: 0 0 auto;
  }
  
  .toggles-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin: 8px auto 0;
    width: auto;
  }
  
  .meta {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  
  .meta .card {
    min-height: 80px;
    padding: 16px !important;
  }
  
  .card h3 {
    font-size: 13px !important;
  }
  
  .card .v {
    font-size: 13px !important;
  }
  
  .podium {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .podium-card {
    padding: 20px 16px !important;
  }
  
  .podium-card.second,
  .podium-card.third {
    margin-top: 0;
  }
  
  .podium-card .position {
    width: 45px !important;
    height: 45px !important;
    font-size: 18px !important;
  }
  
  .podium-card.first .position {
    width: 55px !important;
    height: 55px !important;
    font-size: 22px !important;
  }
  
  .podium-card .avatar {
    width: 70px !important;
    height: 70px !important;
  }
  
  .podium-card.first .avatar {
    width: 80px !important;
    height: 80px !important;
  }
  
  .podium-card .driver-name {
    font-size: 17px !important;
  }
  
  .podium-card .time {
    font-size: 15px !important;
  }
  
  /* Table specific sizing for mobile */
  /* .table-wrapper table {
    min-width: 500px;
  } */
  
  .table-wrapper th {
    font-size: 10px !important;
    padding: 6px !important;
  }
  
  .table-wrapper td {
    font-size: 11px !important;
    padding: 8px 6px !important;
  }
  
  .table-wrapper .avatar-sm {
    width: 20px !important;
    height: 20px !important;
  }
  
  .race-nav {
    padding: 12px;
  }
  
  .race-nav-info .race-title {
    font-size: 11px;
  }
  
  .race-nav-info .race-Running,
  .race-nav-info .race-Finished {
    font-size: 12px !important;
  }
  
  .subtab-link {
    font-size: 13px;
    padding: 10px 12px;
  }
  
  /* Rules section - keep readable */
  .important-message {
    padding: 14px 16px !important;
    font-size: 14px !important;
  }
  
  .message-content strong {
    font-size: 15px !important;
  }
  
  .simple-list li {
    font-size: 14px !important;
  }
  
  .section-title {
    font-size: 16px !important;
  }
  
  .timeline {
    padding-left: 80px;
  }
  
  .timeline-time {
    left: -85px;
    top: 23px;
    font-size: 13px;
  }
  
  .timeline-content strong {
    font-size: 15px !important;
  }
  
  .timeline-content p {
    font-size: 13px !important;
  }
  
  .hotkeys-grid {
    grid-template-columns: 1fr;
  }
  
  .hotkey-item {
    padding: 10px !important;
  }
  
  .key {
    font-size: 13px !important;
    padding: 6px 10px !important;
  }
  
  .key-description {
    font-size: 13px !important;
  }
  
  .track-length-bar {
    height: 16px !important;
  }
  
  .track-length-label {
    font-size: 11px !important;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  nav a {
    width: 100%;
    text-align: center;
  }
  
  .toggles-container {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  
  .table-wrapper th {
    font-size: 9px !important;
    padding: 5px 4px !important;
  }
  
  .table-wrapper td {
    font-size: 10px !important;
    padding: 6px 4px !important;
  }
  
  .card h3 {
    font-size: 12px !important;
  }
  
  .card .v {
    font-size: 14px !important;
  }
}

/* Admin styles - simplified */
.admin-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.admin-badge {
  background: linear-gradient(135deg, #ff6b6b, #ff4444);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
  /* Removed animation for cleaner look */
}

/* Remove the pulsing animation completely */
/* 
@keyframes adminPulse {
  50% {
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.8);
  }
}
*/

.btn-logout {
  background: rgba(255, 68, 68, 0.2);
  border: 1px solid rgba(255, 68, 68, 0.4);
  color: #ff6b6b;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(255, 68, 68, 0.3);
  border-color: #ff4444;
}

/* .btn-admin-login {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-admin-login:hover {
  background: rgba(255, 215, 0, 0.2);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
} */

.admin-controls {
  margin: 20px 0;
  padding: 16px;
  background: rgba(255, 215, 0, 0.05);
  border: 2px dashed rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  text-align: center;
}

.btn-generate-groups {
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.2), rgba(0, 255, 224, 0.15));
  border: 2px solid var(--accent);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-generate-groups:hover {
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.3), rgba(0, 255, 224, 0.25));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 140, 255, 0.3);
}

.btn-generate-groups.btn-primary {
  background: linear-gradient(135deg, #5b8cff, #00ffe0);
  color: #0b0f1a;
}

.admin-group-controls {
  margin-top: 16px;
  padding: 12px;
  background: rgba(91, 140, 255, 0.05);
  border: 1px dashed rgba(91, 140, 255, 0.3);
  border-radius: 8px;
}

.add-pilot-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pilot-name-input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(25, 30, 45, 0.8);
  border: 1px solid rgba(100, 110, 130, 0.4);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}

.pilot-name-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(91, 140, 255, 0.2);
}

.btn-add-pilot {
  background: rgba(22, 193, 114, 0.2);
  border: 1px solid rgba(22, 193, 114, 0.4);
  color: #16c172;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-add-pilot:hover {
  background: rgba(22, 193, 114, 0.3);
  transform: translateY(-1px);
}

.btn-remove-pilot {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.6;
  transition: all 0.2s;
  padding: 4px;
}

.btn-remove-pilot:hover {
  opacity: 1;
  transform: scale(1.2);
}

th.admin-action,
td.admin-action {
  width: 40px;
  text-align: center;
}

/* Admin login modal */
.admin-login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.admin-login-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-box {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.admin-login-box h3 {
  margin: 0 0 24px;
  color: #ffd700;
  text-align: center;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: rgba(25, 30, 45, 0.8);
  border: 1px solid rgba(100, 110, 130, 0.4);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
}

.login-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(91, 140, 255, 0.3);
}

.login-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-login,
.btn-cancel {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid;
}

.btn-login {
  background: linear-gradient(135deg, #5b8cff, #00ffe0);
  border-color: var(--accent);
  color: #0b0f1a;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 140, 255, 0.4);
}

.btn-cancel {
  background: rgba(100, 110, 130, 0.2);
  border-color: rgba(100, 110, 130, 0.4);
  color: var(--muted);
}

.btn-cancel:hover {
  background: rgba(100, 110, 130, 0.3);
}

.login-error {
  color: #ff5576;
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
  display: none;
}

.login-error.show {
  display: block;
}

.admin-section-title {
  font-size: 14px;
  color: #ffd700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.add-qualification-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-input {
  padding: 8px 12px;
  background: rgba(25, 30, 45, 0.8);
  border: 1px solid rgba(100, 110, 130, 0.4);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}

.admin-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(91, 140, 255, 0.2);
}

.btn-add-qualification {
  background: linear-gradient(135deg, rgba(22, 193, 114, 0.2), rgba(0, 255, 136, 0.15));
  border: 2px solid #16c172;
  color: #16c172;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-add-qualification:hover {
  background: linear-gradient(135deg, rgba(22, 193, 114, 0.3), rgba(0, 255, 136, 0.25));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 193, 114, 0.3);
}

/* Analytics Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--panel);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-value {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    font-size: 24px;
    font-weight: 700;
    font-family: 'Inter', sans-serif; /* Changed from Orbitron */
}

.stat-sublabel {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-size: 13px;
    margin-top: 4px;
    font-weight: 600;
} 
    
.time-cell {
    font-family: 'Orbitron', monospace;
    color: var(--text-bright);
}

/* Gaming-styled checkboxes */
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    background: rgba(25, 30, 45, 0.8);
    border: 2px solid rgba(100, 110, 130, 0.4);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

input[type="checkbox"]:hover {
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(91, 140, 255, 0.3);
}

input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #5b8cff, #00ffe0);
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(91, 140, 255, 0.5);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0b0f1a;
    font-size: 14px;
    font-weight: bold;
}

/* Consistency bar styling to match theme */
.consistency-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Fix chart wrapper overflow */
.chart-wrapper {
    background: var(--panel);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    /* margin-bottom: 20px; */
    position: relative;
    overflow: hidden;
}

.chart-wrapper canvas {
    max-width: 100%;
}

.chart-card-meta {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    margin-bottom: 20px;
}


.chart-explanation {
    background: rgba(91, 140, 255, 0.08);
    border-left: 4px solid var(--accent);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: var(--text);
}

.chart-explanation p {
    margin: 8px 0;
    line-height: 1.6;
    font-size: 14px;
}

.chart-explanation strong {
    color: #ffd700;
}

.chart-explanation ul.explanation-list, .chart-explanation ul.explanation-list-arrow {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.chart-explanation ul.explanation-list li, 
.chart-explanation ul.explanation-list-arrow li {
    position: relative;
    font-size: 14px;
}

.chart-explanation ul.explanation-list-arrow li {
    padding-left: 20px;
}

.chart-explanation ul.explanation-list-arrow li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.chart-explanation p .read-more-toggle {
  border: none;
  background: none;
  color: #ff66e3;          /* arba tavo rožinė */
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  margin-left: 6px;
  text-decoration: underline;
}

.chart-explanation-extra.is-collapsed {
  display: none;
}

.chart-explanation-extra.is-expanded {
  display: block;
  margin-top: 10px;
}



.dimension-box {
    background: rgba(25, 30, 45, 0.5);
    border: 1px solid rgba(91, 140, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
}

.dimension-box h5 {
    color: #ffd700;
    margin: 0 0 8px 0;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dimension-box p {
    margin: 6px 0;
    font-size: 13px;
    color: var(--muted);
}

.dimension-box ul {
    margin: 8px 0;
}

/* Responsive - Stack cards vertically on smaller screens */
@media (max-width: 768px) {
  .chart-card-meta {
    grid-template-columns: 1fr !important;
  }
}

.consistency-bar {
    background: rgba(100, 110, 130, 0.2);
    border-radius: 2px;
    overflow: hidden;
}
.consistency-bar-wrapper {
    flex: 1;
    height: 8px;
    background: rgba(15, 20, 30, 0.9);
    border: 1px solid rgba(100, 110, 130, 0.3);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.consistency-bar-fill {
    height: 100%;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

/* Dynamic coloring based on percentage */
.consistency-bar-fill.consistency-low {
    /* background: #ff5576;
    box-shadow: inset 0 0 8px rgba(255, 85, 118, 0.4), 
                0 0 4px rgba(255, 85, 118, 0.6); */
                
    background: linear-gradient(180deg, #ff5555, #dd2222);
    box-shadow: 0 0 10px rgba(255, 85, 85, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.consistency-bar-fill.consistency-medium {
    /* background: linear-gradient(90deg, 
        #ff9500 0%, 
        #ffd700 100%);
    box-shadow: inset 0 0 8px rgba(255, 215, 0, 0.3),
                0 0 4px rgba(255, 215, 0, 0.5); */
    background: linear-gradient(180deg, #ff9500, #ff7700);
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.consistency-bar-fill.consistency-high {
    /* background: linear-gradient(90deg, 
        #5fd89a 0%, 
        #00ff88 100%);
    box-shadow: inset 0 0 8px rgba(0, 255, 136, 0.3),
                0 0 4px rgba(0, 255, 136, 0.5); */
                
    background: linear-gradient(180deg, #00ff88, #5fd89a);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Add a subtle shine effect */
.consistency-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 3px 3px 0 0;
}

.consistency-value {
    min-width: 50px;
    text-align: right;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    font-size: 13px;
}

/* Match value color to bar */
.consistency-container:has(.consistency-high) .consistency-value {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.consistency-container:has(.consistency-medium) .consistency-value {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.consistency-container:has(.consistency-low) .consistency-value {
    color: #ff5576;
    text-shadow: 0 0 8px rgba(255, 85, 118, 0.4);
}

.elimination-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 12px 0 24px;
}

.elimination-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.elimination-row.reverse {
  flex-direction: row-reverse;
}

.elimination-row .card {
  flex: 1 1 280px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  /* gap: 12px; */
  overflow: hidden;
  margin-bottom: 0;;
}

.elimination-row .card .table-wrapper {
  flex: 1;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

@media (max-width: 900px) {
  .elimination-row,
  .elimination-row.reverse {
    flex-direction: column;
  }

  .elimination-row .card {
    width: 100%;
    flex: 0 1 auto;
    min-height: auto;
    overflow: visible;
  }

  .elimination-row .card .table-wrapper {
    flex: none;
    overflow: visible;
  }
}