/* DUNGEON ROOM BACKGROUND */
.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 */
.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 GRID CONTAINER */
.shields-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 90vw;
  position: relative;
  z-index: 5;
}

/* DYNAMIC PRODUCT SHIELDS - generated by generate-shields.js */
.door {
  width: 200px !important;
  height: 280px !important;
  background-image: url('Shield001/shield001.png?v=6');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.door:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* STATIC SHIELDS - for dungeon001 hardcoded shields */
.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 shine/highlight */
.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 inner content (the number) */
.shield::after {
  content: attr(data-shield-id);
  position: relative;
  z-index: 2;
}

/* Shield hover effect */
.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 state */
.shield.hidden {
  display: none;
}

/* Hide all shields when admin toggles off */
body.shields-hidden .shield {
  display: none;
}

/* ADMIN TOGGLE BUTTON */
.admin-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 10px 20px;
  border: 2px solid rgba(255, 100, 0, 0.8);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-family: Arial, sans-serif;
}

.admin-toggle:hover {
  box-shadow: 0 0 20px rgba(255, 100, 0, 0.8);
  transform: scale(1.05);
}

/* BACK LINK */
.back-link {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  font-size: 1.5rem;
  color: #3f1174;
  text-decoration: none;
  border: 2px solid #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 10;
}

.back-link:hover {
  transform: scale(1.1);
  text-shadow: 0 0 10px #73c1c0;
}
