:root {
  --bg: #faf8f3;
  --bg-2: #f3efe7;
  --paper: #ffffff;
  --warm: #f5efe4;
  --sage: #7a9e7e;
  --sage-2: #5f7d63;
  --sage-3: #3e5b42;
  --leaf: #a3b899;
  --bloom: #e8c4a2;
  --terracotta: #c17a53;
  --sun: #f3d68b;
  --ink: #2c3e2c;
  --ink-2: #4a5748;
  --muted: #7a7a6c;
  --line: rgba(44, 62, 44, 0.09);
  --line-2: rgba(44, 62, 44, 0.14);
  --shadow: 0 20px 50px rgba(74, 87, 72, 0.12);
  --shadow-soft: 0 10px 28px rgba(74, 87, 72, 0.08);
  --danger: #d58a7a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(243, 214, 139, 0.22), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(122, 158, 126, 0.14), transparent 28%),
    linear-gradient(160deg, #fffdf9 0%, #f7f2ea 52%, #efe8db 100%);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.prototype-shell {
  display: grid;
  grid-template-columns: 330px 1fr 300px;
  gap: 28px;
  height: 100vh;
  padding: 32px;
}

.side-panel,
.flow-panel {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.brand,
.panel-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.brand {
  padding: 24px;
  margin-bottom: 18px;
}

.brand span,
.eyebrow,
.kicker {
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand h1 {
  margin: 12px 0 10px;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 26px;
  line-height: 1.18;
  color: var(--ink);
}

.brand p,
.hint,
.flow-note,
.panel-card li {
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.panel-card {
  padding: 18px;
  margin-bottom: 16px;
}

.panel-card h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 15px;
}

.panel-card ul {
  margin: 0;
  padding-left: 18px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-btn,
.mini-btn {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  transition: 160ms ease;
}

.nav-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  text-align: left;
}

.nav-btn span {
  color: var(--muted);
  font-size: 11px;
}

.nav-btn.active,
.nav-btn:hover,
.mini-btn:hover {
  border-color: rgba(193, 122, 83, 0.4);
  background: rgba(193, 122, 83, 0.1);
}

.state-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.mini-btn {
  min-width: 94px;
  padding: 8px 10px;
  border-radius: 999px;
}

.phone-stage {
  display: grid;
  place-items: center;
  min-width: 0;
}

.phone {
  position: relative;
  overflow: hidden;
  width: 390px;
  height: 844px;
  border: 10px solid #ede8dd;
  border-radius: 44px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.55), transparent 30%),
    radial-gradient(circle at 86% 4%, rgba(255, 255, 255, 0.35), transparent 24%);
  mix-blend-mode: screen;
}

.device-bar {
  position: absolute;
  z-index: 25;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 16px 24px 0;
  color: rgba(44, 62, 44, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 18%, rgba(243, 214, 139, 0.35), transparent 30%),
    radial-gradient(circle at 30% 70%, rgba(122, 158, 126, 0.18), transparent 34%),
    linear-gradient(180deg, #fffdf9 0%, #f8f4ec 55%, #f0eadc 100%);
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 58px 24px 30px;
  animation: pageIn 220ms ease both;
}

.page::-webkit-scrollbar {
  width: 0;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-bottom: 16px;
}

.back,
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 8px rgba(44, 62, 44, 0.06);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-icon {
  color: #fff;
  background: var(--sage);
  border-color: rgba(122, 158, 126, 0.6);
  font-size: 18px;
  font-weight: 900;
}

.page-title {
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 28px;
  line-height: 1.14;
  color: var(--ink);
}

.subtext {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.home-art {
  position: relative;
  height: 392px;
  margin: 20px 0 0;
}

.moon {
  display: none;
}

.moon::after {
  content: none;
}

.night-tree {
  position: absolute;
  left: 24px;
  top: 86px;
  width: 280px;
  height: 278px;
}

.night-tree::before {
  content: "";
  position: absolute;
  left: 146px;
  top: 64px;
  width: 8px;
  height: 210px;
  border-radius: 99px;
  background: linear-gradient(#a3b899, #7a9e7e);
  transform: rotate(7deg);
}

.night-tree::after {
  content: "";
  position: absolute;
  left: 78px;
  top: 0;
  width: 148px;
  height: 96px;
  border-radius: 50%;
  background: rgba(243, 214, 139, 0.35);
  filter: blur(24px);
}

.night-tree span {
  position: absolute;
  border-radius: 50%;
  background: rgba(122, 158, 126, 0.22);
  border: 1px solid rgba(122, 158, 126, 0.18);
}

.night-tree span:nth-child(1) {
  width: 196px;
  height: 132px;
  left: 42px;
  top: 18px;
}

.night-tree span:nth-child(2) {
  width: 170px;
  height: 122px;
  left: 134px;
  top: 82px;
}

.night-tree span:nth-child(3) {
  width: 150px;
  height: 110px;
  left: 72px;
  top: 138px;
}

.hero-copy {
  margin-top: -4px;
}

.hero-copy h1 {
  margin: 8px 0 12px;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 32px;
  line-height: 1.14;
  color: var(--ink);
}

.primary,
.secondary,
.plain,
.danger {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  font-weight: 800;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-2) 100%);
  box-shadow: 0 14px 32px rgba(95, 125, 99, 0.28);
}

.secondary {
  color: var(--sage-3);
  background: var(--paper);
  border: 1px solid var(--line-2);
  box-shadow: 0 4px 14px rgba(74, 87, 72, 0.06);
}

.plain {
  color: var(--sage-2);
  background: transparent;
}

.danger {
  color: #fff;
  background: var(--danger);
  box-shadow: 0 10px 24px rgba(213, 138, 122, 0.2);
}

.stack {
  display: grid;
  gap: 12px;
}

.home-actions {
  margin-top: 28px;
}

.tiny-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.card,
.pet-card,
.field,
.menu-row,
.notice,
.video-item,
.order-card,
.faq-card,
.date-card,
.comment-card,
.guest-card,
.package-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.pet-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.pet-card:active,
.menu-row:active,
.guest-card:active,
.video-item:active {
  transform: scale(0.99);
}

.avatar {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.04)),
    url("./assets/cat-avatar.png") center / cover no-repeat;
  box-shadow:
    0 0 0 4px rgba(122, 158, 126, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 12px 28px rgba(74, 87, 72, 0.14);
}

.avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.35), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 42%, rgba(0, 0, 0, 0.06));
  pointer-events: none;
}

