/* ─── Elevation 1: Architectural Pantheon Hall + Museum-Framed Steles & Clean Stone Wing Cards ─── */
.gallery-hall {
  width: 100%;
  min-height: calc(100vh - 3.45rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: clip;
  position: relative;
}

.gallery-hero {
  max-width: 54rem;
  margin: 0 auto;
  padding: 0.92rem 1.5rem 0.36rem;
  text-align: center;
  position: relative;
  z-index: 3;
}

.gallery-kicker {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-gold);
}

.gallery-title {
  margin: 0.28rem 0 0;
  font-family: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  font-size: clamp(1.72rem, 2.3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.14;
  color: var(--foreground);
}

.gallery-sub {
  margin: 0.34rem 0 0;
  font-size: 0.81rem;
  line-height: 1.52;
  color: var(--muted-foreground);
}

/* Open Rotunda Stage: Alpha Edge Fade, Concave Wall */
.rotunda-stage {
  position: relative;
  width: 100%;
  height: clamp(32.5rem, 62vh, 44rem);
  overflow: visible;
  user-select: none;
  cursor: grab;
  touch-action: pan-y;
}
.rotunda-stage.is-dragging { cursor: grabbing; }

.rotunda-arch-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.3;
}

.rotunda-cards-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 1450px;
  perspective-origin: 50% 48%;
  z-index: 5;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}

.rotunda-hint {
  position: absolute;
  left: 50%;
  bottom: 0.3rem;
  transform: translateX(-50%);
  z-index: 65;
  pointer-events: none;
  font-size: 0.71rem;
  letter-spacing: 0.09em;
  color: var(--muted-foreground);
  opacity: 0.8;
  white-space: nowrap;
}

/* Sculpted Museum Stele Plaque */
.rotunda-alcove.master-plate {
  position: absolute;
  left: 50%;
  top: 49%;
  width: clamp(16.4rem, 18.6vw, 20.2rem);
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0.72rem 0.82rem 0.76rem;
  border-radius: 5px;
  border: 1px solid rgba(212, 175, 106, 0.22);
  background: linear-gradient(180deg, rgba(28, 24, 20, 0.94) 0%, rgba(19, 16, 13, 0.97) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 240, 200, 0.08);
  transform-origin: center center;
  will-change: transform, opacity;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.rotunda-alcove.master-plate::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(230, 200, 138, 0.55), transparent);
}
[data-theme="light"] .rotunda-alcove.master-plate {
  border-color: rgba(122, 88, 36, 0.4);
  background: linear-gradient(180deg, #FFFDF7 0%, #F9F3E5 100%);
  box-shadow: 0 16px 34px rgba(72, 50, 20, 0.2), 0 2px 5px rgba(72, 50, 20, 0.1), inset 0 1px 0 #FFFFFF;
}
.rotunda-alcove.is-center {
  border-color: rgba(212, 175, 106, 0.76);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 240, 200, 0.24);
}
[data-theme="light"] .rotunda-alcove.is-center {
  border-color: rgba(138, 98, 32, 0.82);
  box-shadow: 0 22px 46px rgba(72, 50, 20, 0.26), 0 3px 7px rgba(72, 50, 20, 0.12), inset 0 1px 0 #FFFFFF;
}
.rotunda-alcove.master-plate:hover { border-color: rgba(230, 200, 138, 0.86); }
[data-theme="light"] .rotunda-alcove.master-plate:hover { border-color: rgba(120, 84, 24, 0.92); }

/* Single Central Oculus Skylight: wide feathered shaft beneath arches and steles */
.rotunda-skylight-beam {
  position: absolute;
  inset: -18% 0 -6%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 13% 46% at 50% 24%, rgba(255, 228, 170, 0.2) 0%, rgba(244, 200, 124, 0.07) 55%, transparent 100%),
    conic-gradient(from 154deg at 50% -4%, transparent 0deg, rgba(236, 188, 108, 0.04) 10deg, rgba(236, 188, 108, 0.1) 26deg, rgba(236, 188, 108, 0.04) 42deg, transparent 52deg, transparent 360deg),
    radial-gradient(ellipse 40% 44% at 50% 34%, rgba(214, 160, 82, 0.09) 0%, rgba(196, 142, 68, 0.03) 58%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.78) 46%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.78) 46%, transparent 100%);
}
[data-theme="light"] .rotunda-skylight-beam {
  background:
    radial-gradient(ellipse 13% 46% at 50% 24%, rgba(255, 253, 244, 0.66) 0%, rgba(255, 245, 220, 0.24) 55%, transparent 100%),
    conic-gradient(from 154deg at 50% -4%, transparent 0deg, rgba(255, 242, 210, 0.12) 10deg, rgba(255, 242, 210, 0.32) 26deg, rgba(255, 242, 210, 0.12) 42deg, transparent 52deg, transparent 360deg),
    radial-gradient(ellipse 40% 44% at 50% 34%, rgba(255, 238, 200, 0.28) 0%, rgba(250, 228, 184, 0.1) 58%, transparent 100%);
}

.plate-head {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.48rem;
  padding-bottom: 0.36rem;
  border-bottom: 1px solid rgba(212, 175, 106, 0.2);
}
.plate-roman {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-gold-bright);
  flex-shrink: 0;
}
.plate-task-title {
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.12;
  color: var(--foreground);
}

