/* Museum-like editorial direction for the primary memorial screen. */
:root {
  --editorial-ink: #0d0f0e;
  --editorial-paper: #f2ede4;
  --editorial-muted: #a9a195;
  --editorial-bronze: #bd9d6c;
  --editorial-line: rgba(237, 227, 211, 0.16);
}

body {
  background: #090a09;
}

.app-shell {
  background: var(--editorial-ink);
}

.site-header {
  display: flex;
  height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(240, 230, 214, 0.08);
  background: linear-gradient(to bottom, rgba(7, 9, 8, 0.9), rgba(7, 9, 8, 0.22) 74%, transparent);
  backdrop-filter: blur(18px) saturate(110%);
}

.site-header .main-nav {
  display: none;
}

.site-header .icon-button:first-child {
  display: none;
}

.brand {
  gap: 10px;
}

.brand-seal {
  width: 32px;
  height: 32px;
  border-radius: 1px;
  border-color: rgba(240, 226, 204, 0.26);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), transparent 48%),
    #713f35;
  box-shadow:
    inset 0 0 0 4px rgba(28, 18, 14, 0.16),
    0 7px 20px rgba(0, 0, 0, 0.22);
  font-size: 17px;
}

.brand-name strong {
  color: var(--editorial-paper);
  font-size: 15px;
  letter-spacing: 0.24em;
}

.brand-name small {
  color: rgba(234, 224, 210, 0.4);
  font-size: 7px;
}

.header-actions {
  gap: 7px;
}

.header-actions .icon-button,
.header-actions .avatar-button {
  display: grid;
  width: 31px;
  height: 31px;
  border-color: rgba(240, 227, 207, 0.15);
  background: rgba(14, 16, 14, 0.4);
  backdrop-filter: blur(14px);
}

.scene {
  background: #0a0c0a;
}

.scene-bg {
  inset: 0;
  opacity: 1;
  background:
    linear-gradient(to bottom, rgba(5, 7, 6, 0.2), transparent 28%, transparent 72%, rgba(5, 6, 5, 0.76)),
    url("assets/memorial-hall-redesign.png") center 42% / cover no-repeat;
  filter: saturate(0.72) contrast(1.03);
  transform: scale(1.015);
}

.scene::before {
  background:
    linear-gradient(90deg, rgba(6, 8, 7, 0.58), transparent 44%),
    linear-gradient(to bottom, rgba(5, 7, 6, 0.78) 0%, rgba(5, 7, 6, 0.16) 24%, transparent 56%, rgba(5, 6, 5, 0.78) 82%, rgba(5, 6, 5, 0.98) 100%);
}

.scene::after {
  opacity: 0.26;
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, transparent 84%);
}

#dustCanvas {
  opacity: 0.32;
}

.light-shaft,
.mist,
.hall-art,
.hall > .hall-ceiling,
.hall > .hall-floor,
.hall > .back-wall,
.hall > .pillar {
  display: none;
}

.hall {
  z-index: 9;
  left: 50%;
  top: 54%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
}

.hall > .tableau {
  display: block;
  left: 0;
  top: 0;
  width: 260px;
  height: 336px;
  transform: translateX(-50%);
}

.tableau > .altar,
.tableau > .vase,
.tableau > .candle-cluster {
  display: none;
}

.frame-halo {
  top: -105px;
  width: 500px;
  height: 430px;
  opacity: 0.48;
  background: radial-gradient(ellipse, rgba(238, 210, 168, 0.17), rgba(187, 150, 96, 0.04) 48%, transparent 72%);
}

.portrait-frame {
  width: 184px;
  height: 238px;
  padding: 5px;
  border: 1px solid rgba(240, 226, 204, 0.5);
  border-radius: 92px 92px 2px 2px;
  background: rgba(213, 197, 173, 0.16);
  box-shadow:
    0 0 0 5px rgba(15, 16, 14, 0.34),
    0 30px 80px rgba(0, 0, 0, 0.44),
    0 0 70px rgba(223, 184, 119, 0.1);
  backdrop-filter: blur(8px);
}

.portrait-frame::before {
  inset: 8px;
  border: 1px solid rgba(241, 228, 207, 0.18);
  border-radius: 84px 84px 1px 1px;
}

.portrait-mat {
  padding: 5px;
  border: 0;
  border-radius: 87px 87px 1px 1px;
  background: rgba(26, 28, 24, 0.62);
}

.portrait-mat img {
  border-radius: 82px 82px 1px 1px;
  object-position: 50% 26%;
  filter: saturate(0.72) contrast(1.03) sepia(0.08);
}

.frame-ornament {
  display: none;
}

.name-plaque {
  gap: 4px;
  width: 220px;
  margin-top: 14px;
  padding: 10px 14px 9px;
  border: 1px solid rgba(240, 226, 204, 0.12);
  border-radius: 999px;
  background: rgba(12, 14, 12, 0.56);
  backdrop-filter: blur(14px);
}

