/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background: linear-gradient(135deg, #264d00, #91c11e);
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
  user-select: none;
}

.header-oxossi {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(90deg, #0d4400, #67b100);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 0 18px #4d7a00;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.header-oxossi h1 {
  font-size: 1.6rem;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.header-oxossi nav a.btn-voltar {
  background: rgba(255 255 255 / 0.2);
  padding: 8px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}

.header-oxossi nav a.btn-voltar:hover,
.header-oxossi nav a.btn-voltar:focus {
  background: white;
  color: #267200;
  outline: none;
}

main#gameContainer {
  width: 100%;
  max-width: 480px;
  background: #d4f1a1;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 0 26px #4b7300;
  display: flex;
  flex-direction: column;
  gap: 16px;
  user-select: none;
}

.status-bar {
  display: flex;
  justify-content: space-around;
  font-weight: 700;
  font-size: 1.15rem;
  color: #315300;
  user-select: text;
  gap: 8px;
  flex-wrap: wrap;
}

.status-bar div {
  min-width: 90px;
  text-align: center;
  background: #a8d068;
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: inset 0 0 8px #7ca312;
}

#targetArea {
  background: #7ab800;
  border-radius: 20px;
  min-height: 320px;
  position: relative;
  box-shadow: inset 0 0 22px #509e00;
  overflow: hidden;
  outline: none;
  cursor: crosshair;
}

/* Alvos */
.target {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  font-weight: 700;
  color: white;
  box-shadow:
    0 0 8px #0a3c00,
    inset 0 0 12px rgba(255,255,255,0.25);
  transition: transform 0.15s ease, opacity 0.3s ease;
}

/* Bolinhas verdes */
.target.green {
  background: linear-gradient(145deg, #1e7f00, #7cda11);
  border: 2px solid #215a00;
  text-shadow: 0 0 3px #a6f170;
  cursor: pointer;
  filter: drop-shadow(0 0 5px #7fed1e);
}

/* Bolinhas vermelhas */
.target.red {
  background: linear-gradient(145deg, #b80000, #ff4c4c);
  border: 2px solid #6a0000;
  text-shadow: 0 0 5px #ff8181;
  cursor: pointer;
  filter: drop-shadow(0 0 5px #ff2929);
}

/* Alvo acertado - desaparece */
.target.hit {
  opacity: 0;
  transform: scale(0.3);
  pointer-events: none;
}

/* Popup */
#popupConfirm {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #e6f5a8;
  border: 4px solid #4b7f00;
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: 0 0 26px #5b8f00;
  z-index: 1000;
  width: 90%;
  max-width: 360px;
  user-select: text;
}

.popup-content {
  text-align: center;
  color: #2f4600;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.4;
}

#popupConfirm button {
  margin: 20px 10px 0 10px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 0 12px #4b7300;
  transition: background-color 0.3s ease;
}

#btnYes {
  background: #509e00;
  color: white;
}

#btnYes:hover,
#btnYes:focus {
  background: #315300;
  outline: none;
}

#btnNo {
  background: #cc2b2b;
  color: white;
}

#btnNo:hover,
#btnNo:focus {
  background: #7a1212;
  outline: none;
}

/* Responsividade */
@media (max-width: 480px) {
  .header-oxossi h1 {
    font-size: 1.3rem;
  }

  .status-bar {
    flex-direction: column;
    gap: 10px;
    font-size: 1rem;
  }

  #targetArea {
    min-height: 260px;
  }

  .target {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}
