


body {
  background: #1A0E06;
  font-family: Georgia, 'Times New Roman', serif;
}

/* ── STAGES ── */
/* Each stage is full-screen, absolutely stacked */
.stage {
  position: fixed;
  inset: 0;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  pointer-events: none;
}

.stage.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Stage 1 — closed door */
#stage-closed {
  background-image: url('../../images/dmmli-exterior-door-closed.jpg');
  background-color: #1A0E06;
}

/* Stage 3 — foyer */
#stage-foyer {
  background-image: url('../../images/dmmli-foyer-interior.jpg');
  min-height: 500px;
}

/* ── VIGNETTE (all stages) ── */
.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,6,2,0.55) 0%,
    rgba(10,6,2,0.0) 18%,
    rgba(10,6,2,0.0) 78%,
    rgba(10,6,2,0.60) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── HEADER ── */
header {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 30px 12px 0;
}

.site-name {
  font-variant: small-caps;
  letter-spacing: 0.18em;
  font-size: clamp(13px, 3.5vw, 20px);
  font-weight: bold;
  color: #E8D5A8;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  white-space: nowrap;
}

.site-name a {
  text-decoration: none;
  color: #E8D5A8;
}
/* ── Index page hero title ── */
.stage .site-name,
#stage-closed .site-name {
  font-variant: small-caps;
  letter-spacing: 0.28em;
  font-size: clamp(15px, 4vw, 22px) !important;
  text-align: center !important;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0,0,0,0.85);
  width: 100%;
  display: block;
}


/* ── ENTER BUTTON ── */
.enter-wrap {
  position: absolute;
  left: 50%;
  top: 63%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
}

.enter {
  display: inline-block;
  font-variant: small-caps;
  font-weight: bold;
  letter-spacing: 0.3em;
  font-size: clamp(17px, 4.5vw, 22px);
  color: #F5E8C8;
  text-decoration: none;
  padding: 12px 30px 12px 34px;
  border: 1px solid rgba(232, 213, 168, 0.85);
  border-radius: 2px;
  background: rgba(20, 12, 5, 0.42);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  animation: glow 3s ease-in-out infinite;
  transition: background 0.25s, border-color 0.25s;
  cursor: pointer;
}

.enter:hover, .enter:focus {
  background: rgba(46, 74, 52, 0.55);
  border-color: #E8D5A8;
  outline: none;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 6px rgba(232,213,168,0.25); }
  50%       { box-shadow: 0 0 18px rgba(232,213,168,0.55); }
}

/* ── FOOTER ── */
footer {
  position: relative;
  margin-top: auto;
  text-align: center;
  padding: 0 14px 20px;
}

