:root {
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --ink: #15130f;
  --ink-deep: #090907;
  --ink-soft: #27231d;
  --warm-black: #100f0d;
  --paper: #f0e8dc;
  --paper-dim: #d5c8b7;
  --muted: #a89a87;
  --gold: #c9a76b;
  --gold-soft: #e3c58d;
  --gold-deep: #8f7042;
  --cinnabar: #a44e3b;
  --cinnabar-light: #c66a50;
  --sage: #829181;
  --line: rgba(224, 206, 177, 0.13);
  --glass: rgba(24, 22, 18, 0.76);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink-deep);
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 72% 28%, rgba(104, 82, 50, 0.14), transparent 30%),
    #0b0b09;
  color: var(--paper);
  font-family: var(--font-sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  touch-action: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--gold-soft);
  outline-offset: 3px;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.12;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.app-shell {
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
}

.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 0 clamp(22px, 5vw, 72px);
  background: linear-gradient(to bottom, rgba(10, 10, 8, 0.76), transparent);
}

.brand {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #f5e7d4;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%),
    var(--cinnabar);
  border: 1px solid rgba(255, 231, 204, 0.2);
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 21px;
  box-shadow: 0 8px 25px rgba(112, 48, 34, 0.22);
  position: relative;
}

.brand-seal::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 242, 225, 0.25);
  border-radius: 2px;
}

.brand-name {
  display: grid;
  gap: 1px;
}

.brand-name strong {
  color: #f2e9dc;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.brand-name small {
  color: rgba(225, 211, 190, 0.48);
  font-family: var(--font-serif);
  font-size: 9px;
  letter-spacing: 0.38em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 100%;
}

.nav-link {
  height: 100%;
  padding: 0 2px;
  border: 0;
  background: none;
  color: rgba(232, 221, 207, 0.54);
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.18em;
  position: relative;
  transition: color 200ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 10px var(--gold);
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition: 250ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--paper);
}

.nav-link.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.avatar-button {
  appearance: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(231, 217, 196, 0.12);
  border-radius: 50%;
  background: rgba(27, 24, 19, 0.34);
  color: rgba(241, 230, 216, 0.74);
  backdrop-filter: blur(12px);
  transition:
    color 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.icon-button:hover,
.avatar-button:hover {
  color: var(--paper);
  border-color: rgba(222, 191, 139, 0.36);
  background: rgba(52, 45, 34, 0.48);
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.icon-button.is-muted .sound-wave {
  opacity: 0;
}

.avatar-button {
  margin-left: 3px;
  color: #1c160f;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.52), transparent 40%),
    linear-gradient(145deg, #ddbf8b, #9f7c4e);
  border-color: rgba(245, 224, 189, 0.45);
  font-family: var(--font-serif);
  font-size: 15px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.experience,
.scene {
  position: relative;
  width: 100%;
  min-height: 100dvh;
}

.scene {
  overflow: hidden;
  perspective: 1100px;
  background:
    radial-gradient(ellipse at 69% 45%, rgba(168, 130, 77, 0.12), transparent 31%),
    radial-gradient(ellipse at 51% 56%, rgba(111, 91, 65, 0.07), transparent 48%),
    linear-gradient(108deg, #0a0a08 0%, #10100d 34%, #15130f 57%, #0a0908 100%);
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 8, 6, 0.82) 0%, rgba(8, 8, 6, 0.41) 29%, transparent 55%),
    linear-gradient(to bottom, rgba(8, 8, 6, 0.63) 0%, transparent 18%, transparent 78%, rgba(8, 8, 6, 0.7) 100%);
}

.scene::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(218, 195, 160, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(218, 195, 160, 0.014) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 68% 50%, black, transparent 65%);
}

.scene-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.38;
  background:
    radial-gradient(ellipse at 78% 15%, rgba(203, 161, 92, 0.12), transparent 20%),
    radial-gradient(ellipse at 52% 78%, rgba(121, 95, 60, 0.17), transparent 30%);
}

#dustCanvas {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.light-shaft {
  position: absolute;
  z-index: 2;
  width: 220px;
  height: 90vh;
  top: -14vh;
  opacity: 0.23;
  filter: blur(26px);
  transform: rotate(20deg);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(244, 215, 164, 0.23), transparent 78%);
  clip-path: polygon(36% 0, 64% 0, 100% 100%, 0 100%);
  animation: shaftBreath 8s ease-in-out infinite alternate;
}

.light-shaft-left {
  left: 49%;
}

.light-shaft-right {
  right: 2%;
  width: 160px;
  opacity: 0.1;
  transform: rotate(29deg);
  animation-delay: -3s;
}

@keyframes shaftBreath {
  from {
    opacity: 0.14;
    transform: rotate(19deg) translateX(-8px);
  }
  to {
    opacity: 0.29;
    transform: rotate(21deg) translateX(10px);
  }
}

.mist {
  position: absolute;
  z-index: 2;
  width: 620px;
  height: 220px;
  border-radius: 50%;
  filter: blur(65px);
  opacity: 0.12;
  pointer-events: none;
  background: rgba(184, 159, 118, 0.36);
  animation: mistFloat 16s ease-in-out infinite alternate;
}

.mist-one {
  left: 43%;
  top: 66%;
}

.mist-two {
  left: 15%;
  top: 80%;
  width: 480px;
  opacity: 0.07;
  animation-delay: -6s;
}

@keyframes mistFloat {
  from {
    transform: translate3d(-3%, 0, 0) scale(0.9);
  }
  to {
    transform: translate3d(5%, -8%, 0) scale(1.15);
  }
}

.hall {
  --room-rotate-x: 0deg;
  --room-rotate-y: -1deg;
  position: absolute;
  z-index: 3;
  left: 67%;
  top: 52%;
  width: 760px;
  height: 740px;
  transform: translate(-50%, -49%) rotateX(var(--room-rotate-x)) rotateY(var(--room-rotate-y));
  transform-style: preserve-3d;
  transform-origin: 50% 60%;
  transition: transform 900ms var(--ease);
  will-change: transform;
}

.hall-ceiling {
  position: absolute;
  top: -20px;
  left: 50px;
  width: 660px;
  height: 260px;
  opacity: 0.95;
  clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.72)),
    linear-gradient(to bottom, #090806 0%, #1b1712 72%, #2a231b 100%);
}

.hall-ceiling::before,
.hall-ceiling::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to top, rgba(201, 167, 107, 0.25), transparent);
  transform-origin: bottom;
}

.hall-ceiling::before {
  left: 30%;
  transform: rotate(30deg);
}

.hall-ceiling::after {
  right: 30%;
  transform: rotate(-30deg);
}

.ceiling-beam {
  position: absolute;
  left: 25%;
  bottom: 0;
  width: 50%;
  height: 12px;
  border-top: 1px solid rgba(214, 186, 138, 0.12);
  background: linear-gradient(to bottom, #211b15, #0e0c09);
  box-shadow: 0 -40px 80px rgba(205, 166, 103, 0.04);
}

.hall-floor {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 760px;
  height: 295px;
  clip-path: polygon(17% 0, 83% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), transparent 15%, transparent 85%, rgba(0, 0, 0, 0.82)),
    repeating-linear-gradient(90deg, transparent 0 109px, rgba(204, 181, 145, 0.09) 110px, transparent 111px),
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(204, 181, 145, 0.06) 59px, transparent 60px),
    linear-gradient(to bottom, #272118 0%, #19150f 46%, #0e0c09 100%);
  border-top: 1px solid rgba(220, 190, 145, 0.14);
}

.floor-glow {
  position: absolute;
  left: 50%;
  top: 17%;
  width: 420px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(213, 171, 104, 0.13), transparent 63%);
  transform: translateX(-50%);
}

.floor-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(225, 198, 154, 0.1), transparent);
  transform-origin: top;
}

.floor-line.line-a {
  transform: rotate(34deg);
}

.floor-line.line-b {
  transform: rotate(-34deg);
}

.floor-line.line-c {
  transform: rotate(0);
}

.back-wall {
  position: absolute;
  top: 92px;
  left: 135px;
  width: 490px;
  height: 470px;
  overflow: hidden;
  border-top: 1px solid rgba(224, 198, 157, 0.11);
  border-left: 1px solid rgba(224, 198, 157, 0.05);
  border-right: 1px solid rgba(224, 198, 157, 0.05);
  background:
    linear-gradient(to bottom, rgba(223, 185, 122, 0.05), transparent 24%),
    repeating-linear-gradient(90deg, transparent 0 122px, rgba(228, 207, 177, 0.022) 123px, transparent 124px),
    linear-gradient(90deg, #17140f, #2d271e 28%, #393126 51%, #2b241b 74%, #15120e);
  box-shadow:
    inset 0 -30px 80px rgba(0, 0, 0, 0.38),
    0 -12px 60px rgba(196, 150, 91, 0.06);
}

.back-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background:
    radial-gradient(circle at 15% 60%, rgba(255, 255, 255, 0.06) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 33%, rgba(255, 255, 255, 0.045) 0 1px, transparent 2px);
  background-size: 37px 31px, 49px 41px;
}

.back-wall::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(5, 5, 4, 0.7), transparent);
}

.wall-panel {
  position: absolute;
  top: 60px;
  bottom: 0;
  width: 45px;
  opacity: 0.55;
  border-inline: 1px solid rgba(224, 200, 162, 0.08);
}

.wall-panel-left {
  left: 42px;
}

.wall-panel-right {
  right: 42px;
}

.arch {
  position: absolute;
  left: 50%;
  top: 43px;
  width: 275px;
  height: 380px;
  border: 1px solid rgba(217, 187, 140, 0.22);
  border-bottom: 0;
  border-radius: 150px 150px 0 0;
  transform: translateX(-50%);
  box-shadow:
    inset 0 0 0 9px rgba(8, 8, 6, 0.19),
    inset 0 0 48px rgba(211, 170, 106, 0.06),
    0 0 35px rgba(0, 0, 0, 0.13);
}

.arch::before,
.arch::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 28px;
  height: 32px;
  border-top: 1px solid rgba(217, 187, 140, 0.15);
  background: linear-gradient(135deg, #3a3125, #201b15);
}

.arch::before {
  left: -29px;
  transform: skewX(-25deg);
}

.arch::after {
  right: -29px;
  transform: skewX(25deg);
}

.arch-outer {
  opacity: 0.55;
}

.arch-inner {
  top: 55px;
  width: 244px;
  height: 353px;
  border-color: rgba(219, 190, 144, 0.14);
  border-radius: 130px 130px 0 0;
}

.quiet-plaque {
  position: absolute;
  z-index: 2;
  top: 118px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 9px;
  color: rgba(226, 204, 168, 0.48);
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.16em;
  transform: translateX(-50%);
}

.quiet-plaque i {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 186, 137, 0.35), transparent);
}

.pillar {
  position: absolute;
  z-index: 2;
  width: 54px;
  height: 480px;
  filter: drop-shadow(10px 16px 18px rgba(0, 0, 0, 0.38));
}

.pillar::before {
  content: "";
  position: absolute;
  right: -15px;
  top: 30px;
  width: 16px;
  height: 410px;
  background: linear-gradient(90deg, #15120e, #080705);
  clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
}

.pillar-cap,
.pillar-body,
.pillar-base {
  position: absolute;
  left: 0;
  width: 54px;
}

.pillar-cap {
  top: 0;
  height: 25px;
  border: 1px solid rgba(206, 174, 124, 0.16);
  background: linear-gradient(90deg, #211b14, #4a3d2c 50%, #1a1611);
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
}

.pillar-body {
  top: 24px;
  height: 414px;
  border-inline: 1px solid rgba(226, 197, 151, 0.08);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.01), transparent 50%),
    repeating-linear-gradient(0deg, transparent 0 119px, rgba(229, 209, 179, 0.035) 120px, transparent 121px),
    linear-gradient(90deg, #17130e, #40362a 45%, #352c22 62%, #100e0a);
}

.pillar-base {
  bottom: 0;
  height: 44px;
  background: linear-gradient(90deg, #17130e, #4a3d2c 48%, #17130e);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
}

.pillar-far-left {
  left: 97px;
  top: 168px;
  height: 330px;
  opacity: 0.58;
  transform: scale(0.62);
  transform-origin: top center;
}

.pillar-far-right {
  right: 74px;
  top: 168px;
  height: 330px;
  opacity: 0.58;
  transform: scale(0.62);
  transform-origin: top center;
}

.pillar-near-left {
  left: -20px;
  top: 180px;
  height: 498px;
  opacity: 0.82;
}

.pillar-near-right {
  right: -26px;
  top: 180px;
  height: 498px;
  opacity: 0.82;
}

.tableau {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 212px;
  width: 340px;
  height: 490px;
  transform: translateX(-50%);
}

.frame-halo {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -58px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
  background: radial-gradient(circle, rgba(221, 173, 104, 0.19), rgba(175, 124, 61, 0.04) 45%, transparent 70%);
  animation: haloBreathe 5s ease-in-out infinite alternate;
}

@keyframes haloBreathe {
  from {
    opacity: 0.33;
    transform: translateX(-50%) scale(0.96);
  }
  to {
    opacity: 0.58;
    transform: translateX(-50%) scale(1.03);
  }
}

.portrait-frame {
  appearance: none;
  position: relative;
  display: block;
  width: 196px;
  height: 254px;
  margin: 0 auto;
  padding: 7px;
  border: 1px solid rgba(229, 203, 158, 0.43);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 20%),
    #3b2d1d;
  box-shadow:
    0 0 0 3px rgba(30, 22, 14, 0.66),
    0 0 0 4px rgba(213, 177, 117, 0.21),
    0 16px 36px rgba(0, 0, 0, 0.46),
    0 0 36px rgba(207, 158, 86, 0.12);
  transition: transform 500ms var(--ease);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 3px;
  border: 1px solid rgba(238, 217, 183, 0.18);
}

.portrait-frame:hover {
  transform: translateY(-3px);
}

.portrait-mat {
  display: block;
  width: 100%;
  height: 100%;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(235, 216, 184, 0.14);
  background: #c6ad83;
}

.portrait-mat img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.74) contrast(1.04) sepia(0.1);
}