/* Multi-Layer Museum Picture Frame + Recessed Passe-Partout Mat */
.museum-frame {
  position: relative;
  padding: 0.32rem;
  border-radius: 3px;
  border: 1px solid rgba(212, 175, 106, 0.46);
  background: linear-gradient(145deg, #514026 0%, #241D14 52%, #3D2F1B 100%);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.32), inset 0 -1px 0 rgba(0, 0, 0, 0.65), 0 8px 18px rgba(0, 0, 0, 0.45);
}
[data-theme="light"] .museum-frame {
  border-color: rgba(132, 98, 44, 0.56);
  background: linear-gradient(145deg, #D9C396 0%, #9E7E46 54%, #C2A46C 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 6px 14px rgba(48, 34, 16, 0.18);
}
.museum-mat {
  padding: 0.34rem;
  border-radius: 2px;
  background: linear-gradient(160deg, #27221B 0%, #1C1813 100%);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.72), inset 0 0 0 1px rgba(212, 175, 106, 0.14);
}
[data-theme="light"] .museum-mat {
  background: linear-gradient(160deg, #F6EFE1 0%, #E9DEC7 100%);
  box-shadow: inset 0 2px 5px rgba(72, 52, 24, 0.22), inset 0 0 0 1px rgba(132, 98, 44, 0.2);
}
.museum-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 2.72;
  overflow: hidden;
  border-radius: 1px;
  background: #14110E;
  box-shadow: 0 0 0 1px rgba(212, 175, 106, 0.24), inset 0 2px 8px rgba(0, 0, 0, 0.65);
}
.museum-painting {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.rotunda-alcove.is-center:hover .museum-painting { transform: scale(1.03); }
.museum-canvas-glaze { position: absolute; inset: 0; pointer-events: none; }

/* Engraved Brass Nameplate Below Frame */
.museum-plaque {
  margin-top: 0.48rem;
  padding: 0.42rem 0.5rem 0.44rem;
  border-radius: 3px;
  border: 1px solid rgba(212, 175, 106, 0.24);
  background: linear-gradient(180deg, rgba(212, 175, 106, 0.08) 0%, rgba(212, 175, 106, 0.02) 100%);
}
[data-theme="light"] .museum-plaque { border-color: rgba(132, 98, 44, 0.26); background: linear-gradient(180deg, rgba(168, 132, 68, 0.1) 0%, rgba(168, 132, 68, 0.03) 100%); }
.placard-name-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.4rem; }
.placard-name { margin: 0; font-family: "Cormorant Garamond", "Noto Serif SC", Georgia, serif; font-size: 0.98rem; font-weight: 700; line-height: 1.15; color: var(--foreground); }
.placard-era { font-family: "Cinzel", Georgia, serif; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent-gold); white-space: nowrap; }
.placard-bio { margin: 0.26rem 0 0; font-size: 0.68rem; line-height: 1.44; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Inlaid Pedestal Top-3 AI Nameplates */
.plate-models-showcase {
  margin-top: 0.48rem;
  padding: 0.44rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 106, 0.22);
  background: rgba(12, 10, 8, 0.5);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
}
[data-theme="light"] .plate-models-showcase { background: rgba(132, 98, 44, 0.065); border-color: rgba(132, 98, 44, 0.24); box-shadow: inset 0 1px 4px rgba(72, 52, 24, 0.1); }
.showcase-label { font-family: "Cinzel", Georgia, serif; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; color: var(--accent-gold); padding-bottom: 0.12rem; border-bottom: 1px dashed rgba(212, 175, 106, 0.22); }
.showcase-row { display: flex; align-items: center; gap: 0.36rem; min-width: 0; }
.showcase-rank { width: 0.88rem; font-family: "Cinzel", Georgia, serif; font-size: 0.69rem; font-weight: 700; text-align: center; color: var(--muted-foreground); flex-shrink: 0; }
.showcase-row[data-rank="1"] .showcase-rank { color: var(--accent-gold-bright); }
.showcase-icon { width: 1.34rem; height: 1.34rem; border-radius: 4px; border: 1px solid var(--card-border); background: var(--background); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.showcase-name { flex: 1; min-width: 0; font-size: 0.74rem; font-weight: 600; line-height: 1.2; color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase-name span + span { margin-left: 0.28em; }

/* Creative Sanctuaries Section (card and engine-plate skins live in creative-wings.css) */
.wings-section { max-width: min(95vw, 104rem); width: 100%; margin: 0.9rem auto 0; padding: 0.85rem 1.8rem 1.45rem; border-top: 1px solid var(--card-border); position: relative; z-index: 3; }
.wings-header-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.65rem; }
.wings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.wing-card .plate-head { justify-content: space-between; margin-bottom: 0.04rem; padding-bottom: 0.34rem; }
.wing-head-left { display: flex; align-items: baseline; gap: 0.45rem; }
.wing-title { margin: 0; font-family: "Cormorant Garamond", "Noto Serif SC", Georgia, serif; font-size: 1.14rem; font-weight: 700; color: var(--foreground); }
.wing-desc { margin: 0; font-size: 0.71rem; line-height: 1.44; color: var(--muted-foreground); }
.wing-engine-tag { font-size: 0.62rem; font-weight: 600; color: var(--accent-gold); white-space: nowrap; flex-shrink: 0; }

@media (max-width: 960px) {
  .rotunda-stage { height: clamp(29.5rem, 62vh, 34rem); }
  .wings-section { padding: 0.75rem 1rem 1.3rem; }
  .wings-grid { grid-template-columns: 1fr; }
}
