/* === PAUSE SCREEN (UPDATED TIMING + RESUME GLOW) === */
/* === PAUSE SCREEN (WITH BREATHING BACKGROUND GLOW) === */
section#pauseScreen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid rgba(0, 212, 255, 0.25);
  border-radius: 1rem;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: none;
  overflow: hidden;
  background: radial-gradient(ellipse at top, #0a0a1a, #020205);
}

/* Pseudo-element for glowing underlay */
section#pauseScreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, #0a0a1a, #020205 90%);
  z-index: -1;
}

/* Top bar */
section#pauseScreen div#resume {
  position: absolute;
  width: 100%;
  height: 7%;
  top: 0;
  left: 0;
  background: linear-gradient(to right, rgba(0, 212, 255, 0.15), transparent);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

/* Resume button (now glowing gently) */
section#pauseScreen div#resume button#pause_resumeBtn {
  font-family: myOtherFont;
  width: 5%;
  height: 2rem;
  color: #00d4ff;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.3);
  font-size: 1.6rem;
  position: absolute;
  right: 1rem;
  top: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.1s ease;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
  animation: resumePulse 2s ease-in-out infinite;
}

section#pauseScreen div#resume button#pause_resumeBtn:hover {
  background: rgba(0, 212, 255, 0.25);
  color: white;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

/* Resume button pulse animation */
@keyframes resumePulse {
  0% { box-shadow: 0 0 10px rgba(0, 212, 255, 0.4); }
  50% { box-shadow: 0 0 25px rgba(0, 212, 255, 0.9); }
  100% { box-shadow: 0 0 10px rgba(0, 212, 255, 0.4); }
}

/* Title */
section#pauseScreen div#resume button#title {
  font-family: myOtherOtherFont;
  position: absolute;
  left: 50%;
  top: -5px;
  transform: translate(-50%);
  color: green;
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
}

/* Button grid */
section#pauseScreen div#others {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 90%;
  width: 100%;
  display: grid;
  align-content: center;
  gap: 1.5rem;
}

/* Buttons */
/* Fast-reacting hover effects for other buttons */
section#pauseScreen div#others button {
    font-family: myOtherFont;
    font-size: 1.8rem;
    width: 40%;
    height: 3rem;
    margin: auto;
    background: rgba(0, 0, 0, 0.5);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
    transition: background-color 0.05s linear, color 0.05s linear, transform 0.08s ease, box-shadow 0.08s ease;
}

section#pauseScreen div#others button:hover {
    background: rgba(0, 212, 255, 0.15);
    filter: brightness(1.3);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.7);
    color: white;
    transform: scale(1.05);
}

/* General cursor */
section#pauseScreen button {
  cursor: pointer;
}
/* Animate a faint background pseudo-element instead */
section#pauseScreen div#others::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
  animation: pulseGlow 2s infinite ease-in-out;
  z-index: -1;
}