.name-plaque span {
  color: var(--editorial-paper);
  font-size: 18px;
  letter-spacing: 0.3em;
}

.name-plaque small {
  color: rgba(234, 224, 210, 0.45);
  font-size: 7px;
}

.hero-copy {
  z-index: 15;
  left: 22px;
  right: 22px;
  top: 82px;
  width: auto;
  transform: none;
  text-align: left;
}

.hero-copy .eyebrow,
.hero-copy .hero-description,
.hero-copy .hero-actions,
.hero-copy .visit-summary {
  display: flex;
}

.hero-copy .hero-description {
  display: block;
}

.hero-copy .eyebrow {
  justify-content: flex-start;
  margin: 0 0 12px;
  color: rgba(236, 227, 214, 0.52);
  font-size: 8px;
}

.hero-copy .eyebrow span {
  width: 18px;
}

.hero-title-brand {
  color: var(--editorial-paper);
  font-size: 45px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-indent: 0;
  text-shadow: 0 12px 45px rgba(0, 0, 0, 0.28);
}

.hero-title-slogan {
  justify-content: flex-start;
  gap: 0.34em;
  margin-top: 10px !important;
  color: rgba(236, 224, 206, 0.66) !important;
  font-size: 11px;
  letter-spacing: 0.15em;
}

.hero-copy .hero-description {
  width: 250px;
  margin: 10px 0 0;
  color: rgba(239, 231, 220, 0.54);
  font-size: 10px;
  line-height: 1.7;
}

.hero-copy .hero-actions {
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.primary-button {
  min-height: 36px;
  gap: 18px;
  padding: 0 15px;
  border: 1px solid rgba(255, 250, 241, 0.6);
  border-radius: 999px;
  background: rgba(243, 237, 227, 0.94);
  color: #181a18;
  font-size: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.primary-button svg {
  width: 13px;
  height: 13px;
}

.text-button {
  gap: 8px;
  color: rgba(244, 237, 227, 0.72);
  font-size: 9px;
}

.play-mark {
  width: 25px;
  height: 25px;
  border-color: rgba(243, 229, 208, 0.28);
}

.hero-copy .visit-summary {
  margin-top: 13px;
}

.visitor-faces span {
  width: 22px;
  height: 22px;
  border-color: rgba(240, 227, 207, 0.18);
  background: rgba(31, 34, 30, 0.7);
  backdrop-filter: blur(10px);
}

.visit-summary p {
  color: rgba(235, 226, 212, 0.5);
  font-size: 8px;
}

.scene-meta {
  position: absolute;
  z-index: 15;
  top: 80px;
  right: 17px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(241, 231, 217, 0.4);
  font-family: Georgia, var(--font-serif);
  font-size: 7px;
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
}

.scene-meta i {
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, transparent, rgba(221, 188, 139, 0.72), transparent);
}

.scene-controls {
  top: auto;
  right: 18px;
  bottom: 166px;
}

.roam-button {
  height: 29px;
  padding: 0 10px;
  border-color: rgba(238, 224, 203, 0.14);
  background: rgba(13, 15, 13, 0.54);
  color: rgba(242, 234, 223, 0.66);
  font-size: 8px;
  backdrop-filter: blur(14px);
}

.scene-hint {
  display: none;
}

.memory-note {
  display: block;
  left: 20px;
  right: 20px;
  bottom: 88px;
  width: auto;
  height: auto;
  padding: 11px 14px;
  border: 1px solid rgba(238, 225, 205, 0.12);
  border-left: 2px solid rgba(190, 156, 105, 0.72);
  border-radius: 2px 12px 12px 2px;
  background: rgba(10, 12, 10, 0.58);
  backdrop-filter: blur(16px);
}

.memory-note::before,
.memory-note::after,
.memory-note .note-quote {
  display: none;
}

.memory-note p {
  color: rgba(242, 235, 225, 0.67);
  font-size: 10px;
  line-height: 1.65;
}

.note-sign {
  margin-top: 4px;
  color: rgba(234, 220, 200, 0.33);
  font-size: 7px;
}

.tribute-dock {
  left: 12px;
  bottom: 12px;
  width: calc(100% - 24px);
  max-width: 406px;
  height: 72px;
  padding: 7px;
  border: 1px solid rgba(238, 225, 205, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 42%),
    rgba(14, 16, 14, 0.9);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.44),
    inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(26px) saturate(125%);
  transform: none;
}

.tribute-dock::before {
  left: 20px;
  right: 20px;
  background: linear-gradient(90deg, transparent, rgba(216, 181, 127, 0.24), transparent);
}

.tribute-dock button {
  border-radius: 12px;
  color: rgba(242, 234, 222, 0.68);
  font-size: 9px;
}

