/* ===== INFO OVERLAY ===== */
#info-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,16,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: all;
  z-index: 250;
  overscroll-behavior: contain;
  touch-action: none;
}

#info-box {
  background: linear-gradient(170deg, rgba(20,25,50,0.97) 0%, rgba(10,15,35,0.97) 100%);
  border: 1px solid rgba(0,229,255,0.18);
  border-radius: 24px;
  padding: 28px 28px 24px;
  text-align: left;
  color: white;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 0 60px rgba(0,0,0,0.5), 0 0 30px rgba(0,229,255,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: infoBoxIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#info-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

#info-box-title {
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #00E5FF;
  letter-spacing: 4px;
}

#info-close-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  cursor: pointer;
  pointer-events: all;
  color: rgba(255,255,255,0.5);
  transition: all 0.25s;
  padding: 0;
  outline: none;
}
#info-close-btn:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}

#info-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-section-title {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: rgba(0,229,255,0.65);
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0,229,255,0.1);
}

.info-rule {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  font-weight: 500;
  padding-left: 4px;
}

#info-ok-btn {
  width: 100%;
  background: linear-gradient(135deg, #00E5FF 0%, #00dc82 100%);
  color: #0a0a1a;
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  cursor: pointer;
  letter-spacing: 3px;
  pointer-events: all;
  box-shadow: 0 4px 24px rgba(0,229,255,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#info-ok-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,229,255,0.45);
}
#info-ok-btn:active { transform: translateY(0); }

@keyframes infoBoxIn {
  0% { opacity: 0; transform: scale(0.85) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes infoBoxOut {
  0% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(0.9) translateY(10px); }
}

/* ===== REWARD OVERLAY ===== */
#reward-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,16,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: all;
  z-index: 200;
  overscroll-behavior: contain;
  touch-action: none;
}

#reward-box {
  background: linear-gradient(170deg, rgba(25,25,50,0.97) 0%, rgba(15,15,35,0.97) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 28px 24px 24px;
  text-align: center;
  color: white;
  max-width: 340px;
  width: 88%;
  box-shadow:
    0 0 80px rgba(0,0,0,0.6),
    0 0 40px rgba(255,215,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.06);
  animation: rewardBoxIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#reward-type-icon {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

#reward-type-icon.hint-icon {
  background: rgba(255,215,0,0.08);
  border: 1.5px solid rgba(255,215,0,0.2);
  box-shadow: 0 0 30px rgba(255,215,0,0.08);
}
#reward-type-icon.energy-icon {
  background: rgba(0,229,255,0.08);
  border: 1.5px solid rgba(0,229,255,0.2);
  box-shadow: 0 0 30px rgba(0,229,255,0.08);
}

#reward-title {
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 3px;
}

#reward-subtitle {
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 14px;
  font-weight: 500;
}

/* ===== Two-option choice container ===== */
#reward-options {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 14px;
}

/* Individual option card */
.reward-option {
  border-radius: 16px;
  padding: 14px 16px 16px;
  position: relative;
}

/* Option A: Watch video — highlighted / recommended */
.reward-option-ad {
  background: rgba(255,215,0,0.04);
  border: 1.5px solid rgba(255,215,0,0.25);
  box-shadow: 0 0 20px rgba(255,215,0,0.06);
}

/* Option B: No ad — dimmer / reddish penalty hint */
.reward-option-no-ad {
  background: rgba(255,80,80,0.03);
  border: 1px solid rgba(255,80,80,0.15);
}

/* Option header row (badge + recommend tag) */
.reward-option-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

/* Badge: VIDEO / NO AD */
.reward-option-badge {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
}

.reward-option-badge-ad {
  color: #FFD700;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.25);
}

.reward-option-badge-noad {
  color: rgba(255,150,150,0.8);
  background: rgba(255,80,80,0.08);
  border: 1px solid rgba(255,80,80,0.18);
}

/* Recommended tag for video option */
.reward-option-recommend {
  font-family: 'Rajdhani', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FFD700;
  opacity: 0.7;
}

/* Option label text */
.reward-option-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  font-weight: 500;
}

/* Penalty display inside each option */
.reward-option-penalty {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 12px;
}

.reward-option-ad .reward-option-penalty {
  color: #FFD700;
  text-shadow: 0 0 12px rgba(255,215,0,0.2);
}

