/* ===== GLOBAL LAYOUT ===== */

body {
  margin: 0;
  padding: 0;
  overflow: hidden;

  /* 🔁 Replace #222 with your background image */
  background: url("assets/bg.png") no-repeat center center fixed;
  background-size: cover;
}

svg {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: block;
}

/* Optional bottom helper text (if you still use <span>) */
span {
  color: #fff;
  font-family: sans-serif;
  opacity: 0.5;
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
}

/* ===== HOW TO PLAY OVERLAY ===== */

/* ===== HOW TO PLAY OVERLAY ===== */

#instructions {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: #fff;
  font-family: sans-serif;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  backdrop-filter: blur(4px);
}

#instructions .instructions-inner {
  padding: 28px 32px;
  background: radial-gradient(circle at top, #444 0%, #222 60%, #000 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 12px rgba(0, 0, 0, 0.9),
    0 0 22px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(0, 0, 0, 0.9);
}

#instructions .instructions-inner h1 {
  font-size: 32px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow:
    0 0 4px #000,
    0 0 10px #000,
    0 0 18px #000;
}

#instructions .instructions-inner h1::before {
  content: "🎯";
  font-size: 30px;
}

#instructions .instructions-inner p {
  margin: 6px 0;
  font-size: 16px;
  opacity: 0.92;
  text-shadow:
    0 0 4px #000,
    0 0 10px #000;
}

#instructions .tap-to-play {
  margin-top: 14px;
  font-size: 14px;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffcc00;
  text-shadow:
    0 0 3px #000,
    0 0 12px #ffcc00;
  animation: pulseTap 1.3s infinite alternate;
}

@keyframes pulseTap {
  0% {
    opacity: 0.5;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1.03);
  }
}


/* ===== HUD (ARROWS + BULLSEYES) ===== */

/* ===== HUD (ARROWS + BULLSEYES) ===== */

#hud {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 12px;
  font-family: sans-serif;
  font-size: 14px;
}

.hud-pill {
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(0, 0, 0, 0.9);
}

/* ===== END SCREEN (WIN / LOSE) ===== */

#end-screen {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  color: #fff;
  font-family: sans-serif;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

#end-screen .end-inner {
  padding: 18px 24px;
  border-radius: 16px;
  background: radial-gradient(circle at top, #444 0, #111 60%, #000 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 12px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(0, 0, 0, 0.9);
}

#end-screen .end-inner h1 {
  font-size: 32px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow:
    0 0 4px #000,
    0 0 10px #000,
    0 0 18px #000;
}

#end-screen .end-inner p {
  margin: 4px 0;
  font-size: 16px;
}

#end-screen .tap-to-restart {
  margin-top: 10px;
  opacity: 0.85;
  font-size: 14px;
}

.end-buttons {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.end-button {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(135deg, #ffb300, #ff6f00);
  color: #000;
  box-shadow:
    0 0 6px rgba(0, 0, 0, 0.6),
    0 0 10px rgba(0, 0, 0, 0.9);
}

.end-button:active {
  transform: scale(0.96);
}



/* ===== PORTRAIT → FAKE LANDSCAPE ===== */

@media screen and (orientation: portrait) {
  body {
    transform: rotate(90deg);
    transform-origin: center center;
    width: 100vh;
    height: 100vw;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
  }
}
