.dungeon-room {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #000;
}

.dungeon-title {
  position: absolute;
  top: 3%;
  font-size: 4rem;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 100, 0, 0.8);
  font-family: 'BlackCastle', serif;
  margin: 0;
  text-align: center;
  z-index: 10;
}

.shields-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 90vw;
  position: relative;
  z-index: 5;
}

.shield {
  width: 150px;
  height: 180px;
  background: linear-gradient(135deg, #c0a080 0%, #8b7355 50%, #5a4a3a 100%);
  border: 4px solid #3d2817;
  border-radius: 15px 15px 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  position: relative;
  overflow: hidden;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -2px 5px rgba(0,0,0,0.5),
    0 4px 8px rgba(0,0,0,0.4);
  font-family: 'BlackCastle', serif;
}

.shield::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  border-radius: 15px 15px 0 0;
  z-index: 1;
}

.shield::after {
  content: attr(data-shield-id);
  position: relative;
  z-index: 2;
}

.shield:hover {
  background: linear-gradient(135deg, #d4b896 0%, #a8956a 50%, #6b5a45 100%);
  border-color: #ffd700;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -2px 5px rgba(0,0,0,0.6),
    0 0 25px rgba(255, 215, 0, 0.6),
    0 4px 12px rgba(0,0,0,0.5);
  transform: translateY(-3px) scale(1.05);
}

.shield.hidden {
  display: none;
}

body.shields-hidden .shield {
  display: none;
}

.admin-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 10px 20px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: 2px solid #ffd700;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'BlackCastle', serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-toggle:hover {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
}

/* Grid overlay for debugging */
body.show-grid .dungeon-room::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 5% 5%;
  z-index: 1000;
}