.frame-ornament {
  position: absolute;
  z-index: 2;
  left: 50%;
  width: 36px;
  height: 10px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 50%, #d1ad72 0 20%, transparent 22%),
    linear-gradient(90deg, transparent, #8d7045 30%, #8d7045 70%, transparent);
}

.ornament-top {
  top: -4px;
}

.ornament-bottom {
  bottom: -4px;
}

.name-plaque {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 180px;
  margin: 17px auto 0;
  color: rgba(240, 226, 202, 0.9);
  text-align: center;
}

.name-plaque span {
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: 0.25em;
  text-indent: 0.25em;
}

.name-plaque small {
  color: rgba(217, 197, 167, 0.5);
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.altar {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 313px;
  width: 328px;
  height: 173px;
  transform: translateX(-50%);
}

.altar-top {
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 0;
  width: 308px;
  height: 26px;
  border-top: 1px solid rgba(226, 196, 146, 0.33);
  background:
    linear-gradient(to bottom, rgba(153, 119, 71, 0.45), transparent 18%),
    linear-gradient(90deg, #211910, #5b452c 50%, #20180f);
  clip-path: polygon(2% 0, 98% 0, 100% 100%, 0 100%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.altar-front {
  position: absolute;
  z-index: 1;
  left: 25px;
  top: 25px;
  width: 278px;
  height: 72px;
  border-inline: 1px solid rgba(210, 177, 121, 0.15);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 25%, rgba(255, 228, 184, 0.04) 50%, transparent 75%, rgba(0, 0, 0, 0.2)),
    repeating-linear-gradient(90deg, transparent 0 56px, rgba(209, 181, 135, 0.04) 57px, transparent 58px),
    linear-gradient(to bottom, #3d2d1d, #261d13);
}

.altar-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(190, 99, 72, 0.48);
  color: rgba(209, 121, 95, 0.67);
  font-family: var(--font-serif);
  font-size: 14px;
  transform: translate(-50%, -50%);
}

.altar-step {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-top: 1px solid rgba(221, 193, 148, 0.12);
  background: linear-gradient(to bottom, #32281b, #17120d);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.4);
}

.step-one {
  top: 96px;
  width: 344px;
  height: 24px;
  clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
}

.step-two {
  top: 119px;
  width: 388px;
  height: 29px;
  clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
}

.vase {
  position: absolute;
  z-index: 7;
  left: 29px;
  top: 263px;
  width: 64px;
  height: 104px;
  transform: rotate(-2deg);
}

.vase-body {
  position: absolute;
  left: 17px;
  bottom: 0;
  width: 31px;
  height: 42px;
  border-radius: 7px 7px 13px 13px;
  background: linear-gradient(90deg, #514b3f, #8b8372 44%, #39352d);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.24);
}

.vase-body::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 4px;
  width: 23px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(227, 219, 200, 0.15);
  background: #28251f;
}

.vase-stem {
  position: absolute;
  bottom: 36px;
  left: 32px;
  width: 1px;
  height: 47px;
  transform-origin: bottom;
  background: #586052;
}

.stem-a {
  transform: rotate(-19deg);
}

.stem-b {
  transform: rotate(9deg);
}

.stem-c {
  transform: rotate(24deg);
}

.flower-head {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #c9b27d 0 8%, transparent 10%),
    repeating-conic-gradient(from 10deg, #d6d0c1 0 14deg, #9c9a90 16deg 30deg);
  box-shadow: 0 0 10px rgba(226, 215, 192, 0.15);
}

.flower-a {
  left: 1px;
  top: 8px;
}

.flower-b {
  left: 27px;
  top: 2px;
  transform: scale(0.88);
}

.flower-c {
  left: 43px;
  top: 18px;
  transform: scale(0.72);
}

.candle-cluster {
  appearance: none;
  position: absolute;
  z-index: 8;
  right: 29px;
  top: 264px;
  width: 77px;
  height: 102px;
  padding: 0;
  border: 0;
  background: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.candle {
  position: absolute;
  bottom: 10px;
  width: 10px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #bcb09b, #f3e6cd 46%, #9a8b73);
  box-shadow: inset 0 -8px 6px rgba(69, 50, 33, 0.16);
}

.candle-back {
  left: 15px;
  height: 38px;
  opacity: 0.58;
}

.candle-main {
  left: 34px;
  width: 13px;
  height: 55px;
}

.candle-side {
  left: 57px;
  height: 31px;
  opacity: 0.72;
}

.flame {
  position: absolute;
  left: 50%;
  top: -17px;
  width: 12px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 50% 50% 46% 46% / 70% 70% 30% 30%;
  background: radial-gradient(circle at 50% 66%, #fff7d3 0 19%, #f5c45c 44%, #bf7133 73%, transparent 75%);
  filter: drop-shadow(0 0 8px rgba(255, 191, 81, 0.8)) drop-shadow(0 0 20px rgba(255, 166, 51, 0.32));
  animation: candleFlicker 1.7s ease-in-out infinite alternate;
  transform-origin: bottom center;
}

.flame i {
  position: absolute;
  left: 5px;
  bottom: 2px;
  width: 3px;
  height: 9px;
  border-radius: 50%;
  background: #fff9d9;
}

@keyframes candleFlicker {
  0% {
    transform: translateX(-50%) scale(0.95) rotate(-1deg);
  }
  35% {
    transform: translateX(-47%) scale(1.04) rotate(2deg);
  }
  100% {
    transform: translateX(-52%) scale(0.98) rotate(-2deg);
  }
}

.candles-base {
  position: absolute;
  left: 2px;
  bottom: 1px;
  width: 72px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #695b45, #201a13 65%);
  border-top: 1px solid rgba(227, 195, 140, 0.23);
}

.candle-cluster.is-lit .flame {
  animation-duration: 0.7s;
}

.scene-vignette {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 140px 60px rgba(0, 0, 0, 0.48),
    inset 0 -90px 110px rgba(0, 0, 0, 0.55);
  background:
    radial-gradient(ellipse at 67% 50%, transparent 25%, rgba(5, 5, 4, 0.16) 67%, rgba(5, 5, 4, 0.56) 100%);
}

.hero-copy {
  position: absolute;
  z-index: 15;
  left: clamp(48px, 8vw, 150px);
  top: 26%;
  width: 480px;
  transition:
    opacity 600ms ease,
    transform 800ms var(--ease);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 25px;
  color: rgba(232, 214, 187, 0.54);
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.36em;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(206, 170, 113, 0.68));
}

.eyebrow span:last-child {
  transform: rotate(180deg);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(54px, 5.8vw, 86px);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-wrap: nowrap;
  color: #f1e8da;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.33);
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 span:last-child {
  color: #e5d5bf;
  margin-left: 0.76em;
}

.hero-description {
  width: 365px;
  margin: 25px 0 0;
  color: rgba(225, 211, 191, 0.58);
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.1em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}

.primary-button {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 52px;
  padding: 0 22px 0 25px;
  border: 1px solid rgba(226, 199, 154, 0.34);
  border-radius: 2px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.09), transparent 40%),
    linear-gradient(110deg, #8d3d30, #aa5940);
  color: #fff1dc;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  box-shadow:
    0 10px 28px rgba(80, 31, 24, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.09);
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.primary-button svg {
  width: 17px;
  height: 17px;
  transition: transform 220ms ease;
}

.primary-button:hover svg {
  transform: translateX(3px);
}

.text-button {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: rgba(239, 226, 208, 0.69);
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.play-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(223, 197, 155, 0.28);
  border-radius: 50%;
  transition: border-color 200ms ease;
}

.play-mark::before {
  content: "";
  margin-left: 2px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid rgba(236, 221, 199, 0.68);
}

.text-button:hover .play-mark {
  border-color: rgba(223, 197, 155, 0.58);
}

.visit-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 34px;
}

.visitor-faces {
  display: flex;
  padding-left: 7px;
}

.visitor-faces span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-left: -7px;
  border: 1px solid rgba(226, 210, 186, 0.18);
  border-radius: 50%;
  color: rgba(242, 230, 211, 0.7);
  background: #39352d;
  font-family: var(--font-serif);
  font-size: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.visitor-faces span:nth-child(2) {
  background: #614f3e;
}

.visitor-faces span:nth-child(3) {
  background: #4d574b;
}

.visitor-faces span:nth-child(4) {
  color: #3b241c;
  background: #ab7d52;
}

.visit-summary p {
  margin: 0;
  color: rgba(219, 204, 183, 0.39);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.visit-summary strong {
  color: rgba(233, 217, 194, 0.7);
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 400;
}

.memory-note {
  position: absolute;
  z-index: 14;
  left: clamp(48px, 8vw, 150px);
  bottom: 72px;
  width: 286px;
  padding: 22px 24px 20px;
  border: 1px solid rgba(227, 205, 172, 0.12);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 36%),
    rgba(20, 18, 14, 0.53);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.15);
  transition:
    opacity 500ms ease,
    transform 600ms var(--ease);
}

.memory-note::before,
.memory-note::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0.48;
}

.memory-note::before {
  left: -1px;
  top: -1px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.memory-note::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.note-quote {
  position: absolute;
  top: 8px;
  right: 17px;
  color: rgba(206, 174, 124, 0.17);
  font-family: Georgia, serif;
  font-size: 62px;
  line-height: 1;
}

.memory-note p {
  margin: 0;
  color: rgba(238, 226, 208, 0.76);
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.08em;
}

.note-sign {
  display: block;
  margin-top: 14px;
  color: rgba(213, 194, 166, 0.35);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.scene-controls {
  position: absolute;
  z-index: 18;
  right: clamp(48px, 7vw, 120px);
  top: 110px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.roam-button {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(228, 208, 178, 0.13);
  border-radius: 17px;
  background: rgba(22, 20, 16, 0.48);
  color: rgba(234, 221, 202, 0.52);
  backdrop-filter: blur(10px);
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: 200ms ease;
}

.roam-button svg {
  width: 14px;
  height: 14px;
}

.roam-button:hover,
.roam-button[aria-pressed="true"] {
  border-color: rgba(220, 186, 126, 0.36);
  color: rgba(241, 228, 208, 0.9);
}

.roam-button[aria-pressed="true"] svg {
  animation: roamWaves 2s ease-in-out infinite;
}

@keyframes roamWaves {
  50% {
    opacity: 0.45;
    transform: translateX(2px);
  }
}

.exit-immersive {
  appearance: none;
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(228, 208, 178, 0.16);
  border-radius: 50%;
  background: rgba(22, 20, 16, 0.56);
  color: rgba(234, 221, 202, 0.64);
  backdrop-filter: blur(10px);
}

.exit-immersive svg {
  width: 14px;
  height: 14px;
}

.scene-hint {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 125px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(223, 207, 184, 0.26);
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: 0.15em;
  transform: translateX(-50%);
  transition: opacity 500ms ease;
}

.hint-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(229, 202, 160, 0.5);
  box-shadow: 0 0 8px rgba(229, 202, 160, 0.7);
}

.is-immersive .hero-copy {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-42px);
}

.is-immersive .memory-note {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

.is-immersive .scene-hint {
  opacity: 0;
}

.is-immersive .hall {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -47%) scale(1.08);
}

.is-immersive .exit-immersive {
  display: grid;
}

.is-roaming .hall {
  animation: roam 12s ease-in-out infinite alternate;
}

@keyframes roam {
  0% {
    transform: translate(-50%, -49%) rotateY(-1.4deg) scale(1);
  }
  50% {
    transform: translate(-50%, -48%) rotateY(1.3deg) scale(1.012);
  }
  100% {
    transform: translate(-50%, -49.5%) rotateY(-0.8deg) scale(1.006);
  }
}

.is-immersive.is-roaming .hall {
  animation-name: roamImmersive;
}

@keyframes roamImmersive {
  0% {
    transform: translate(-50%, -47%) rotateY(-1.1deg) scale(1.07);
  }
  50% {
    transform: translate(-50%, -46%) rotateY(1.1deg) scale(1.095);
  }
  100% {
    transform: translate(-50%, -47.5%) rotateY(-0.6deg) scale(1.075);
  }
}

.tribute-dock {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 428px;
  height: 76px;
  padding: 8px;
  border: 1px solid rgba(226, 205, 174, 0.13);
  border-radius: 15px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.035), transparent 40%),
    rgba(20, 18, 14, 0.8);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(22px) saturate(120%);
  transform: translateX(-50%);
}

.tribute-dock::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 193, 137, 0.16), transparent);
}

.tribute-dock button {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: rgba(232, 218, 198, 0.68);
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.1em;
  transition:
    background 200ms ease,
    color 200ms ease;
}

.tribute-dock button:hover {
  color: var(--paper);
  background: rgba(224, 193, 141, 0.06);
}

.tribute-dock button + button::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 15px;
  bottom: 15px;
  width: 1px;
  background: rgba(226, 207, 177, 0.07);
}