.tribute-dock button + button::before {
  display: none;
}

.dock-icon {
  width: 27px;
  height: 25px;
  border-radius: 50%;
  background: rgba(236, 221, 199, 0.045);
}

.tribute-dock small {
  top: 6px;
  left: calc(50% + 11px);
  border: 0;
  background: rgba(128, 94, 55, 0.3);
}

@media (max-width: 760px) {
  .site-header {
    display: flex;
  }

  .hero-copy {
    left: 20px;
    right: 20px;
    top: 78px;
    width: auto;
    transform: none;
    text-align: left;
  }

  .hero-copy .eyebrow,
  .hero-copy .hero-description,
  .hero-copy .hero-actions,
  .hero-copy .visit-summary {
    display: flex;
  }

  .hero-copy .hero-description {
    display: block;
  }

  .hero-title-brand {
    font-size: 42px;
  }

  .hero-title-slogan {
    justify-content: flex-start;
  }

  .hall {
    top: 55%;
    transform: translate(-50%, -50%);
  }
}

@media (max-height: 760px) {
  .hero-copy .hero-description,
  .hero-copy .visit-summary {
    display: none;
  }

  .hero-copy {
    top: 74px;
  }

  .hall {
    top: 51%;
  }

  .memory-note {
    bottom: 86px;
  }
}

/* Reference-aligned minimal composition: title, memorial subject, actions. */
.site-header {
  display: none !important;
}

.hero-copy {
  left: 22px;
  right: 22px;
  top: 78px;
  width: auto;
  transform: none;
  text-align: center;
}

.hero-copy .eyebrow,
.hero-copy .hero-description,
.hero-copy .hero-actions,
.hero-copy .visit-summary {
  display: none !important;
}

.hero-title-brand {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}

.hero-title-slogan {
  justify-content: center;
  gap: 0.34em;
  margin-top: 14px !important;
  font-size: 13px;
  letter-spacing: 0.2em;
}

.scene-meta {
  display: none;
}

.hall {
  top: 55%;
  transform: translate(-50%, -50%);
}

.portrait-frame {
  width: 190px;
  height: 246px;
  border-radius: 95px 95px 2px 2px;
}

.portrait-frame::before {
  border-radius: 87px 87px 1px 1px;
}

.portrait-mat,
.portrait-mat img {
  border-radius: 90px 90px 1px 1px;
}

.name-plaque {
  border-color: transparent;
  background: rgba(9, 11, 9, 0.28);
  backdrop-filter: blur(10px);
}

.memory-note {
  display: none !important;
}

.scene-controls {
  top: 22px;
  right: 18px;
  bottom: auto;
}

.roam-button {
  padding-inline: 9px;
  border-color: rgba(241, 226, 205, 0.13);
  background: rgba(9, 11, 9, 0.34);
}

.scene-hint {
  display: none;
}

.tribute-dock {
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  height: calc(76px + env(safe-area-inset-bottom));
  padding: 8px 12px env(safe-area-inset-bottom);
  border: 0;
  border-top: 1px solid rgba(235, 222, 202, 0.12);
  border-radius: 0;
  background:
    linear-gradient(to top, rgba(8, 10, 8, 0.98), rgba(9, 11, 9, 0.8)),
    rgba(9, 11, 9, 0.82);
  box-shadow: 0 -22px 55px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(24px) saturate(112%);
  transform: none;
}

.tribute-dock::before {
  left: 12%;
  right: 12%;
  background: linear-gradient(90deg, transparent, rgba(213, 181, 133, 0.16), transparent);
}

.tribute-dock button {
  gap: 3px;
  border-radius: 8px;
  color: rgba(243, 235, 223, 0.7);
  font-size: 9px;
}

.tribute-dock button:hover {
  background: rgba(231, 214, 190, 0.045);
}

.dock-icon {
  background: transparent;
}

.tribute-dock small {
  top: 5px;
  left: calc(50% + 10px);
  background: rgba(123, 86, 50, 0.26);
}

@media (max-width: 760px) {
  .site-header {
    display: none !important;
  }

  .hero-copy {
    left: 20px;
    right: 20px;
    top: 74px;
    width: auto;
    transform: none;
    text-align: center;
  }

  .hero-copy .eyebrow,
  .hero-copy .hero-description,
  .hero-copy .hero-actions,
  .hero-copy .visit-summary {
    display: none !important;
  }

  .hero-title-brand {
    font-size: 49px;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .hero-title-slogan {
    justify-content: center;
    font-size: 12px;
  }

  .hall {
    top: 55%;
    transform: translate(-50%, -50%);
  }
}

@media (max-height: 760px) {
  .hero-copy {
    top: 62px;
  }

  .hall {
    top: 52%;
  }
}

@media (min-height: 761px) {
  .hero-copy {
    top: 96px;
  }
}