.reward-option-no-ad .reward-option-penalty {
  color: #ff6b6b;
  text-shadow: 0 0 12px rgba(255,80,80,0.2);
}

/* Divider between options */
.reward-option-divider {
  text-align: center;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.2);
  padding: 6px 0;
  position: relative;
}

.reward-option-divider::before,
.reward-option-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.reward-option-divider::before { left: 0; }
.reward-option-divider::after { right: 0; }

/* Watch Video button (inside Option A) */
#reward-watch-btn {
  width: 100%;
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
  color: #0a0a1a;
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  letter-spacing: 2px;
  pointer-events: all;
  box-shadow: 0 4px 20px rgba(255,140,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#reward-watch-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
#reward-watch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,140,0,0.45);
}
#reward-watch-btn:hover::before { left: 100%; }
#reward-watch-btn:active { transform: translateY(0); }

/* Buy/Get button (inside Option B — no ad) */
#reward-buy-btn {
  width: 100%;
  background: linear-gradient(135deg, rgba(255,80,80,0.25) 0%, rgba(255,50,50,0.35) 100%);
  color: rgba(255,200,200,0.9);
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255,80,80,0.3);
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  letter-spacing: 2px;
  pointer-events: all;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#reward-buy-btn:hover {
  background: linear-gradient(135deg, rgba(255,80,80,0.35) 0%, rgba(255,50,50,0.45) 100%);
  border-color: rgba(255,80,80,0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,80,80,0.2);
  color: #fff;
}
#reward-buy-btn:active {
  transform: translateY(0);
}

/* Cancel button */
#reward-cancel-btn {
  width: 100%;
  background: transparent;
  color: rgba(255,255,255,0.35);
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 9px 24px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.3s;
  pointer-events: all;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#reward-cancel-btn:hover {
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
}

/* Progress wrapper (fallback timer for video) */
#reward-progress-wrapper {
  display: none;
  margin-top: 8px;
  padding-top: 4px;
}

#reward-progress-text {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

#reward-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

#reward-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #FFD700, #FF8C00);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(255,165,0,0.4);
  transition: width 0.1s linear;
}

#reward-result-text {
  display: none;
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  color: #00e676;
  margin-top: 12px;
  letter-spacing: 1px;
  animation: rewardResultPulse 0.6s ease;
}

/* ===== Mobile responsive for reward overlay ===== */
@media (max-width: 400px) {
  #reward-box {
    padding: 22px 16px 18px;
  }

  #reward-type-icon {
    width: 44px; height: 44px;
    margin-bottom: 8px;
  }

  #reward-title {
    font-size: 17px;
  }

  #reward-subtitle {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .reward-option {
    padding: 10px 12px 12px;
    border-radius: 12px;
  }

  .reward-option-penalty {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .reward-option-badge {
    font-size: 8px;
    padding: 2px 8px;
  }

  .reward-option-label {
    font-size: 11px;
  }

  #reward-watch-btn,
  #reward-buy-btn {
    font-size: 10px;
    padding: 10px 16px;
    border-radius: 10px;
  }

  #reward-cancel-btn {
    font-size: 12px;
    padding: 8px 20px;
  }

  .reward-option-divider {
    font-size: 9px;
    padding: 4px 0;
  }
}

@media (max-height: 600px) {
  #reward-box {
    padding: 18px 14px 16px;
    max-height: 95vh;
    overflow-y: auto;
  }

  #reward-type-icon {
    width: 40px; height: 40px;
    margin-bottom: 6px;
  }

  #reward-title {
    font-size: 16px;
    margin-bottom: 2px;
  }

  #reward-subtitle {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .reward-option {
    padding: 8px 10px 10px;
  }

  .reward-option-penalty {
    font-size: 14px;
    margin-bottom: 6px;
  }

  #reward-watch-btn,
  #reward-buy-btn {
    padding: 9px 14px;
    font-size: 10px;
  }

  #reward-cancel-btn {
    padding: 7px 16px;
    font-size: 11px;
  }

  .reward-option-badge {
    font-size: 8px;
    padding: 2px 6px;
  }
}

/* ===== LANGUAGE OVERLAY ===== */
#lang-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,16,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: all;
  z-index: 260;
  overscroll-behavior: contain;
  touch-action: none;
}