.dock-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  color: rgba(232, 212, 180, 0.72);
}

.dock-icon svg {
  width: 20px;
  height: 20px;
}

.tribute-dock small {
  position: absolute;
  top: 8px;
  left: calc(50% + 12px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 1px solid rgba(222, 194, 149, 0.15);
  border-radius: 8px;
  color: rgba(231, 213, 186, 0.48);
  background: rgba(64, 51, 35, 0.42);
  font-family: Georgia, serif;
  font-size: 8px;
  line-height: 14px;
  text-align: center;
}

.site-footer {
  position: fixed;
  z-index: 20;
  left: clamp(28px, 5vw, 72px);
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(227, 211, 188, 0.21);
  font-family: var(--font-serif);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.footer-line {
  width: 30px;
  height: 1px;
  background: rgba(225, 190, 134, 0.14);
}

.modal-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 260ms ease,
    visibility 260ms;
}

.modal-layer.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 4, 0.63);
  backdrop-filter: blur(7px);
}

.bottom-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  max-height: calc(100dvh - 28px);
  padding: 30px 28px calc(28px + env(safe-area-inset-bottom));
  overflow: auto;
  border: 1px solid rgba(226, 206, 177, 0.16);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(164, 78, 59, 0.1), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 28%),
    #191713;
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.45);
  scrollbar-width: none;
  transform: translateY(40px);
  transition: transform 450ms var(--ease);
}

.bottom-sheet::-webkit-scrollbar {
  display: none;
}

.bottom-sheet[hidden] {
  display: none;
}

.modal-layer.is-open .bottom-sheet {
  transform: translateY(0);
}

.bottom-sheet::before {
  content: "";
  position: absolute;
  pointer-events: none;
  left: 14px;
  right: 14px;
  top: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(219, 181, 119, 0.14), transparent);
}

.wide-sheet {
  width: min(100%, 620px);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: -12px auto 23px;
  border-radius: 2px;
  background: rgba(226, 207, 178, 0.18);
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.sheet-kicker {
  display: block;
  margin-bottom: 8px;
  color: rgba(206, 175, 127, 0.66);
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: 0.26em;
}

.sheet-header h2,
.success-sheet h2 {
  margin: 0;
  color: #f1e6d7;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1.48;
}

.sheet-close {
  appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(224, 205, 178, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(235, 222, 204, 0.48);
}

.sheet-close svg {
  width: 14px;
  height: 14px;
}

.sheet-copy {
  margin: 0 0 22px;
  color: rgba(219, 204, 183, 0.42);
  font-size: 12px;
  line-height: 1.8;
}

.flower-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.flower-option,
.scene-option {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 17px 7px 14px;
  border: 1px solid rgba(221, 200, 170, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  transition: 200ms ease;
}

.flower-option:hover,
.flower-option.is-selected,
.scene-option:hover,
.scene-option.is-selected {
  border-color: rgba(219, 181, 117, 0.4);
  background: rgba(184, 140, 77, 0.08);
}

.flower-option strong,
.scene-option strong {
  margin-top: 8px;
  color: rgba(241, 228, 209, 0.86);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.flower-option small,
.scene-option small {
  margin-top: 4px;
  color: rgba(216, 198, 173, 0.34);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.option-check {
  position: absolute;
  top: 7px;
  right: 7px;
  display: none;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cinnabar);
  color: #f4e8d8;
}

.option-check svg {
  width: 11px;
  height: 11px;
  stroke-width: 2;
}

.is-selected > .option-check {
  display: grid;
}

.flower-illustration {
  position: relative;
  display: block;
  width: 62px;
  height: 58px;
}

.flower-illustration::before,
.flower-illustration::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 30px;
  width: 1px;
  height: 47px;
  background: #63705f;
  transform-origin: bottom;
}

.flower-illustration::before {
  transform: rotate(-17deg);
}

.flower-illustration::after {
  transform: rotate(19deg);
}

.flower-illustration i {
  position: absolute;
  width: 23px;
  height: 15px;
  border-radius: 70% 30% 60% 40%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.33), transparent 55%),
    #c8c5b6;
  box-shadow: inset -2px -2px 4px rgba(43, 48, 40, 0.18);
  transform-origin: 50% 50%;
}

.flower-illustration i:nth-child(1) {
  top: 14px;
  left: 5px;
  transform: rotate(26deg);
}

.flower-illustration i:nth-child(2) {
  top: 7px;
  left: 21px;
  transform: rotate(-12deg);
}

.flower-illustration i:nth-child(3) {
  top: 13px;
  right: 5px;
  transform: rotate(-42deg);
}

.flower-illustration i:nth-child(4) {
  top: 25px;
  left: 14px;
  transform: rotate(43deg) scale(0.9);
}

.flower-illustration i:nth-child(5) {
  top: 23px;
  right: 12px;
  transform: rotate(-28deg) scale(0.84);
}

.lily i {
  width: 18px;
  height: 25px;
  border-radius: 70% 30% 72% 28%;
  background:
    linear-gradient(145deg, #f4eee0, #c5bead);
}

.lily i:nth-child(1) {
  top: 3px;
  left: 23px;
  transform: rotate(0);
}

.lily i:nth-child(2) {
  top: 11px;
  left: 7px;
  transform: rotate(38deg);
}

.lily i:nth-child(3) {
  top: 11px;
  right: 7px;
  transform: rotate(-38deg);
}

.lily i:nth-child(4) {
  top: 12px;
  left: 17px;
  transform: rotate(13deg);
}

.lily i:nth-child(5) {
  top: 12px;
  right: 16px;
  transform: rotate(-13deg);
}

.carnation i {
  width: 22px;
  height: 20px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 5deg, #bc7665 0 11deg, #dba295 12deg 22deg);
}

.carnation i:nth-child(1) {
  top: 7px;
  left: 20px;
}

.carnation i:nth-child(2) {
  top: 16px;
  left: 4px;
  transform: scale(0.82);
}

.carnation i:nth-child(3) {
  top: 16px;
  right: 3px;
  transform: scale(0.82);
}

.carnation i:nth-child(4) {
  top: 27px;
  left: 15px;
  transform: scale(0.7);
}

.carnation i:nth-child(5) {
  top: 27px;
  right: 14px;
  transform: scale(0.7);
}

.message-field {
  position: relative;
  display: block;
  margin-top: 20px;
}

.compact-field {
  margin-top: 18px;
}

.message-field > span {
  display: block;
  margin: 0 0 9px;
  color: rgba(224, 209, 187, 0.52);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.message-field em {
  color: rgba(219, 197, 166, 0.27);
  font-style: normal;
}

.message-field textarea,
.form-row input {
  display: block;
  width: 100%;
  resize: none;
  border: 1px solid rgba(222, 200, 169, 0.12);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(241, 230, 213, 0.86);
  font-size: 13px;
  line-height: 1.8;
  transition: border-color 200ms ease;
}

.message-field textarea {
  padding: 13px 14px 28px;
}

.message-field textarea:focus,
.form-row input:focus {
  border-color: rgba(208, 169, 105, 0.38);
}

.message-field textarea::placeholder,
.form-row input::placeholder {
  color: rgba(219, 202, 179, 0.22);
}

.message-field > small {
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: rgba(218, 199, 172, 0.25);
  font-size: 9px;
}

.sheet-primary {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin-top: 23px;
  border: 1px solid rgba(224, 195, 148, 0.31);
  border-radius: 5px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.07), transparent 35%),
    var(--cinnabar);
  color: #fff1dc;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.12em;
  box-shadow: 0 10px 24px rgba(74, 28, 21, 0.24);
  transition:
    filter 200ms ease,
    transform 200ms ease;
}

.sheet-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.message-author {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(220, 199, 168, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.author-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #302418;
  background: linear-gradient(145deg, #d3b57e, #8c6c45);
  font-family: var(--font-serif);
  font-size: 13px;
}

.message-author > div {
  display: grid;
  gap: 2px;
}

.message-author strong {
  color: rgba(239, 227, 210, 0.8);
  font-size: 12px;
  font-weight: 500;
}

.message-author small {
  color: rgba(215, 197, 173, 0.31);
  font-size: 9px;
}

.privacy-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid rgba(204, 176, 132, 0.13);
  border-radius: 12px;
  background: none;
  color: rgba(222, 203, 176, 0.42);
  font-size: 9px;
}

.privacy-chip svg {
  width: 10px;
  height: 10px;
}

.message-guidance {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  color: rgba(213, 193, 167, 0.27);
}

.message-guidance svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  margin-top: 3px;
}

.message-guidance p {
  margin: 0;
  font-size: 9px;
  line-height: 1.7;
}

.memorial-overview {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(225, 201, 166, 0.1);
  border-radius: 12px;
  background:
    linear-gradient(115deg, rgba(180, 127, 72, 0.08), transparent 50%),
    rgba(255, 255, 255, 0.015);
}

.mini-portrait {
  flex: 0 0 auto;
  width: 66px;
  height: 82px;
  padding: 4px;
  border: 1px solid rgba(219, 182, 125, 0.3);
  background: #2a2117;
}

.mini-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.13) saturate(0.8);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(195, 205, 183, 0.57);
  font-size: 9px;
}

.status-chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8eaa87;
  box-shadow: 0 0 8px rgba(142, 170, 135, 0.62);
}

.memorial-overview h3 {
  margin: 6px 0 4px;
  color: rgba(239, 227, 210, 0.88);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.memorial-overview p {
  margin: 0;
  color: rgba(218, 199, 175, 0.35);
  font-size: 9px;
  line-height: 1.7;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0;
  padding: 15px 0;
  border-block: 1px solid rgba(223, 201, 171, 0.08);
}

.stats-row div {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.stats-row div + div {
  border-left: 1px solid rgba(223, 201, 171, 0.08);
}

.stats-row strong {
  color: rgba(236, 222, 203, 0.78);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
}

.stats-row span {
  color: rgba(215, 196, 171, 0.31);
  font-size: 9px;
}

.more-list {
  display: grid;
}

.more-list button {
  appearance: none;
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  align-items: center;
  gap: 11px;
  padding: 13px 3px;
  border: 0;
  border-bottom: 1px solid rgba(222, 201, 170, 0.07);
  background: none;
  text-align: left;
}

.more-list button > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.more-list strong {
  color: rgba(239, 227, 209, 0.76);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 400;
}

.more-list small {
  color: rgba(215, 196, 171, 0.28);
  font-size: 9px;
}

.more-list svg {
  width: 13px;
  height: 13px;
  color: rgba(219, 197, 167, 0.28);
}

.list-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(221, 200, 170, 0.1);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 12px;
}

.mark-life {
  color: #c9b28a;
  background: rgba(120, 98, 64, 0.14);
}

.mark-photo {
  color: #a8b5a1;
  background: rgba(91, 113, 91, 0.12);
}

.mark-share {
  color: #c68f7e;
  background: rgba(128, 63, 48, 0.14);
}

.create-link {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 19px;
  padding: 14px 15px;
  border: 1px solid rgba(215, 178, 118, 0.12);
  border-radius: 7px;
  background: rgba(177, 126, 63, 0.06);
  color: rgba(234, 219, 198, 0.65);
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.create-link svg {
  width: 15px;
  height: 15px;
}

.life-hero {
  display: grid;
  grid-template-columns: 138px 1fr;
  align-items: end;
  gap: 20px;
  margin: 20px 0;
}

.life-image {
  height: 174px;
  padding: 5px;
  border: 1px solid rgba(221, 188, 137, 0.26);
  background: #2c2116;
}

.life-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.12) saturate(0.76);
}

