#stage {
  display: block;
  width: min(900px, 100%);
  height: auto;
  margin-top: 30px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 4px 22px rgba(0, 0, 0, .4), 0 12px 34px rgba(0, 0, 0, .3);
}
#stage.hurt { animation: hurt .45s ease; }
@keyframes hurt { 40% { filter: drop-shadow(0 0 24px rgba(255, 60, 90, .7)); } }

#weapons {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  min-height: 74px;
}

.weapon {
  width: 74px; height: 74px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
}
.weapon.locked { border-style: dashed; }
.weapon .glyph { font-size: 1.6rem; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.weapon.locked .glyph { color: rgba(255,255,255,.2); font-size: 1.3rem; }
.weapon .sub {
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.75);
  margin-top: -8px;
}

/* ---- roguelike upgrade picker ---- */

#upgradeModal {
  position: fixed; inset: 0;
  display: none;
  place-items: center;
  background: rgba(6, 7, 18, .65);
  backdrop-filter: blur(6px);
  z-index: 110;
}
#upgradeModal.show { display: grid; }

#choices { display: flex; gap: 16px; margin-top: 24px; }

.choice {
  width: 160px;
  padding: 20px 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  border: 1px solid rgba(255, 255, 255, .18);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.choice:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, .7);
  box-shadow: 0 12px 30px rgba(139, 92, 246, .25);
}
.choice .big { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: #f9ca24; }
.choice .small { font-size: .78rem; line-height: 1.4; color: #b4b9e8; }