#lang-box {
  background: linear-gradient(170deg, rgba(20,25,50,0.97) 0%, rgba(10,15,35,0.97) 100%);
  border: 1px solid rgba(0,229,255,0.18);
  border-radius: 24px;
  padding: 28px 28px 24px;
  text-align: center;
  color: white;
  max-width: 320px;
  width: 88%;
  box-shadow: 0 0 60px rgba(0,0,0,0.5), 0 0 30px rgba(0,229,255,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: langBoxIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#lang-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

#lang-box-title {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #00E5FF;
  letter-spacing: 4px;
}

#lang-close-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  cursor: pointer;
  pointer-events: all;
  color: rgba(255,255,255,0.5);
  transition: all 0.25s;
  padding: 0;
  outline: none;
}
#lang-close-btn:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}

#lang-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  pointer-events: all;
  transition: all 0.25s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.lang-item:hover {
  background: rgba(0,229,255,0.06);
  border-color: rgba(0,229,255,0.2);
}
.lang-item:active {
  transform: scale(0.97);
}

.lang-item.active {
  background: rgba(0,229,255,0.08);
  border: 1.5px solid rgba(0,229,255,0.35);
  box-shadow: 0 0 16px rgba(0,229,255,0.08);
}

.lang-item-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-item-flag {
  font-size: 22px;
  line-height: 1;
}

.lang-item-native {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
}

.lang-item-code {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lang-item.active .lang-item-native {
  color: #00E5FF;
}

.lang-item.active .lang-item-code {
  color: rgba(0,229,255,0.5);
}

.lang-item-check {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.lang-item.active .lang-item-check {
  opacity: 1;
  color: #00E5FF;
}

@keyframes langBoxIn {
  0% { opacity: 0; transform: scale(0.85) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== MISSION OVERLAY ===== */
#mission-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,16,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: all;
  z-index: 210;
  overscroll-behavior: contain;
  touch-action: none;
}

#mission-box {
  background: linear-gradient(170deg, rgba(20,25,45,0.97) 0%, rgba(10,15,35,0.97) 100%);
  border: 1px solid rgba(0,220,130,0.15);
  border-radius: 24px;
  padding: 28px 28px 24px;
  text-align: left;
  color: white;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 0 60px rgba(0,0,0,0.5), 0 0 30px rgba(0,220,130,0.05), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: missionBoxIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#mission-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

#mission-box-title {
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #00dc82;
  letter-spacing: 4px;
}

#mission-close-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  cursor: pointer;
  pointer-events: all;
  color: rgba(255,255,255,0.5);
  transition: all 0.25s;
  padding: 0;
  outline: none;
}
#mission-close-btn:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}

#mission-level-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 14px;
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 12px;
}

#mission-level-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(0,229,255,0.6);
  text-transform: uppercase;
}

#mission-level-num {
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 900;
  color: #00E5FF;
  text-shadow: 0 0 16px rgba(0,229,255,0.3);
}

#mission-xp-track {
  flex: 1;
  height: 8px;
  background: rgba(0,0,0,0.4);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

#mission-xp-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00E5FF, #00dc82);
  border-radius: 3px;
  transition: width 0.4s;
  box-shadow: 0 0 6px rgba(0,229,255,0.3);
}

#mission-xp-text {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

#mission-active-section {
  margin-bottom: 18px;
}

#mission-active-label {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: rgba(0,220,130,0.5);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

#mission-active-name {
  font-family: 'Orbitron', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #00dc82;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

#mission-active-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
  line-height: 1.5;
}

#mission-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(0,0,0,0.4);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

#mission-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00dc82, #4CAF50);
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 8px rgba(0,220,130,0.3);
}

#mission-progress-text {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
  letter-spacing: 1px;
}

#mission-moves-remaining {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

#mission-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 18px 0;
}

#mission-completed-label {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.mission-completed-item {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
  font-weight: 500;
}

.mission-completed-item .mission-check {
  color: #00dc82;
  margin-right: 6px;
  font-weight: bold;
}

.mission-completed-item.mission-failed {
  text-decoration: line-through;
  color: rgba(255,255,255,0.2);
}
/* ===== REVIEW REQUEST OVERLAY ===== */
#review-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,16,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: all;
  z-index: 305;
  overscroll-behavior: contain;
  touch-action: none;
}