.life-hero blockquote {
  margin: 0 0 4px;
  color: rgba(226, 210, 188, 0.55);
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.05em;
}

.life-story {
  color: rgba(222, 208, 189, 0.55);
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 2;
}

.life-story p {
  margin: 0 0 10px;
}

.timeline {
  display: grid;
  margin-top: 20px;
  border-top: 1px solid rgba(220, 198, 166, 0.08);
}

.timeline > div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 14px 0 5px;
  position: relative;
}

.timeline > div::before {
  content: "";
  position: absolute;
  left: 56px;
  top: 20px;
  bottom: -14px;
  width: 1px;
  background: rgba(215, 186, 139, 0.1);
}

.timeline > div:last-child::before {
  display: none;
}

.timeline > div > span {
  color: rgba(202, 169, 115, 0.65);
  font-family: Georgia, serif;
  font-size: 12px;
}

.timeline p {
  display: grid;
  gap: 3px;
  margin: 0 0 12px;
}

.timeline strong {
  color: rgba(238, 225, 207, 0.72);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 400;
}

.timeline small {
  color: rgba(216, 197, 172, 0.34);
  font-size: 10px;
  line-height: 1.65;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  grid-template-rows: 180px 150px;
  gap: 8px;
}

.gallery-item {
  appearance: none;
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(222, 199, 167, 0.1);
  border-radius: 4px;
  background: #252019;
}

.gallery-main {
  grid-row: span 2;
}

.gallery-item img,
.gallery-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.13) saturate(0.75);
  transition: transform 600ms var(--ease);
}

.gallery-item:hover img,
.gallery-item:hover .gallery-art {
  transform: scale(1.04);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 6, 0.62), transparent 52%);
  pointer-events: none;
}

