.dungeon-room {
  position: relative;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  padding: 72px min(6vw, 72px) 96px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.02), transparent 35%),
              radial-gradient(circle at 80% 10%, rgba(255,255,255,0.015), transparent 40%),
              rgba(11, 8, 24, 0.9);
  backdrop-filter: blur(4px);
  color: #e8e5f5;
}

.dungeon-title {
  margin: 0;
  font-family: 'BlackCastle', serif;
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  letter-spacing: 0.05em;
  color: #f7d16c;
  text-shadow: 0 0 24px rgba(247, 209, 108, 0.35);
}

.intro .lede {
  margin: 12px 0 0;
  max-width: 720px;
  color: #cfd3e9;
  line-height: 1.5;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.gallery-item {
  background: rgba(14, 11, 28, 0.85);
  border: 1px solid rgba(247, 209, 108, 0.25);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #0b0818;
}

.gallery-item figcaption {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.caption-title {
  margin: 0;
  font-weight: 700;
  color: #f7d16c;
  letter-spacing: 0.02em;
}

.caption-body {
  margin: 0;
  color: #d7d9eb;
  line-height: 1.45;
  font-size: 0.98rem;
}

.back-link {
  align-self: flex-start;
  margin-top: 8px;
  color: #0a0e27;
  background: #d4af37;
  border: 2px solid #d4af37;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.back-link:hover,
.back-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  outline: none;
}

html, body {
  height: 100%;
  margin: 0;
  background-color: #0b0818;
  color: #e8e5f5;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
  opacity: 0;
  transition: opacity 0.6s ease-in;
}

body.loaded {
  opacity: 1;
}