.avatar::after {
  content: none;
}

.avatar.small {
  width: 54px;
  height: 54px;
  border-width: 2px;
}

.avatar.large {
  width: 96px;
  height: 96px;
  margin: 0 auto;
}

.avatar.dog {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.04)),
    url("./assets/dog-avatar.png") center / cover no-repeat;
}

.avatar.dog::before {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%, rgba(0, 0, 0, 0.05));
}

.pets-page {
  padding-bottom: 30px;
}

.pets-list {
  display: grid;
  gap: 12px;
}

.pet-feature-card,
.pet-mini-card,
.new-pet-card {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.pet-feature-card {
  position: relative;
  min-height: 246px;
  overflow: hidden;
  padding: 16px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.45)),
    radial-gradient(circle at 24% 12%, rgba(232, 196, 162, 0.35), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(122, 158, 126, 0.22), transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #f5efe4 100%);
}

.pet-feature-card::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(193, 122, 83, 0.35), transparent);
}

.pet-photo-wrap {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(122, 158, 126, 0.18), transparent 66%),
    rgba(255, 255, 255, 0.55);
}

.pet-feature-card .avatar.large {
  width: 96px;
  height: 96px;
  margin: 0;
}

.pet-feature-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.pet-feature-copy h3 {
  margin: 9px 0 6px;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 29px;
  color: var(--ink);
}

.pet-feature-copy p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.pet-mini-card {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 24px;
}

.pet-mini-card h3 {
  margin: 0 0 5px;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 22px;
  color: var(--ink);
}

.pet-mini-card p,
.new-pet-card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.pet-mini-card > span {
  color: var(--sage-2);
  font-size: 13px;
  font-weight: 800;
}

.new-pet-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(232, 196, 162, 0.9), rgba(122, 158, 126, 0.82));
  color: #fff;
}

.new-pet-card strong {
  font-size: 18px;
}

.new-pet-card span {
  color: rgba(255, 255, 255, 0.8);
}