.gallery-item > span:last-child {
  position: absolute;
  z-index: 2;
  left: 11px;
  bottom: 10px;
  color: rgba(240, 225, 205, 0.69);
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.art-yard {
  background:
    radial-gradient(ellipse at 67% 41%, rgba(207, 184, 140, 0.26), transparent 18%),
    linear-gradient(to bottom, transparent 45%, rgba(39, 64, 43, 0.72) 46%),
    repeating-linear-gradient(75deg, transparent 0 23px, rgba(117, 126, 100, 0.22) 24px, transparent 25px),
    linear-gradient(150deg, #263d32, #8a8568 56%, #504d3d);
}

.art-family {
  background:
    radial-gradient(ellipse at 50% 39%, rgba(223, 194, 145, 0.28), transparent 13%),
    radial-gradient(circle at 30% 70%, #181a16 0 11%, transparent 12%),
    radial-gradient(circle at 51% 67%, #252017 0 13%, transparent 14%),
    radial-gradient(circle at 72% 72%, #211b17 0 10%, transparent 11%),
    linear-gradient(150deg, #776446, #afa17e 52%, #554733);
}

.art-tea {
  background:
    radial-gradient(ellipse at 54% 63%, #2d2116 0 18%, transparent 19%),
    radial-gradient(ellipse at 54% 57%, #d2bc95 0 10%, transparent 11%),
    linear-gradient(120deg, #1e1b15, #665942 45%, #282117);
}

.gallery-note {
  margin: 14px 0 0;
  color: rgba(214, 195, 170, 0.26);
  font-size: 9px;
  text-align: center;
}

.message-stream {
  display: grid;
  gap: 4px;
}

.stream-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid rgba(221, 200, 170, 0.07);
}

.stream-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #35271a;
  background: linear-gradient(145deg, #d7b986, #957147);
  font-family: var(--font-serif);
  font-size: 12px;
}

.stream-avatar.warm {
  color: #362116;
  background: linear-gradient(145deg, #d3977d, #8f5a48);
}

.stream-avatar.sage {
  color: #263226;
  background: linear-gradient(145deg, #b4c1ad, #788778);
}

.stream-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.stream-item header strong {
  color: rgba(238, 225, 207, 0.76);
  font-size: 11px;
  font-weight: 500;
}

.stream-item header time {
  color: rgba(212, 193, 168, 0.25);
  font-size: 8px;
}

.stream-item p {
  margin: 0;
  color: rgba(224, 209, 190, 0.55);
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.85;
}

.stream-item footer {
  display: flex;
  gap: 14px;
  margin-top: 9px;
}

.stream-item footer button {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(208, 181, 139, 0.38);
  font-size: 8px;
}

.invitation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 302px;
  margin-top: 20px;
  padding: 30px 22px 22px;
  overflow: hidden;
  border: 1px solid rgba(214, 179, 120, 0.23);
  border-radius: 3px;
  background:
    linear-gradient(rgba(238, 226, 207, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 226, 207, 0.012) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 35%, rgba(188, 147, 84, 0.16), transparent 38%),
    linear-gradient(150deg, #242018, #171511 68%, #242018);
  background-size: 42px 42px, 42px 42px, auto, auto;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.33);
}

.invitation-card::before,
.invitation-card::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  opacity: 0.35;
}

.invitation-card::before {
  left: 8px;
  top: 8px;
  border-top: 1px solid #b88c4f;
  border-left: 1px solid #b88c4f;
}

.invitation-card::after {
  right: 8px;
  bottom: 8px;
  border-right: 1px solid #b88c4f;
  border-bottom: 1px solid #b88c4f;
}

.invite-seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(223, 189, 134, 0.3);
  color: rgba(230, 203, 161, 0.8);
  font-family: var(--font-serif);
  font-size: 16px;
}

.invite-brand {
  margin-top: 9px;
  color: rgba(211, 183, 139, 0.48);
  font-family: var(--font-serif);
  font-size: 9px;
  letter-spacing: 0.34em;
}

.invitation-card h3 {
  margin: 18px 0 10px;
  color: rgba(246, 233, 214, 0.88);
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-align: center;
}

.invitation-card p {
  margin: 0;
  color: rgba(218, 199, 173, 0.42);
  font-family: var(--font-serif);
  font-size: 10px;
  line-height: 2;
  letter-spacing: 0.06em;
  text-align: center;
}

.invite-qr {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 3px;
  margin: 15px 0 5px;
  padding: 7px;
  background: rgba(242, 230, 211, 0.72);
}

.invite-qr i {
  width: 5px;
  height: 5px;
  background: #241c13;
}

.invite-qr i:nth-child(2),
.invite-qr i:nth-child(4),
.invite-qr i:nth-child(7),
.invite-qr i:nth-child(9) {
  opacity: 0.18;
}

.invite-code {
  color: rgba(215, 188, 147, 0.4);
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: 0.13em;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

.share-options button {
  appearance: none;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 8px;
  border: 0;
  background: none;
}

.share-options strong {
  color: rgba(228, 211, 187, 0.54);
  font-size: 9px;
  font-weight: 400;
}

.share-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(221, 195, 155, 0.14);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 13px;
}

.share-wechat {
  color: #a9b89e;
  background: rgba(84, 110, 74, 0.16);
}

.share-card {
  color: #cba97a;
  background: rgba(137, 99, 55, 0.16);
}

.share-link {
  color: #c39582;
  background: rgba(138, 70, 53, 0.14);
}

.share-link svg {
  width: 16px;
  height: 16px;
}

.share-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 14px 0 0;
  color: rgba(211, 191, 164, 0.24);
  font-size: 8px;
}

.share-privacy svg {
  width: 9px;
  height: 9px;
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 22px;
}

.wizard-progress > span {
  width: 31px;
  height: 2px;
  background: rgba(222, 202, 172, 0.1);
  transition: background 200ms ease;
}

.wizard-progress > span.is-active {
  background: rgba(207, 163, 95, 0.74);
}

.wizard-progress small {
  margin-left: auto;
  color: rgba(214, 194, 168, 0.28);
  font-family: Georgia, serif;
  font-size: 9px;
}

.wizard-progress strong {
  color: rgba(217, 184, 131, 0.68);
  font-weight: 400;
}

.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: block;
  animation: stepIn 350ms var(--ease);
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.upload-portrait {
  appearance: none;
  display: grid;
  justify-items: center;
  width: 100%;
  padding: 17px;
  border: 1px dashed rgba(218, 184, 130, 0.23);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.016);
}

.upload-preview {
  display: grid;
  place-items: center;
  width: 70px;
  height: 88px;
  border: 1px solid rgba(220, 190, 146, 0.12);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(220, 196, 162, 0.4);
}

.upload-preview svg {
  width: 21px;
  height: 21px;
}

.upload-preview.has-image {
  border-color: rgba(216, 180, 123, 0.35);
  background: url("assets/memory.svg") center / cover;
}

.upload-preview.has-image svg {
  display: none;
}

.upload-portrait strong {
  margin-top: 10px;
  color: rgba(235, 221, 203, 0.7);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 400;
}

.upload-portrait small {
  margin-top: 3px;
  color: rgba(214, 195, 171, 0.27);
  font-size: 8px;
}

.form-row {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row label {
  display: grid;
  gap: 7px;
  color: rgba(222, 206, 186, 0.43);
  font-size: 9px;
}

.form-row input {
  height: 43px;
  padding: 0 12px;
}

.form-lead {
  margin: 0 0 14px;
  color: rgba(219, 202, 180, 0.4);
  font-size: 10px;
}

.scene-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.scene-option {
  padding: 8px 7px 11px;
}

.scene-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 96px;
  overflow: hidden;
  border: 1px solid rgba(220, 197, 164, 0.1);
  background: #181510;
}

.scene-thumb::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 32%;
  width: 42px;
  height: 48px;
  border: 1px solid rgba(219, 182, 123, 0.3);
  background: rgba(214, 176, 116, 0.07);
  transform: translateX(-50%);
}

.scene-thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 19%;
  width: 64px;
  height: 69px;
  border: 1px solid rgba(205, 167, 106, 0.18);
  border-bottom: 0;
  border-radius: 35px 35px 0 0;
  transform: translateX(-50%);
}

.thumb-hall {
  background:
    linear-gradient(90deg, #14110d 0 16%, transparent 16% 84%, #14110d 84%),
    radial-gradient(ellipse at 50% 40%, rgba(193, 147, 81, 0.23), transparent 28%),
    linear-gradient(#282117, #0e0d0a);
}

.thumb-courtyard {
  background:
    repeating-linear-gradient(76deg, transparent 0 11px, rgba(97, 117, 91, 0.25) 12px, transparent 13px),
    radial-gradient(ellipse at 50% 40%, rgba(194, 157, 95, 0.2), transparent 30%),
    linear-gradient(#1c2a24, #171a14);
}

.thumb-pavilion {
  background:
    linear-gradient(to bottom, transparent 0 55%, rgba(76, 104, 103, 0.4) 56%),
    radial-gradient(ellipse at 50% 42%, rgba(204, 166, 105, 0.2), transparent 30%),
    linear-gradient(#263633, #121b19);
}

.wizard-actions {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 10px;
  margin-top: 22px;
}

.wizard-actions .sheet-primary {
  margin: 0;
}

.wizard-next {
  margin-top: 22px;
}

.wizard-back {
  border: 1px solid rgba(222, 202, 172, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(229, 214, 194, 0.5);
  font-size: 11px;
}

.privacy-options {
  display: grid;
  gap: 9px;
}

.privacy-option {
  appearance: none;
  display: grid;
  grid-template-columns: 38px 1fr 18px;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(220, 198, 166, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  text-align: left;
}

.privacy-option.is-selected {
  border-color: rgba(211, 171, 108, 0.35);
  background: rgba(177, 127, 65, 0.06);
}

.privacy-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(105, 125, 100, 0.13);
  color: #9ead96;
}

.privacy-icon svg {
  width: 14px;
  height: 14px;
}

.privacy-public {
  background: rgba(135, 94, 57, 0.12);
  color: #c5a06f;
  font-family: var(--font-serif);
  font-size: 11px;
}

.privacy-option > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.privacy-option strong {
  color: rgba(237, 224, 207, 0.7);
  font-size: 11px;
  font-weight: 400;
}

.privacy-option small {
  color: rgba(215, 197, 171, 0.28);
  font-size: 8px;
}

.radio-mark {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(218, 196, 166, 0.2);
  border-radius: 50%;
}

.is-selected .radio-mark {
  border: 4px solid #a6503b;
  box-shadow: 0 0 0 1px rgba(227, 192, 142, 0.35);
}

.promise-check {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 9px;
  margin-top: 16px;
  color: rgba(230, 218, 200, 0.49);
  font-size: 9px;
  line-height: 1.65;
}

.promise-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-checkbox {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border: 1px solid rgba(212, 178, 124, 0.27);
  border-radius: 3px;
}

.promise-check input:checked + .custom-checkbox {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  box-shadow: inset 0 0 0 3px #191713;
}

.promise-check small {
  display: block;
  margin-top: 4px;
  color: rgba(213, 193, 166, 0.28);
  font-size: 8px;
  line-height: 1.65;
}

.success-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 34px;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid rgba(204, 170, 114, 0.27);
  border-radius: 50%;
  color: #cfb17d;
  background: rgba(156, 113, 56, 0.09);
  box-shadow: 0 0 24px rgba(204, 160, 92, 0.1);
}

.success-mark svg {
  width: 20px;
  height: 20px;
}

.success-copy {
  max-width: 310px;
  margin: 14px 0 2px;
  color: rgba(219, 202, 179, 0.4);
  font-size: 10px;
  line-height: 1.8;
}

.success-secondary {
  padding: 8px;
  border: 0;
  background: none;
  color: rgba(217, 184, 133, 0.5);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.toast {
  position: fixed;
  z-index: 160;
  left: 50%;
  top: 96px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 40px);
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(224, 198, 157, 0.18);
  border-radius: 4px;
  background: rgba(24, 21, 17, 0.92);
  color: rgba(241, 228, 209, 0.81);
  font-size: 11px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition:
    opacity 220ms ease,
    transform 300ms var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast svg {
  width: 13px;
  height: 13px;
  color: #b9c5a9;
}

.scatter-petal {
  position: fixed;
  z-index: 150;
  width: 10px;
  height: 6px;
  border-radius: 80% 20% 70% 30%;
  background: rgba(235, 228, 211, 0.82);
  pointer-events: none;
  animation: petalFall 1.8s cubic-bezier(0.15, 0.7, 0.4, 1) forwards;
}

@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translate(0, -10px) rotate(0) scale(0.4);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--petal-x), var(--petal-y)) rotate(var(--petal-rotate)) scale(1);
  }
}

.modal-layer.is-open .bottom-sheet {
  animation: none;
}

@media (min-width: 1500px) {
  .hall {
    left: 69%;
    transform: translate(-50%, -49%) scale(1.07);
  }

  .hero-copy {
    left: 11vw;
  }

  .memory-note {
    left: 11vw;
  }
}

@media (max-width: 1050px) {
  .hall {
    left: 68%;
    transform: translate(-50%, -49%) scale(0.86);
  }

  .hero-copy {
    left: 5vw;
  }

  .hero-copy h1 {
    font-size: 57px;
  }

  .memory-note {
    display: none;
  }

  .scene-controls {
    right: 5vw;
  }

  .main-nav {
    gap: 23px;
  }
}

@media (max-width: 760px) {
  body {
    background: #0b0b09;
  }

  .site-header {
    height: 70px;
    padding: 0 18px;
  }

  .brand {
    gap: 9px;
  }

  .brand-seal {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .brand-name strong {
    font-size: 16px;
    letter-spacing: 0.17em;
  }

  .brand-name small {
    font-size: 7px;
    letter-spacing: 0.27em;
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    gap: 7px;
  }

  .icon-button,
  .avatar-button {
    width: 33px;
    height: 33px;
  }

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

  .avatar-button {
    font-size: 13px;
  }

  .scene {
    min-height: 100dvh;
  }

  .scene::before {
    background:
      linear-gradient(to bottom, rgba(8, 8, 6, 0.67) 0%, rgba(8, 8, 6, 0.15) 27%, transparent 48%, rgba(8, 8, 6, 0.43) 78%, rgba(8, 8, 6, 0.9) 100%),
      linear-gradient(90deg, rgba(8, 8, 6, 0.32), transparent 38%);
  }

  .scene::after {
    opacity: 0.45;
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at 50% 48%, black, transparent 72%);
  }

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

  .light-shaft {
    left: 32%;
    width: 150px;
  }

  .light-shaft-right {
    right: -15%;
  }

  .pillar-near-left {
    opacity: 0.56;
  }

  .pillar-near-right {
    opacity: 0.56;
  }

  .hero-copy {
    left: 50%;
    top: 104px;
    width: calc(100% - 42px);
    text-align: center;
    transform: translateX(-50%);
  }

  .eyebrow {
    justify-content: center;
    margin-bottom: 15px;
    font-size: 9px;
    letter-spacing: 0.28em;
  }

  .eyebrow span {
    width: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 11.2vw, 48px);
    line-height: 1.18;
    letter-spacing: 0.12em;
  }

  .hero-copy h1 span {
    display: block;
  }

  .hero-copy h1 span:last-child {
    margin-left: 0.48em;
  }

  .hero-description {
    width: auto;
    margin: 12px auto 0;
    font-size: 11px;
    line-height: 1.85;
    letter-spacing: 0.06em;
  }

  .hero-actions {
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
  }

  .primary-button {
    min-height: 42px;
    gap: 16px;
    padding: 0 16px;
    font-size: 11px;
  }

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

  .text-button {
    gap: 7px;
    font-size: 10px;
  }

  .play-mark {
    width: 24px;
    height: 24px;
  }

  .visit-summary {
    display: none;
  }

  .memory-note {
    display: none;
  }

  .scene-controls {
    top: 78px;
    right: 16px;
  }

  .roam-button {
    width: 34px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .roam-button span {
    display: none;
  }

  .scene-hint {
    bottom: 103px;
    font-size: 8px;
  }

  .is-immersive .hero-copy {
    transform: translate(-50%, -18px);
  }

  .is-immersive .hall {
    left: 50%;
    top: 54%;
    transform: translate(-50%, -50%) scale(0.78);
  }

  .is-immersive.is-roaming .hall {
    animation-name: roamMobile;
  }

  @keyframes roamMobile {
    0% {
      transform: translate(-50%, -50%) rotateY(-1deg) scale(0.78);
    }
    50% {
      transform: translate(-50%, -49%) rotateY(1deg) scale(0.8);
    }
    100% {
      transform: translate(-50%, -50.5%) rotateY(-0.5deg) scale(0.79);
    }
  }

  .is-immersive .scene-controls {
    top: 82px;
  }

  .tribute-dock {
    bottom: max(13px, env(safe-area-inset-bottom));
    width: calc(100% - 26px);
    max-width: 430px;
    height: 66px;
    padding: 6px;
    border-radius: 13px;
  }

  .tribute-dock button {
    gap: 1px;
    font-size: 10px;
  }

  .dock-icon {
    height: 22px;
  }

  .dock-icon svg {
    width: 18px;
    height: 18px;
  }

  .tribute-dock small {
    top: 4px;
    left: calc(50% + 9px);
  }

  .site-footer {
    display: none;
  }

  .bottom-sheet {
    width: 100%;
    max-height: calc(100dvh - 16px);
    padding: 26px 20px calc(22px + env(safe-area-inset-bottom));
    border-radius: 21px 21px 0 0;
  }

  .bottom-sheet::before {
    top: 11px;
  }

  .sheet-handle {
    margin: -10px auto 20px;
  }

  .sheet-header h2 {
    font-size: 22px;
  }

  .flower-options,
  .scene-options {
    gap: 8px;
  }

  .flower-option {
    padding: 14px 5px 12px;
  }

  .flower-illustration {
    transform: scale(0.9);
  }

  .sheet-primary {
    height: 48px;
  }

  .scene-thumb {
    height: 76px;
  }

  .scene-thumb::after {
    width: 48px;
    height: 53px;
  }

  .scene-thumb::before {
    width: 31px;
    height: 37px;
  }

  .scene-option strong {
    font-size: 11px;
  }

  .scene-option small {
    font-size: 8px;
  }

  .life-hero {
    grid-template-columns: 108px 1fr;
    gap: 14px;
  }

  .life-image {
    height: 140px;
  }

  .life-hero blockquote {
    font-size: 12px;
  }

  .gallery-grid {
    grid-template-rows: 165px 126px;
  }

  .invitation-card {
    min-height: 280px;
    padding-top: 24px;
  }

  .invitation-card h3 {
    margin-top: 14px;
    font-size: 24px;
  }

  .invite-qr {
    margin-top: 12px;
  }
}

@media (max-width: 390px) {
  .hero-copy {
    top: 93px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-description {
    font-size: 10px;
  }

  .hall {
    top: 61%;
    transform: translate(-50%, -50%) scale(0.63);
  }

  .scene-hint {
    display: none;
  }

  .hero-actions {
    margin-top: 12px;
  }

  .sheet-header h2 {
    font-size: 21px;
  }
}

@media (max-height: 720px) and (max-width: 760px) {
  .hero-copy {
    top: 82px;
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-description {
    display: none;
  }

  .hall {
    top: 59%;
    transform: translate(-50%, -50%) scale(0.59);
  }
}

/* Final museum-editorial composition. Keep this last so viewport-specific
   legacy rules cannot pull the hero outside the portrait app frame. */
.site-header {
  display: flex;
  height: 68px;
  padding: 0 18px;
  background:
    linear-gradient(to bottom, rgba(10, 11, 10, 0.96), rgba(10, 11, 10, 0.72) 70%, transparent);
  border-bottom: 1px solid rgba(231, 218, 198, 0.07);
  backdrop-filter: blur(20px) saturate(108%);
}

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

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

.hero-copy {
  left: 22px;
  right: 22px;
  top: 92px;
  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 13px;
}

.hero-title-brand {
  color: #f3eee4;
  font-size: 46px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-indent: 0;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

.hero-title-slogan {
  justify-content: flex-start;
  gap: 0.32em;
  margin-top: 11px !important;
  color: rgba(226, 211, 189, 0.62) !important;
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.hero-copy .hero-description {
  width: 255px;
  margin: 12px 0 0;
  color: rgba(225, 216, 201, 0.48);
  font-size: 10px;
  line-height: 1.75;
}

.hero-copy .hero-actions {
  gap: 16px;
  margin-top: 16px;
}

.hero-copy .primary-button {
  min-height: 37px;
  gap: 17px;
  padding: 0 16px;
  border-radius: 999px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.14), transparent 42%),
    #e6ddce;
  color: #1d1d1a;
  font-size: 10px;
}

.hero-copy .text-button {
  color: rgba(236, 226, 211, 0.62);
  font-size: 9px;
}

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

.hall {
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%) scale(0.72);
}

.scene-meta {
  position: absolute;
  z-index: 16;
  top: 84px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(231, 219, 199, 0.36);
  font-family: Georgia, var(--font-serif);
  font-size: 7px;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
}

.scene-meta i {
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, transparent, rgba(190, 153, 100, 0.58), transparent);
}

.memory-note {
  display: block;
  left: 22px;
  right: 22px;
  bottom: 94px;
  width: auto;
  padding: 12px 14px;
  border: 1px solid rgba(231, 217, 197, 0.1);
  border-left: 2px solid rgba(184, 154, 104, 0.72);
  border-radius: 2px 12px 12px 2px;
  background: rgba(17, 18, 16, 0.58);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

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

.memory-note p {
  color: rgba(238, 229, 215, 0.64);
  font-size: 10px;
  line-height: 1.65;
}

.note-sign {
  margin-top: 4px;
}

.scene-hint {
  bottom: 84px;
}

.scene-controls {
  top: 84px;
  right: 18px;
}

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

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

.dock-icon {
  border-radius: 50%;
  background: rgba(230, 213, 188, 0.035);
}

@media (max-width: 414px) {
  .hero-copy {
    left: 20px;
    right: 20px;
  }

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

  .hall {
    top: 60%;
    transform: translate(-50%, -50%) scale(0.69);
  }
}

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

  .hall {
    top: 59%;
    transform: translate(-50%, -50%) scale(0.65);
  }

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

/* 2026 editorial memorial direction */
:root {
  --museum-black: #0b0c0b;
  --museum-ink: #121311;
  --museum-ivory: #f3eee4;
  --museum-stone: #a79f93;
  --museum-bronze: #b89a68;
  --museum-rust: #824a3e;
  --museum-line: rgba(221, 205, 182, 0.14);
}

.app-shell {
  background:
    radial-gradient(circle at 50% 25%, rgba(184, 154, 104, 0.08), transparent 30%),
    var(--museum-black);
}

.site-header {
  display: flex;
  height: 68px;
  padding: 0 18px;
  background:
    linear-gradient(to bottom, rgba(11, 12, 11, 0.94), rgba(11, 12, 11, 0.74) 62%, transparent);
  border-bottom: 1px solid rgba(231, 217, 194, 0.07);
  backdrop-filter: blur(18px) saturate(108%);
}

.brand {
  gap: 10px;
}

.brand-seal {
  width: 34px;
  height: 34px;
  border-radius: 0;
  border-color: rgba(241, 221, 190, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 45%),
    #7f4438;
  font-size: 18px;
  box-shadow:
    inset 0 0 0 4px rgba(44, 23, 18, 0.14),
    0 6px 20px rgba(53, 26, 19, 0.24);
}

.brand-name strong {
  color: var(--museum-ivory);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.brand-name small {
  color: rgba(229, 219, 204, 0.38);
  font-size: 7px;
  letter-spacing: 0.34em;
}

.header-actions {
  gap: 7px;
}

.icon-button,
.avatar-button {
  width: 32px;
  height: 32px;
  border-color: rgba(230, 216, 194, 0.12);
  background: rgba(20, 21, 19, 0.36);
  backdrop-filter: blur(16px);
}

.header-actions .icon-button + .icon-button,
.header-actions .avatar-button {
  margin-left: 0;
}

.avatar-button {
  color: #17130f;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.45), transparent 44%),
    #c3a775;
  border-color: rgba(241, 222, 189, 0.35);
  font-size: 13px;
}

.scene {
  background:
    radial-gradient(ellipse at 50% 43%, rgba(221, 191, 141, 0.18), transparent 24%),
    radial-gradient(ellipse at 68% 56%, rgba(142, 112, 74, 0.08), transparent 39%),
    linear-gradient(148deg, #0a0b0a 0%, #12120f 42%, #0b0b09 100%);
}

.scene::before {
  background:
    linear-gradient(90deg, rgba(8, 9, 8, 0.64) 0%, rgba(8, 9, 8, 0.14) 42%, transparent 64%),
    linear-gradient(to bottom, rgba(8, 9, 8, 0.75) 0%, transparent 20%, transparent 59%, rgba(8, 8, 7, 0.56) 80%, rgba(8, 8, 7, 0.96) 100%);
}

.scene::after {
  opacity: 0.32;
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent 8%, black 34%, transparent 82%);
}

.scene-meta {
  position: absolute;
  z-index: 16;
  top: 86px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(231, 219, 199, 0.38);
  font-family: Georgia, var(--font-serif);
  font-size: 7px;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.scene-meta i {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, transparent, rgba(190, 153, 100, 0.6), transparent);
}

.hero-copy {
  left: 22px;
  right: 22px;
  top: 92px;
  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 .eyebrow {
  gap: 8px;
  margin: 0 0 13px;
  color: rgba(222, 205, 179, 0.48);
  font-size: 8px;
  letter-spacing: 0.3em;
}

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

.hero-recording-time {
  display: none;
}

.hero-copy h1 {
  font-size: initial;
}

.hero-title-brand {
  color: var(--museum-ivory);
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-indent: 0;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.34);
}

.hero-title-slogan {
  justify-content: flex-start;
  gap: 0.32em;
  margin-top: 11px !important;
  color: rgba(226, 211, 189, 0.62) !important;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.hero-copy .hero-description {
  display: block;
  width: 260px;
  margin: 12px 0 0;
  color: rgba(225, 216, 201, 0.48);
  font-size: 11px;
  line-height: 1.75;
  letter-spacing: 0.08em;
}

.hero-copy .hero-actions {
  gap: 16px;
  margin-top: 17px;
}

.primary-button {
  min-height: 38px;
  gap: 18px;
  padding: 0 16px;
  border-color: rgba(234, 218, 191, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.13), transparent 40%),
    #e6ddce;
  color: #1d1d1a;
  font-size: 11px;
  letter-spacing: 0.08em;
  box-shadow: 0 9px 28px rgba(0, 0, 0, 0.2);
}

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

.text-button {
  gap: 8px;
  color: rgba(236, 226, 211, 0.6);
  font-size: 10px;
}

.play-mark {
  width: 26px;
  height: 26px;
  border-color: rgba(223, 204, 175, 0.25);
}

.hero-copy .visit-summary {
  display: flex;
  gap: 10px;
  margin-top: 17px;
}

.visitor-faces span {
  width: 23px;
  height: 23px;
  border-color: rgba(232, 217, 195, 0.17);
  background: rgba(48, 48, 43, 0.92);
}

.visit-summary p {
  color: rgba(225, 215, 201, 0.44);
  font-size: 8px;
}

.visit-summary strong {
  color: rgba(241, 230, 214, 0.8);
  font-size: 9px;
}

.hall {
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%) scale(0.72);
}

.hall-art {
  filter: saturate(0.68) contrast(1.06) sepia(0.08) brightness(0.93);
}

.frame-halo {
  top: -92px;
  width: 460px;
  height: 460px;
  opacity: 0.66;
  background: radial-gradient(circle, rgba(234, 204, 152, 0.2), rgba(189, 148, 92, 0.045) 45%, transparent 70%);
}

.portrait-frame {
  width: 174px;
  height: 224px;
  padding: 5px;
  border-color: rgba(235, 216, 184, 0.5);
  border-radius: 88px 88px 3px 3px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.12), transparent 28%),
    #756144;
  box-shadow:
    0 0 0 3px rgba(20, 18, 14, 0.7),
    0 0 0 4px rgba(203, 173, 124, 0.22),
    0 24px 56px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(222, 180, 114, 0.12);
}

.portrait-frame::before {
  inset: 8px;
  border-radius: 80px 80px 2px 2px;
}

.portrait-mat {
  padding: 5px;
  border-radius: 83px 83px 1px 1px;
  background: #bcaa8e;
}

.portrait-mat img {
  border-radius: 78px 78px 1px 1px;
  filter: saturate(0.6) contrast(1.07) sepia(0.14);
}

.frame-ornament {
  display: none;
}

.name-plaque {
  gap: 3px;
  margin-top: 16px;
}

.name-plaque span {
  font-size: 18px;
  letter-spacing: 0.32em;
}

.name-plaque small {
  font-size: 7px;
  color: rgba(226, 209, 183, 0.4);
}

.memory-note {
  left: 22px;
  right: 22px;
  bottom: 100px;
  width: auto;
  padding: 13px 15px;
  border: 1px solid rgba(231, 217, 197, 0.11);
  border-left: 2px solid rgba(184, 154, 104, 0.7);
  border-radius: 2px 12px 12px 2px;
  background: rgba(18, 19, 17, 0.56);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

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

.memory-note p {
  color: rgba(238, 229, 215, 0.66);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.note-sign {
  margin-top: 5px;
  font-size: 7px;
  color: rgba(217, 200, 175, 0.31);
}

.scene-hint {
  left: 50%;
  bottom: 88px;
  color: rgba(224, 211, 191, 0.22);
  font-size: 8px;
}

.tribute-dock {
  left: 12px;
  bottom: 12px;
  width: calc(100% - 24px);
  max-width: 406px;
  height: 72px;
  padding: 7px;
  border: 1px solid rgba(230, 215, 193, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 42%),
    rgba(18, 19, 17, 0.88);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(26px) saturate(125%);
  transform: none;
}

.tribute-dock::before {
  left: 20px;
  right: 20px;
  background: linear-gradient(90deg, transparent, rgba(214, 185, 137, 0.22), transparent);
}

.tribute-dock button {
  border-radius: 12px;
  color: rgba(235, 224, 208, 0.64);
  font-size: 9px;
}

.tribute-dock button:hover {
  background: rgba(225, 205, 174, 0.06);
}

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

.dock-icon {
  width: 28px;
  height: 25px;
  border-radius: 50%;
  color: rgba(225, 206, 176, 0.72);
  background: rgba(230, 213, 188, 0.035);
}

.dock-icon svg {
  width: 18px;
  height: 18px;
}

.tribute-dock small {
  top: 5px;
  left: calc(50% + 11px);
  border: 0;
  color: rgba(237, 223, 201, 0.5);
  background: rgba(111, 82, 49, 0.32);
}

.scene-controls {
  top: 84px;
  right: 18px;
}

.roam-button {
  height: 30px;
  padding: 0 10px;
  border-color: rgba(227, 210, 184, 0.12);
  background: rgba(17, 18, 16, 0.44);
  font-size: 8px;
}

.roam-button svg {
  width: 12px;
  height: 12px;
}

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

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

  .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: 45px;
  }

  .hero-title-slogan {
    justify-content: flex-start;
    font-size: 11px;
  }

  .hall {
    top: 60%;
    transform: translate(-50%, -50%) scale(0.69);
  }

  .scene-meta {
    top: 82px;
  }

  .memory-note {
    display: block;
  }

  .scene-hint {
    bottom: 91px;
  }
}

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

  .hero-copy .hero-description,
  .hero-copy .visit-summary {
    display: none;
  }

  .hall {
    top: 58%;
    transform: translate(-50%, -50%) scale(0.64);
  }

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

/* Real OmniHuman render playback */
.echo-portrait-stage > video {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(105, 82, 53, 0.24), transparent 58%),
    #0c0b09;
}

.echo-player-sheet.has-video .echo-portrait-stage > video {
  display: block;
}

.echo-player-sheet.has-video .echo-portrait-stage > img {
  opacity: 0.32;
  filter: blur(24px) saturate(0.45) sepia(0.14) brightness(0.52);
  transform: scale(1.18);
}

.echo-player-sheet.has-video .echo-portrait-stage > img,
.echo-portrait-stage > video {
  transition: opacity 350ms ease;
}

.echo-player-sheet.has-video .echo-portrait-stage {
  height: min(55vh, 510px);
  min-height: 380px;
  background: #0c0b09;
}

@media (max-width: 760px) {
  .echo-player-sheet.has-video .echo-portrait-stage {
    height: min(54vh, 450px);
    min-height: 340px;
  }
}

/* Keep the product itself portrait-first, even in the desktop preview. */
@media (min-width: 761px) {
  body {
    display: grid;
    min-height: 100dvh;
    place-items: center;
    padding: 16px;
    background:
      radial-gradient(ellipse at 50% 38%, rgba(106, 82, 52, 0.12), transparent 42%),
      #070706;
  }

  .app-shell {
    width: min(430px, 46vw);
    min-width: 390px;
    height: min(920px, calc(100dvh - 32px));
    min-height: 680px;
    overflow: hidden;
    border: 1px solid rgba(223, 198, 160, 0.13);
    border-radius: 26px;
    background: #0b0b09;
    box-shadow:
      0 40px 110px rgba(0, 0, 0, 0.56),
      0 0 0 8px rgba(255, 255, 255, 0.018);
  }

  .site-header {
    position: absolute;
    height: 70px;
    padding: 0 18px;
  }

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

  .site-header .brand {
    gap: 9px;
  }

  .site-header .brand-seal {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .site-header .brand-name strong {
    font-size: 16px;
    letter-spacing: 0.17em;
  }

  .site-header .brand-name small {
    font-size: 7px;
    letter-spacing: 0.27em;
  }

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

  .site-header .icon-button,
  .site-header .avatar-button {
    width: 33px;
    height: 33px;
  }

  .experience,
  .scene {
    min-height: 100%;
    height: 100%;
  }

  .scene::before {
    background:
      linear-gradient(to bottom, rgba(8, 8, 6, 0.62) 0%, transparent 28%, transparent 54%, rgba(8, 8, 6, 0.6) 83%, rgba(8, 8, 6, 0.94) 100%),
      radial-gradient(ellipse at 50% 45%, transparent 42%, rgba(5, 5, 4, 0.3) 100%);
  }

  .hero-copy {
    left: 50%;
    top: 96px;
    width: calc(100% - 40px);
    text-align: center;
    transform: translateX(-50%);
  }

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

  .hero-copy h1 {
    font-size: initial;
    line-height: 1;
  }

  .hero-title-brand {
    font-size: 47px;
    line-height: 1.1;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
  }

  .hero-title-slogan {
    justify-content: center;
    gap: 0.3em;
    margin-top: 16px !important;
    font-size: 14px;
    letter-spacing: 0.16em;
    line-height: 1.5;
  }

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

  .scene-controls {
    position: absolute;
    top: 24px;
    right: 16px;
  }

  .tribute-dock {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 70px;
    padding: 6px 9px;
    border: 0;
    border-top: 1px solid rgba(219, 193, 155, 0.12);
    border-radius: 0;
    transform: none;
  }

  .site-footer {
    display: none;
  }

  .modal-layer {
    inset: 16px auto;
    left: 50%;
    width: min(430px, 46vw);
    min-width: 390px;
    height: min(920px, calc(100dvh - 32px));
    min-height: 680px;
    transform: translateX(-50%);
    border-radius: 26px;
    overflow: hidden;
  }

  .bottom-sheet {
    width: 100%;
    max-height: 100%;
    border-radius: 24px 24px 0 0;
  }

  .echo-player-sheet.has-video .echo-portrait-stage {
    width: min(100%, 310px);
    height: auto;
    min-height: 0;
    aspect-ratio: 9 / 16;
    margin-inline: auto;
  }

  .echo-player-sheet.has-video .echo-portrait-stage > video {
    object-fit: cover;
    object-position: 50% 31%;
  }
}

@media (max-width: 760px) {
  .echo-player-sheet.has-video .echo-portrait-stage {
    width: min(100%, 300px);
    height: auto;
    min-height: 0;
    aspect-ratio: 9 / 16;
    margin-inline: auto;
  }

  .echo-player-sheet.has-video .echo-portrait-stage > video {
    object-fit: cover;
    object-position: 50% 31%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Refined cinematic art direction */
.hall-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  filter: contrast(1.03) sepia(0.05);
}

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

.scene {
  background:
    radial-gradient(ellipse at 68% 48%, rgba(174, 132, 76, 0.15), transparent 25%),
    radial-gradient(ellipse at 51% 58%, rgba(118, 89, 54, 0.09), transparent 42%),
    linear-gradient(112deg, #090908 0%, #0e0d0b 31%, #17140f 59%, #090806 100%);
}

.scene::before {
  background:
    linear-gradient(90deg, rgba(7, 7, 6, 0.9) 0%, rgba(7, 7, 6, 0.57) 26%, transparent 54%),
    linear-gradient(to bottom, rgba(7, 7, 6, 0.68) 0%, transparent 20%, transparent 76%, rgba(7, 7, 6, 0.75) 100%);
}

.site-header {
  background:
    linear-gradient(to bottom, rgba(8, 8, 7, 0.75), rgba(8, 8, 7, 0.08) 72%, transparent);
}

.brand-seal {
  border-radius: 1px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), transparent 42%),
    #8f3d31;
  box-shadow:
    inset 0 0 0 3px rgba(41, 21, 16, 0.12),
    0 8px 24px rgba(85, 30, 22, 0.2);
}

.icon-button,
.avatar-button {
  background: rgba(18, 16, 13, 0.28);
  border-color: rgba(230, 209, 177, 0.14);
}

.hero-copy {
  width: 500px;
}

.hero-copy h1 {
  color: #eee3d2;
  text-shadow:
    0 10px 38px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(193, 148, 83, 0.04);
}

.hero-copy h1 span:last-child {
  color: #d8c4a8;
}

.eyebrow {
  color: rgba(221, 198, 164, 0.52);
}

.eyebrow span {
  width: 36px;
  background: linear-gradient(90deg, transparent, rgba(203, 164, 105, 0.63));
}

.hero-description {
  color: rgba(225, 211, 190, 0.54);
}

.primary-button {
  border-radius: 1px;
  border-color: rgba(222, 188, 135, 0.42);
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.07), transparent 34%),
    linear-gradient(110deg, #743529, #8c4132 58%, #6c3026);
  box-shadow:
    0 12px 30px rgba(53, 20, 16, 0.27),
    inset 0 1px rgba(255, 240, 216, 0.1);
}

.text-button {
  color: rgba(232, 218, 198, 0.6);
}

.play-mark {
  border-color: rgba(216, 183, 132, 0.24);
}

.portrait-frame {
  border-color: rgba(221, 189, 135, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 22%),
    #2b2118;
  box-shadow:
    0 0 0 3px rgba(22, 17, 12, 0.7),
    0 0 0 4px rgba(197, 158, 100, 0.18),
    0 20px 44px rgba(0, 0, 0, 0.5),
    0 0 42px rgba(207, 158, 86, 0.11);
}

.portrait-mat {
  padding: 6px;
  border-color: rgba(232, 212, 179, 0.12);
  background: #b39a73;
}

.portrait-mat img {
  filter: saturate(0.7) contrast(1.04) sepia(0.17);
}

.name-plaque {
  gap: 3px;
  margin-top: 19px;
}

.name-plaque span {
  font-size: 20px;
  letter-spacing: 0.3em;
}

.name-plaque small {
  color: rgba(221, 200, 168, 0.44);
}

.altar-top {
  background:
    linear-gradient(to bottom, rgba(173, 135, 83, 0.41), transparent 18%),
    linear-gradient(90deg, #1a140e, #4c3a26 48%, #5b462c 51%, #1a140e);
}

.altar-front {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 24%, rgba(255, 230, 182, 0.035) 50%, transparent 76%, rgba(0, 0, 0, 0.24)),
    repeating-linear-gradient(90deg, transparent 0 56px, rgba(209, 181, 135, 0.035) 57px, transparent 58px),
    linear-gradient(to bottom, #302318, #1c150f);
}

.memory-note {
  width: 305px;
  padding: 4px 0 4px 22px;
  border: 0;
  border-left: 1px solid rgba(205, 167, 107, 0.24);
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

.memory-note::before {
  content: "";
  display: block;
  position: absolute;
  left: -2px;
  top: 0;
  width: 3px;
  height: 22px;
  border: 0;
  background: #974637;
}

.memory-note::after {
  display: none;
}

.memory-note p {
  color: rgba(232, 218, 198, 0.6);
  font-size: 14px;
}

.note-quote {
  top: -19px;
  right: 0;
  font-size: 52px;
  color: rgba(209, 178, 129, 0.12);
}

.note-sign {
  color: rgba(212, 190, 160, 0.28);
}

.tribute-dock {
  border-radius: 2px;
  border-color: rgba(222, 197, 160, 0.15);
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.025), transparent 38%),
    rgba(13, 12, 10, 0.82);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

.tribute-dock button {
  border-radius: 0;
  color: rgba(232, 218, 198, 0.63);
}

.tribute-dock button:hover {
  background: linear-gradient(to top, rgba(183, 139, 78, 0.08), transparent);
}

.dock-icon {
  color: rgba(219, 192, 151, 0.68);
}

.bottom-sheet {
  background:
    radial-gradient(ellipse at 92% 0%, rgba(139, 65, 48, 0.09), transparent 25%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 25%),
    #16140f;
}

.flower-option,
.scene-option {
  border-radius: 2px;
}

.sheet-primary {
  border-radius: 1px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.055), transparent 35%),
    #884033;
}

@media (max-width: 1050px) {
  .hero-copy {
    width: 480px;
  }
}

@media (max-width: 760px) {
  .brand-seal {
    width: 31px;
    height: 31px;
  }

  .scene::before {
    background:
      linear-gradient(to bottom, rgba(7, 7, 6, 0.6) 0%, transparent 27%, transparent 53%, rgba(7, 7, 6, 0.6) 82%, rgba(7, 7, 6, 0.92) 100%),
      radial-gradient(ellipse at 50% 45%, transparent 40%, rgba(6, 6, 5, 0.3) 100%);
  }

  .hero-copy {
    width: calc(100% - 46px);
  }

  .hero-copy h1 {
    font-size: clamp(36px, 10.3vw, 46px);
    line-height: 1.16;
  }

  .primary-button {
    border-color: rgba(219, 183, 128, 0.35);
  }

  .hall {
    top: 61%;
  }

  .tribute-dock {
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: calc(70px + env(safe-area-inset-bottom));
    padding: 7px 9px env(safe-area-inset-bottom);
    border: 0;
    border-top: 1px solid rgba(219, 193, 155, 0.12);
    border-radius: 0;
    background:
      linear-gradient(to right, transparent, rgba(213, 181, 133, 0.055), transparent) top / 100% 1px no-repeat,
      rgba(11, 10, 8, 0.87);
    transform: none;
  }

  .tribute-dock button + button::before {
    top: 12px;
    bottom: 11px;
  }

  .scene-hint {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .bottom-sheet {
    border-radius: 3px 3px 0 0;
    border-bottom: 0;
  }
}

@media (max-width: 390px) {
  .hall {
    top: 62%;
  }

  .hero-copy h1 {
    font-size: 37px;
  }
}

/* Nian Sheng · authorized AI memorial echo */
.mark-echo {
  color: #d1b17d;
  background:
    radial-gradient(circle at 40% 30%, rgba(230, 199, 147, 0.15), transparent 45%),
    rgba(115, 86, 50, 0.15);
}

.file-input-hidden {
  display: none;
}

.echo-prompt-sheet {
  width: min(100%, 560px);
  padding: 0;
  overflow: hidden auto;
}

.echo-prompt-sheet::before {
  display: none;
}

.echo-prompt-close {
  appearance: none;
  position: absolute;
  z-index: 4;
  top: 17px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid rgba(246, 231, 208, 0.2);
  border-radius: 50%;
  background: rgba(11, 10, 8, 0.48);
  color: rgba(245, 231, 210, 0.68);
  backdrop-filter: blur(10px);
}

.echo-prompt-close svg {
  width: 13px;
  height: 13px;
}

.echo-prompt-visual {
  position: relative;
  height: 258px;
  overflow: hidden;
  background: #17130e;
}

.echo-prompt-visual > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
  filter: saturate(0.58) sepia(0.22) contrast(1.06);
  transform: scale(1.025);
}

.echo-visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(7, 6, 5, 0.23), transparent 34%, rgba(20, 17, 13, 0.45) 76%, #16140f 100%),
    linear-gradient(90deg, rgba(7, 6, 5, 0.28), transparent 45%, rgba(7, 6, 5, 0.22));
}