.motto {
  font-style: italic;
  font-size: clamp(14px, 4vw, 18px);
  color: #E8D5A8;
  text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

.org {
  margin-top: 6px;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  font-size: clamp(10px, 2.8vw, 12px);
  color: #C9B892;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ── HAMBURGER BUTTON ── */
.hamburger {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 200;
  width: 44px;
  height: 44px;
  background: rgba(26, 14, 6, 0.82);
  border: 1px solid rgba(200,169,110,0.4);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  transition: background 0.2s, border-color 0.2s;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease, background 0.2s, border-color 0.2s;
}

.hamburger.visible {
  opacity: 1;
  pointer-events: auto;
}

.hamburger:hover, .hamburger:focus {
  background: rgba(26, 14, 6, 0.96);
  border-color: #C8A96E;
  outline: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #C8A96E;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── NAV PANEL ── */
.nav-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  height: 100dvh;
  background: rgba(26, 14, 6, 0.96);
  border-left: 1px solid rgba(200,169,110,0.25);
  z-index: 199;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 72px 0 24px;
}

.nav-panel.open { right: 0; }

.nav-panel-title {
  font-variant: small-caps;
  letter-spacing: 0.25em;
  font-size: 11px;
  color: #C8A96E;
  opacity: 0.5;
  padding: 0 24px;
}

.nav-divider {
  height: 1px;
  background: rgba(200,169,110,0.15);
  margin: 8px 24px;
}

.nav-section {
  font-variant: small-caps;
  letter-spacing: 0.2em;
  font-size: 9px;
  color: #C8A96E;
  opacity: 0.4;
  padding: 12px 24px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 3px 24px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover, .nav-item:focus {
  background: rgba(200,169,110,0.08);
  outline: none;
}

.nav-number {
  font-variant: small-caps;
  font-size: 10px;
  color: #C8A96E;
  opacity: 0.45;
  width: 14px;
  flex-shrink: 0;
  text-align: right;
}

.nav-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-label {
  font-variant: small-caps;
  letter-spacing: 0.15em;
  font-size: clamp(13px, 3.5vw, 15px);
  color: #E8D5A8;
}

.nav-item.exit .nav-label { color: #C0544A; }
.nav-item.exit .nav-icon img { filter: none; }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 198;
  background: rgba(0,0,0,0.3);
}

.nav-overlay.open { display: block; }

@media (prefers-reduced-motion: reduce) {
  .enter { animation: none; }
  .stage, #foyer-nav, .hamburger { transition: none; }
}

.hero-img {
  width: 100%;
}
/* 1. Set the body to full screen height and use flex column layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Make the main content area to fill all remaining empty space */
main {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Style the footer custom element inside your component */
main-footer footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
}
/* only show break on small screens */
@media (min-width: 768px) {
  .desktop-only {
    display: none;
  }
}
#index-main {
    /* Set up a smooth 1-second transition for the background */
    transition: background-image 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

/* floor-plan page */
.svg-container { width: 100%; max-width: 680px; }
svg { width: 100%; height: auto; display: block; }

.room-hit { cursor: pointer; fill: transparent; }
.room-hit:hover { fill: rgba(200,180,130,0.12); }
.room-hit.hidden-hit { cursor: default; }
.room-hit.hidden-hit:hover { fill: transparent; }

.map-gap { height: 8px; }

.controls {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}
.sound-btn {
  background: none;
  border: 1px solid #E8D5A8;
  color: #E8D5A8;
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 6px 18px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  border-radius: 2px;
}
.sound-btn:hover, .sound-btn.on {
  border-color: #C8A96E;
  color: #C8A96E;
}
.back-home {
  margin-top: 32px;
  margin-bottom: 32px;
  font-size: 14px;
  font-style: italic;
}
.back-home a {
  color: #E8D5A8;
  text-decoration: none;
  border-bottom: 1px dotted #E8D5A8;
}
.back-home a:hover {
  color: #C8A96E;
  border-color: #C8A96E;
}
/* Style the overlay container */
#floor-plan-overlay {
  display: flex;
    flex: 1;
    position: relative;
    background-color: rgba(0, 0, 0, 0.1); /* Semitransparent black tint */
    opacity: 0; /* Hidden by default */
    pointer-events: none; /* Prevents clicking on items inside it while hidden */
    transition: opacity 1.5s ease-in-out; /* Smooth 1.5-second fade-in */
    overflow-y: scroll;
}


/* This class will be added by JavaScript after 4 seconds */
#floor-plan-overlay.visible {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  height: auto;
}

#floor-plan-contents {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  padding: 100px 0px;
  box-sizing: border-box;
}
.title-block {
  text-align: center;
  margin-bottom: 6px;
}
.title-block p {
  font-size: clamp(11px, 3vw, 14px);
  color: #E8D5A8;
  font-style: italic;
  letter-spacing: 0.14em;
}
.map-div {
  font-family: Georgia, 'Times New Roman', serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-user-select: none;
  opacity: 0.7;
}
body.embedded {
  padding: 0;
  background: transparent;
  justify-content: center;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  margin-top: 25px;
  padding: 26px 18px 34px;
  background: #F2EBD5;
  box-sizing: border-box;
}

.back-floor-plan {
  margin-top: 32px;
  margin-bottom: 32px;
  font-size: clamp(14px, 4vw, 16px);
  font-style: italic;
  text-align: center;
}
.back-floor-plan a {
  color: #5c4a30;
  text-decoration: none;
  border-bottom: 1px dotted #8B7355;
  padding-bottom: 1px;
}
.back-floor-plan a:hover {
  color: #3e210e;
  border-color: #3e210e;
}

h1 {
  font-variant: small-caps;
  font-weight: bold;
  letter-spacing: 0.14em;
  font-size: clamp(26px, 7vw, 36px);
  color: #2A1808;
  margin-bottom: 6px;
}

h2 {
  font-variant: small-caps;
  font-weight: bold;
  letter-spacing: 0.10em;
  color: #2A1808;
  margin-bottom: 16px;
}
.subtitle {
  font-style: italic;
  color: #8B7355;
  font-size: clamp(14px, 4vw, 17px);
  margin-bottom: 18px;
}
.lede {
  font-size: clamp(16px, 4.4vw, 19px);
  line-height: 1.6;
  color: #40301C;
  margin-bottom: 30px;
}

/* dungeon stuff */
.dungeon-content {
  background: #060302;
  color: #C8A96E;
  font-family: Georgia, 'Times New Roman', serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  margin-top: 25px;
  padding: 26px 18px 34px;
  box-sizing: border-box;
}

.dungeon-content h1 {
  color: #C8A96E;
  font-variant: small-caps;
  font-weight: normal;
  letter-spacing: 0.5em;
  font-size: clamp(19px, 5.5vw, 26px);
  margin-top: 30px;
  margin-bottom: 26px;
  text-indent: 0.5em; /* balances letter-spacing */
  opacity: 0;
  animation: emerge 2.4s ease-out 0.4s forwards;
}

.dungeon-content p {
  color: #C8A96E;
  font-style: italic;
  font-size: clamp(14px, 4vw, 17px);
  color: #7A6040;
  line-height: 1.8;
  max-width: 420px;
  opacity: 0;
  animation: emerge 2.4s ease-out 1.4s forwards;
}
@keyframes emerge {
  to { opacity: 1; }
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  color: #C8A96E;
  font-size: 11px;
  animation: pulse 3.2s ease-in-out infinite;
}