.pet-card h3,
.card h3,
.order-card h3,
.package-card h3 {
  margin: 0 0 6px;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 22px;
  color: var(--ink);
}

.pet-card p,
.card p,
.menu-row span,
.video-item span,
.order-card p,
.faq-card p,
.date-card span,
.comment-card p,
.guest-card span,
.package-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--sage-3);
  background: var(--warm);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
}

.muted-badge {
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.tabbar {
  position: sticky;
  z-index: 10;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: auto -4px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.tabbar button {
  min-height: 42px;
  border: 0;
  border-radius: 15px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.tabbar button.active {
  color: #fff;
  background: var(--sage);
}

.field {
  display: block;
  padding: 13px 14px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  color: var(--sage-2);
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.field textarea {
  min-height: 84px;
  resize: none;
  line-height: 1.55;
}

.chips,
.segmented {
  display: flex;
  gap: 8px;
}

.chip,
.segmented button {
  flex: 1;
  min-height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 15px;
  color: var(--ink);
  background: var(--bg-2);
  font-weight: 800;
}

.chip.active,
.segmented button.active {
  color: #fff;
  background: var(--sage);
  border-color: var(--sage);
}

.memorial-page {
  gap: 14px;
  padding-bottom: 30px;
}

.memorial-topbar {
  margin-bottom: 0;
}

.memorial-card {
  position: relative;
  overflow: hidden;
  min-height: 278px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 0%, rgba(232, 196, 162, 0.3), transparent 35%),
    radial-gradient(circle at 88% 90%, rgba(122, 158, 126, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f9f4eb 100%);
  box-shadow: var(--shadow);
  text-align: center;
}

.memorial-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(193, 122, 83, 0.35), transparent);
}

.memorial-branch {
  position: absolute;
  left: 24px;
  top: 26px;
  width: 176px;
  height: 116px;
  border-top: 2px solid rgba(122, 158, 126, 0.35);
  border-radius: 50%;
  transform: rotate(-14deg);
  opacity: 0.8;
}

.memorial-branch span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bloom);
  box-shadow: 0 0 14px rgba(232, 196, 162, 0.34);
}

.memorial-branch span:nth-child(1) { left: 66px; top: -8px; }
.memorial-branch span:nth-child(2) { left: 106px; top: 4px; }
.memorial-branch span:nth-child(3) { left: 135px; top: 28px; }

.memorial-card .avatar.large {
  width: 88px;
  height: 88px;
  margin: 2px auto 12px;
}

.memorial-copy {
  position: relative;
  z-index: 1;
}

.memorial-copy h2 {
  margin: 8px 0 6px;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 32px;
  color: var(--ink);
}

.memorial-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.memorial-copy blockquote {
  margin: 11px 0 0;
  padding: 10px 14px;
  border-radius: 18px;
  color: var(--ink-2);
  background: var(--warm);
  line-height: 1.5;
}

.primary-journeys {
  display: grid;
  gap: 12px;
}

.journey-card {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  color: var(--ink);
  background: var(--paper);
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.journey-card::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 34px;
  color: var(--sage-2);
  font-size: 30px;
}

.journey-card span {
  display: block;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 900;
}

.journey-card strong {
  display: block;
  margin: 6px 0;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 23px;
}

