/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background: linear-gradient(135deg, #ffffff, #d1e6f0);
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  user-select: none;
}

.header-oxala {
  width: 100%;
  max-width: 480px;
  background: #f0f9ff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-oxala h1 {
  font-size: 1.8rem;
  color: #005ea3;
  text-shadow: 0 0 8px #9bd8ff;
}

.header-oxala nav a.btn-voltar {
  background: #0099ff;
  color: white;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 8px #007acc;
  transition: background-color 0.3s ease;
}

.header-oxala nav a.btn-voltar:hover,
.header-oxala nav a.btn-voltar:focus {
  background: #007acc;
  outline: none;
}

main {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

#hud {
  display: flex;
  justify-content: space-around;
  width: 100%;
  background: #d9f0ff;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: inset 0 0 14px #b3e0ff;
  font-size: 1.1rem;
  font-weight: 600;
  color: #004080;
  user-select: none;
}

#hud > div {
  min-width: 70px;
  text-align: center;
}

#playArea {
  position: relative;
  width: 100%;
  height: 480px;
  background: radial-gradient(circle at center, #eaf6ff 0%, #a9d6ff 80%);
  border-radius: 16px;
  box-shadow: inset 0 0 20px #90caff;
  overflow: hidden;
  outline: none;
}

.light {
  position: absolute;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at center, #ffffff, #99ccff);
  border-radius: 50%;
  box-shadow:
    0 0 20px 6px #99ccff,
    0 0 35px 15px #66aaff,
    inset 0 0 10px #ccddff;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.light:hover,
.light:focus {
  background: radial-gradient(circle at center, #ccf0ff, #66aaff);
  box-shadow:
    0 0 30px 10px #66aaff,
    0 0 40px 20px #3399ff,
    inset 0 0 15px #aaddff;
  outline: none;
}

.gameOver {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  transform: translate(-50%, -50%);
  background: #ffffffcc;
  border-radius: 20px;
  box-shadow: 0 0 22px #3399ff;
  padding: 30px 20px;
  text-align: center;
  font-size: 1.5rem;
  color: #004080;
  font-weight: 700;
  z-index: 100;
}

#btnRestart {
  margin-top: 20px;
  background: #3399ff;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 15px #2277cc;
  transition: background-color 0.3s ease;
}

#btnRestart:hover,
#btnRestart:focus {
  background: #2277cc;
  outline: none;
}

/* Responsivo */

@media (max-width: 480px) {
  #playArea {
    height: 320px;
  }

  .light {
    width: 48px;
    height: 48px;
  }

  #hud {
    font-size: 1rem;
  }
}