.echo-folio {
  position: absolute;
  top: 23px;
  left: 23px;
  color: rgba(245, 228, 201, 0.45);
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: 0.25em;
}

.echo-ai-badge {
  position: absolute;
  top: 20px;
  right: 61px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(233, 209, 172, 0.2);
  border-radius: 12px;
  background: rgba(13, 12, 10, 0.42);
  color: rgba(241, 224, 200, 0.66);
  font-size: 8px;
  letter-spacing: 0.09em;
  backdrop-filter: blur(10px);
}

.echo-ai-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d8b87e;
  box-shadow: 0 0 8px rgba(225, 185, 119, 0.7);
}

.echo-wax-seal {
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(237, 199, 152, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 232, 201, 0.18), transparent 35%),
    #843a2f;
  color: #f1dfc8;
  font-family: var(--font-serif);
  font-size: 18px;
  box-shadow:
    inset 0 0 0 3px rgba(79, 29, 23, 0.25),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

.echo-prompt-body {
  position: relative;
  padding: 6px 28px calc(22px + env(safe-area-inset-bottom));
  background:
    linear-gradient(to bottom, #16140f, #191610 42%, #14120e);
}

.echo-prompt-body::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 178, 118, 0.18), transparent);
}

.echo-prompt-body h2 {
  margin: 5px 0 15px;
  color: #efe3d2;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: 0.12em;
}