.journey-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.tomb-link {
  background:
    radial-gradient(circle at 82% 62%, rgba(232, 196, 162, 0.22), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #f7f0e3 100%);
}

.tree-link {
  background:
    radial-gradient(circle at 82% 62%, rgba(122, 158, 126, 0.18), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #eef1ea 100%);
}

.quiet-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quiet-actions button {
  min-height: 62px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 4px 12px rgba(74, 87, 72, 0.05);
}

.quiet-actions strong,
.quiet-actions span {
  display: block;
}

.quiet-actions strong {
  margin-bottom: 5px;
  font-size: 14px;
}

.quiet-actions span {
  color: var(--muted);
  font-size: 11px;
}

.tree-card {
  position: relative;
  min-height: 280px;
  padding: 20px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(243, 214, 139, 0.26), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f3f6ef 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.mini-tree {
  position: absolute;
  right: 18px;
  bottom: 10px;
  width: 180px;
  height: 190px;
  opacity: 0.9;
}

.mini-tree::before {
  content: "";
  position: absolute;
  left: 84px;
  top: 18px;
  width: 6px;
  height: 170px;
  border-radius: 99px;
  background: var(--sage);
  transform: rotate(8deg);
}

.mini-tree span {
  position: absolute;
  border-radius: 50%;
  background: rgba(122, 158, 126, 0.18);
  border: 1px solid rgba(122, 158, 126, 0.14);
}

.mini-tree span:nth-child(1) { width: 116px; height: 76px; left: 22px; top: 26px; }
.mini-tree span:nth-child(2) { width: 105px; height: 76px; left: 75px; top: 70px; }
.mini-tree span:nth-child(3) { width: 92px; height: 68px; left: 44px; top: 104px; }

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.timeline span {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.timeline span::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
}

.timeline .done {
  color: var(--sage-2);
}

.timeline .done::before {
  background: var(--sage);
  border-color: var(--sage);
}

.video-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)),
    linear-gradient(145deg, #d9e4d6 0%, #a3b899 100%);
  box-shadow: var(--shadow-soft);
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(74, 87, 72, 0.18);
  transform: translate(-50%, -50%);
  font-size: 28px;
}

.play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid var(--sage-2);
}

.video-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.video-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.video-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
}

.video-item strong {
  color: var(--ink);
}

.tomb-page {
  padding-bottom: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(122, 158, 126, 0.06));
}

.tomb-intro {
  margin: 2px 0 14px;
}

.tomb-intro .page-title {
  margin-top: 8px;
  font-size: 29px;
}

.tomb-scene {
  position: relative;
  height: 484px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 28%, rgba(243, 214, 139, 0.45), transparent 30%),
    linear-gradient(180deg, #fff9f0 0%, #f3efe7 42%, #e3e9db 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    var(--shadow);
}

.tomb-scene::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -80px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(163, 184, 153, 0.55), rgba(122, 158, 126, 0.45) 45%, rgba(122, 158, 126, 0) 72%);
}

.tomb-moon {
  display: none;
}

.tomb-moon::after {
  content: none;
}

.tomb-branch {
  position: absolute;
  left: 18px;
  top: 40px;
  width: 210px;
  height: 160px;
  border-top: 3px solid rgba(122, 158, 126, 0.45);
  border-radius: 50%;
  transform: rotate(-13deg);
}

.tomb-branch span {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bloom);
  box-shadow: 0 0 18px rgba(232, 196, 162, 0.4);
}

.tomb-branch span:nth-child(1) {
  left: 72px;
  top: -11px;
}

.tomb-branch span:nth-child(2) {
  left: 116px;
  top: 4px;
}

.tomb-branch span:nth-child(3) {
  left: 146px;
  top: 32px;
}

.tomb-light {
  position: absolute;
  left: 50%;
  top: 128px;
  width: 230px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(243, 214, 139, 0.28), transparent 68%);
  transform: translateX(-50%);
  filter: blur(2px);
}

.tomb-ground {
  position: absolute;
  left: 62px;
  right: 62px;
  bottom: 64px;
  height: 20px;
  border-radius: 50%;
  background: rgba(122, 158, 126, 0.16);
  filter: blur(5px);
}

.stone {
  position: absolute;
  left: 50%;
  bottom: 76px;
  width: 190px;
  min-height: 250px;
  padding: 30px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 96px 96px 26px 26px;
  color: var(--ink-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)),
    linear-gradient(145deg, #f5efe4 0%, #e6e2d6 52%, #d9d3c6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -24px 38px rgba(122, 158, 126, 0.1),
    0 26px 48px rgba(74, 87, 72, 0.16);
  text-align: center;
  transform: translateX(-50%);
}

.stone .avatar {
  margin: -2px auto 10px;
  box-shadow: 0 10px 22px rgba(74, 87, 72, 0.16);
}

.stone h2 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 31px;
}

.stone p,
.stone em {
  color: var(--ink-2);
  line-height: 1.55;
  font-size: 13px;
}

.stone em {
  display: block;
  margin-top: 16px;
  color: var(--muted);
}

.tomb-actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.tomb-actions .primary,
.tomb-actions .secondary {
  min-height: 50px;
}