.star:nth-child(1) { top: 12%; left: 18%; animation-delay: 0s; }
.star:nth-child(2) { top: 22%; left: 74%; animation-delay: 1.1s; font-size: 8px; }
.star:nth-child(3) { top: 66%; left: 12%; animation-delay: 2.0s; font-size: 9px; }
.star:nth-child(4) { top: 78%; left: 82%; animation-delay: 0.6s; }
.star:nth-child(5) { top: 40%; left: 90%; animation-delay: 1.7s; font-size: 7px; }
.star:nth-child(6) { top: 85%; left: 42%; animation-delay: 2.6s; font-size: 8px; }

@keyframes pulse {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.8; }
}

/* Container sizing */
.accordion-container {
    max-width: 680px;
    margin: 0;
}

/* Base accordion row styling */
details {
    background-color: #ede4c4;
    border: 1px solid #2A1808;
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: background-color 0.2s ease;
}
.accordion-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.75rem 0;
}

/* Highlights the row when open */
details[open] {
    background-color: #f2ebd5;
    border-color: #2A1808;
}

/* The clickable question header */
summary {
    padding: 16px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    user-select: none;
}

summary:hover {
    background-color: #ede4c4;
}

/* The hidden content wrapper */
.accordion-content {
    padding: 0 16px 16px 16px;
    border-top: 1px solid #eee;
    color: #2A1808;
    line-height: 1.6;
}

/* Audio samples */
.audio-item { margin-bottom: 16px; }

.audio-label {
  font-size: clamp(14px, 4vw, 16px);
  color: #40301C;
  margin-bottom: 5px;
}

.audio-item audio { width: 100%; }

/* H5P responsive placeholder
   This div holds the H5P iframe when content lands.
   Width is fluid; height is set by h5p-resizer.js at runtime,
   so we deliberately avoid any fixed aspect ratio here.
   (Fixed-ratio sizing is what made drag-and-drop unusable on mobile.) */
.h5p-wrap {
  width: 100%;
  max-width: 100%;
  background: repeating-linear-gradient(45deg, #E2DAC2, #E2DAC2 14px, #DAD2BA 14px, #DAD2BA 28px);
  border: 1px solid #C4B896;
  border-radius: 3px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h5p-wrap span {
  font-style: italic;
  color: #8B7355;
  font-size: clamp(13px, 3.6vw, 16px);
  text-align: center;
  padding: 12px;
}

/* When live, the H5P iframe fills the wrapper width and
   h5p-resizer.js manages its height:
   .h5p-wrap iframe { width: 100%; border: 0; display: block; } */

.return {
  display: inline-block;
  margin-top: 30px;
  font-style: italic;
  font-size: clamp(14px, 4vw, 16px);
  color: #5C4A30;
  text-decoration: none;
  border-bottom: 1px dotted #8B7355;
  padding-bottom: 1px;
}

.return:hover { color: #1A0E06; border-color: #1A0E06; }




/* 360 stuff */
.three-content {
  margin: 0; padding: 0; overflow: hidden;
  background: #0d0905; color: #efe2cc;
  font-family: 'Georgia', 'Times New Roman', serif;
  height: 100%; width: 100%;
  margin-top: 25px;
}
canvas { display: block; touch-action: none; }
.label {
  position: fixed;
  left: 20px;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(239, 226, 204, 0.45);
  z-index: 10; pointer-events: none;
  font-family: 'Helvetica Neue', sans-serif;
}
.label .room {
  display: block;
  font-size: 14px;
  letter-spacing: 4px;
  color: rgba(239, 226, 204, 0.65);
  margin-bottom: 4px;
  font-family: 'Georgia', serif;
  font-style: italic;
  text-transform: none;
}
.hint {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: rgba(239, 226, 204, 0.75);
  font-size: 13px; letter-spacing: 0.4px;
  background: rgba(20, 14, 8, 0.55);
  padding: 9px 18px; border-radius: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(239, 226, 204, 0.08);
  pointer-events: none;
  transition: opacity 1.8s ease-out;
  z-index: 10;
  font-family: 'Helvetica Neue', sans-serif;
}
.hint.faded { opacity: 0; }
.compass {
  position: fixed;
  right: 20px;
  width: 40px; height: 40px;
  z-index: 10; pointer-events: none;
  opacity: 0.4;
}
.compass svg { width: 100%; height: 100%; }

.img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: repeating-linear-gradient(45deg, #E2DAC2, #E2DAC2 14px, #DAD2BA 14px, #DAD2BA 28px);
  border: 1px solid #C4B896;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.img-placeholder span {
  font-style: italic;
  color: #8B7355;
  font-size: clamp(13px, 3.6vw, 16px);
  letter-spacing: 0.08em;
}

/* ── HOUSE UPDATES ── */

.update-date {
  font-variant: small-caps;
  letter-spacing: 0.18em;
  font-size: clamp(13px, 3.5vw, 15px);
  color: #8B7355;
  margin-bottom: 4px;
  margin-top: 32px;
}

.update-title {
  font-variant: small-caps;
  font-weight: bold;
  letter-spacing: 0.10em;
  font-size: clamp(18px, 4.5vw, 22px);
  color: #2A1808;
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1.25;
}