#overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse at center,
    rgba(10, 14, 24, 0.55) 0%,
    rgba(4, 6, 12, 0.85) 100%
  );
  text-align: center;
  z-index: 20;
  padding: 24px;
}

#overlay .overlay-card {
  width: 100%;
  max-width: 480px;
  padding: 32px 32px 28px;
  border-radius: 18px;
  background: rgba(16, 18, 28, 0.6);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#overlay h1 {
  margin: 0 0 10px;
  font-size: 34px;
  background: linear-gradient(90deg, #9cd1ff, #ffbe07);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.01em;
}

#overlay p {
  margin: 4px 0 22px;
  opacity: 0.85;
  font-size: 14px;
  line-height: 1.5;
}

#overlay button#start-btn {
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #4f8cff, #6ea1ff);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(79, 140, 255, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

#overlay button#start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(79, 140, 255, 0.45);
}

#pause-overlay {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse at center,
    rgba(10, 14, 24, 0.55) 0%,
    rgba(4, 6, 12, 0.85) 100%
  );
  text-align: center;
  z-index: 30;
  padding: 24px;
}

#pause-overlay .overlay-card {
  width: 100%;
  max-width: 320px;
  padding: 32px 32px 28px;
  border-radius: 18px;
  background: rgba(16, 18, 28, 0.6);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#pause-overlay h1 {
  margin: 0 0 10px;
  font-size: 28px;
  background: linear-gradient(90deg, #9cd1ff, #ffbe07);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#pause-overlay button {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

#pause-overlay button:hover {
  transform: translateY(-2px);
}

#resume-btn {
  background: linear-gradient(90deg, #4f8cff, #6ea1ff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 140, 255, 0.35);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.credits {
  margin: 36px 0 0 0;
  opacity: 0.55;
  font-size: 12px;
  color: #fff;
}

.key-hint {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.75;
}