.echo-prompt-body h2 em {
  color: #d2b184;
  font-style: normal;
}

.echo-prompt-body > p {
  max-width: 430px;
  margin: 0;
  color: rgba(222, 207, 187, 0.48);
  font-family: var(--font-serif);
  font-size: 11px;
  line-height: 1.95;
  letter-spacing: 0.035em;
}

.echo-authorization {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  padding: 12px 13px;
  border-block: 1px solid rgba(219, 193, 156, 0.08);
  color: rgba(196, 208, 184, 0.56);
}

.echo-authorization > svg {
  width: 14px;
  height: 14px;
}

.echo-authorization > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.echo-authorization strong {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.echo-authorization small {
  color: rgba(212, 194, 168, 0.27);
  font-size: 8px;
}

.echo-authorization > i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(208, 181, 140, 0.14), transparent);
}

.echo-duration {
  color: rgba(216, 193, 159, 0.34);
  font-family: Georgia, serif;
  font-size: 8px;
}

.echo-listen-button {
  position: relative;
  gap: 10px;
  margin-top: 18px;
}

.echo-listen-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(249, 228, 198, 0.22);
  border-radius: 50%;
}

.echo-listen-mark svg {
  width: 10px;
  height: 10px;
  margin-left: 1px;
}

.echo-later-button {
  appearance: none;
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 9px;
  border: 0;
  background: none;
  color: rgba(218, 197, 168, 0.33);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.echo-disclosure {
  margin-top: 9px !important;
  color: rgba(211, 191, 164, 0.23) !important;
  font-family: var(--font-sans) !important;
  font-size: 8px !important;
  line-height: 1.7 !important;
  text-align: center;
}

.echo-player-sheet {
  width: min(100%, 610px);
  padding: 20px 22px calc(19px + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 50% 31%, rgba(179, 130, 72, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.026), transparent 28%),
    #12110e;
}

.echo-player-sheet::before {
  background: linear-gradient(90deg, transparent, rgba(209, 165, 98, 0.2), transparent);
}

.echo-player-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  margin-bottom: 13px;
}

.echo-player-brand {
  color: rgba(239, 224, 202, 0.68);
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.13em;
}

.echo-player-brand i {
  display: inline-block;
  width: 16px;
  height: 1px;
  margin: 0 5px 3px;
  background: rgba(208, 169, 105, 0.36);
}

.echo-player-index {
  margin-left: auto;
  color: rgba(210, 188, 155, 0.24);
  font-family: Georgia, serif;
  font-size: 7px;
  letter-spacing: 0.16em;
}

.echo-player-head .sheet-close {
  width: 29px;
  height: 29px;
  border-color: rgba(231, 209, 179, 0.13);
}

.echo-portrait-stage {
  position: relative;
  height: min(400px, 48vh);
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(224, 193, 146, 0.17);
  background: #19140f;
  isolation: isolate;
}

.echo-portrait-stage::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 8px;
  border: 1px solid rgba(235, 216, 185, 0.09);
  pointer-events: none;
}

.echo-portrait-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: saturate(0.54) sepia(0.25) contrast(1.04) brightness(0.83);
  transform: scale(1.02);
  transform-origin: 50% 45%;
}