#review-box {
  background: linear-gradient(170deg, rgba(30,25,10,0.97) 0%, rgba(15,12,5,0.97) 100%);
  border: 1.5px solid rgba(255,215,0,0.3);
  border-radius: 28px;
  padding: 36px 44px 28px;
  text-align: center;
  color: white;
  max-width: 340px;
  width: 90%;
  box-shadow: 0 0 80px rgba(255,215,0,0.15), 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: reviewBoxIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 310;
}

#review-icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,215,0,0.1);
  border: 2px solid rgba(255,215,0,0.25);
  box-shadow: 0 0 40px rgba(255,215,0,0.15);
  color: #FFD700;
}

#review-icon svg {
  width: 32px; height: 32px;
}

#review-title {
  font-family: 'Orbitron', monospace;
  font-size: 28px;
  font-weight: 900;
  color: #FFD700;
  letter-spacing: 5px;
  text-shadow: 0 0 40px rgba(255,215,0,0.4);
  margin-bottom: 16px;
}

#review-level {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: rgba(255,215,0,0.5);
  text-transform: uppercase;
  margin-bottom: 4px;
}

#review-level-number {
  font-family: 'Orbitron', monospace;
  font-size: 48px;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 0 40px rgba(255,215,0,0.4);
  margin-bottom: 14px;
  line-height: 1;
}

#review-reward-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: rgba(255,215,0,0.5);
  text-transform: uppercase;
  margin-bottom: 4px;
}

#review-reward-amount {
  font-family: 'Orbitron', monospace;
  font-size: 36px;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 0 30px rgba(255,215,0,0.5);
  margin-bottom: 24px;
  line-height: 1;
}

#review-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Primary button: gold gradient, dark text */
#review-rate-btn {
  width: 100%;
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
  color: #0a0a1a;
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  cursor: pointer;
  letter-spacing: 2px;
  pointer-events: all;
  box-shadow: 0 4px 24px rgba(255,140,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#review-rate-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
#review-rate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,140,0,0.45);
}
#review-rate-btn:hover::before { left: 100%; }
#review-rate-btn:active { transform: translateY(0); }

/* Secondary button: transparent, white text */
#review-continue-btn {
  width: 100%;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 10px 24px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.3s;
  pointer-events: all;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#review-continue-btn:hover {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.03);
}

/* Review overlay animations */
@keyframes reviewBoxIn {
  0% { opacity: 0; transform: scale(0.8) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes reviewOut {
  0% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(0.9) translateY(10px); }
}

/* Mobile responsive for review overlay */
@media (max-width: 400px) {
  #review-box {
    padding: 28px 24px 22px;
  }

  #review-icon {
    width: 52px; height: 52px;
    margin-bottom: 10px;
  }

  #review-icon svg {
    width: 26px; height: 26px;
  }

  #review-title {
    font-size: 22px;
    letter-spacing: 3px;
    margin-bottom: 12px;
  }

  #review-level-number {
    font-size: 40px;
    margin-bottom: 10px;
  }

  #review-reward-amount {
    font-size: 28px;
    margin-bottom: 18px;
  }

  #review-rate-btn {
    font-size: 10px;
    padding: 12px 18px;
    border-radius: 12px;
  }

  #review-continue-btn {
    font-size: 12px;
    padding: 8px 18px;
    border-radius: 12px;
  }
}

@media (max-height: 600px) {
  #review-box {
    padding: 22px 20px 18px;
  }

  #review-icon {
    width: 44px; height: 44px;
    margin-bottom: 8px;
  }

  #review-icon svg {
    width: 22px; height: 22px;
  }

  #review-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  #review-level-number {
    font-size: 34px;
    margin-bottom: 8px;
  }

  #review-reward-amount {
    font-size: 24px;
    margin-bottom: 14px;
  }

  #review-rate-btn {
    padding: 10px 16px;
    font-size: 10px;
  }

  #review-continue-btn {
    padding: 7px 14px;
    font-size: 11px;
  }
}
/* ===== LEVEL UP OVERLAY ===== */
#levelup-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,16,0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: all;
  z-index: 300;
  overscroll-behavior: contain;
  touch-action: none;
}

