/* ── Daily Challenge Button ── */
#daily-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: rgba(157, 0, 255, 0.08);
  color: #f3e8ff;
  border: 2px solid #9d00ff;
  padding: 12px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(157, 0, 255, 0.3);
  border-radius: 6px;
  position: relative;
}

#daily-btn:hover {
  background: #9d00ff;
  color: #000; /* NOSONAR - hover state has bright background */
  box-shadow: 0 0 25px #9d00ff;
}

.daily-btn-desc {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  margin-top: 4px;
  font-weight: normal;
}

#daily-btn-streak {
  display: block;
  font-size: 14px;
  color: #ffff00;
  letter-spacing: 1px;
  margin-top: 2px;
  font-weight: normal;
}

/* ── Completed Badge ── */
.daily-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #00ff88;
  color: #000; /* NOSONAR - hover state has bright background */
  font-size: 14px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.daily-badge.hidden {
  display: none;
}

/* ── Daily HUD Bar ── */
#daily-hud {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 8px 16px;
  margin-bottom: 10px;
  border: 1px solid rgba(157, 0, 255, 0.4);
  border-radius: 6px;
  background: rgba(157, 0, 255, 0.08);
  position: relative;
  z-index: 1;
}

#daily-hud.hidden {
  display: none;
}

.daily-hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.daily-hud-label {
  font-size: 14px;
  color: rgba(157, 0, 255, 0.6);
  letter-spacing: 2px;
}

.daily-hud-value {
  font-size: 14px;
  font-weight: bold;
  color: #f3e8ff;
  text-shadow: 0 0 8px rgba(157, 0, 255, 0.5);
}

.daily-hud-streak {
  font-size: 18px;
  font-weight: bold;
  color: #ffff00;
  text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

/* ── Daily Mode Body Styles ── */
body.daily-mode .game-hud {
  border-color: rgba(157, 0, 255, 0.4);
  box-shadow: 0 0 10px rgba(157, 0, 255, 0.15);
}

body.daily-mode .hud-diff {
  color: #f3e8ff;
  text-shadow: 0 0 8px rgba(157, 0, 255, 0.5);
}

/* ── Daily Win Overlay ── */
#daily-win-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 0, 20, 0.92);
  border-radius: 17px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  backdrop-filter: blur(5px);
}

#daily-win-overlay.hidden {
  display: none;
}

#daily-win-overlay::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #9d00ff, transparent);
  animation: scanline-sweep 2s ease-in-out infinite;
  z-index: 11;
  border-radius: 17px 17px 0 0;
}

.daily-win-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.daily-win-title {
  font-size: 28px;
  color: #f3e8ff;
  text-shadow:
    0 0 20px rgba(157, 0, 255, 0.8),
    0 0 40px rgba(157, 0, 255, 0.4);
  margin-bottom: 6px;
  letter-spacing: 4px;
}

.daily-win-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.daily-win-stats {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 2;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.daily-win-stats span {
  color: #00f3ff;
  font-weight: bold;
}

.daily-win-streak-display {
  font-size: 36px;
  font-weight: bold;
  color: #ffff00;
  text-shadow:
    0 0 20px rgba(255, 255, 0, 0.8),
    0 0 40px rgba(255, 255, 0, 0.4);
  margin: 8px 0;
  letter-spacing: 3px;
}

.daily-win-streak-label {
  font-size: 13px;
  color: rgba(255, 255, 0, 0.6);
  letter-spacing: 4px;
  margin-bottom: 4px;
}

.daily-win-streak-bonus {
  font-size: 13px;
  color: rgba(0, 255, 136, 0.7);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.daily-win-xp {
  font-size: 20px;
  color: #00ff88;
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
  margin-bottom: 20px;
  letter-spacing: 2px;
  font-weight: bold;
}

.daily-win-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

#daily-exit-btn {
  background: transparent;
  color: #f3e8ff;
  border: 2px solid #9d00ff;
  padding: 12px 24px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(157, 0, 255, 0.3);
}

#daily-exit-btn:hover {
  background: #9d00ff;
  color: #000; /* NOSONAR - hover state has bright background */
  box-shadow: 0 0 25px #9d00ff;
}

#daily-retry-btn {
  background: transparent;
  color: #00f3ff;
  border: 2px solid #00f3ff;
  padding: 12px 24px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.3);
}

#daily-retry-btn:hover {
  background: #00f3ff;
  color: #000; /* NOSONAR - hover state has bright background */
  box-shadow: 0 0 25px #00f3ff;
}