.echo-player-sheet.is-playing .echo-portrait-stage > img {
  animation: echoPortraitBreath 7s ease-in-out infinite alternate;
}

@keyframes echoPortraitBreath {
  from {
    transform: scale(1.02) translate3d(-0.4%, 0, 0);
    filter: saturate(0.54) sepia(0.25) contrast(1.04) brightness(0.81);
  }
  to {
    transform: scale(1.065) translate3d(0.5%, -0.6%, 0);
    filter: saturate(0.61) sepia(0.22) contrast(1.04) brightness(0.88);
  }
}

.echo-stage-light {
  position: absolute;
  z-index: 2;
  top: -24%;
  left: 8%;
  width: 54%;
  height: 150%;
  opacity: 0.18;
  background: linear-gradient(to bottom, rgba(255, 227, 181, 0.45), transparent 72%);
  clip-path: polygon(38% 0, 67% 0, 100% 100%, 0 100%);
  filter: blur(18px);
  animation: echoLight 8s ease-in-out infinite alternate;
}

@keyframes echoLight {
  from {
    opacity: 0.1;
    transform: translateX(-8px) rotate(-1deg);
  }
  to {
    opacity: 0.24;
    transform: translateX(12px) rotate(1deg);
  }
}

.echo-stage-vignette {
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(9, 8, 6, 0.17), transparent 28%, rgba(8, 7, 5, 0.17) 54%, rgba(9, 8, 6, 0.93) 100%),
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(7, 7, 5, 0.42) 100%);
}

.echo-stage-copy {
  position: absolute;
  z-index: 5;
  left: 30px;
  right: 30px;
  bottom: 31px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.echo-stage-copy .echo-ai-badge {
  position: static;
  margin-bottom: 15px;
  color: rgba(240, 224, 201, 0.58);
}

.echo-stage-copy p {
  min-height: 2.7em;
  margin: 0;
  color: rgba(248, 236, 218, 0.92);
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.08em;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.5);
  transition:
    opacity 300ms ease,
    transform 500ms var(--ease);
}

.echo-stage-copy p.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.echo-speaker {
  margin-top: 9px;
  color: rgba(231, 214, 189, 0.32);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.echo-wave-wrap {
  margin-top: 15px;
}

.echo-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 8px;
}

.echo-wave i {
  display: block;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: rgba(210, 179, 128, 0.34);
  transform-origin: 50% 50%;
  transition: background 300ms ease;
}

.echo-wave i:nth-child(3n) {
  height: 13px;
}

.echo-wave i:nth-child(4n) {
  height: 21px;
}

.echo-wave i:nth-child(5n) {
  height: 9px;
}

.echo-wave i:nth-child(7n) {
  height: 16px;
}

.echo-player-sheet.is-playing .echo-wave i {
  background: rgba(225, 192, 136, 0.72);
  animation: echoWaveBar 0.9s ease-in-out infinite alternate;
}

.echo-player-sheet.is-playing .echo-wave i:nth-child(3n) {
  animation-delay: -0.38s;
}

.echo-player-sheet.is-playing .echo-wave i:nth-child(4n) {
  animation-delay: -0.62s;
}

.echo-player-sheet.is-playing .echo-wave i:nth-child(5n) {
  animation-delay: -0.17s;
}

@keyframes echoWaveBar {
  from {
    transform: scaleY(0.55);
    opacity: 0.42;
  }
  to {
    transform: scaleY(1.7);
    opacity: 1;
  }
}

.echo-progress {
  height: 1px;
  margin-top: 8px;
  overflow: hidden;
  background: rgba(227, 204, 170, 0.1);
}

.echo-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #8a4c39, #d4b47c);
  box-shadow: 0 0 8px rgba(211, 174, 112, 0.35);
  transition: width 250ms linear;
}

.echo-player-controls {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 2px 12px;
}

.echo-toggle {
  appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(226, 193, 140, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.08), transparent 38%),
    #7f3b30;
  color: #f3e2cc;
  box-shadow: 0 9px 22px rgba(55, 22, 18, 0.3);
}

.echo-toggle svg {
  width: 16px;
  height: 16px;
}

.echo-play-status {
  display: grid;
  gap: 3px;
}

.echo-play-status strong {
  color: rgba(240, 226, 207, 0.73);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.echo-play-status span {
  color: rgba(211, 190, 161, 0.29);
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: 0.09em;
}

.echo-private {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: rgba(208, 189, 162, 0.25);
  font-size: 8px;
}

.echo-private svg {
  width: 9px;
  height: 9px;
}

.echo-ending {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 2px 0 8px;
  padding: 17px 15px 15px;
  border-block: 1px solid rgba(217, 185, 135, 0.09);
  text-align: center;
  animation: echoEndingIn 700ms var(--ease);
}

.echo-ending[hidden] {
  display: none;
}

.echo-ending > span {
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 181, 123, 0.58), transparent);
}

.echo-ending p {
  margin: 0;
  color: rgba(232, 218, 199, 0.56);
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.07em;
}

.echo-ending button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 0;
  background: none;
  color: rgba(212, 180, 132, 0.48);
  font-size: 8px;
}

.echo-ending button svg {
  width: 11px;
  height: 11px;
}

@keyframes echoEndingIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.echo-player-note {
  margin: 0;
  color: rgba(210, 190, 162, 0.22);
  font-size: 7px;
  line-height: 1.7;
  letter-spacing: 0.025em;
  text-align: center;
}

@media (max-width: 760px) {
  .echo-prompt-sheet {
    max-height: calc(100dvh - 12px);
  }

  .echo-prompt-visual {
    height: 218px;
  }

  .echo-prompt-body {
    padding: 5px 21px calc(17px + env(safe-area-inset-bottom));
  }

  .echo-prompt-body h2 {
    font-size: 26px;
  }

  .echo-prompt-body > p {
    font-size: 10px;
  }

  .echo-authorization {
    margin-top: 13px;
    padding-block: 10px;
  }

  .echo-player-sheet {
    max-height: calc(100dvh - 10px);
    padding: 16px 15px calc(15px + env(safe-area-inset-bottom));
  }

  .echo-portrait-stage {
    height: min(344px, 43vh);
    min-height: 265px;
  }

  .echo-stage-copy {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }

  .echo-stage-copy p {
    font-size: 20px;
  }

  .echo-wave {
    gap: 3px;
    height: 27px;
  }

  .echo-wave-wrap {
    margin-top: 11px;
  }

  .echo-player-controls {
    padding-block: 13px 9px;
  }
}

@media (max-height: 720px) {
  .echo-prompt-visual {
    height: 176px;
  }

  .echo-prompt-body h2 {
    font-size: 23px;
    margin-bottom: 10px;
  }

  .echo-authorization {
    margin-top: 9px;
  }

  .echo-listen-button {
    margin-top: 11px;
  }

  .echo-portrait-stage {
    height: 36vh;
    min-height: 220px;
  }

  .echo-stage-copy p {
    font-size: 18px;
  }

  .echo-player-note {
    display: none;
  }
}

/* Align the mobile composition with the supplied 静忆堂 reference screens */
.hero-copy h1 {
  letter-spacing: 0;
}

.hero-title-brand {
  display: block;
  color: #f0e6d7;
  font-size: clamp(66px, 7vw, 102px);
  line-height: 1;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
}

.hero-title-slogan {
  display: flex !important;
  align-items: center;
  gap: 0.5em;
  margin: 22px 0 0 !important;
  color: rgba(223, 204, 177, 0.56) !important;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.65;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.hero-title-slogan i {
  font-style: normal;
}

.hero-title-slogan b {
  color: rgba(201, 163, 103, 0.5);
  font-family: Georgia, serif;
  font-weight: 400;
}

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

  .hero-copy {
    top: 96px;
    width: calc(100% - 40px);
    text-align: center;
  }

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

  .hero-copy h1 {
    font-size: initial;
    line-height: 1;
  }

  .hero-title-brand {
    font-size: 47px;
    line-height: 1.1;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
  }

  .hero-title-slogan {
    justify-content: center;
    gap: 0.3em;
    margin-top: 16px !important;
    font-size: 14px;
    letter-spacing: 0.16em;
    line-height: 1.5;
  }

  .hall {
    top: 59%;
  }

  .scene-controls {
    top: 25px;
  }

  .roam-button {
    border-color: rgba(228, 208, 178, 0.09);
    background: rgba(16, 14, 11, 0.24);
  }

  .scene-hint {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .hero-copy {
    top: 106px;
  }

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

  .hero-title-slogan {
    font-size: 13px;
  }

  .hall {
    top: 58%;
    transform: translate(-50%, -50%) scale(0.66);
  }
}

@media (max-height: 720px) and (max-width: 760px) {
  .hero-copy {
    top: 72px;
  }

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

  .hero-title-slogan {
    margin-top: 6px !important;
    font-size: 12px;
  }

  .hall {
    top: 57%;
    transform: translate(-50%, -50%) scale(0.61);
  }
}

/* The portrait app frame owns the main composition at every viewport width. */
.site-header {
  display: flex;
}

.hero-copy {
  left: 22px;
  right: 22px;
  top: 92px;
  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-slogan {
  justify-content: flex-start;
}

.hero-title-brand {
  font-size: 45px;
  text-indent: 0;
}

.hall {
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%) scale(0.72);
}

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

  .hero-copy {
    left: 20px;
    right: 20px;
    top: 88px;
    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: 60%;
    transform: translate(-50%, -50%) scale(0.69);
  }

  .memory-note {
    display: block;
  }

  .scene-controls {
    top: 82px;
  }
}

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

  .hall {
    top: 59%;
    transform: translate(-50%, -50%) scale(0.65);
  }
}

/* Authoritative final cascade for the refreshed portrait UI. */
.site-header {
  display: flex;
  height: 64px;
  padding: 0 16px;
  background:
    linear-gradient(to bottom, rgba(10, 11, 10, 0.97), rgba(10, 11, 10, 0.7) 72%, transparent);
  border-bottom: 1px solid rgba(231, 218, 198, 0.065);
}

.brand-seal {
  width: 32px;
  height: 32px;
  border-radius: 0;
  font-size: 17px;
}

.brand-name strong {
  font-size: 15px;
}

.header-actions .icon-button,
.header-actions .avatar-button {
  display: grid;
  width: 31px;
  height: 31px;
}

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

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

.hero-title-brand {
  font-size: 45px;
  line-height: 1;
  letter-spacing: 0.18em;
}

.hero-title-slogan {
  justify-content: flex-start;
  margin-top: 10px !important;
  font-size: 11px;
}

.hero-copy .hero-description {
  width: 250px;
  margin-top: 11px;
  font-size: 10px;
}

.hero-copy .hero-actions {
  margin-top: 15px;
}

.hero-copy .primary-button {
  min-height: 36px;
  padding-inline: 15px;
  border-radius: 999px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.15), transparent 42%),
    #e6ddce;
  color: #1d1d1a;
}

.hall {
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%) scale(0.72);
}

.frame-halo {
  top: -92px;
  width: 460px;
  height: 460px;
}

.portrait-frame {
  width: 174px;
  height: 224px;
  padding: 5px;
  border-radius: 88px 88px 3px 3px;
}

.portrait-frame::before {
  inset: 8px;
  border-radius: 80px 80px 2px 2px;
}

.portrait-mat {
  padding: 5px;
  border-radius: 83px 83px 1px 1px;
}

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

.frame-ornament {
  display: none;
}

.memory-note {
  display: block;
  left: 22px;
  right: 22px;
  bottom: 94px;
  width: auto;
  height: auto;
  padding: 11px 14px;
  border: 1px solid rgba(231, 217, 197, 0.1);
  border-left: 2px solid rgba(184, 154, 104, 0.72);
  border-radius: 2px 12px 12px 2px;
  background: rgba(17, 18, 16, 0.6);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

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

.memory-note p {
  color: rgba(238, 229, 215, 0.64);
  font-size: 10px;
  line-height: 1.65;
}

.note-sign {
  margin-top: 4px;
}

.scene-hint {
  bottom: 84px;
}

.tribute-dock {
  left: 12px;
  bottom: 12px;
  width: calc(100% - 24px);
  max-width: 406px;
  height: 72px;
  padding: 7px;
  border: 1px solid rgba(230, 215, 193, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 42%),
    rgba(18, 19, 17, 0.9);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.46),
    inset 0 1px rgba(255, 255, 255, 0.035);
  transform: none;
}

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

.dock-icon {
  border-radius: 50%;
  background: rgba(230, 213, 188, 0.035);
}

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

  .hero-copy {
    left: 20px;
    right: 20px;
    top: 82px;
  }

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

  .hall {
    top: 60%;
    transform: translate(-50%, -50%) scale(0.69);
  }
}

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

  .hall {
    top: 59%;
    transform: translate(-50%, -50%) scale(0.65);
  }
}