#levelup-box {
  background: linear-gradient(170deg, rgba(25,25,55,0.97) 0%, rgba(10,10,40,0.97) 100%);
  border: 1.5px solid rgba(0,229,255,0.25);
  border-radius: 28px;
  padding: 40px 48px 32px;
  text-align: center;
  color: white;
  max-width: 340px;
  width: 90%;
  box-shadow: 0 0 80px rgba(0,229,255,0.12), 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: levelUpIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 310;
}

#levelup-title {
  font-family: 'Orbitron', monospace;
  font-size: 32px;
  font-weight: 900;
  color: #00E5FF;
  letter-spacing: 6px;
  text-shadow: 0 0 40px rgba(0,229,255,0.4);
  margin-bottom: 12px;
}

#levelup-number {
  font-family: 'Orbitron', monospace;
  font-size: 72px;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 0 50px rgba(255,215,0,0.5);
  margin-bottom: 24px;
  line-height: 1;
}

#levelup-continue-btn {
  background: linear-gradient(135deg, #00E5FF 0%, #00dc82 100%);
  color: #0a0a1a;
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 14px 36px;
  cursor: pointer;
  letter-spacing: 3px;
  pointer-events: all;
  box-shadow: 0 4px 24px rgba(0,229,255,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
#levelup-continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,229,255,0.45);
}
#levelup-continue-btn:active { transform: translateY(0); }

/* ===== LB PROMOTION OVERLAY ===== */
#lbpromo-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,16,0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: all;
  z-index: 350;
  overscroll-behavior: contain;
  touch-action: none;
}

#lbpromo-confetti-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 355;
}

#lbpromo-box {
  background: linear-gradient(170deg, rgba(30,25,15,0.97) 0%, rgba(15,12,8,0.97) 100%);
  border: 1.5px solid rgba(255,215,0,0.3);
  border-radius: 28px;
  padding: 36px 44px 28px;
  text-align: center;
  color: white;
  max-width: 340px;
  width: 90%;
  box-shadow: 0 0 80px rgba(255,215,0,0.15), 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: lbPromoIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 360;
}

#lbpromo-icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,215,0,0.1);
  border: 2px solid rgba(255,215,0,0.25);
  box-shadow: 0 0 40px rgba(255,215,0,0.15);
  color: #FFD700;
}

#lbpromo-icon svg {
  width: 32px; height: 32px;
}

#lbpromo-title {
  font-family: 'Orbitron', monospace;
  font-size: 28px;
  font-weight: 900;
  color: #FFD700;
  letter-spacing: 5px;
  text-shadow: 0 0 40px rgba(255,215,0,0.4);
  margin-bottom: 8px;
}

#lbpromo-rank {
  font-family: 'Orbitron', monospace;
  font-size: 64px;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 0 50px rgba(255,215,0,0.5);
  margin-bottom: 8px;
  line-height: 1;
}

#lbpromo-subtitle {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 22px;
  font-weight: 500;
}

#lbpromo-continue-btn {
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
  color: #0a0a1a;
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 14px 36px;
  cursor: pointer;
  letter-spacing: 3px;
  pointer-events: all;
  box-shadow: 0 4px 24px rgba(255,140,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#lbpromo-continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,140,0,0.45);
}
#lbpromo-continue-btn:active { transform: translateY(0); }

/* Tier-specific accent colors */
#lbpromo-box.tier-1   { border-color: rgba(255,215,0,0.6);   box-shadow: 0 0 100px rgba(255,215,0,0.3), 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1); }
#lbpromo-box.tier-3   { border-color: rgba(255,215,0,0.45);  box-shadow: 0 0 80px rgba(255,215,0,0.2), 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08); }
#lbpromo-box.tier-10  { border-color: rgba(255,165,0,0.35);  box-shadow: 0 0 60px rgba(255,165,0,0.15), 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06); }
#lbpromo-box.tier-25  { border-color: rgba(0,229,255,0.3);   box-shadow: 0 0 50px rgba(0,229,255,0.12), 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06); }
#lbpromo-box.tier-50  { border-color: rgba(0,220,130,0.25);  box-shadow: 0 0 40px rgba(0,220,130,0.1), 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05); }
#lbpromo-box.tier-100 { border-color: rgba(0,220,130,0.2);   box-shadow: 0 0 30px rgba(0,220,130,0.08), 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05); }
#lbpromo-box.tier-1000 { border-color: rgba(255,255,255,0.12); box-shadow: 0 0 20px rgba(255,255,255,0.05), 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04); }
#lbpromo-box.tier-1001 { border-color: rgba(255,255,255,0.08); box-shadow: 0 0 12px rgba(255,255,255,0.03), 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.03); }