.visitor-top {
  text-align: center;
  padding-top: 34px;
}

.guest-card {
  display: block;
  width: 100%;
  padding: 18px;
  color: var(--ink);
  text-align: left;
}

.guest-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 17px;
}

.lock-screen,
.success-screen,
.empty-screen {
  display: grid;
  place-items: center;
  min-height: 610px;
  text-align: center;
}

.lock-icon,
.success-icon,
.empty-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--sage);
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(95, 125, 99, 0.2);
}

.menu {
  display: grid;
  gap: 10px;
}

.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  color: var(--ink);
  text-align: left;
}

.menu-row strong {
  font-size: 15px;
}

.account-stats,
.tribute-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat {
  padding: 18px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--sage-2);
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 32px;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.photo-grid button {
  height: 138px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 36% 34%, rgba(232, 196, 162, 0.45), transparent 14%),
    linear-gradient(135deg, rgba(122, 158, 126, 0.28), rgba(245, 239, 228, 0.45));
}

.comment-card,
.date-card,
.notice,
.order-card,
.faq-card,
.package-card {
  padding: 16px;
}

.date-card strong {
  color: var(--sage-2);
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 34px;
}

.faq-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
}

.comment-card strong {
  color: var(--terracotta);
}

.inbox-page {
  gap: 14px;
}

.inbox-hero {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 26%, rgba(232, 196, 162, 0.35), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(122, 158, 126, 0.16), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #f5efe4 100%);
  box-shadow: var(--shadow);
}

.inbox-hero::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(193, 122, 83, 0.3), transparent);
}

.inbox-hero span {
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 900;
}

.inbox-hero strong {
  display: block;
  margin: 8px 0 0;
  font-family: "Songti SC", "Noto Serif SC", serif;
  color: var(--sage-2);
  font-size: 58px;
  line-height: 0.95;
}

.inbox-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.inbox-list {
  display: grid;
  gap: 12px;
}

.inbox-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 13px;
  width: 100%;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: var(--paper);
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.inbox-item.unread {
  border-color: rgba(193, 122, 83, 0.25);
  background:
    radial-gradient(circle at 96% 24%, rgba(232, 196, 162, 0.2), transparent 24%),
    var(--paper);
}

.inbox-item.soft {
  background:
    radial-gradient(circle at 92% 80%, rgba(122, 158, 126, 0.12), transparent 24%),
    var(--bg);
}

.inbox-item i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #fff;
  background: var(--sage);
  font-style: normal;
  font-weight: 900;
}

.inbox-item strong {
  display: block;
  margin: 0 0 5px;
  font-size: 16px;
  color: var(--ink);
}

.inbox-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.inbox-item em {
  display: block;
  margin-top: 9px;
  color: var(--terracotta);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.switch b {
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--sage);
}

.package-card {
  background: linear-gradient(145deg, rgba(232, 196, 162, 0.95), rgba(122, 158, 126, 0.9));
  color: #fff;
}

.package-card span {
  color: rgba(255, 255, 255, 0.85);
}

.package-card h3 {
  color: #fff;
}

.package-card p {
  color: rgba(255, 255, 255, 0.82);
}

.price {
  display: block;
  margin: 10px 0;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 46px;
  color: #fff;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: rgba(44, 62, 44, 0.22);
  backdrop-filter: blur(10px);
}

.modal.open {
  display: grid;
}

.modal-card {
  width: 340px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #faf8f3);
  box-shadow: var(--shadow);
}

.modal-card h3 {
  margin: 0 0 10px;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 24px;
  color: var(--ink);
}

.modal-card .subtext {
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 120;
  min-width: 220px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  text-align: center;
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  transition: 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1080px) {
  body {
    overflow: auto;
  }

  .prototype-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .side-panel,
  .flow-panel {
    overflow: visible;
  }
}

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    background: var(--paper);
  }

  .prototype-shell {
    display: block;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
  }

  .side-panel,
  .flow-panel {
    display: none;
  }

  .phone-stage {
    display: block;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
  }

  .phone {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone::before {
    display: none;
  }

  .screen {
    inset: 0;
  }

  .page {
    padding-right: 22px;
    padding-left: 22px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .toast {
    bottom: calc(18px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 32px);
  }
}