/* Tier-specific rank number colors */
#lbpromo-box.tier-1 #lbpromo-rank,
#lbpromo-box.tier-3 #lbpromo-rank { color: #FFD700; }
#lbpromo-box.tier-10 #lbpromo-rank { color: #FF8C00; }
#lbpromo-box.tier-25 #lbpromo-rank { color: #00E5FF; }
#lbpromo-box.tier-50 #lbpromo-rank,
#lbpromo-box.tier-100 #lbpromo-rank { color: #00dc82; }
#lbpromo-box.tier-1000 #lbpromo-rank { color: rgba(255,255,255,0.9); }
#lbpromo-box.tier-1001 #lbpromo-rank { color: rgba(255,255,255,0.7); }

/* Tier-specific title colors */
#lbpromo-box.tier-1 #lbpromo-title,
#lbpromo-box.tier-3 #lbpromo-title { color: #FFD700; }
#lbpromo-box.tier-10 #lbpromo-title { color: #FF8C00; }
#lbpromo-box.tier-25 #lbpromo-title { color: #00E5FF; }
#lbpromo-box.tier-50 #lbpromo-title,
#lbpromo-box.tier-100 #lbpromo-title { color: #00dc82; }
#lbpromo-box.tier-1000 #lbpromo-title { color: rgba(255,255,255,0.9); }
#lbpromo-box.tier-1001 #lbpromo-title { color: rgba(255,255,255,0.7); }

/* ===== GAME OVER ===== */
#gameover {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,16,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: all;
  z-index: 100;
  overscroll-behavior: contain;
  touch-action: none;
}
#gameover-box {
  background: rgba(20,20,40,0.9);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 24px;
  padding: 40px 48px;
  text-align: center;
  color: white;
  box-shadow: 0 0 60px rgba(255,215,0,0.1), 0 20px 60px rgba(0,0,0,0.5);
  max-width: 360px;
  width: 90%;
  animation: gameoverIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#gameover-box h2 {
  font-family: 'Orbitron', monospace;
  font-size: 36px; color: #FFD700;
  margin-bottom: 8px; letter-spacing: 6px;
  text-shadow: 0 0 30px rgba(255,215,0,0.4);
}
#gameover-box .subtitle {
  color: rgba(255,255,255,0.4);
  font-size: 14px; letter-spacing: 4px; margin-bottom: 24px;
}
#gameover-box .score-label {
  color: rgba(255,255,255,0.5);
  font-size: 14px; letter-spacing: 3px; margin-bottom: 4px;
}
#final-score {
  font-family: 'Orbitron', monospace;
  font-size: 56px; font-weight: 900;
  color: #FFD700;
  text-shadow: 0 0 30px rgba(255,215,0,0.4);
  margin-bottom: 28px; display: block;
}

/* O-5: Gameover badges */
.gameover-badge {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 12px;
  animation: badgeAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gameover-badge.record-badge {
  color: #FFD700;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 8px;
  padding: 6px 16px;
  text-shadow: 0 0 12px rgba(255,215,0,0.4);
}
.gameover-badge.rank-badge {
  color: #00dc82;
  background: rgba(0,220,130,0.1);
  border: 1px solid rgba(0,220,130,0.3);
  border-radius: 8px;
  padding: 6px 16px;
  text-shadow: 0 0 12px rgba(0,220,130,0.4);
  margin-bottom: 20px;
}
#restart-btn {
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
  color: #0a0a1a;
  font-family: 'Orbitron', monospace;
  font-size: 15px; font-weight: 700;
  border: none; border-radius: 14px;
  padding: 14px 36px; cursor: pointer;
  letter-spacing: 3px; pointer-events: all;
  box-shadow: 0 4px 20px rgba(255,140,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
#restart-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
#restart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,140,0,0.5);
}
#restart-btn:hover::before { left: 100%; }
#restart-btn:active { transform: translateY(0); }

/* ===== LEADERBOARD OVERLAY ===== */
#lb-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,16,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: all;
  z-index: 220;
  overscroll-behavior: contain;
  touch-action: manipulation;

}

#lb-box {
  background: linear-gradient(170deg, rgba(20,22,45,0.97) 0%, rgba(10,12,30,0.97) 100%);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 24px;
  padding: 24px 20px 20px;
  text-align: left;
  color: white;
  max-width: 400px;
  width: 92%;
  max-height: 80vh;
  padding-bottom: env(safe-area-inset-bottom, 10px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(0,0,0,0.5), 0 0 30px rgba(255,215,0,0.05), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: lbBoxIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  touch-action: manipulation;
}

#lb-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

#lb-box-title {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #FFD700;
  letter-spacing: 3px;
}

#lb-close-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  cursor: pointer;
  pointer-events: all;
  color: rgba(255,255,255,0.5);
  transition: all 0.25s;
  padding: 0;
  outline: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#lb-close-btn:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}

/* Tabs */
#lb-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  padding: 3px;
}

.lb-tab {
  flex: 1;
  background: transparent;
  color: rgba(255,255,255,0.4);
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border: none;
  border-radius: 8px;
  padding: 8px 6px;
  cursor: pointer;
  transition: all 0.3s;
  pointer-events: all;
  text-transform: uppercase;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.lb-tab.active {
  background: rgba(255,215,0,0.12);
  color: #FFD700;
  box-shadow: 0 0 12px rgba(255,215,0,0.1);
}

.lb-tab:not(.active):hover {
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04);
}

/* Entries area */
#lb-entries {
   
  gap: 4px;
  margin-bottom: 14px;
  
  
  padding: 3px;
  
  flex: 1;
  min-height: 200px;
  max-height: 50vh;
   touch-action: pan-y; 

}


#lb-loading {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  padding: 60px 0;
  overscroll-behavior: none;
}

#lb-not-authorized {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  padding: 40px 0;
  gap: 4px;
}

#lb-auth-btn {
  display: inline-block;
  margin-top: 16px;
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
  color: #0a0a1a;
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  cursor: pointer;
  letter-spacing: 2px;
  pointer-events: all;
  box-shadow: 0 4px 16px rgba(255,140,0,0.25);
  transition: all 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#lb-auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,140,0,0.4);
}

#lb-auth-btn:active {
  transform: translateY(0);
}

/* Table */
#lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

#lb-table thead th {
  font-family: 'Rajdhani', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
}

.lb-col-rank { width: 32px; text-align: center; }
.lb-col-player { text-align: left; }
.lb-col-score { text-align: right; }

#lb-table tbody td {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}

#lb-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

.lb-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  background: rgba(255,255,255,0.08);
}

.lb-name {
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  vertical-align: middle;
}

.lb-col-score {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,215,0,0.8);
  white-space: nowrap;
}

.lb-empty {
  text-align: center;
  color: rgba(255,255,255,0.25);
  padding: 40px 0 !important;
  font-size: 13px;
}

/* Player's own row at bottom */
#lb-player-row {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.12);
  border-radius: 10px;
  font-size: 13px;
}

#lb-player-rank {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  color: #FFD700;
  min-width: 32px;
  text-align: center;
}

#lb-player-name {
  flex: 1;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

#lb-player-score {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,215,0,0.9);
  white-space: nowrap;
}

/* Hidden reset button (appears after 10s hold on title) */
#lb-reset-btn {
  display: none;
  width: 100%;
  margin-top: 10px;
  background: rgba(255,50,50,0.12);
  border: 1px solid rgba(255,50,50,0.25);
  border-radius: 10px;
  padding: 10px;
  color: #ff6b6b;
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  pointer-events: all;
  transition: all 0.3s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#lb-reset-btn:hover {
  background: rgba(255,50,50,0.2);
  border-color: rgba(255,50,50,0.4);
  box-shadow: 0 0 20px rgba(255,50,50,0.15);
}
#lb-reset-btn:active {
  transform: scale(0.97);
}

#lb-reset-progress {
  display: none;
  text-align: center;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(255,50,50,0.06);
  border-radius: 8px;
}

#lb-reset-status {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  color: rgba(255,100,100,0.7);
  letter-spacing: 1px;
}

