:root {
  color-scheme: dark;
  --bg: #05040a;
  --ink: #fff3d8;
  --muted: rgba(255, 236, 203, 0.68);
  --faint: rgba(255, 236, 203, 0.38);
  --gold: #e8b968;
  --gold-bright: #ffe6ad;
  --gold-soft: rgba(232, 185, 104, 0.42);
  --violet: #9e77ff;
  --rose: #d998a0;
  --panel: rgba(19, 12, 28, 0.62);
  --panel-border: rgba(232, 185, 104, 0.25);
  --panel-deep: rgba(8, 6, 14, 0.74);
  --hairline: rgba(255, 230, 179, 0.18);
  font-family: "Inter", "Noto Serif SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(255, 250, 233, 0.12), transparent 46%),
    radial-gradient(circle at 50% 18%, rgba(178, 168, 126, 0.08), transparent 34%),
    radial-gradient(circle at 50% 96%, rgba(95, 75, 60, 0.2), transparent 40%),
    #08060a;
  color: var(--ink);
  display: grid;
  place-items: start center;
  padding: 0;
  overflow-x: hidden;
}

button {
  font: inherit;
  touch-action: manipulation;
}

.pwa-update-toast {
  position: fixed;
  right: max(12px, calc((100vw - min(430px, 100vw)) / 2 + 12px));
  top: max(12px, calc(env(safe-area-inset-top) + 12px));
  z-index: 28;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 6px;
  width: auto;
  max-width: min(252px, calc(100vw - 28px));
  min-height: 42px;
  padding: 7px 8px 7px 12px;
  border: 1px solid rgba(127, 150, 100, 0.24);
  border-radius: 999px;
  color: #44513b;
  background:
    radial-gradient(circle at 12% 0%, rgba(236, 230, 180, 0.4), transparent 40%),
    linear-gradient(180deg, rgba(255, 253, 246, 0.94), rgba(248, 244, 232, 0.9));
  box-shadow:
    0 14px 32px rgba(74, 72, 58, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
  backdrop-filter: blur(18px);
  transform: translateY(-12px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pwa-update-toast[data-visible="true"] {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: none;
}

.pwa-update-toast strong,
.pwa-update-toast span {
  display: block;
}

.pwa-update-toast strong {
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.pwa-update-toast span {
  display: none;
  margin-top: 3px;
  color: rgba(68, 81, 59, 0.62);
  font-size: 11px;
  line-height: 1.45;
}

.pwa-update-refresh,
.pwa-update-dismiss {
  appearance: none;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
}

.pwa-update-refresh {
  min-width: 46px;
  height: 28px;
  padding-inline: 11px;
  border-radius: 999px;
  font-size: 12px;
  color: #fffaf0;
  background: linear-gradient(180deg, #91a96f, #76925a);
  box-shadow:
    0 8px 18px rgba(105, 130, 78, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.pwa-update-toast[data-loading="true"] .pwa-update-refresh {
  opacity: 0.72;
  pointer-events: none;
}

.pwa-update-dismiss {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: rgba(68, 81, 59, 0.54);
  background: rgba(255, 255, 255, 0.54);
}

.pwa-update-dismiss .material-symbols-rounded {
  font-size: 18px;
}

.material-symbols-rounded {
  display: inline-block;
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.qinghe-boot {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #4f6044;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 250, 0.98), rgba(255, 250, 240, 0.88) 34%, rgba(236, 241, 224, 0.84) 62%, rgba(251, 245, 234, 0.96) 100%),
    linear-gradient(180deg, #fffaf0, #f4f0e3);
  pointer-events: auto;
}

.qinghe-boot::before,
.qinghe-boot::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
}

.qinghe-boot::before {
  width: min(72vw, 360px);
  height: min(72vw, 360px);
  background: radial-gradient(circle, rgba(190, 207, 162, 0.3), rgba(255, 255, 255, 0) 64%);
  transform: translate(-24%, -26%);
}

.qinghe-boot::after {
  right: max(18px, calc((100vw - min(430px, 100vw)) / 2 + 18px));
  bottom: 18vh;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0) 68%);
}

.qinghe-boot.is-dismissed {
  pointer-events: none;
}

.qinghe-boot-glow {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(78vw, 330px);
  height: min(78vw, 330px);
  border-radius: 999px;
  background:
    radial-gradient(circle at 45% 42%, rgba(255, 255, 255, 0.9), rgba(255, 250, 233, 0.28) 45%, rgba(143, 162, 112, 0.12) 72%, transparent 100%);
  transform: translate(-50%, -50%);
  filter: blur(1px);
  will-change: transform, opacity;
}

.qinghe-boot-mark {
  position: relative;
  z-index: 1;
  display: inline-grid;
  grid-template-columns: auto 34px;
  align-items: start;
  gap: 6px;
  margin-top: -26px;
  text-align: left;
  will-change: transform, opacity;
}

.qinghe-boot-brand {
  display: block;
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: clamp(52px, 16vw, 76px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.qinghe-boot-sprout {
  margin-top: 4px;
  color: rgba(139, 160, 111, 0.9);
  font-size: 30px;
  transform: rotate(-13deg);
  font-variation-settings:
    "FILL" 0,
    "wght" 330,
    "GRAD" 0,
    "opsz" 24;
}

.qinghe-boot-dot {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(205, 166, 76, 0.9);
  box-shadow: 0 0 10px rgba(205, 166, 76, 0.2);
}

.qinghe-boot-dot-a {
  right: 2px;
  top: 2px;
  width: 5px;
  height: 5px;
}

.qinghe-boot-dot-b {
  right: -1px;
  top: 15px;
  width: 3px;
  height: 3px;
  opacity: 0.86;
}

.qinghe-boot-dot-c {
  right: 9px;
  top: 24px;
  width: 3px;
  height: 3px;
  opacity: 0.76;
}

.qinghe-boot p {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: calc(50% + 38px);
  margin: 0;
  color: rgba(76, 72, 63, 0.58);
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
  will-change: transform, opacity;
}

.qinghe-boot-brand,
.qinghe-boot-sprout,
.qinghe-boot-dot,
.qinghe-boot p,
.qinghe-boot-glow {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .qinghe-boot {
    display: none;
  }
}

.phone-shell {
  position: relative;
  width: min(calc(100vw - 12px), 430px);
  aspect-ratio: 390 / 844;
  min-height: 0;
  border-radius: 36px;
  overflow: hidden;
  background: #07050d;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.52),
    0 12px 34px rgba(238, 222, 190, 0.08),
    0 0 0 1px rgba(255, 246, 226, 0.24),
    0 0 0 7px rgba(255, 250, 238, 0.025),
    inset 0 1px 0 rgba(255, 248, 230, 0.16);
}

body:has(.tarot-stage[data-state="home"]) {
  background:
    radial-gradient(circle at 18% 8%, rgba(238, 227, 203, 0.86), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(205, 218, 197, 0.4), transparent 34%),
    linear-gradient(180deg, #fffaf0 0%, #fbf5ea 54%, #fff9ef 100%);
}

body:has(.tarot-stage[data-state="home"]) .phone-shell,
body:has(.tarot-stage[data-state="rooms"]) .phone-shell,
body:has(.tarot-stage[data-state="pantry"]) .phone-shell,
body:has(.tarot-stage[data-state="personality"]) .phone-shell,
body:has(.tarot-stage[data-state="ledger"]) .phone-shell,
body:has(.tarot-stage[data-state="mine"]) .phone-shell {
  width: min(100vw, 430px);
  border-radius: 0;
  background: #fffaf0;
  box-shadow: none;
}

.tarot-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 740px;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-rows: 26% 9% 39% 13% 13%;
  padding: clamp(18px, 4.8vw, 26px);
  --slot-x: 112px;
}

.tarot-stage::before,
.tarot-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tarot-stage::before {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 227, 171, 0.12), transparent 18% 82%, rgba(255, 227, 171, 0.1)),
    linear-gradient(180deg, rgba(255, 227, 171, 0.05), transparent 20% 78%, rgba(255, 227, 171, 0.08));
  opacity: 0.72;
  mask-image: linear-gradient(180deg, black, transparent 10%, transparent 88%, black);
  -webkit-mask-image: linear-gradient(180deg, black, transparent 10%, transparent 88%, black);
}

.tarot-stage::after {
  z-index: 8;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.55);
  mix-blend-mode: multiply;
}

.background,
.veil,
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.background {
  z-index: -4;
  background: url("./assets/background_texture.png") center / cover no-repeat;
  transform: scale(1.03);
  filter: saturate(0.95) brightness(0.82);
  transition:
    transform 900ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 900ms ease;
}

.veil {
  z-index: -3;
  background:
    radial-gradient(circle at 50% 51%, transparent 0 18%, rgba(5, 3, 10, 0.04) 30%, rgba(5, 3, 10, 0.76) 72%),
    linear-gradient(180deg, rgba(4, 3, 8, 0.68), transparent 28%, rgba(4, 3, 8, 0.8) 100%);
  transition: opacity 650ms ease;
}

.stars {
  z-index: -2;
  opacity: 0.62;
  background-image:
    radial-gradient(circle, rgba(255, 229, 179, 0.8) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(158, 119, 255, 0.55) 0 1px, transparent 1.8px);
  background-size: 92px 118px, 147px 173px;
  animation: driftStars 10s linear infinite;
}

.qinghe-home {
  display: none;
}

.tarot-stage[data-state="home"] {
  display: block;
  min-height: 100%;
  padding: 22px 18px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(238, 227, 203, 0.9), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(205, 218, 197, 0.42), transparent 34%),
    linear-gradient(180deg, #fffaf0 0%, #fbf5ea 54%, #fff9ef 100%);
  color: #4c483f;
}

.tarot-stage[data-state="home"]::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.52), transparent 30% 72%, rgba(148, 164, 124, 0.14)),
    radial-gradient(circle at 42% 43%, rgba(147, 160, 121, 0.12), transparent 36%);
  opacity: 1;
  mask-image: none;
  -webkit-mask-image: none;
}

.tarot-stage[data-state="home"]::after {
  z-index: 8;
  box-shadow:
    inset 0 0 0 1px rgba(122, 106, 83, 0.1),
    inset 0 18px 48px rgba(255, 255, 255, 0.24),
    inset 0 -52px 82px rgba(105, 88, 61, 0.07);
  mix-blend-mode: normal;
}

.tarot-stage[data-state="home"] .background,
.tarot-stage[data-state="home"] .veil,
.tarot-stage[data-state="home"] .stars,
.tarot-stage[data-state="home"] .top-ui,
.tarot-stage[data-state="home"] .benefits,
.tarot-stage[data-state="home"] .ritual-area,
.tarot-stage[data-state="home"] .question-panel,
.tarot-stage[data-state="home"] .hint-panel,
.tarot-stage[data-state="home"] .bottom-ui,
.tarot-stage[data-state="home"] .unlock-panel,
.tarot-stage[data-state="home"] .payment-sheet,
.tarot-stage[data-state="home"] .reading-panel {
  opacity: 0;
  pointer-events: none;
}

.tarot-stage:not([data-state="home"]) .qinghe-home {
  opacity: 0;
  transform: translateY(-18px) scale(0.985);
  pointer-events: none;
}

.tarot-stage[data-state="home"] .qinghe-home {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 11px;
  height: 100%;
  min-height: 0;
  padding-bottom: 76px;
  color: #4c483f;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 520ms ease,
    transform 720ms cubic-bezier(0.19, 1, 0.22, 1);
}

.qinghe-home button {
  border: 0;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.qinghe-home-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  animation: qingheSoftDrop 360ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.qinghe-brand {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  color: #4f6044;
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: clamp(40px, 12vw, 54px);
  font-weight: 400;
  line-height: 0.95;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
}

.qinghe-brand-text {
  display: inline-block;
}

.qinghe-brand-mark {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 0 0 auto;
  width: 33px;
  height: 26px;
  margin-top: 1px;
}

.qinghe-mark-dot {
  position: absolute;
  display: block;
  pointer-events: none;
}

.qinghe-mark-sprout {
  color: rgba(139, 160, 111, 0.92);
  font-size: 27px;
  line-height: 1;
  transform: translate(-2px, 1px) rotate(-13deg);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  font-variation-settings:
    "FILL" 0,
    "wght" 330,
    "GRAD" 0,
    "opsz" 24;
}

.qinghe-mark-dot {
  border-radius: 999px;
  background: rgba(205, 166, 76, 0.92);
  box-shadow: 0 0 7px rgba(209, 177, 94, 0.2);
}

.qinghe-mark-dot-a {
  right: 3px;
  top: 1px;
  width: 4px;
  height: 4px;
}

.qinghe-mark-dot-b {
  right: 0;
  top: 11px;
  width: 3px;
  height: 3px;
  opacity: 0.86;
}

.qinghe-mark-dot-c {
  right: 9px;
  top: 18px;
  width: 2px;
  height: 2px;
  opacity: 0.78;
}

.brand-leaf,
.brand-spark {
  flex: 0 0 auto;
  line-height: 1;
  text-shadow: none;
}

.brand-leaf {
  margin-top: 5px;
  color: rgba(132, 151, 101, 0.88);
  font-size: 30px;
  transform: rotate(-14deg);
  font-variation-settings:
    "FILL" 1,
    "wght" 300,
    "GRAD" 0,
    "opsz" 24;
}

.brand-spark {
  margin-top: 14px;
  margin-left: -2px;
  color: rgba(204, 162, 75, 0.86);
  font-size: 17px;
  transform: rotate(8deg);
  font-variation-settings:
    "FILL" 1,
    "wght" 360,
    "GRAD" 0,
    "opsz" 24;
}

.qinghe-tagline {
  margin: 11px 0 0;
  color: rgba(76, 72, 63, 0.66);
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
}

.qinghe-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.qinghe-pill,
.qinghe-icon-button {
  border: 1px solid rgba(126, 112, 91, 0.16);
  background: rgba(255, 252, 246, 0.7);
  box-shadow:
    0 10px 24px rgba(94, 82, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
}

.qinghe-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(64, 60, 54, 0.78);
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  white-space: nowrap;
}

.qinghe-pill .material-symbols-rounded {
  color: rgba(110, 128, 86, 0.76);
  font-size: 18px;
}

.qinghe-pill strong {
  margin: 0 4px;
  color: #b28231;
  font-size: 20px;
  font-weight: 700;
}

.qinghe-icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #817667;
}

.qinghe-icon-button::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9891c4;
  box-shadow:
    0 0 0 2px rgba(255, 252, 246, 0.96),
    0 4px 10px rgba(108, 99, 159, 0.24);
}

.qinghe-icon-button .material-symbols-rounded {
  font-size: 22px;
  font-variation-settings:
    "FILL" 0,
    "wght" 350,
    "GRAD" 0,
    "opsz" 24;
}

.lingbai-hero {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(144, 128, 99, 0.17);
  border-radius: 24px;
  background: #fffaf0;
  box-shadow:
    0 24px 58px rgba(104, 87, 55, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: qingheHeroIn 860ms cubic-bezier(0.19, 1, 0.22, 1) 70ms both;
}

.lingbai-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 251, 242, 0.98) 0 33%, rgba(255, 251, 242, 0.3) 49%, rgba(255, 251, 242, 0.02) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(247, 239, 225, 0.06));
  pointer-events: none;
}

.lingbai-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 48%;
  z-index: 0;
  border-radius: inherit;
  transform: scale(1.025);
  filter: saturate(1.06) brightness(1.01) contrast(1.09);
  animation: qingheFloat 7.2s ease-in-out 900ms infinite;
}

.lingbai-hero-copy {
  position: relative;
  z-index: 3;
  width: 52%;
  padding: 46px 0 0 26px;
}

.lingbai-name {
  margin: 0;
  color: #7673a8;
  font-family: "Noto Serif SC", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 12px 26px rgba(116, 108, 163, 0.12);
}

.lingbai-line {
  margin: 15px 0 0;
  color: rgba(54, 50, 45, 0.86);
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  line-height: 1.55;
}

.lingbai-chat-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 188px;
  height: 52px;
  margin-top: 19px;
  padding: 0 17px 0 15px;
  border-radius: 999px;
  overflow: hidden;
  background:
    radial-gradient(circle at 21% 24%, rgba(255, 255, 255, 0.36), transparent 28%),
    linear-gradient(135deg, rgba(165, 163, 215, 0.98) 0%, rgba(128, 124, 188, 0.98) 52%, rgba(111, 126, 178, 0.96) 100%);
  color: #fffaf8;
  font-family: "Noto Serif SC", serif;
  font-size: 17px;
  font-weight: 700;
  box-shadow:
    0 18px 34px rgba(116, 112, 172, 0.3),
    0 5px 16px rgba(92, 88, 146, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    inset 0 -1px 0 rgba(74, 70, 133, 0.22);
  animation:
    qingheCtaIn 840ms cubic-bezier(0.19, 1, 0.22, 1) 420ms both,
    qingheCtaPulse 3.8s ease-in-out 1.4s infinite;
}

.lingbai-chat-cta::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.26);
  pointer-events: none;
}

.lingbai-chat-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 28%, rgba(255, 255, 255, 0.26) 46%, transparent 62% 100%);
  transform: translateX(-72%);
  opacity: 0.54;
  animation: qingheCtaSheen 4.6s ease-in-out 1.8s infinite;
  pointer-events: none;
}

.lingbai-chat-cta:hover,
.lingbai-chat-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 21px 42px rgba(116, 112, 172, 0.36),
    0 6px 18px rgba(92, 88, 146, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(74, 70, 133, 0.2);
}

.cta-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #7774ad;
  font-size: 19px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 5px 12px rgba(82, 78, 139, 0.18);
  font-variation-settings:
    "FILL" 1,
    "wght" 420,
    "GRAD" 0,
    "opsz" 24;
}

.cta-label,
.cta-spark {
  position: relative;
  z-index: 1;
}

.cta-label {
  white-space: nowrap;
}

.cta-spark {
  margin-left: 1px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.58);
  font-variation-settings:
    "FILL" 1,
    "wght" 360,
    "GRAD" 0,
    "opsz" 24;
}

.home-section-head {
  display: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  animation: qingheSoftDrop 760ms cubic-bezier(0.19, 1, 0.22, 1) 190ms both;
}

.home-section-head p,
.ledger-heading p {
  margin: 0;
  color: #514b42;
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 700;
}

.home-section-head span,
.ledger-heading span {
  display: block;
  margin-top: 4px;
  color: rgba(76, 72, 63, 0.58);
  font-size: 12px;
}

.daily-tarot-home-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(127, 147, 95, 0.18);
  border-radius: 999px;
  color: #657d4b;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.86), transparent 52%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.86), rgba(240, 238, 221, 0.72));
  box-shadow:
    0 10px 18px rgba(118, 126, 84, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tarot-stage[data-state="home"] .daily-tarot-home-action {
  display: none;
}

.daily-tarot-home-action .material-symbols-rounded {
  color: #8a86c6;
  font-size: 17px;
}

.more-rooms-link {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 26px;
  margin-top: 10px;
  margin-left: auto;
  padding: 4px 1px;
  background: transparent;
  color: rgba(84, 78, 68, 0.74);
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
}

.home-room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.home-room-card {
  position: relative;
  display: block;
  appearance: none;
  min-height: 222px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  padding: 20px 14px 14px;
  text-align: left;
  background: #faf2e6;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow:
    0 16px 34px rgba(109, 88, 57, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform-origin: center bottom;
  animation: qingheCardIn 760ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.home-room-card:nth-child(1) {
  animation-delay: 280ms;
}

.home-room-card:nth-child(2) {
  animation-delay: 370ms;
}

.home-room-card:nth-child(3) {
  animation-delay: 460ms;
}

.home-room-card:hover,
.home-room-card:focus-visible {
  transform: translateY(-4px);
  box-shadow:
    0 20px 38px rgba(109, 88, 57, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.tarot-room-card {
  background-image: url("./assets/qinghe/home_tarot_card_bg_v2.png");
  color: #f7e1a6;
}

.tarot-room-card .room-title,
.tarot-room-card .room-copy {
  text-shadow: 0 2px 10px rgba(4, 7, 18, 0.62);
}

.ledger-room-card {
  background-image: url("./assets/qinghe/home_ledger_card_bg_v2.png");
  color: #4e5f45;
}

.letter-room-card {
  background-image: url("./assets/qinghe/home_letter_card_bg_v2.png");
  color: #5f5480;
}

.home-room-card .room-title,
.home-room-card .room-copy,
.home-room-card .room-visual,
.home-room-card .room-arrow {
  opacity: 0;
}

.room-title,
.room-copy {
  position: absolute;
  left: 14px;
  right: 12px;
  z-index: 2;
  display: block;
}

.room-title {
  top: 20px;
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.18;
}

.room-copy {
  top: 56px;
  margin-top: 0;
  color: currentColor;
  font-size: 11px;
  opacity: 0.78;
}

.home-room-card img {
  position: absolute;
  z-index: 1;
  right: -9px;
  bottom: 24px;
  width: 112px;
  height: 152px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(76, 61, 34, 0.2));
}

.tarot-room-card .tarot-room-visual {
  right: -4px;
  bottom: 25px;
  width: 104px;
  height: 162px;
  border-radius: 7px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(2, 6, 17, 0.34));
}

.ledger-room-visual {
  width: 118px;
  height: 160px;
  right: -8px;
  bottom: 24px;
}

.letter-room-visual {
  width: 122px;
  height: 160px;
  right: -12px;
  bottom: 25px;
}

.room-arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(47, 45, 42, 0.72);
  font-size: 19px;
  box-shadow: 0 8px 18px rgba(77, 64, 45, 0.14);
  font-variation-settings:
    "FILL" 0,
    "wght" 430,
    "GRAD" 0,
    "opsz" 24;
}

.tarot-room-card .room-arrow {
  background: rgba(39, 45, 70, 0.92);
  color: #f8edca;
}

.today-ledger {
  position: relative;
  align-self: start;
  overflow: hidden;
  height: 184px;
  padding: 14px 18px 15px;
  border: 0;
  border-radius: 20px;
  background: url("./assets/qinghe/home_ledger_panel_bg_v2.png") center / 100% 100% no-repeat;
  box-shadow:
    0 18px 40px rgba(108, 87, 56, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  animation: qingheLedgerIn 800ms cubic-bezier(0.19, 1, 0.22, 1) 560ms both;
}

.today-ledger .ledger-heading,
.today-ledger .ledger-summary-row,
.today-ledger .ledger-actions,
.today-ledger .ledger-decor {
  opacity: 0;
}

.ledger-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(121, 104, 76, 0.12);
}

.ledger-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ledger-leaf {
  color: rgba(126, 148, 91, 0.82);
  font-size: 25px;
  font-variation-settings:
    "FILL" 1,
    "wght" 330,
    "GRAD" 0,
    "opsz" 24;
}

.ledger-summary-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 0;
  align-items: center;
}

.ledger-summary-row div {
  min-width: 0;
  padding: 0 8px;
  text-align: center;
}

.ledger-summary-row div:not(:last-child) {
  border-right: 1px solid rgba(121, 104, 76, 0.13);
}

.ledger-metric-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: rgba(139, 157, 103, 0.14);
  color: rgba(93, 112, 71, 0.88);
  font-size: 18px;
  font-variation-settings:
    "FILL" 0,
    "wght" 380,
    "GRAD" 0,
    "opsz" 24;
}

.ledger-summary-row div:nth-child(1) .ledger-metric-icon {
  background: rgba(130, 122, 180, 0.14);
  color: rgba(101, 97, 151, 0.88);
}

.ledger-summary-row div:nth-child(3) .ledger-metric-icon {
  background: rgba(212, 183, 117, 0.2);
  color: rgba(137, 103, 48, 0.88);
}

.ledger-summary-row .ledger-metric-label {
  display: block;
  color: rgba(74, 70, 62, 0.58);
  font-size: 11px;
}

.ledger-summary-row strong {
  display: block;
  margin-top: 4px;
  color: #4c483f;
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.ledger-summary-row div:first-child strong {
  font-family: "Inter", "Noto Serif SC", sans-serif;
  font-size: 21px;
  letter-spacing: 0;
}

.ledger-summary-row div.is-mood-receiving {
  animation: qingheMoodReceive 780ms cubic-bezier(0.2, 0.84, 0.2, 1);
}

.ledger-summary-row div.is-mood-receiving .ledger-metric-icon {
  animation: qingheMoodIconReceive 780ms cubic-bezier(0.2, 0.84, 0.2, 1);
}

.home-mood-flyer {
  position: fixed;
  z-index: 90;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  max-width: 118px;
  padding: 0 11px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 10%, rgba(255, 255, 255, 0.92), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 252, 0.78), rgba(246, 248, 235, 0.54));
  box-shadow:
    0 14px 28px rgba(111, 123, 82, 0.13),
    0 4px 14px rgba(93, 83, 64, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #6f7650;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transform-origin: center;
  filter: blur(0.2px);
  transition:
    opacity 180ms ease,
    filter 680ms ease,
    transform 720ms cubic-bezier(0.18, 0.92, 0.2, 1);
}

.home-mood-flyer .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(145, 160, 111, 0.14);
  font-size: 19px;
}

.home-mood-flyer strong {
  overflow: hidden;
  max-width: 64px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-mood-flyer.is-flying {
  opacity: 0;
  filter: blur(1.5px);
  transform:
    translate(
      calc(-50% + var(--mood-fly-x)),
      calc(-50% + var(--mood-fly-y))
    )
    scale(0.56);
  animation: qingheMoodFly 720ms cubic-bezier(0.18, 0.92, 0.2, 1) both;
}

.ledger-summary-row div.is-mood-easter-receiving {
  animation: qingheMoodEasterReceive 980ms cubic-bezier(0.18, 0.9, 0.2, 1);
}

.home-mood-easter {
  position: fixed;
  z-index: 95;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: min(264px, calc(100vw - 56px));
  padding: 12px 14px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.9), transparent 42%),
    linear-gradient(180deg, rgba(255, 254, 248, 0.92), rgba(242, 246, 230, 0.82));
  box-shadow:
    0 18px 38px rgba(103, 117, 76, 0.16),
    0 6px 18px rgba(84, 72, 50, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: #4c513e;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.96);
  transform-origin: center bottom;
  transition:
    opacity 260ms ease,
    filter 420ms ease,
    transform 520ms cubic-bezier(0.18, 0.9, 0.2, 1);
}

.home-mood-easter::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(244, 247, 232, 0.86);
  transform: translateX(-50%) rotate(45deg);
}

.home-mood-easter > .material-symbols-rounded {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(145, 160, 111, 0.16);
  color: #7b915f;
  font-size: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.home-mood-easter div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.home-mood-easter strong {
  display: block;
  color: #65724e;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  line-height: 1.2;
}

.home-mood-easter p {
  margin: 4px 0 0;
  color: rgba(76, 72, 63, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.home-mood-easter.is-visible {
  opacity: 1;
  transform: translate(-50%, -8px) scale(1);
}

.home-mood-easter.is-leaving {
  opacity: 0;
  filter: blur(1px);
  transform: translate(-50%, -18px) scale(0.98);
}

.ledger-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.ledger-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, #9cad78, #829465);
  color: #fffaf4;
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow:
    0 14px 28px rgba(111, 131, 83, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.ledger-add .material-symbols-rounded {
  font-size: 20px;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.ledger-add:hover,
.ledger-add:focus-visible {
  transform: translateY(-2px);
}

.home-feedback {
  margin: 0;
  color: rgba(76, 72, 63, 0.58);
  font-size: 12px;
  line-height: 1.4;
}

.ledger-decor {
  position: absolute;
  z-index: 0;
  right: -6px;
  bottom: -8px;
  width: 76px;
  height: auto;
  opacity: 0.46;
  pointer-events: none;
}

.home-feedback.is-fresh {
  animation: qingheTinyPop 520ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.qinghe-tabbar {
  --active-index: 0;
  --tabbar-gap: 4px;
  --tabbar-pad-x: 10px;
  --tabbar-pad-y: 7px;
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -4px;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--tabbar-gap);
  height: 62px;
  padding: var(--tabbar-pad-y) var(--tabbar-pad-x);
  overflow: hidden;
  border: 1px solid rgba(132, 117, 92, 0.13);
  border-radius: 26px;
  background: rgba(255, 252, 246, 0.9);
  box-shadow:
    0 -10px 24px rgba(104, 83, 53, 0.08),
    0 12px 28px rgba(109, 88, 57, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  animation: none;
}

.tarot-stage:not([data-state="home"]):not([data-state="ledger"]) > .qinghe-tabbar {
  display: none;
}

.qinghe-tabbar::before {
  content: "";
  position: absolute;
  left: var(--tabbar-pad-x);
  top: var(--tabbar-pad-y);
  z-index: 0;
  width: calc((100% - (var(--tabbar-pad-x) * 2) - (var(--tabbar-gap) * 3)) / 4);
  height: calc(100% - (var(--tabbar-pad-y) * 2));
  border-radius: 19px;
  background: rgba(136, 158, 102, 0.18);
  box-shadow:
    0 7px 14px rgba(101, 124, 74, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  transform: translateX(calc(var(--active-index) * (100% + var(--tabbar-gap))));
  transition:
    transform 240ms cubic-bezier(0.2, 0.82, 0.2, 1),
    background 180ms ease,
    box-shadow 180ms ease;
  pointer-events: none;
}

.qinghe-tabbar button {
  appearance: none;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 24px auto;
  gap: 2px;
  place-items: center;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  color: rgba(70, 66, 59, 0.68);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
}

.qinghe-tabbar button.is-active {
  background: transparent;
  color: #5a6f45;
  font-weight: 700;
}

.qinghe-tabbar .material-symbols-rounded {
  font-size: 23px;
  font-variation-settings:
    "FILL" 0,
    "wght" 360,
    "GRAD" 0,
    "opsz" 24;
}

.qinghe-tabbar button.is-active .material-symbols-rounded {
  font-variation-settings:
    "FILL" 0,
    "wght" 360,
    "GRAD" 0,
    "opsz" 24;
}

.qinghe-home.is-leaving {
  opacity: 0;
  transform: translateY(-18px) scale(0.985);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.19, 1, 0.22, 1);
}

.top-ui,
.benefits,
.bottom-ui,
.question-panel,
.hint-panel,
.unlock-panel,
.payment-sheet,
.reading-panel,
.tarot-back-button {
  transition:
    opacity 520ms ease,
    transform 620ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 520ms ease;
}

.top-ui,
.benefits,
.ritual-area,
.question-panel,
.hint-panel,
.unlock-panel,
.bottom-ui {
  grid-column: 1;
}

.tarot-back-button {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: 14px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 76px;
  height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(255, 230, 179, 0.18);
  border-radius: 999px;
  color: rgba(255, 236, 203, 0.86);
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 230, 179, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(24, 17, 33, 0.78), rgba(10, 7, 16, 0.58));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 246, 226, 0.12);
  backdrop-filter: blur(16px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tarot-back-button .material-symbols-rounded {
  color: var(--gold-bright);
  font-size: 18px;
}

.tarot-back-button span:not(.material-symbols-rounded) {
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.tarot-back-button:hover,
.tarot-back-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 230, 179, 0.28);
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 230, 179, 0.26), transparent 42%),
    linear-gradient(180deg, rgba(34, 24, 46, 0.84), rgba(12, 8, 18, 0.64));
}

.tarot-stage[data-state="home"] .tarot-back-button,
.tarot-stage[data-state="rooms"] .tarot-back-button,
.tarot-stage[data-state="ledger"] .tarot-back-button,
.tarot-stage[data-state="mine"] .tarot-back-button,
.tarot-stage[data-state="pantry"] .tarot-back-button,
.tarot-stage[data-state="personality"] .tarot-back-button {
  opacity: 0;
  transform: translateX(-12px);
  pointer-events: none;
}

.tarot-door-transition {
  position: absolute;
  inset: 0;
  z-index: 70;
  overflow: hidden;
  opacity: 0;
  pointer-events: auto;
  perspective: 900px;
  isolation: isolate;
}

.tarot-door-transition::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  height: 176px;
  background: linear-gradient(180deg, transparent, rgba(4, 4, 10, 0.9) 46%, rgba(3, 3, 8, 0.99));
  pointer-events: none;
}

.tarot-door-scrim,
.tarot-door-vault,
.tarot-door-orbit,
.tarot-door-glint,
.tarot-door-rift,
.tarot-door-card,
.tarot-door-echo {
  position: absolute;
  left: 50%;
  top: 42%;
  pointer-events: none;
  will-change: transform, opacity;
}

.tarot-door-scrim {
  inset: 0;
  left: 0;
  top: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(232, 185, 104, 0.18), transparent 25%),
    radial-gradient(circle at 50% 55%, rgba(95, 65, 172, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(11, 8, 18, 0.2), rgba(5, 4, 10, 0.92) 74%, rgba(3, 3, 8, 0.98));
  backdrop-filter: blur(5px) saturate(0.94);
}

.tarot-door-vault {
  z-index: 1;
  width: min(330px, 86%);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 232, 171, 0.18), transparent 10%),
    radial-gradient(circle at 50% 50%, rgba(139, 113, 224, 0.24), transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(8, 6, 15, 0.8), rgba(8, 6, 15, 0.08) 58%, transparent 70%);
  box-shadow:
    0 0 54px rgba(232, 185, 104, 0.14),
    inset 0 0 0 1px rgba(232, 185, 104, 0.16);
}

.tarot-door-vault::before,
.tarot-door-vault::after {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  border: 1px solid rgba(232, 185, 104, 0.16);
}

.tarot-door-vault::after {
  inset: 28%;
  border-style: dashed;
  border-color: rgba(255, 236, 203, 0.16);
}

.tarot-door-orbit {
  z-index: 2;
  width: min(278px, 76%);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(232, 185, 104, 0.42);
  box-shadow:
    0 0 24px rgba(232, 185, 104, 0.12),
    inset 0 0 18px rgba(232, 185, 104, 0.06);
}

.tarot-door-orbit-inner {
  width: min(218px, 62%);
  border-color: rgba(255, 236, 203, 0.24);
  border-style: dashed;
}

.tarot-door-glint {
  z-index: 5;
  width: 2px;
  height: 220px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255, 236, 203, 0.92), transparent);
  box-shadow:
    0 0 18px rgba(232, 185, 104, 0.34),
    0 0 54px rgba(139, 113, 224, 0.2);
}

.tarot-door-rift {
  z-index: 4;
  width: min(390px, 92%);
  height: min(810px, calc(100% - 28px));
  transform: translate(-50%, -50%);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 232, 171, 0.42) 48%, rgba(255, 246, 218, 0.86) 50%, rgba(255, 232, 171, 0.42) 52%, transparent 100%),
    radial-gradient(ellipse at 50% 50%, rgba(105, 78, 185, 0.26), rgba(8, 6, 18, 0.1) 58%, transparent 72%);
  box-shadow:
    0 0 32px rgba(232, 185, 104, 0.3),
    0 0 74px rgba(106, 78, 190, 0.24),
    inset 0 0 0 1px rgba(255, 236, 203, 0.22);
  filter: saturate(1.08);
  mix-blend-mode: screen;
}

.tarot-door-rift::before,
.tarot-door-rift::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44%;
  background:
    radial-gradient(ellipse at 100% 50%, rgba(255, 232, 171, 0.18), transparent 58%),
    linear-gradient(90deg, rgba(5, 4, 12, 0.76), rgba(15, 11, 28, 0.26));
}

.tarot-door-rift::before {
  left: 0;
}

.tarot-door-rift::after {
  right: 0;
  transform: scaleX(-1);
}

.tarot-door-rift-core {
  position: absolute;
  inset: 0 48.5%;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255, 246, 220, 0.98), transparent);
  box-shadow:
    0 0 20px rgba(255, 236, 203, 0.54),
    0 0 68px rgba(232, 185, 104, 0.36);
}

.tarot-door-card,
.tarot-door-echo {
  z-index: 4;
  display: block;
  width: 76px;
  aspect-ratio: 0.64;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 24px 38px rgba(0, 0, 0, 0.42),
    0 0 22px rgba(232, 185, 104, 0.22);
  transform-style: preserve-3d;
}

.tarot-door-card img,
.tarot-door-echo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tarot-door-card {
  border: 1px solid rgba(255, 236, 203, 0.46);
}

.tarot-door-echo {
  z-index: 3;
  filter: saturate(0.9) brightness(1.08);
  opacity: 0;
}

.is-tarot-door-origin {
  pointer-events: none;
}

.phone-shell.is-tarot-door-transitioning > .qinghe-tabbar {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.19, 1, 0.22, 1);
}

.tarot-stage.is-tarot-rift-revealing {
  --tarot-rift-inset: 49.2%;
}

.tarot-stage.is-tarot-rift-revealing > :not(.tarot-door-transition) {
  clip-path: inset(0 var(--tarot-rift-inset) 0 var(--tarot-rift-inset) round 28px);
}

.top-ui {
  grid-row: 1;
  align-self: end;
  text-align: center;
  padding-top: 6px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: "Noto Serif SC", serif;
  font-size: clamp(12px, 3.1vw, 14px);
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(232, 185, 104, 0.34);
}

h1 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: clamp(38px, 11vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 30px rgba(232, 185, 104, 0.34),
    0 16px 34px rgba(0, 0, 0, 0.5);
}

.subtitle {
  max-width: 310px;
  margin: 14px auto 0;
  color: var(--muted);
  font-family: "Noto Serif SC", serif;
  font-size: clamp(13px, 3.6vw, 15px);
  line-height: 1.65;
}

.benefits {
  grid-row: 2;
  align-self: center;
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: min(100%, 348px);
  padding: 8px 10px;
  border: 1px solid rgba(232, 185, 104, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 15, 31, 0.68), rgba(7, 5, 12, 0.58)),
    rgba(10, 7, 17, 0.46);
  backdrop-filter: blur(16px);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 236, 203, 0.07),
    inset 0 -1px 0 rgba(232, 185, 104, 0.09);
}

.benefits div {
  position: relative;
  min-width: 0;
  text-align: center;
  padding: 6px 4px 5px;
}

.benefits div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 0;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(232, 185, 104, 0.24), transparent);
}

.benefits span {
  display: block;
  color: rgba(255, 243, 216, 0.94);
  font-family: "Noto Serif SC", serif;
  font-size: 13.5px;
  text-shadow: 0 0 14px rgba(232, 185, 104, 0.18);
}

.benefits small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 236, 203, 0.46);
  font-size: 10.5px;
  line-height: 1.35;
  white-space: nowrap;
}

.ritual-area {
  grid-row: 3;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  isolation: isolate;
  transform-origin: center center;
  transition: transform 680ms cubic-bezier(0.19, 1, 0.22, 1);
}

.ritual-area::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(330px, 92vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 34%, rgba(232, 185, 104, 0.08) 35%, transparent 36% 49%, rgba(158, 119, 255, 0.08) 50%, transparent 52%),
    conic-gradient(from 8deg, transparent 0 10%, rgba(255, 228, 172, 0.18) 12%, transparent 15% 48%, rgba(158, 119, 255, 0.14) 52%, transparent 58% 100%);
  opacity: 0.56;
  filter: blur(0.2px);
  animation: altarBreathe 6.4s ease-in-out infinite;
  z-index: -1;
}

.deck-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(132px, 37vw, 168px);
  height: clamp(198px, 55.5vw, 252px);
  border: 0;
  padding: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 4;
  transition:
    transform 740ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 520ms ease,
    filter 520ms ease;
  will-change: transform, filter;
  animation: deckFloat 4.8s ease-in-out infinite;
}

.deck-button:not(:disabled):hover .deck-stack {
  transform: perspective(720px) rotateX(2deg) translateY(-2px);
  filter:
    drop-shadow(0 30px 38px rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 20px rgba(232, 185, 104, 0.26));
}

.deck-button:not(:disabled):hover .deck-glow {
  opacity: 0.88;
}

.deck-button:disabled {
  cursor: default;
}

.deck-button:focus-visible,
.drawn-card:focus-visible,
.topic-option:focus-visible,
.question-input:focus-visible,
.primary-action:focus-visible,
.payment-close:focus-visible,
.payment-confirm:focus-visible,
.payment-agree:focus-visible,
.payment-legal-links button:focus-visible,
.reading-regenerate:focus-visible,
.reading-reset:focus-visible {
  outline: 2px solid rgba(255, 231, 186, 0.9);
  outline-offset: 5px;
}

.deck-shadow {
  position: absolute;
  left: 50%;
  bottom: -34px;
  width: 150%;
  height: 44px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 48%, transparent 72%);
  filter: blur(7px);
  opacity: 0.78;
  transition:
    transform 520ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 520ms ease;
}

.deck-glow {
  position: absolute;
  inset: -48px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(232, 185, 104, 0.28), rgba(232, 185, 104, 0.09) 38%, transparent 68%),
    conic-gradient(from 0deg, transparent 0 18%, rgba(232, 185, 104, 0.38) 26%, transparent 36% 62%, rgba(158, 119, 255, 0.22) 72%, transparent 84% 100%);
  filter: blur(3.5px);
  opacity: 0.66;
  animation: deckPulse 2.9s ease-in-out infinite;
}

.deck-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.62;
  transform: translate(-50%, -50%);
  mask-image: radial-gradient(circle, transparent 55%, black 56%, black 60%, transparent 61%);
  -webkit-mask-image: radial-gradient(circle, transparent 55%, black 56%, black 60%, transparent 61%);
}

.ring-outer {
  width: 260%;
  aspect-ratio: 1;
  background:
    conic-gradient(from 0deg, transparent 0 8%, rgba(232, 185, 104, 0.52) 10%, transparent 14% 40%, rgba(255, 236, 203, 0.36) 43%, transparent 48% 74%, rgba(158, 119, 255, 0.3) 78%, transparent 84% 100%);
  animation: ringDrift 16s linear infinite;
}

.ring-inner {
  width: 192%;
  aspect-ratio: 1;
  background:
    conic-gradient(from 180deg, transparent 0 20%, rgba(232, 185, 104, 0.44) 25%, transparent 31% 58%, rgba(255, 236, 203, 0.28) 62%, transparent 69% 100%);
  opacity: 0.48;
  animation: ringDriftReverse 22s linear infinite;
}

.deck-sparks {
  position: absolute;
  inset: -52px;
  border-radius: 50%;
  opacity: 0.28;
  background-image:
    radial-gradient(circle, rgba(255, 232, 180, 0.9) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(158, 119, 255, 0.68) 0 1px, transparent 1.8px);
  background-size: 44px 58px, 71px 83px;
  filter: blur(0.1px);
  animation: sparkDrift 5.6s ease-in-out infinite;
}

.shuffle-pack {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform-style: preserve-3d;
  transition: opacity 260ms ease;
}

.shuffle-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 1px solid rgba(232, 185, 104, 0.64);
  background: url("./assets/card_back.png") center / cover no-repeat;
  box-shadow:
    0 22px 30px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(232, 185, 104, 0.24);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transform-origin: center;
}

.deck-stack,
.deck-layer,
.deck-card {
  position: absolute;
  inset: 0;
  border-radius: 10px;
}

.deck-stack {
  transform-style: preserve-3d;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.58));
  transform-origin: center bottom;
  transition:
    transform 360ms cubic-bezier(0.2, 0.9, 0.2, 1),
    filter 360ms ease;
}

.deck-stack::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 229, 176, 0.18), rgba(158, 119, 255, 0.12), rgba(232, 185, 104, 0.2));
  filter: blur(8px);
  opacity: 0.58;
}

.deck-layer,
.deck-card {
  background: url("./assets/card_back.png") center / cover no-repeat;
  border: 1px solid rgba(232, 185, 104, 0.54);
  box-shadow:
    inset 0 0 0 1px rgba(255, 238, 197, 0.08),
    inset 0 -14px 24px rgba(0, 0, 0, 0.24),
    0 0 32px rgba(232, 185, 104, 0.3);
  overflow: hidden;
}

.deck-card::before,
.deck-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.deck-card::before {
  background: linear-gradient(105deg, transparent 0 37%, rgba(255, 239, 200, 0.2) 46%, transparent 57% 100%);
  transform: translateX(-120%);
  animation: cardSheen 4.9s ease-in-out infinite;
}

.deck-card::after {
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 200, 0.16),
    inset 0 0 32px rgba(232, 185, 104, 0.12);
}

.layer-3 {
  transform: translateY(13px) scale(0.98);
  opacity: 0.46;
}

.layer-2 {
  transform: translateY(8px) scale(0.99);
  opacity: 0.66;
}

.layer-1 {
  transform: translateY(4px) scale(0.995);
  opacity: 0.82;
}

.deck-card {
  transform: translateY(0);
}

.deck-button.is-pressing {
  transform: translate(-50%, calc(-50% + 7px)) scale(0.965) rotate(-0.8deg);
  animation-play-state: paused;
}

.deck-button.is-pressing .deck-stack {
  transform: perspective(760px) rotateX(5deg) rotateZ(-0.6deg);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.64));
}

.deck-button.is-pressing .deck-shadow {
  transform: translateX(-50%) scale(0.86);
  opacity: 0.98;
}

.deck-button.is-pressing .layer-1 {
  transform: translateY(8px) scale(0.995);
}

.deck-button.is-pressing .deck-card {
  transform: translateY(-7px) rotate(-0.4deg);
}

.spread {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.drawn-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(84px, 24vw, 104px);
  height: clamp(126px, 36vw, 156px);
  border: 0;
  padding: 0;
  background: transparent;
  transform: translate(-50%, -50%) scale(0.38);
  opacity: 0;
  pointer-events: none;
  perspective: 900px;
  transition:
    opacity 220ms ease,
    transform 620ms cubic-bezier(0.19, 1, 0.22, 1);
}

.drawn-card.is-drawn {
  opacity: 1;
}

.drawn-card.can-reveal {
  pointer-events: auto;
  cursor: pointer;
}

.drawn-card.slot-0.is-drawn {
  transform: translate(calc(-50% - var(--slot-x)), calc(-50% - 4px)) rotate(-8deg);
}

.drawn-card.slot-1.is-drawn {
  transform: translate(-50%, calc(-50% - 18px)) rotate(0deg);
}

.drawn-card.slot-2.is-drawn {
  transform: translate(calc(-50% + var(--slot-x)), calc(-50% - 4px)) rotate(8deg);
}

.drawn-card.is-new {
  animation-duration: 760ms;
  animation-timing-function: cubic-bezier(0.16, 0.94, 0.24, 1);
  animation-fill-mode: both;
}

.drawn-card.is-new::after {
  content: "";
  position: absolute;
  left: 48%;
  top: 52%;
  width: 132px;
  height: 2px;
  transform-origin: left center;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 230, 177, 0), rgba(255, 230, 177, 0.74), rgba(158, 119, 255, 0));
  filter: blur(1.5px);
  opacity: 0;
  pointer-events: none;
  animation: drawTrail 760ms ease both;
}

.drawn-card.slot-0.is-new {
  animation-name: cardDrawLeft;
}

.drawn-card.slot-1.is-new {
  animation-name: cardDrawCenter;
}

.drawn-card.slot-2.is-new {
  animation-name: cardDrawRight;
}

.drawn-card.slot-0.is-new::after {
  transform: rotate(170deg);
}

.drawn-card.slot-1.is-new::after {
  transform: rotate(-92deg);
}

.drawn-card.slot-2.is-new::after {
  transform: rotate(10deg);
}

.drawn-card.is-revealed .card-inner {
  transform: none;
}

.drawn-card.is-revealed .card-back {
  opacity: 0;
}

.drawn-card.is-revealed .card-front {
  opacity: 1;
  transform: none;
}

.drawn-card.can-reveal .card-inner {
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.26));
}

.drawn-card.is-flipping .card-inner {
  animation: cardRevealPop 540ms cubic-bezier(0.2, 0.82, 0.16, 1) both;
  will-change: transform;
}

.drawn-card.is-flipping .card-front {
  opacity: 0;
  transform: none;
}

.drawn-card.is-flipping.is-fronting .card-back {
  opacity: 0;
}

.drawn-card.is-flipping.is-fronting .card-front {
  opacity: 1;
}

.card-inner {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform 680ms cubic-bezier(0.19, 1, 0.22, 1);
}

.card-face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(232, 185, 104, 0.7);
  backface-visibility: hidden;
  image-rendering: auto;
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.45),
    0 0 10px rgba(232, 185, 104, 0.16);
}

.drawn-card .card-back {
  background: url("./assets/card_back.png") center / cover no-repeat;
}

.card-front {
  display: grid;
  grid-template-rows: 18px auto 1fr auto auto;
  gap: 5px;
  justify-items: center;
  align-items: center;
  padding: 10px 8px 12px;
  opacity: 0;
  transform: none;
  overflow: hidden;
  color: rgba(255, 242, 210, 0.96);
  border: 1px solid rgba(232, 185, 104, 0.36);
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 232, 167, 0.18), transparent 22%),
    radial-gradient(circle at 50% 56%, rgba(158, 119, 255, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(255, 231, 162, 0.24), transparent 12% 88%, rgba(255, 231, 162, 0.2)),
    linear-gradient(180deg, #19122b, #090712 62%, #1a1020);
  box-shadow:
    inset 0 0 0 4px rgba(9, 6, 14, 0.88),
    inset 0 0 0 5px rgba(232, 185, 104, 0.32),
    inset 0 0 34px rgba(232, 185, 104, 0.12);
}

.card-front::before,
.card-front::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(232, 185, 104, 0.22);
  border-radius: 6px;
  pointer-events: none;
}

.card-front::after {
  inset: 17px;
  border-color: rgba(255, 236, 203, 0.1);
}

.card-front[data-has-art="true"] {
  display: block;
  padding: 0;
  background: #0c0914;
  border-color: rgba(232, 185, 104, 0.46);
  box-shadow:
    0 0 10px rgba(232, 185, 104, 0.1),
    inset 0 0 0 1px rgba(255, 236, 203, 0.12);
}

.card-art-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  image-rendering: auto;
  pointer-events: none;
  user-select: none;
}

.card-front[data-art-ready="false"] {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 232, 167, 0.2), transparent 20%),
    radial-gradient(circle at 50% 58%, rgba(120, 94, 177, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(213, 166, 76, 0.18), transparent 20% 80%, rgba(145, 119, 183, 0.14)),
    linear-gradient(180deg, #1b1428, #0a0813 62%, #171020);
}

.card-front[data-art-ready="false"]::before {
  border-color: rgba(232, 185, 104, 0.3);
}

.card-front[data-has-art="true"]::before,
.card-front[data-has-art="true"]::after {
  display: none;
}

.card-art-orientation {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  padding: 3px 6px 4px;
  border: 1px solid rgba(232, 185, 104, 0.44);
  border-radius: 999px;
  color: rgba(255, 236, 203, 0.92);
  background: rgba(8, 5, 14, 0.68);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
  font-family: "Noto Serif SC", serif;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0;
}

.card-front[data-has-art="true"][data-orientation="reversed"] .card-art-orientation {
  color: rgba(255, 190, 152, 0.94);
  border-color: rgba(255, 190, 152, 0.38);
}

.card-face-number,
.card-face-suit,
.card-face-name,
.card-face-orientation {
  position: relative;
  z-index: 1;
  font-family: "Noto Serif SC", serif;
  letter-spacing: 0;
  text-shadow: 0 0 14px rgba(232, 185, 104, 0.22);
}

.card-face-suit {
  align-self: start;
  color: rgba(255, 232, 170, 0.76);
  font-size: 10px;
  line-height: 1;
}

.card-face-number {
  justify-self: start;
  color: rgba(232, 185, 104, 0.82);
  font-size: 11px;
  line-height: 1;
}

.card-face-symbol {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(232, 185, 104, 0.36);
  background:
    radial-gradient(circle, rgba(255, 242, 210, 0.95) 0 3px, transparent 4px),
    conic-gradient(from 0deg, transparent 0 14deg, rgba(232, 185, 104, 0.72) 15deg 19deg, transparent 20deg 44deg, rgba(232, 185, 104, 0.4) 45deg 49deg, transparent 50deg 100%);
  box-shadow:
    0 0 18px rgba(232, 185, 104, 0.18),
    inset 0 0 16px rgba(158, 119, 255, 0.14);
}

.card-front[data-suit="cups"] .card-face-symbol {
  background:
    radial-gradient(circle at 50% 60%, rgba(255, 242, 210, 0.92) 0 3px, transparent 4px),
    conic-gradient(from 180deg, transparent 0 20deg, rgba(232, 185, 104, 0.72) 21deg 28deg, transparent 29deg 100%);
}

.card-front[data-suit="swords"] .card-face-symbol {
  border-radius: 16px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(255, 242, 210, 0.86) 47% 53%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(232, 185, 104, 0.65) 47% 53%, transparent 54%),
    radial-gradient(circle, rgba(158, 119, 255, 0.16), transparent 62%);
}

.card-front[data-suit="pentacles"] .card-face-symbol {
  background:
    radial-gradient(circle, rgba(255, 242, 210, 0.9) 0 3px, transparent 4px),
    conic-gradient(from 18deg, rgba(232, 185, 104, 0.0) 0 8%, rgba(232, 185, 104, 0.76) 9% 12%, transparent 13% 28%, rgba(232, 185, 104, 0.58) 29% 32%, transparent 33% 100%);
}

.card-face-name {
  max-width: 100%;
  color: rgba(255, 243, 216, 0.98);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  word-break: keep-all;
}

.card-face-orientation {
  min-width: 42px;
  padding: 3px 7px 4px;
  border: 1px solid rgba(232, 185, 104, 0.28);
  border-radius: 999px;
  color: rgba(232, 185, 104, 0.88);
  background: rgba(8, 5, 14, 0.42);
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

.card-front[data-orientation="reversed"] .card-face-symbol {
  transform: rotate(180deg);
  opacity: 0.82;
}

.card-front[data-orientation="reversed"] .card-face-orientation {
  color: rgba(255, 190, 152, 0.92);
  border-color: rgba(255, 190, 152, 0.28);
}

.slot-label {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  min-width: 68px;
  color: rgba(255, 234, 190, 0.9);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  text-shadow: 0 0 12px rgba(232, 185, 104, 0.38);
  transition:
    opacity 360ms ease,
    transform 420ms ease;
}

.question-panel {
  grid-row: 4;
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100%, 342px);
  min-height: 132px;
  padding: 13px 15px 14px;
  border: 1px solid rgba(232, 185, 104, 0.24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 12%, rgba(232, 185, 104, 0.12), transparent 30%),
    radial-gradient(circle at 86% 0%, rgba(158, 119, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(18, 12, 26, 0.84), rgba(6, 5, 11, 0.78)),
    rgba(9, 7, 15, 0.56);
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(36, 21, 48, 0.7),
    inset 0 1px 0 rgba(255, 236, 203, 0.08),
    inset 0 -1px 0 rgba(232, 185, 104, 0.1);
  overflow: hidden;
}

.question-panel::before {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 169, 0.5), transparent);
}

.question-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.question-head p {
  margin: 0;
  color: rgba(255, 221, 156, 0.96);
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  line-height: 1.2;
  text-shadow: 0 0 14px rgba(232, 185, 104, 0.28);
}

.question-head small {
  color: rgba(255, 236, 203, 0.46);
  font-size: 10.5px;
  line-height: 1.35;
  text-align: right;
}

.topic-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.topic-option {
  min-width: 0;
  height: 30px;
  border: 1px solid rgba(255, 236, 203, 0.14);
  border-radius: 8px;
  color: rgba(255, 236, 203, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 236, 203, 0.05), rgba(255, 236, 203, 0.015)),
    rgba(11, 8, 18, 0.72);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.topic-option.is-active {
  border-color: rgba(232, 185, 104, 0.62);
  color: rgba(255, 243, 216, 0.96);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 238, 198, 0.2), transparent 62%),
    linear-gradient(180deg, rgba(232, 185, 104, 0.18), rgba(95, 56, 18, 0.12)),
    rgba(14, 9, 20, 0.8);
  box-shadow:
    0 0 16px rgba(232, 185, 104, 0.14),
    inset 0 1px 0 rgba(255, 236, 203, 0.1);
}

.topic-option:active {
  transform: translateY(1px);
}

.question-field {
  display: block;
  margin-top: 10px;
}

.question-field > span {
  display: block;
  margin-bottom: 5px;
  color: rgba(232, 185, 104, 0.82);
  font-family: "Noto Serif SC", serif;
  font-size: 11.5px;
}

.question-input {
  display: block;
  width: 100%;
  height: 46px;
  resize: none;
  border: 1px solid rgba(255, 236, 203, 0.13);
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(255, 243, 216, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 236, 203, 0.035), rgba(255, 236, 203, 0.01)),
    rgba(5, 4, 10, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 203, 0.05),
    inset 0 -12px 18px rgba(0, 0, 0, 0.14);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  line-height: 1.35;
}

.question-input::placeholder {
  color: rgba(255, 236, 203, 0.36);
}

.question-error {
  display: block;
  height: 0;
  margin-top: 0;
  overflow: hidden;
  color: rgba(255, 172, 142, 0.92);
  font-family: "Noto Serif SC", serif;
  font-size: 11px;
  line-height: 1.35;
  opacity: 0;
  transition:
    height 180ms ease,
    margin-top 180ms ease,
    opacity 180ms ease;
}

.question-panel.has-error .question-input {
  border-color: rgba(255, 172, 142, 0.78);
  box-shadow:
    0 0 0 1px rgba(255, 172, 142, 0.18),
    0 0 22px rgba(255, 118, 86, 0.12),
    inset 0 1px 0 rgba(255, 236, 203, 0.05),
    inset 0 -12px 18px rgba(0, 0, 0, 0.14);
}

.question-panel.has-error .question-error {
  height: 15px;
  margin-top: 5px;
  opacity: 1;
}

.hint-panel {
  grid-row: 4;
  position: relative;
  align-self: center;
  justify-self: center;
  display: grid;
  grid-template-columns: 62px 1fr;
  grid-template-areas:
    "meter label"
    "meter copy";
  align-items: center;
  width: min(100%, 336px);
  min-height: 86px;
  column-gap: 14px;
  row-gap: 2px;
  padding: 13px 16px 13px 16px;
  border: 1px solid rgba(232, 185, 104, 0.24);
  border-radius: 9px;
  background:
    radial-gradient(circle at 20% 50%, rgba(232, 185, 104, 0.1), transparent 26%),
    radial-gradient(circle at 72% 0%, rgba(158, 119, 255, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(18, 12, 26, 0.82), rgba(6, 5, 11, 0.76)),
    rgba(9, 7, 15, 0.56);
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(36, 21, 48, 0.7),
    inset 0 1px 0 rgba(255, 236, 203, 0.08),
    inset 0 -1px 0 rgba(232, 185, 104, 0.1);
  overflow: hidden;
}

.hint-panel::before {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 169, 0.54), transparent);
  opacity: 0.9;
}

.hint-panel::after {
  content: "";
  position: absolute;
  left: 86px;
  top: 17px;
  bottom: 17px;
  width: 1px;
  background:
    linear-gradient(180deg, transparent, rgba(232, 185, 104, 0.42), transparent),
    radial-gradient(circle, rgba(255, 226, 169, 0.62), transparent 64%);
  box-shadow: 0 0 18px rgba(232, 185, 104, 0.18);
}

.step-label {
  grid-area: label;
  margin: 0;
  color: rgba(255, 221, 156, 0.96);
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  line-height: 1.15;
  text-shadow:
    0 0 14px rgba(232, 185, 104, 0.34),
    0 8px 20px rgba(0, 0, 0, 0.5);
}

.hint-text {
  grid-area: copy;
  margin: 1px 0 0;
  color: rgba(255, 236, 203, 0.66);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  line-height: 1.48;
}

.progress-ring {
  grid-area: meter;
  justify-self: center;
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 233, 183, 0.08) 0 11%, transparent 12%),
    radial-gradient(circle, rgba(7, 5, 13, 0.98) 0 47%, transparent 48%),
    conic-gradient(from -90deg, rgba(255, 226, 169, 0.92) var(--progress, 0deg), rgba(232, 185, 104, 0.11) 0),
    radial-gradient(circle, rgba(232, 185, 104, 0.13), rgba(232, 185, 104, 0.04) 58%, transparent 72%);
  box-shadow:
    0 0 18px rgba(232, 185, 104, 0.18),
    0 0 34px rgba(158, 119, 255, 0.08),
    inset 0 0 0 1px rgba(255, 236, 203, 0.09);
  transition:
    background 420ms ease,
    box-shadow 420ms ease,
    transform 320ms cubic-bezier(0.2, 1.6, 0.24, 1);
  animation: progressBreath 4.8s ease-in-out infinite;
}

.progress-ring::before,
.progress-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.progress-ring::before {
  inset: 8px;
  border: 1px solid rgba(232, 185, 104, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255, 237, 196, 0.06),
    0 0 12px rgba(232, 185, 104, 0.1);
}

.progress-ring::after {
  inset: -4px;
  border: 1px solid rgba(232, 185, 104, 0.16);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 236, 203, 0.38) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 62%, rgba(255, 236, 203, 0.24) 0 1px, transparent 2px),
    radial-gradient(circle at 13% 74%, rgba(158, 119, 255, 0.24) 0 1px, transparent 2px);
  filter: drop-shadow(0 0 8px rgba(232, 185, 104, 0.18));
  opacity: 0.72;
  animation: orbitDust 7s linear infinite;
}

.progress-segment,
.progress-spark {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.progress-segment {
  z-index: 0;
  opacity: 0.2;
  filter: drop-shadow(0 0 4px rgba(232, 185, 104, 0));
  transition:
    opacity 420ms ease,
    filter 420ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-segment::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background:
    conic-gradient(from var(--segment-start), transparent 0 6deg, rgba(255, 226, 169, 0.95) 7deg 96deg, transparent 97deg 120deg, transparent 0);
  mask: radial-gradient(circle, transparent 0 36%, #000 38% 48%, transparent 50%);
}

.progress-segment-1 {
  --segment-start: -86deg;
}

.progress-segment-2 {
  --segment-start: 34deg;
}

.progress-segment-3 {
  --segment-start: 154deg;
}

.progress-spark {
  z-index: 1;
  opacity: 0;
  background:
    conic-gradient(from calc(-90deg + var(--progress, 0deg)), transparent 0 326deg, rgba(255, 244, 207, 0.92) 334deg, transparent 348deg 360deg);
  mask: radial-gradient(circle, transparent 0 32%, #000 35% 53%, transparent 56%);
  filter: blur(0.15px) drop-shadow(0 0 8px rgba(255, 226, 169, 0.42));
}

.progress-ring[data-progress="1"] .progress-segment-1,
.progress-ring[data-progress="2"] .progress-segment-1,
.progress-ring[data-progress="3"] .progress-segment-1,
.progress-ring[data-progress="2"] .progress-segment-2,
.progress-ring[data-progress="3"] .progress-segment-2,
.progress-ring[data-progress="3"] .progress-segment-3 {
  opacity: 1;
  filter: drop-shadow(0 0 9px rgba(232, 185, 104, 0.36));
}

.progress-ring[data-progress="3"] {
  box-shadow:
    0 0 22px rgba(232, 185, 104, 0.24),
    0 0 42px rgba(158, 119, 255, 0.1),
    inset 0 0 0 1px rgba(255, 236, 203, 0.13);
}

.progress-ring.is-pulsing {
  transform: scale(1.08);
  animation: progressTap 620ms cubic-bezier(0.2, 1.6, 0.24, 1) both;
}

.progress-ring.is-pulsing .progress-spark {
  animation: progressSweep 620ms ease-out both;
}

.progress-ring.is-pulsing .progress-segment {
  transform: scale(1.025);
}

.progress-text {
  position: relative;
  z-index: 2;
  color: var(--ink);
  font-family: "Noto Serif SC", serif;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  text-shadow:
    0 0 10px rgba(232, 185, 104, 0.32),
    0 1px 4px rgba(0, 0, 0, 0.72);
}

.bottom-ui {
  grid-row: 5;
  align-self: center;
  text-align: center;
  padding-top: 6px;
}

.primary-action {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: min(100%, 342px);
  height: 60px;
  border: 1px solid rgba(255, 237, 196, 0.9);
  border-radius: 10px;
  color: #1b1209;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 249, 221, 0.72), transparent 42%),
    linear-gradient(180deg, rgba(255, 238, 198, 0.98), rgba(232, 174, 82, 0.98) 52%, rgba(184, 117, 39, 0.98)),
    #e7b867;
  box-shadow:
    0 16px 36px rgba(232, 185, 104, 0.26),
    0 0 34px rgba(232, 185, 104, 0.12),
    0 2px 0 rgba(75, 42, 8, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 0 0 2px rgba(98, 53, 14, 0.18),
    inset 0 -14px 18px rgba(111, 59, 13, 0.18);
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    opacity 220ms ease;
}

.primary-action::before {
  content: "";
  position: absolute;
  inset: -90% -24%;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(255, 246, 214, 0.38) 17%, transparent 18% 82%, rgba(255, 246, 214, 0.38) 83%, transparent 84%),
    linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.38) 48%, transparent 58%);
  transform: translateX(-70%) rotate(4deg);
  animation: buttonSheen 4.8s ease-in-out infinite;
}

.primary-action::after {
  content: "";
  position: absolute;
  inset: 6px 8px;
  border-radius: 7px;
  border: 1px solid rgba(89, 48, 11, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 0 1px rgba(255, 237, 196, 0.15);
  opacity: 0.88;
}

.primary-action:hover {
  filter: brightness(1.04) saturate(1.04);
  transform: translateY(-1px);
}

.primary-action:active {
  transform: translateY(1px) scale(0.99);
}

.primary-action:disabled {
  cursor: default;
  opacity: 0.82;
}

.primary-action.is-loading::before {
  animation-duration: 1.6s;
}

.notice {
  max-width: 320px;
  margin: 12px auto 0;
  color: rgba(255, 236, 203, 0.46);
  font-size: 11px;
  line-height: 1.5;
}

.unlock-panel {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 7;
  width: min(344px, calc(100% - 34px));
  transform: translate(-50%, 26px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  padding: 15px 15px 14px;
  border: 1px solid rgba(232, 185, 104, 0.24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 0%, rgba(232, 185, 104, 0.14), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(158, 119, 255, 0.13), transparent 30%),
    linear-gradient(180deg, rgba(18, 12, 29, 0.92), rgba(7, 5, 13, 0.86)),
    rgba(14, 10, 28, 0.7);
  backdrop-filter: blur(18px);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.42),
    0 0 46px rgba(232, 185, 104, 0.09),
    inset 0 1px 0 rgba(255, 236, 203, 0.08);
  overflow: hidden;
}

.unlock-panel::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 169, 0.5), transparent);
}

.unlock-header {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
}

.unlock-orb {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 242, 210, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(232, 185, 104, 0.24), rgba(158, 119, 255, 0.1) 58%, transparent 70%);
  border: 1px solid rgba(232, 185, 104, 0.24);
  box-shadow:
    0 0 18px rgba(232, 185, 104, 0.18),
    0 0 34px rgba(158, 119, 255, 0.2);
}

.unlock-kicker {
  margin: 0;
  color: rgba(232, 185, 104, 0.9);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  line-height: 1.2;
}

.unlock-header h2 {
  margin: 3px 0 0;
  color: rgba(255, 243, 216, 0.98);
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow: 0 0 20px rgba(232, 185, 104, 0.18);
}

.unlock-context {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(232, 185, 104, 0.13);
  border-radius: 8px;
  background: rgba(255, 236, 203, 0.035);
}

.preview-topic {
  flex: 0 0 auto;
  color: rgba(232, 185, 104, 0.9);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
}

.preview-question {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 236, 203, 0.68);
  font-size: 11.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unlock-teaser {
  margin: 12px 0 0;
  color: rgba(255, 236, 203, 0.72);
  font-family: "Noto Serif SC", serif;
  font-size: 12.5px;
  line-height: 1.55;
}

.unlock-included {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 13px;
}

.unlock-included span {
  min-width: 0;
  padding: 8px 5px;
  border: 1px solid rgba(255, 236, 203, 0.1);
  border-radius: 8px;
  color: rgba(255, 236, 203, 0.62);
  background: rgba(255, 236, 203, 0.035);
  font-family: "Noto Serif SC", serif;
  font-size: 10.5px;
  line-height: 1.25;
  text-align: center;
}

.unlock-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 13px 0 0;
  padding-top: 11px;
  border-top: 1px solid rgba(232, 185, 104, 0.14);
}

.unlock-price span {
  color: rgba(255, 236, 203, 0.62);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
}

.unlock-price strong {
  color: rgba(255, 226, 169, 0.98);
  font-family: "Noto Serif SC", serif;
  font-size: 21px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(232, 185, 104, 0.28);
}

.payment-sheet {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 12;
  width: min(358px, calc(100% - 28px));
  transform: translate(-50%, 34px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  padding: 16px 16px 15px;
  border: 1px solid rgba(255, 226, 169, 0.3);
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 225, 166, 0.16), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(158, 119, 255, 0.17), transparent 34%),
    linear-gradient(180deg, rgba(20, 13, 32, 0.96), rgba(7, 5, 13, 0.94)),
    rgba(13, 9, 24, 0.92);
  backdrop-filter: blur(22px);
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.58),
    0 0 60px rgba(232, 185, 104, 0.14),
    inset 0 1px 0 rgba(255, 236, 203, 0.1);
  overflow: hidden;
}

.payment-sheet::before,
.payment-sheet::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.payment-sheet::before {
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 169, 0.62), transparent);
}

.payment-sheet::after {
  inset: -40% -20% auto;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(255, 226, 169, 0.14), transparent 70%);
  opacity: 0.86;
}

.payment-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 236, 203, 0.16);
  border-radius: 50%;
  color: rgba(255, 236, 203, 0.72);
  background: rgba(255, 236, 203, 0.045);
  appearance: none;
  cursor: pointer;
  line-height: 1;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.payment-close:hover {
  color: rgba(255, 243, 216, 0.96);
  border-color: rgba(232, 185, 104, 0.42);
  background: rgba(232, 185, 104, 0.08);
  transform: rotate(6deg);
}

.payment-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding-right: 34px;
}

.payment-orb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(232, 185, 104, 0.3);
  background:
    radial-gradient(circle, rgba(255, 242, 210, 0.95) 0 2px, transparent 3px),
    conic-gradient(from 20deg, rgba(232, 185, 104, 0.14), rgba(158, 119, 255, 0.28), rgba(232, 185, 104, 0.18));
  box-shadow:
    0 0 18px rgba(232, 185, 104, 0.2),
    inset 0 0 18px rgba(255, 236, 203, 0.08);
  animation: paymentOrb 2.6s ease-in-out infinite;
}

.payment-kicker {
  margin: 0;
  color: rgba(232, 185, 104, 0.9);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  line-height: 1.2;
}

.payment-header h2 {
  margin: 4px 0 0;
  color: rgba(255, 243, 216, 0.98);
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow: 0 0 20px rgba(232, 185, 104, 0.16);
}

.payment-copy {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: rgba(255, 236, 203, 0.65);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  line-height: 1.55;
}

.payment-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8px;
  margin-top: 12px;
}

.payment-summary div,
.payment-method {
  border: 1px solid rgba(255, 236, 203, 0.11);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 236, 203, 0.05), rgba(255, 236, 203, 0.018)),
    rgba(6, 4, 11, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 236, 203, 0.04);
}

.payment-summary div {
  min-width: 0;
  padding: 9px 10px;
}

.payment-summary span,
.payment-method span,
.payment-check span {
  display: block;
}

.payment-summary span {
  color: rgba(255, 236, 203, 0.46);
  font-size: 10.5px;
}

.payment-summary strong {
  display: block;
  margin-top: 5px;
  color: rgba(255, 226, 169, 0.95);
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  line-height: 1.25;
}

.payment-summary div:first-child strong {
  font-size: 21px;
  line-height: 1;
}

.payment-plan-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.payment-plan {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(255, 236, 203, 0.1);
  border-radius: 9px;
  background: rgba(255, 236, 203, 0.035);
}

.payment-plan.is-active {
  border-color: rgba(232, 185, 104, 0.36);
  background:
    radial-gradient(circle at 0% 0%, rgba(232, 185, 104, 0.13), transparent 60%),
    rgba(255, 236, 203, 0.045);
}

.payment-plan.is-reserved {
  opacity: 0.64;
}

.payment-plan div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.payment-plan span {
  min-width: 0;
  color: rgba(255, 243, 216, 0.82);
  font-family: "Noto Serif SC", serif;
  font-size: 11.2px;
  font-weight: 600;
  line-height: 1.2;
}

.payment-plan strong {
  flex: 0 0 auto;
  color: rgba(255, 226, 169, 0.94);
  font-family: "Noto Serif SC", serif;
  font-size: 13.5px;
  line-height: 1.1;
}

.payment-plan p {
  margin: 4px 0 0;
  color: rgba(255, 236, 203, 0.44);
  font-size: 9.8px;
  line-height: 1.32;
}

.payment-method {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: center;
  margin-top: 8px;
  padding: 10px 11px;
}

.payment-sheet[data-trial-unlock="true"] .payment-method {
  border-color: rgba(156, 190, 122, 0.32);
  background:
    linear-gradient(180deg, rgba(183, 211, 138, 0.12), rgba(255, 236, 203, 0.02)),
    rgba(8, 13, 9, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 203, 0.06),
    0 0 22px rgba(156, 190, 122, 0.08);
}

.method-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(232, 185, 104, 0.4);
  background:
    radial-gradient(circle, rgba(255, 232, 181, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(232, 185, 104, 0.18), transparent 68%);
  box-shadow: 0 0 18px rgba(232, 185, 104, 0.22);
}

.payment-sheet[data-trial-unlock="true"] .method-dot {
  border-color: rgba(185, 214, 143, 0.52);
  background:
    radial-gradient(circle, rgba(246, 238, 200, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(156, 190, 122, 0.26), transparent 68%);
  box-shadow: 0 0 18px rgba(156, 190, 122, 0.22);
}

.payment-method strong {
  display: block;
  color: rgba(255, 243, 216, 0.94);
  font-family: "Noto Serif SC", serif;
  font-size: 12.5px;
  line-height: 1.25;
}

.payment-sheet[data-trial-unlock="true"] .payment-method strong {
  color: rgba(236, 247, 216, 0.96);
}

.payment-method span:not(.method-dot) {
  margin-top: 4px;
  color: rgba(255, 236, 203, 0.5);
  font-size: 10.5px;
  line-height: 1.35;
}

.payment-check {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  margin-top: 10px;
  color: rgba(255, 236, 203, 0.58);
  font-size: 11px;
  line-height: 1.45;
}

.payment-agree {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #e8b968;
  cursor: pointer;
}

.payment-legal-links {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-left: 26px;
}

.payment-legal-links button {
  border: 0;
  border-bottom: 1px solid rgba(232, 185, 104, 0.42);
  padding: 0 0 2px;
  color: rgba(255, 226, 169, 0.78);
  background: transparent;
  font: 11px/1.4 "Inter", "Noto Serif SC", sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}

.payment-legal-links button:hover {
  color: rgba(255, 243, 216, 0.96);
  border-bottom-color: rgba(255, 226, 169, 0.86);
}

.payment-error {
  position: relative;
  z-index: 1;
  min-height: 16px;
  margin: 6px 0 0;
  color: rgba(255, 172, 142, 0.92);
  font-family: "Noto Serif SC", serif;
  font-size: 11px;
  line-height: 1.35;
}

.payment-status {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    height 220ms ease,
    opacity 220ms ease,
    margin-top 220ms ease;
}

.payment-step {
  min-width: 0;
  padding: 7px 4px;
  border: 1px solid rgba(255, 236, 203, 0.1);
  border-radius: 8px;
  color: rgba(255, 236, 203, 0.44);
  background: rgba(255, 236, 203, 0.035);
  font-family: "Noto Serif SC", serif;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.payment-sheet[data-payment-step="order"] .payment-status,
.payment-sheet[data-payment-step="pay"] .payment-status,
.payment-sheet[data-payment-step="unlock"] .payment-status {
  height: 30px;
  margin-top: 8px;
  opacity: 1;
}

.payment-sheet[data-payment-step="order"] .step-order,
.payment-sheet[data-payment-step="pay"] .step-order,
.payment-sheet[data-payment-step="pay"] .step-pay,
.payment-sheet[data-payment-step="unlock"] .step-order,
.payment-sheet[data-payment-step="unlock"] .step-pay,
.payment-sheet[data-payment-step="unlock"] .step-unlock {
  color: rgba(255, 243, 216, 0.92);
  border-color: rgba(232, 185, 104, 0.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 185, 104, 0.18), transparent 70%),
    rgba(232, 185, 104, 0.055);
  box-shadow: 0 0 18px rgba(232, 185, 104, 0.12);
}

.payment-confirm {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border: 1px solid rgba(255, 237, 196, 0.88);
  border-radius: 10px;
  color: #1b1209;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 249, 221, 0.72), transparent 42%),
    linear-gradient(180deg, rgba(255, 238, 198, 0.98), rgba(232, 174, 82, 0.98) 52%, rgba(184, 117, 39, 0.98)),
    #e7b867;
  box-shadow:
    0 14px 30px rgba(232, 185, 104, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -12px 16px rgba(111, 59, 13, 0.16);
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    opacity 180ms ease;
}

.payment-confirm:hover {
  filter: brightness(1.04) saturate(1.04);
  transform: translateY(-1px);
}

.payment-confirm:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.reading-panel {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 7;
  width: min(344px, calc(100% - 34px));
  max-height: min(700px, calc(100% - 74px));
  display: flex;
  flex-direction: column;
  transform: translate(-50%, 26px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  padding: 14px 15px;
  border: 1px solid rgba(232, 185, 104, 0.22);
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 0%, rgba(232, 185, 104, 0.12), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(158, 119, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(18, 12, 29, 0.9), rgba(7, 5, 13, 0.86)),
    rgba(14, 10, 28, 0.68);
  backdrop-filter: blur(18px);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.42),
    0 0 46px rgba(158, 119, 255, 0.1),
    inset 0 1px 0 rgba(255, 236, 203, 0.08);
  overflow: hidden;
}

.reading-panel::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 169, 0.48), transparent);
}

.reading-header {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
}

.reading-kicker {
  margin: 0;
  color: rgba(232, 185, 104, 0.88);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  line-height: 1.2;
}

.reading-header h2 {
  margin: 3px 0 0;
  color: rgba(255, 243, 216, 0.98);
  font-family: "Noto Serif SC", serif;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0;
  text-shadow: 0 0 20px rgba(232, 185, 104, 0.18);
}

.reading-orb {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 242, 210, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(232, 185, 104, 0.24), rgba(158, 119, 255, 0.1) 58%, transparent 70%);
  border: 1px solid rgba(232, 185, 104, 0.24);
  box-shadow:
    0 0 18px rgba(232, 185, 104, 0.18),
    0 0 34px rgba(158, 119, 255, 0.2);
  animation: readingOrb 1.9s ease-in-out infinite;
}

.reading-context {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 11px 0 0;
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid rgba(232, 185, 104, 0.13);
  border-radius: 8px;
  background: rgba(255, 236, 203, 0.035);
}

.context-topic {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 20px;
  color: rgba(232, 185, 104, 0.9);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  line-height: 1.2;
}

.context-question {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 236, 203, 0.68);
  font-size: 11.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reading-card-showcase {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 4px;
}

.reading-panel.is-access-restricted .reading-card-showcase {
  display: none;
}

.reading-card-chip {
  position: relative;
  min-width: 0;
  min-height: 178px;
  display: grid;
  grid-template-rows: 128px minmax(34px, auto);
  gap: 8px;
  justify-items: center;
  align-items: start;
  padding: 8px 5px 10px;
  border: 1px solid rgba(255, 236, 203, 0.12);
  border-radius: 10px;
  color: rgba(255, 236, 203, 0.86);
  background:
    radial-gradient(circle at 24% 0%, rgba(232, 185, 104, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(255, 236, 203, 0.07), rgba(255, 236, 203, 0.022)),
    rgba(8, 5, 14, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 203, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  overflow: visible;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.reading-card-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(130deg, transparent 0 38%, rgba(255, 243, 216, 0.12) 48%, transparent 58% 100%);
  opacity: 0;
  transform: translateX(-42%);
  transition:
    opacity 180ms ease,
    transform 420ms cubic-bezier(0.19, 1, 0.22, 1);
}

.reading-card-chip:hover,
.reading-card-chip:focus-visible {
  border-color: rgba(232, 185, 104, 0.36);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 203, 0.11),
    0 14px 28px rgba(0, 0, 0, 0.25),
    0 0 26px rgba(232, 185, 104, 0.08);
}

.reading-card-chip:hover::after,
.reading-card-chip:focus-visible::after {
  opacity: 1;
  transform: translateX(42%);
}

.reading-card-chip:nth-child(2) {
  transform: translateY(-3px);
}

.reading-card-chip:nth-child(2):hover,
.reading-card-chip:nth-child(2):focus-visible {
  transform: translateY(-5px);
}

.reading-card-chip:focus-visible {
  outline: 2px solid rgba(255, 230, 179, 0.76);
  outline-offset: 2px;
}

.reading-card-mini {
  position: relative;
  width: min(84px, 100%);
  height: 126px;
  align-self: center;
  border-radius: 6px;
  border: 1px solid rgba(232, 185, 104, 0.34);
  overflow: hidden;
  box-shadow:
    0 9px 18px rgba(0, 0, 0, 0.34),
    0 0 12px rgba(232, 185, 104, 0.1),
    inset 0 1px 0 rgba(255, 236, 203, 0.12);
}

.reading-card-mini.has-art {
  background:
    radial-gradient(circle at 50% 48%, rgba(232, 185, 104, 0.18), transparent 58%),
    rgba(8, 5, 14, 0.72);
}

.reading-card-mini.has-art .reading-card-art,
.reading-card-art-image {
  position: absolute;
  inset: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  display: block;
  border-radius: 5px;
  object-fit: fill;
  image-rendering: auto;
  user-select: none;
  pointer-events: none;
}

.reading-card-mini.is-placeholder {
  display: grid;
  grid-template-rows: auto 1fr auto;
  place-items: center;
  padding: 5px 3px;
  background:
    radial-gradient(circle at 50% 38%, rgba(232, 185, 104, 0.28), transparent 35%),
    linear-gradient(180deg, rgba(19, 19, 43, 0.98), rgba(7, 7, 20, 0.98));
}

.reading-card-number,
.reading-card-suit {
  position: relative;
  z-index: 1;
  color: rgba(255, 236, 203, 0.72);
  font-family: "Noto Serif SC", serif;
  font-size: 8.5px;
  line-height: 1;
}

.reading-card-symbol {
  position: relative;
  z-index: 1;
  color: rgba(232, 185, 104, 0.9);
  font-family: "Noto Serif SC", serif;
  font-size: 19px;
  line-height: 1;
}

.reading-card-chip-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  display: grid;
  align-content: start;
  min-height: 34px;
  text-align: center;
}

.reading-card-chip-copy small,
.reading-card-chip-copy strong,
.reading-card-chip-copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reading-card-chip-copy small {
  color: rgba(232, 185, 104, 0.72);
  font-size: 8.5px;
  line-height: 1.15;
}

.reading-card-chip-copy strong {
  margin-top: 4px;
  color: rgba(255, 243, 216, 0.94);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  line-height: 1.15;
}

.reading-card-chip-copy span {
  display: none;
}

.reading-scroll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 12px;
  padding-right: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 185, 104, 0.34) rgba(255, 236, 203, 0.05);
}

.reading-scroll::after {
  content: "";
  position: sticky;
  left: 0;
  right: 0;
  bottom: -1px;
  display: block;
  height: 12px;
  margin-top: -12px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(9, 6, 16, 0.88));
}

.reading-scroll::-webkit-scrollbar {
  width: 4px;
}

.reading-scroll::-webkit-scrollbar-track {
  background: rgba(255, 236, 203, 0.04);
  border-radius: 999px;
}

.reading-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(232, 185, 104, 0.34);
}

.reading-summary {
  position: relative;
  margin: 5px 0 0;
  color: rgba(255, 236, 203, 0.72);
  font-family: "Noto Serif SC", serif;
  font-size: 12.5px;
  line-height: 1.54;
}

.reading-answer {
  position: relative;
  margin-top: 0;
  padding: 10px 11px 11px;
  border: 1px solid rgba(232, 185, 104, 0.16);
  border-radius: 9px;
  background:
    radial-gradient(circle at 16% 0%, rgba(232, 185, 104, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(255, 236, 203, 0.055), rgba(255, 236, 203, 0.018));
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 203, 0.055),
    0 0 22px rgba(232, 185, 104, 0.055);
}

.reading-answer > span {
  display: block;
  color: rgba(232, 185, 104, 0.92);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  line-height: 1.2;
}

.reading-lines {
  position: relative;
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.reading-line {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 43px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 236, 203, 0.1);
  border-radius: 8px;
  background: rgba(255, 236, 203, 0.035);
}

.reading-access-line {
  min-height: 54px;
  border-color: rgba(232, 185, 104, 0.18);
  background:
    radial-gradient(circle at 10% 0%, rgba(232, 185, 104, 0.11), transparent 46%),
    linear-gradient(180deg, rgba(255, 236, 203, 0.055), rgba(255, 236, 203, 0.022));
}

.reading-panel.is-access-restricted .reading-answer {
  border-color: rgba(232, 185, 104, 0.22);
  background:
    radial-gradient(circle at 18% 0%, rgba(232, 185, 104, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(255, 236, 203, 0.07), rgba(255, 236, 203, 0.022));
}

.reading-panel.is-access-restricted .reading-orb {
  animation: none;
  background:
    radial-gradient(circle, rgba(255, 242, 210, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(232, 185, 104, 0.2), rgba(232, 185, 104, 0.08) 58%, transparent 70%);
}

.reading-index {
  color: rgba(232, 185, 104, 0.7);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
}

.reading-line strong,
.reading-line span {
  display: block;
}

.reading-line strong {
  color: rgba(255, 243, 216, 0.94);
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  line-height: 1.25;
}

.reading-line div > span {
  margin-top: 3px;
  color: rgba(255, 236, 203, 0.58);
  font-size: 11px;
  line-height: 1.35;
}

.reading-advice {
  margin: 10px 0 0;
  padding: 10px 11px;
  border: 1px solid rgba(232, 185, 104, 0.14);
  border-radius: 9px;
  color: rgba(255, 236, 203, 0.68);
  background:
    radial-gradient(circle at 100% 0%, rgba(158, 119, 255, 0.11), transparent 54%),
    rgba(255, 236, 203, 0.032);
  font-size: 11.5px;
  line-height: 1.48;
}

.reading-advice > span:first-child {
  display: block;
  margin-bottom: 3px;
  color: rgba(232, 185, 104, 0.9);
  font-family: "Noto Serif SC", serif;
  font-size: 12.5px;
}

.advice-text {
  display: block;
}

.reading-action-plan {
  margin-top: 10px;
  padding: 10px 11px 11px;
  border: 1px solid rgba(232, 185, 104, 0.15);
  border-radius: 10px;
  background:
    radial-gradient(circle at 8% 0%, rgba(232, 185, 104, 0.12), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(158, 119, 255, 0.1), transparent 52%),
    linear-gradient(180deg, rgba(255, 236, 203, 0.05), rgba(255, 236, 203, 0.018));
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 203, 0.065),
    0 10px 22px rgba(0, 0, 0, 0.12);
}

.reading-action-plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.reading-action-plan-head span {
  color: rgba(232, 185, 104, 0.92);
  font-family: "Noto Serif SC", serif;
  font-size: 12.5px;
  line-height: 1.2;
}

.reading-action-plan-head strong {
  min-width: 0;
  color: rgba(255, 243, 216, 0.76);
  font-family: "Noto Serif SC", serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  text-align: right;
}

.reading-action-steps {
  display: grid;
  gap: 7px;
}

.reading-action-steps article {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: start;
  min-height: 36px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 236, 203, 0.095);
  border-radius: 8px;
  background: rgba(8, 5, 14, 0.24);
}

.reading-action-steps span {
  color: rgba(232, 185, 104, 0.7);
  font-family: "Noto Serif SC", serif;
  font-size: 11px;
  line-height: 1.45;
}

.reading-action-steps p {
  margin: 0;
  color: rgba(255, 236, 203, 0.64);
  font-size: 11px;
  line-height: 1.45;
}

.reading-follow-up-card {
  position: relative;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid rgba(232, 185, 104, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 0%, rgba(158, 119, 255, 0.13), transparent 38%),
    radial-gradient(circle at 94% 6%, rgba(232, 185, 104, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(23, 15, 37, 0.92), rgba(10, 7, 18, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 203, 0.06),
    0 14px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.reading-follow-up-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 185, 104, 0.26), transparent);
  pointer-events: none;
}

.reading-follow-up-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.reading-follow-up-head span {
  color: rgba(232, 185, 104, 0.92);
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  line-height: 1.2;
}

.reading-follow-up-head strong {
  min-width: 0;
  color: rgba(255, 243, 216, 0.58);
  font-family: "Noto Serif SC", serif;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.25;
  text-align: right;
}

.reading-follow-up-context,
.reading-follow-up-cards,
.reading-follow-up-limit {
  margin: 7px 0 0;
  color: rgba(255, 236, 203, 0.58);
  font-size: 10.6px;
  line-height: 1.45;
}

.reading-follow-up-context b {
  margin-right: 7px;
  color: rgba(232, 185, 104, 0.82);
  font-family: "Noto Serif SC", serif;
  font-weight: 600;
}

.reading-follow-up-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 9px;
}

.reading-follow-up-cards span {
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(255, 236, 203, 0.075);
  border-radius: 8px;
  color: rgba(255, 236, 203, 0.52);
  background: rgba(255, 236, 203, 0.035);
  font-size: 9.5px;
  line-height: 1.28;
}

.reading-follow-up-cards b {
  display: block;
  margin-bottom: 2px;
  color: rgba(232, 185, 104, 0.78);
  font-family: "Noto Serif SC", serif;
  font-size: 9.8px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reading-follow-up-history {
  display: grid;
  gap: 9px;
  margin-top: 11px;
}

.reading-follow-up-history article {
  display: block;
  padding: 0;
  border: 1px solid rgba(255, 236, 203, 0.08);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 236, 203, 0.06), rgba(255, 236, 203, 0.024)),
    rgba(9, 6, 18, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 236, 203, 0.045);
  overflow: hidden;
}

.reading-follow-up-question {
  display: grid;
  gap: 4px;
  padding: 8px 10px 7px;
  border-bottom: 1px solid rgba(255, 236, 203, 0.06);
  background: rgba(158, 119, 255, 0.055);
}

.reading-follow-up-question span {
  color: rgba(158, 119, 255, 0.9);
  font-family: "Noto Serif SC", serif;
  font-size: 9.8px;
  font-weight: 600;
  line-height: 1.2;
}

.reading-follow-up-question strong {
  color: rgba(255, 243, 216, 0.82);
  font-size: 11.2px;
  font-weight: 500;
  line-height: 1.35;
}

.reading-follow-up-answer {
  padding: 9px 10px 10px;
}

.reading-follow-up-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.reading-follow-up-byline span {
  min-width: 0;
  color: rgba(232, 185, 104, 0.88);
  font-family: "Noto Serif SC", serif;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
}

.reading-follow-up-byline small {
  color: rgba(255, 236, 203, 0.34);
  font-size: 9.5px;
  line-height: 1.2;
}

.reading-follow-up-quote {
  position: relative;
  margin: 0 0 7px;
  padding-left: 9px;
  border-left: 2px solid rgba(232, 185, 104, 0.72);
  color: rgba(255, 224, 164, 0.9);
  font-family: "Noto Serif SC", serif;
  font-size: 11.4px;
  font-weight: 600;
  line-height: 1.48;
}

.reading-follow-up-answer-text {
  margin: 0;
  color: rgba(255, 236, 203, 0.64);
  font-size: 11.1px;
  line-height: 1.62;
}

.reading-follow-up-form {
  display: grid;
  gap: 8px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 236, 203, 0.07);
}

.reading-follow-up-form label {
  display: grid;
  gap: 6px;
  color: rgba(158, 119, 255, 0.9);
  font-family: "Noto Serif SC", serif;
  font-size: 11.5px;
  font-weight: 600;
}

.reading-follow-up-input {
  width: 100%;
  min-height: 56px;
  resize: none;
  border: 1px solid rgba(255, 236, 203, 0.12);
  border-radius: 10px;
  padding: 9px 10px;
  color: rgba(255, 243, 216, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 236, 203, 0.055), rgba(255, 236, 203, 0.02)),
    rgba(8, 5, 14, 0.48);
  font: 11.5px/1.45 "Noto Serif SC", serif;
  outline: none;
}

.reading-follow-up-input::placeholder {
  color: rgba(255, 236, 203, 0.32);
}

.reading-follow-up-input:focus {
  border-color: rgba(158, 119, 255, 0.42);
  box-shadow:
    0 0 0 3px rgba(158, 119, 255, 0.1),
    inset 0 1px 0 rgba(255, 236, 203, 0.08);
}

.reading-follow-up-submit {
  min-width: 0;
  height: 36px;
  border: 1px solid rgba(255, 237, 196, 0.68);
  border-radius: 10px;
  color: #1b1209;
  background: linear-gradient(180deg, rgba(255, 238, 198, 0.96), rgba(219, 154, 73, 0.96));
  box-shadow:
    0 10px 18px rgba(232, 185, 104, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.reading-follow-up-submit:disabled {
  cursor: wait;
  filter: saturate(0.72);
  opacity: 0.72;
}

.reading-follow-up-status {
  min-height: 14px;
  margin: 0;
  color: rgba(255, 236, 203, 0.42);
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
}

.reading-status {
  min-height: 16px;
  margin: 7px 0 0;
  color: rgba(255, 236, 203, 0.52);
  font-family: "Noto Serif SC", serif;
  font-size: 10.5px;
  line-height: 1.35;
  text-align: center;
}

.reading-status.is-error {
  color: rgba(255, 172, 142, 0.92);
}

.reading-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.reading-save,
.reading-copy,
.reading-regenerate,
.reading-reset {
  min-width: 0;
  height: 42px;
  border-radius: 9px;
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    opacity 180ms ease,
    border-color 180ms ease;
}

.reading-save {
  border: 1px solid rgba(255, 237, 196, 0.86);
  color: #1b1209;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 249, 221, 0.7), transparent 42%),
    linear-gradient(180deg, rgba(255, 238, 198, 0.98), rgba(232, 174, 82, 0.98) 56%, rgba(184, 117, 39, 0.98));
  box-shadow:
    0 12px 24px rgba(232, 185, 104, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -10px 14px rgba(111, 59, 13, 0.16);
}

.reading-copy {
  border: 1px solid rgba(232, 185, 104, 0.42);
  color: rgba(255, 236, 203, 0.9);
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 185, 104, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(255, 236, 203, 0.08), rgba(255, 236, 203, 0.02)),
    rgba(8, 5, 14, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 203, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.reading-regenerate {
  border: 1px solid rgba(232, 185, 104, 0.36);
  color: rgba(255, 236, 203, 0.82);
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 185, 104, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(255, 236, 203, 0.07), rgba(255, 236, 203, 0.018)),
    rgba(8, 5, 14, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 203, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.reading-reset {
  border: 1px solid rgba(255, 236, 203, 0.16);
  color: rgba(255, 236, 203, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 236, 203, 0.05), rgba(255, 236, 203, 0.016)),
    rgba(8, 5, 14, 0.55);
}

.reading-save:hover,
.reading-copy:hover,
.reading-regenerate:hover,
.reading-reset:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.reading-save:focus-visible,
.reading-copy:focus-visible,
.reading-regenerate:focus-visible,
.reading-reset:focus-visible {
  outline: 2px solid rgba(255, 230, 179, 0.82);
  outline-offset: 2px;
}

.reading-save:disabled,
.reading-copy:disabled,
.reading-regenerate:disabled,
.reading-reset:disabled {
  cursor: default;
  opacity: 0.66;
  transform: none;
}

.reading-panel.is-access-restricted .reading-save:disabled,
.reading-panel.is-access-restricted .reading-copy:disabled,
.reading-panel.is-access-restricted .reading-regenerate:disabled {
  color: rgba(255, 236, 203, 0.44);
  border-color: rgba(255, 236, 203, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 236, 203, 0.035), rgba(255, 236, 203, 0.012)),
    rgba(8, 5, 14, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 236, 203, 0.05);
  opacity: 1;
}

.reading-panel.is-access-restricted .reading-reset {
  border-color: rgba(232, 185, 104, 0.42);
  color: rgba(255, 236, 203, 0.9);
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 185, 104, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(255, 236, 203, 0.08), rgba(255, 236, 203, 0.02)),
    rgba(8, 5, 14, 0.64);
}

.card-detail-sheet {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 12;
  width: min(372px, calc(100% - 22px));
  min-height: 238px;
  max-height: min(420px, calc(100% - 44px));
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: stretch;
  padding: 16px 15px 15px;
  border: 1px solid rgba(255, 226, 169, 0.2);
  border-radius: 16px;
  color: rgba(255, 236, 203, 0.86);
  background:
    radial-gradient(circle at 18% 0%, rgba(232, 185, 104, 0.18), transparent 36%),
    radial-gradient(circle at 86% 15%, rgba(158, 119, 255, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(24, 15, 34, 0.985), rgba(7, 5, 13, 0.975));
  box-shadow:
    0 30px 72px rgba(0, 0, 0, 0.52),
    0 0 46px rgba(232, 185, 104, 0.1),
    inset 0 1px 0 rgba(255, 236, 203, 0.11);
  backdrop-filter: blur(20px);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 26px) scale(0.98);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.19, 1, 0.22, 1);
}

.card-detail-sheet[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.card-detail-sheet::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 38px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 236, 203, 0.22);
  transform: translateX(-50%);
}

.card-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 236, 203, 0.12);
  border-radius: 50%;
  color: rgba(255, 236, 203, 0.64);
  background: rgba(255, 236, 203, 0.06);
  appearance: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.card-detail-close:hover,
.card-detail-close:focus-visible {
  color: rgba(255, 243, 216, 0.96);
  background: rgba(255, 236, 203, 0.1);
  transform: rotate(90deg);
}

.card-detail-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 42%, rgba(232, 185, 104, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(255, 236, 203, 0.055), rgba(255, 236, 203, 0.018));
  overflow: hidden;
}

.card-detail-visual::after {
  content: "";
  position: absolute;
  inset: 18px 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 185, 104, 0.18), transparent 62%);
  filter: blur(10px);
}

.card-detail-face {
  position: relative;
  z-index: 1;
  width: 132px;
  aspect-ratio: 0.68;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 185, 104, 0.38);
  border-radius: 9px;
  overflow: hidden;
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(232, 185, 104, 0.12),
    inset 0 1px 0 rgba(255, 236, 203, 0.14);
  transform: rotate(-2deg);
}

.card-detail-face[data-has-art="true"] {
  background:
    radial-gradient(circle at 50% 48%, rgba(232, 185, 104, 0.16), transparent 58%),
    rgba(8, 5, 14, 0.76);
}

.card-detail-face[data-has-art="true"][data-orientation="reversed"] {
  transform: rotate(-2deg);
}

.card-detail-art,
.card-detail-art-image {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  display: block;
  border-radius: 7px;
  object-fit: fill;
  image-rendering: auto;
  user-select: none;
  pointer-events: none;
}

.card-detail-face[data-has-art="false"] {
  grid-template-rows: auto auto 1fr auto;
  align-content: stretch;
  padding: 10px 7px;
  background:
    radial-gradient(circle at 50% 42%, rgba(232, 185, 104, 0.24), transparent 36%),
    linear-gradient(180deg, rgba(20, 20, 46, 0.98), rgba(7, 7, 22, 0.98));
}

.card-detail-orientation {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 3px 6px;
  border-radius: 999px;
  color: rgba(18, 12, 29, 0.86);
  background: rgba(255, 236, 203, 0.8);
  font-family: "Noto Serif SC", serif;
  font-size: 10px;
}

.card-detail-number,
.card-detail-suit,
.card-detail-name {
  position: relative;
  z-index: 1;
  color: rgba(255, 236, 203, 0.78);
  font-family: "Noto Serif SC", serif;
  text-align: center;
}

.card-detail-number {
  font-size: 12px;
}

.card-detail-suit {
  margin-top: 4px;
  font-size: 11px;
}

.card-detail-symbol {
  position: relative;
  z-index: 1;
  align-self: center;
  color: rgba(232, 185, 104, 0.9);
  font-family: "Noto Serif SC", serif;
  font-size: 34px;
}

.card-detail-name {
  font-size: 12px;
  line-height: 1.25;
}

.card-detail-copy {
  min-width: 0;
  min-height: 0;
  padding: 18px 20px 0 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.card-detail-copy::-webkit-scrollbar {
  display: none;
}

.card-detail-kicker {
  margin: 0;
  color: rgba(232, 185, 104, 0.82);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  line-height: 1.2;
}

.card-detail-copy h2 {
  margin: 5px 0 0;
  color: rgba(255, 243, 216, 0.98);
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.card-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.card-detail-tags span {
  padding: 4px 7px;
  border: 1px solid rgba(232, 185, 104, 0.18);
  border-radius: 999px;
  color: rgba(255, 236, 203, 0.68);
  background: rgba(255, 236, 203, 0.045);
  font-size: 10px;
}

.card-detail-meaning,
.card-detail-reading {
  margin: 9px 0 0;
  color: rgba(255, 236, 203, 0.65);
  font-size: 12px;
  line-height: 1.58;
}

.card-detail-reading {
  color: rgba(255, 236, 203, 0.8);
  font-family: "Noto Serif SC", serif;
}

.tarot-stage.is-regenerating .reading-panel {
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.46),
    0 0 54px rgba(232, 185, 104, 0.13),
    inset 0 1px 0 rgba(255, 236, 203, 0.08);
}

.tarot-stage[data-state="focusing"] .top-ui,
.tarot-stage[data-state="shuffling"] .top-ui,
.tarot-stage[data-state="drawing"] .top-ui,
.tarot-stage[data-state="ready_to_reveal"] .top-ui,
.tarot-stage[data-state="revealing"] .top-ui,
.tarot-stage[data-state="preview"] .top-ui,
.tarot-stage[data-state="unlocking"] .top-ui,
.tarot-stage[data-state="reading"] .top-ui {
  opacity: 0.15;
  transform: translateY(-80px) scale(0.96);
  filter: blur(2px);
}

.tarot-stage[data-state="focusing"] .benefits,
.tarot-stage[data-state="shuffling"] .benefits,
.tarot-stage[data-state="drawing"] .benefits,
.tarot-stage[data-state="ready_to_reveal"] .benefits,
.tarot-stage[data-state="revealing"] .benefits,
.tarot-stage[data-state="preview"] .benefits,
.tarot-stage[data-state="unlocking"] .benefits,
.tarot-stage[data-state="reading"] .benefits {
  opacity: 0;
  transform: translateX(120%);
  filter: blur(4px);
}

.tarot-stage[data-state="entry"] .hint-panel {
  opacity: 0;
  transform: translateY(22px);
  pointer-events: none;
  filter: blur(2px);
}

.tarot-stage[data-state="entry"] {
  grid-template-rows: 25% 8% 34% 18% 15%;
}

.tarot-stage[data-state="entry"] .ritual-area {
  transform: translateY(-12px) scale(0.96);
}

.tarot-stage[data-state="focusing"] .question-panel,
.tarot-stage[data-state="shuffling"] .question-panel,
.tarot-stage[data-state="drawing"] .question-panel,
.tarot-stage[data-state="ready_to_reveal"] .question-panel,
.tarot-stage[data-state="revealing"] .question-panel,
.tarot-stage[data-state="preview"] .question-panel,
.tarot-stage[data-state="unlocking"] .question-panel,
.tarot-stage[data-state="reading"] .question-panel {
  opacity: 0;
  transform: translateY(32px);
  pointer-events: none;
  filter: blur(3px);
}

.tarot-stage[data-state="focusing"] .bottom-ui,
.tarot-stage[data-state="shuffling"] .bottom-ui,
.tarot-stage[data-state="drawing"] .bottom-ui {
  opacity: 0;
  transform: translateY(120px);
  pointer-events: none;
  filter: blur(3px);
}

.tarot-stage[data-state="focusing"] .deck-button,
.tarot-stage[data-state="shuffling"] .deck-button,
.tarot-stage[data-state="drawing"] .deck-button {
  transform: translate(-50%, -50%) scale(1.08);
}

.tarot-stage[data-state="focusing"] .deck-button.is-pressing,
.tarot-stage[data-state="shuffling"] .deck-button.is-pressing,
.tarot-stage[data-state="drawing"] .deck-button.is-pressing {
  transform: translate(-50%, calc(-50% + 7px)) scale(1.035) rotate(-0.8deg);
}

.tarot-stage[data-state="focusing"] .background,
.tarot-stage[data-state="shuffling"] .background,
.tarot-stage[data-state="drawing"] .background,
.tarot-stage[data-state="ready_to_reveal"] .background,
.tarot-stage[data-state="revealing"] .background,
.tarot-stage[data-state="preview"] .background,
.tarot-stage[data-state="unlocking"] .background,
.tarot-stage[data-state="reading"] .background {
  transform: scale(1.075);
  filter: saturate(1.02) brightness(0.78);
}

.tarot-stage[data-state="shuffling"] .deck-button {
  cursor: default;
  animation: shuffleDeckBreath 2.1s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.tarot-stage[data-state="shuffling"] .deck-glow {
  animation: shuffleGlow 2.1s ease both;
}

.tarot-stage[data-state="shuffling"] .ring-outer {
  animation:
    ringDrift 16s linear infinite,
    shuffleRingLift 2.1s ease both;
}

.tarot-stage[data-state="shuffling"] .ring-inner {
  animation:
    ringDriftReverse 22s linear infinite,
    shuffleRingLift 2.1s ease both;
}

.tarot-stage[data-state="shuffling"] .deck-stack {
  animation: deckCut 2.1s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.tarot-stage[data-state="shuffling"] .shuffle-pack {
  opacity: 1;
}

.tarot-stage[data-state="shuffling"] .shuffle-card-1 {
  animation: shuffleLeftHigh 2.1s cubic-bezier(0.16, 0.92, 0.22, 1) both;
}

.tarot-stage[data-state="shuffling"] .shuffle-card-2 {
  animation: shuffleLeftLow 2.1s cubic-bezier(0.16, 0.92, 0.22, 1) 80ms both;
}

.tarot-stage[data-state="shuffling"] .shuffle-card-3 {
  animation: shuffleRightHigh 2.1s cubic-bezier(0.16, 0.92, 0.22, 1) 120ms both;
}

.tarot-stage[data-state="shuffling"] .shuffle-card-4 {
  animation: shuffleRightLow 2.1s cubic-bezier(0.16, 0.92, 0.22, 1) 40ms both;
}

.tarot-stage[data-state="shuffling"] .shuffle-card-5 {
  animation: shuffleTopCut 2.1s cubic-bezier(0.16, 0.92, 0.22, 1) 160ms both;
}

.tarot-stage[data-state="shuffling"] .shuffle-card-6 {
  animation: shuffleBottomCut 2.1s cubic-bezier(0.16, 0.92, 0.22, 1) 210ms both;
}

.tarot-stage[data-state="ready_to_reveal"] .deck-button,
.tarot-stage[data-state="revealing"] .deck-button,
.tarot-stage[data-state="preview"] .deck-button,
.tarot-stage[data-state="unlocking"] .deck-button,
.tarot-stage[data-state="reading"] .deck-button {
  transform: translate(-50%, calc(-50% + 126px)) scale(0.52);
  opacity: 0.52;
  filter: saturate(0.74) brightness(0.8);
  pointer-events: none;
}

.tarot-stage[data-state="reading"] .hint-panel {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}

.tarot-stage[data-state="preview"] .hint-panel,
.tarot-stage[data-state="unlocking"] .hint-panel {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}

.tarot-stage[data-state="preview"] .top-ui,
.tarot-stage[data-state="unlocking"] .top-ui {
  opacity: 0.08;
  transform: translateY(-96px) scale(0.92);
}

.tarot-stage[data-state="ready_to_reveal"] .ritual-area,
.tarot-stage[data-state="revealing"] .ritual-area,
.tarot-stage[data-state="preview"] .ritual-area,
.tarot-stage[data-state="unlocking"] .ritual-area {
  overflow: visible;
  transform: translateY(-214px) scale(0.96);
}

.tarot-stage[data-state="ready_to_reveal"] .drawn-card,
.tarot-stage[data-state="revealing"] .drawn-card,
.tarot-stage[data-state="preview"] .drawn-card,
.tarot-stage[data-state="unlocking"] .drawn-card {
  width: clamp(128px, 34vw, 152px);
  height: clamp(192px, 51vw, 228px);
}

.tarot-stage[data-state="ready_to_reveal"] .drawn-card.slot-0.is-drawn,
.tarot-stage[data-state="revealing"] .drawn-card.slot-0.is-drawn,
.tarot-stage[data-state="preview"] .drawn-card.slot-0.is-drawn,
.tarot-stage[data-state="unlocking"] .drawn-card.slot-0.is-drawn {
  transform: translate(calc(-50% - var(--slot-x) - 22px), calc(-50% - 10px)) rotate(-8deg) scale(1.06);
}

.tarot-stage[data-state="ready_to_reveal"] .drawn-card.slot-1.is-drawn,
.tarot-stage[data-state="revealing"] .drawn-card.slot-1.is-drawn,
.tarot-stage[data-state="preview"] .drawn-card.slot-1.is-drawn,
.tarot-stage[data-state="unlocking"] .drawn-card.slot-1.is-drawn {
  transform: translate(-50%, calc(-50% - 32px)) rotate(0deg) scale(1.08);
}

.tarot-stage[data-state="ready_to_reveal"] .drawn-card.slot-2.is-drawn,
.tarot-stage[data-state="revealing"] .drawn-card.slot-2.is-drawn,
.tarot-stage[data-state="preview"] .drawn-card.slot-2.is-drawn,
.tarot-stage[data-state="unlocking"] .drawn-card.slot-2.is-drawn {
  transform: translate(calc(-50% + var(--slot-x) + 22px), calc(-50% - 10px)) rotate(8deg) scale(1.06);
}

.tarot-stage[data-state="ready_to_reveal"] .slot-label,
.tarot-stage[data-state="revealing"] .slot-label,
.tarot-stage[data-state="preview"] .slot-label,
.tarot-stage[data-state="unlocking"] .slot-label {
  opacity: 0;
  transform: translate(-50%, 6px);
}

.tarot-stage[data-state="ready_to_reveal"] .bottom-ui,
.tarot-stage[data-state="revealing"] .bottom-ui {
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

.tarot-stage[data-state="ready_to_reveal"] .bottom-ui {
  pointer-events: auto;
}

.tarot-stage[data-state="revealing"] .bottom-ui {
  pointer-events: none;
}

.tarot-stage[data-state="ready_to_reveal"] .notice,
.tarot-stage[data-state="revealing"] .notice {
  display: none;
}

.tarot-stage[data-state="preview"] .unlock-panel,
.tarot-stage[data-state="unlocking"] .unlock-panel {
  bottom: 126px;
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.tarot-stage[data-state="preview"] .bottom-ui,
.tarot-stage[data-state="unlocking"] .bottom-ui {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  filter: none;
}

.tarot-stage[data-state="preview"] .notice,
.tarot-stage[data-state="unlocking"] .notice {
  display: none;
}

.tarot-stage[data-state="preview"] .drawn-card,
.tarot-stage[data-state="unlocking"] .drawn-card {
  filter: none;
}

.tarot-stage.is-payment-open::after {
  background:
    radial-gradient(circle at 50% 58%, rgba(232, 185, 104, 0.08), transparent 34%),
    rgba(2, 1, 5, 0.42);
  backdrop-filter: blur(1.5px);
  mix-blend-mode: normal;
}

.tarot-stage.is-payment-open .unlock-panel {
  opacity: 0.52;
  transform: translate(-50%, -12px) scale(0.98);
  filter: blur(1.2px);
}

.tarot-stage.is-payment-open .ritual-area {
  overflow: visible;
  transform: translateY(-212px) scale(0.78);
}

.tarot-stage.is-payment-open .bottom-ui {
  opacity: 0.08;
  transform: translateY(18px);
  pointer-events: none;
  filter: blur(2px);
}

.tarot-stage.is-payment-open .payment-sheet {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.tarot-stage.is-card-detail-open::after {
  background:
    radial-gradient(circle at 50% 60%, rgba(232, 185, 104, 0.08), transparent 35%),
    rgba(2, 1, 5, 0.48);
  backdrop-filter: blur(1.4px);
  mix-blend-mode: normal;
}

.tarot-stage.is-card-detail-open[data-state="reading"] .reading-panel {
  pointer-events: none;
  opacity: 0.66;
  transform: translate(-50%, -10px) scale(0.985);
  filter: blur(1.1px) saturate(0.9);
}

.tarot-stage[data-state="reading"] .top-ui {
  opacity: 0.08;
  transform: translateY(-96px) scale(0.92);
}

.tarot-stage[data-state="reading"] .ritual-area {
  transform: translateY(-230px) scale(0.6);
}

.tarot-stage[data-state="reading"] .slot-label {
  opacity: 0;
  transform: translate(-50%, 6px);
}

.tarot-stage[data-state="reading"] .reading-panel {
  bottom: 34px;
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.tarot-stage[data-state="reading"] .bottom-ui {
  opacity: 0;
  transform: translateY(68px);
  pointer-events: none;
  visibility: hidden;
  filter: blur(2px);
}

.tarot-stage[data-state="reading"] .bottom-ui * {
  pointer-events: none;
}

.tarot-stage[data-state="reading"] .notice {
  display: none;
}

.tarot-stage[data-state="reading"] .drawn-card {
  filter: drop-shadow(0 0 22px rgba(158, 119, 255, 0.32));
}

@keyframes deckPulse {
  0%,
  100% {
    transform: scale(0.94) rotate(0deg);
    opacity: 0.48;
  }
  50% {
    transform: scale(1.1) rotate(9deg);
    opacity: 0.88;
  }
}

@keyframes deckFloat {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }
  45% {
    filter: saturate(1.06) brightness(1.06);
  }
}

@keyframes ringDrift {
  from {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.98);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg) scale(0.98);
  }
}

@keyframes ringDriftReverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes sparkDrift {
  0%,
  100% {
    transform: translateY(4px) scale(0.98);
    opacity: 0.24;
  }
  50% {
    transform: translateY(-4px) scale(1.02);
    opacity: 0.42;
  }
}

@keyframes progressBreath {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.12);
  }
}

@keyframes progressTap {
  0% {
    transform: scale(1);
  }

  38% {
    transform: scale(1.1);
  }

  72% {
    transform: scale(0.985);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes progressSweep {
  0% {
    opacity: 0;
    transform: rotate(-18deg) scale(0.96);
  }

  34% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: rotate(34deg) scale(1.04);
  }
}

@keyframes cardRevealPop {
  0% {
    transform: translateZ(0) scaleX(1) scaleY(1);
  }
  11% {
    transform: translateZ(20px) scaleX(0.035) scaleY(1.055);
  }
  13% {
    transform: translateZ(20px) scaleX(0.035) scaleY(1.055);
  }
  100% {
    transform: translateZ(0) scaleX(1) scaleY(1);
  }
}

@keyframes orbitDust {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes cardSheen {
  0%,
  55% {
    transform: translateX(-130%);
    opacity: 0;
  }
  62% {
    opacity: 1;
  }
  78% {
    transform: translateX(130%);
    opacity: 0;
  }
  100% {
    transform: translateX(130%);
    opacity: 0;
  }
}

@keyframes shuffleDeckBreath {
  0% {
    transform: translate(-50%, -50%) scale(1.08);
  }
  18% {
    transform: translate(-50%, calc(-50% + 5px)) scale(1.04) rotate(-0.4deg);
  }
  45% {
    transform: translate(-50%, calc(-50% - 3px)) scale(1.12) rotate(0.4deg);
  }
  78% {
    transform: translate(-50%, -50%) scale(1.08);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes shuffleGlow {
  0%,
  100% {
    opacity: 0.64;
    transform: scale(0.98) rotate(0deg);
  }
  42% {
    opacity: 1;
    transform: scale(1.24) rotate(24deg);
  }
  68% {
    opacity: 0.78;
    transform: scale(1.05) rotate(38deg);
  }
}

@keyframes shuffleRingLift {
  0%,
  100% {
    opacity: 0.5;
  }
  45% {
    opacity: 0.92;
  }
}

@keyframes deckCut {
  0%,
  100% {
    transform: translateY(0) rotateZ(0deg);
  }
  22% {
    transform: translateY(8px) rotateZ(-0.8deg);
  }
  48% {
    transform: translateY(-4px) rotateZ(0.8deg);
  }
  72% {
    transform: translateY(2px) rotateZ(0deg);
  }
}

@keyframes shuffleLeftHigh {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94) rotate(0deg);
  }
  18% {
    opacity: 0.94;
  }
  42% {
    transform: translate(calc(-50% - 74px), calc(-50% - 36px)) scale(0.98) rotate(-15deg);
  }
  68% {
    transform: translate(calc(-50% - 24px), calc(-50% - 14px)) scale(0.98) rotate(-5deg);
    opacity: 0.86;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94) rotate(0deg);
  }
}

@keyframes shuffleLeftLow {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94) rotate(0deg);
  }
  18% {
    opacity: 0.86;
  }
  45% {
    transform: translate(calc(-50% - 54px), calc(-50% + 26px)) scale(0.96) rotate(-10deg);
  }
  72% {
    transform: translate(calc(-50% - 18px), calc(-50% + 8px)) scale(0.96) rotate(-3deg);
    opacity: 0.76;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94) rotate(0deg);
  }
}

@keyframes shuffleRightHigh {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94) rotate(0deg);
  }
  18% {
    opacity: 0.92;
  }
  44% {
    transform: translate(calc(-50% + 74px), calc(-50% - 34px)) scale(0.98) rotate(15deg);
  }
  70% {
    transform: translate(calc(-50% + 22px), calc(-50% - 10px)) scale(0.98) rotate(5deg);
    opacity: 0.84;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94) rotate(0deg);
  }
}

@keyframes shuffleRightLow {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94) rotate(0deg);
  }
  18% {
    opacity: 0.84;
  }
  44% {
    transform: translate(calc(-50% + 54px), calc(-50% + 30px)) scale(0.96) rotate(10deg);
  }
  72% {
    transform: translate(calc(-50% + 18px), calc(-50% + 8px)) scale(0.96) rotate(3deg);
    opacity: 0.74;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94) rotate(0deg);
  }
}

@keyframes shuffleTopCut {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94) rotate(0deg);
  }
  22% {
    opacity: 0.82;
  }
  46% {
    transform: translate(-50%, calc(-50% - 70px)) scale(0.94) rotate(2deg);
  }
  70% {
    transform: translate(-50%, calc(-50% - 18px)) scale(0.94) rotate(0deg);
    opacity: 0.68;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94) rotate(0deg);
  }
}

@keyframes shuffleBottomCut {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94) rotate(0deg);
  }
  22% {
    opacity: 0.72;
  }
  46% {
    transform: translate(-50%, calc(-50% + 62px)) scale(0.92) rotate(-1deg);
  }
  72% {
    transform: translate(-50%, calc(-50% + 16px)) scale(0.92) rotate(0deg);
    opacity: 0.58;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94) rotate(0deg);
  }
}

@keyframes drawTrail {
  0% {
    opacity: 0;
    width: 18px;
  }
  30% {
    opacity: 0.9;
    width: 146px;
  }
  100% {
    opacity: 0;
    width: 40px;
  }
}

@keyframes cardDrawLeft {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.42) rotate(-1deg);
    filter: drop-shadow(0 0 0 rgba(232, 185, 104, 0));
  }
  28% {
    opacity: 1;
    transform: translate(calc(-50% - 28px), calc(-50% - 30px)) scale(0.74) rotate(-4deg);
  }
  74% {
    transform: translate(calc(-50% - var(--slot-x) - 8px), calc(-50% - 22px)) scale(1.04) rotate(-10deg);
    filter: drop-shadow(0 0 34px rgba(232, 185, 104, 0.76));
  }
  100% {
    opacity: 1;
    transform: translate(calc(-50% - var(--slot-x)), calc(-50% - 4px)) rotate(-8deg);
    filter: drop-shadow(0 0 12px rgba(232, 185, 104, 0.2));
  }
}

@keyframes cardDrawCenter {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.42) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(232, 185, 104, 0));
  }
  30% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 42px)) scale(0.76) rotate(1deg);
  }
  74% {
    transform: translate(-50%, calc(-50% - 34px)) scale(1.04) rotate(0deg);
    filter: drop-shadow(0 0 34px rgba(232, 185, 104, 0.76));
  }
  100% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 18px)) rotate(0deg);
    filter: drop-shadow(0 0 12px rgba(232, 185, 104, 0.2));
  }
}

@keyframes cardDrawRight {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.42) rotate(1deg);
    filter: drop-shadow(0 0 0 rgba(232, 185, 104, 0));
  }
  28% {
    opacity: 1;
    transform: translate(calc(-50% + 28px), calc(-50% - 30px)) scale(0.74) rotate(4deg);
  }
  74% {
    transform: translate(calc(-50% + var(--slot-x) + 8px), calc(-50% - 22px)) scale(1.04) rotate(10deg);
    filter: drop-shadow(0 0 34px rgba(232, 185, 104, 0.76));
  }
  100% {
    opacity: 1;
    transform: translate(calc(-50% + var(--slot-x)), calc(-50% - 4px)) rotate(8deg);
    filter: drop-shadow(0 0 12px rgba(232, 185, 104, 0.2));
  }
}

@keyframes readingOrb {
  0%,
  100% {
    transform: scale(0.75);
    opacity: 0.58;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes paymentOrb {
  0%,
  100% {
    transform: scale(0.92) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08) rotate(12deg);
    opacity: 1;
  }
}

@keyframes uiSettle {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes altarBreathe {
  0%,
  100% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(0.96) rotate(0deg);
  }
  50% {
    opacity: 0.66;
    transform: translate(-50%, -50%) scale(1.03) rotate(6deg);
  }
}

@keyframes buttonSheen {
  0%,
  58% {
    transform: translateX(-78%) rotate(4deg);
    opacity: 0;
  }
  68% {
    opacity: 0.9;
  }
  82%,
  100% {
    transform: translateX(78%) rotate(4deg);
    opacity: 0;
  }
}

@keyframes driftStars {
  from {
    background-position: 0 0, 30px 20px;
  }
  to {
    background-position: 92px 118px, 177px 193px;
  }
}

@keyframes qingheSoftDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes qingheSoftRise {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes qingheHeroIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes qingheFloat {
  0%,
  100% {
    transform: scale(1.04) translateY(0);
  }
  50% {
    transform: scale(1.055) translateY(-5px);
  }
}

@keyframes qingheCtaIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes qingheCtaPulse {
  0%,
  100% {
    box-shadow:
      0 18px 34px rgba(116, 112, 172, 0.3),
      0 5px 16px rgba(92, 88, 146, 0.12),
      0 0 0 0 rgba(134, 130, 192, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.56),
      inset 0 -1px 0 rgba(74, 70, 133, 0.22);
  }
  48% {
    box-shadow:
      0 21px 42px rgba(116, 112, 172, 0.36),
      0 6px 18px rgba(92, 88, 146, 0.16),
      0 0 0 9px rgba(134, 130, 192, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.62),
      inset 0 -1px 0 rgba(74, 70, 133, 0.2);
  }
}

@keyframes qingheCtaSheen {
  0%,
  58% {
    transform: translateX(-72%);
    opacity: 0;
  }
  70% {
    opacity: 0.54;
  }
  88%,
  100% {
    transform: translateX(72%);
    opacity: 0;
  }
}

@keyframes qingheCardIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.965);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes qingheLedgerIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes qingheTinyPop {
  0% {
    opacity: 0.4;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 430px) {
  body {
    padding: 0;
  }

  .phone-shell {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .tarot-stage {
    grid-template-rows: 27% 9% 38% 13% 13%;
    padding: 22px 18px 20px;
  }

  .top-ui {
    transform: translateY(-8px);
  }

  .subtitle {
    max-width: 292px;
    margin-top: 11px;
    line-height: 1.55;
  }

  .benefits {
    padding-inline: 8px;
  }

  .benefits small {
    font-size: 10px;
  }

  .tarot-stage[data-state="home"] {
    padding: 18px 16px 12px;
    min-height: 100vh;
    overflow: visible;
  }

  .qinghe-home {
    gap: 8px;
    height: auto;
    min-height: calc(100vh - 30px);
  }

  .qinghe-brand {
    font-size: 43px;
    gap: 5px;
  }

  .qinghe-brand-mark {
    width: 31px;
    height: 25px;
    margin-top: 0;
    transform: scale(0.94);
    transform-origin: left top;
  }

  .brand-leaf {
    margin-top: 4px;
    font-size: 23px;
  }

  .brand-spark {
    margin-top: 12px;
    margin-left: -3px;
    font-size: 14px;
  }

  .qinghe-tagline {
    margin-top: 7px;
    font-size: 12px;
  }

  .qinghe-pill .material-symbols-rounded {
    font-size: 16px;
  }

  .qinghe-icon-button .material-symbols-rounded {
    font-size: 20px;
  }

  .lingbai-hero {
    min-height: 244px;
  }

  .lingbai-hero-copy {
    padding: 38px 0 0 20px;
  }

  .lingbai-name {
    font-size: 31px;
  }

  .lingbai-line {
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.5;
  }

  .lingbai-chat-cta {
    min-width: 188px;
    height: 47px;
    margin-top: 15px;
    font-size: 16px;
  }

  .cta-mark {
    width: 29px;
    height: 29px;
    font-size: 17px;
  }

  .home-room-card {
    min-height: 204px;
    padding-inline: 11px;
  }

  .room-title {
    font-size: 19px;
  }

  .home-room-card img {
    width: 96px;
    height: 134px;
    bottom: 24px;
  }

  .tarot-room-card .tarot-room-visual {
    width: 90px;
    height: 142px;
    bottom: 24px;
  }

  .ledger-room-visual {
    width: 100px;
    height: 138px;
  }

  .letter-room-visual {
    width: 102px;
    height: 138px;
  }

  .ledger-metric-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
    font-size: 16px;
  }

  .today-ledger {
    height: 142px;
    padding: 11px 14px 12px;
  }

  .ledger-heading p {
    font-size: 20px;
  }

  .home-section-head {
    margin-bottom: 9px;
  }

  .home-section-head p {
    font-size: 20px;
  }

  .home-section-head span,
  .ledger-heading span {
    font-size: 11px;
  }

  .home-feedback {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .more-rooms-link {
    margin-top: 5px;
    font-size: 12px;
  }

  .ledger-heading {
    margin-bottom: 5px;
    padding-bottom: 5px;
  }

  .ledger-summary-row strong {
    margin-top: 1px;
    font-size: 15px;
    line-height: 1;
  }

  .ledger-summary-row div:first-child strong {
    font-size: 17px;
  }

  .ledger-summary-row .ledger-metric-label {
    font-size: 10px;
  }

  .ledger-metric-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 1px;
    font-size: 13px;
  }

  .ledger-actions {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 11px;
    margin-top: 4px;
  }

  .ledger-add {
    height: 32px;
    font-size: 14px;
  }

  .ledger-add .material-symbols-rounded {
    font-size: 17px;
  }

  .ledger-heading span {
    max-width: 230px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ledger-decor {
    right: -10px;
    bottom: -12px;
    width: 58px;
  }

  .ledger-summary-row {
    height: 48px;
    overflow: visible;
    align-items: start;
    transform: translateY(-22px);
  }

  .qinghe-tabbar .material-symbols-rounded {
    font-size: 21px;
  }

  .qinghe-tabbar {
    height: 60px;
    padding-block: 6px;
  }
}

@media (max-height: 760px) {
  .tarot-stage {
    min-height: 690px;
    grid-template-rows: 24% 9% 38% 13% 16%;
  }

  h1 {
    font-size: 38px;
  }

  .subtitle {
    margin-top: 10px;
  }

  .notice {
    display: none;
  }

  .tarot-stage[data-state="home"] {
    padding-top: 16px;
  }

  .qinghe-home {
    gap: 10px;
  }

  .qinghe-brand {
    font-size: 38px;
  }

  .qinghe-tagline {
    margin-top: 6px;
    font-size: 12px;
  }

  .qinghe-pill {
    height: 34px;
    padding-inline: 11px;
    font-size: 12px;
  }

  .qinghe-icon-button {
    width: 36px;
    height: 36px;
  }

  .lingbai-hero {
    min-height: 224px;
  }

  .lingbai-name {
    font-size: 30px;
  }

  .lingbai-line {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.62;
  }

  .lingbai-chat-cta {
    bottom: 18px;
    min-width: 162px;
    height: 46px;
    font-size: 16px;
  }

  .home-room-card {
    min-height: 180px;
  }

  .home-room-card img {
    width: 74px;
    height: 74px;
  }

  .tarot-room-card .tarot-room-visual {
    width: 86px;
    height: 130px;
  }

  .ledger-metric-icon {
    width: 27px;
    height: 27px;
    margin-bottom: 4px;
  }

  .ledger-heading {
    margin-bottom: 10px;
    padding-bottom: 9px;
  }

  .ledger-summary-row strong {
    margin-top: 5px;
    font-size: 17px;
  }

  .ledger-summary-row div:first-child strong {
    font-size: 20px;
  }

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

  .ledger-add {
    height: 42px;
    font-size: 16px;
  }

  .qinghe-tabbar {
    height: 62px;
    border-radius: 24px;
  }

  .tarot-stage[data-state="home"] {
    min-height: 100%;
    padding: 22px 18px 20px;
  }

  .tarot-stage[data-state="home"] .qinghe-brand {
    font-size: clamp(40px, 12vw, 54px);
  }

  .tarot-stage[data-state="home"] .lingbai-hero {
    min-height: 250px;
  }

  .tarot-stage[data-state="home"] .lingbai-line {
    margin-top: 15px;
    line-height: 1.55;
  }

  .tarot-stage[data-state="home"] .lingbai-chat-cta {
    min-width: 188px;
    height: 52px;
    margin-top: 19px;
  }

  .tarot-stage[data-state="home"] .home-room-card {
    min-height: 222px;
  }

  .tarot-stage[data-state="home"] .home-room-card img {
    width: 112px;
    height: 152px;
  }

  .tarot-stage[data-state="home"] .tarot-room-card .tarot-room-visual {
    width: 104px;
    height: 162px;
  }
}

@media (max-width: 380px) {
  body {
    padding: 0;
  }

  .phone-shell {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .tarot-stage {
    min-height: 100vh;
    --slot-x: 94px;
  }

  .tarot-stage[data-state="home"] {
    padding-inline: 14px;
    min-height: 100vh;
    overflow: visible;
  }

  .qinghe-status-row {
    gap: 6px;
    min-width: 0;
  }

  .qinghe-pill {
    max-width: min(142px, 36vw);
    min-width: 0;
    padding-inline: 9px;
    overflow: hidden;
    font-size: 11px;
  }

  .qinghe-pill strong {
    margin-inline: 2px;
  }

  .brand-spark {
    display: none;
  }

  .lingbai-hero-copy {
    width: 56%;
  }

  .home-room-grid {
    gap: 8px;
  }

  .room-title {
    font-size: 18px;
  }

  .room-copy {
    font-size: 10px;
  }
}

/* Qinghe depth v1: refined shallow-elevation home shell. */
.tarot-stage[data-state="home"] {
  padding: 18px 16px 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 19% 5%, rgba(255, 255, 255, 0.95), transparent 31%),
    radial-gradient(circle at 92% 18%, rgba(210, 222, 190, 0.48), transparent 34%),
    radial-gradient(circle at 10% 72%, rgba(223, 208, 176, 0.22), transparent 32%),
    linear-gradient(180deg, #fffcef 0%, #f6f1df 56%, #fbf8ef 100%);
}

.tarot-stage[data-state="home"]::before {
  background:
    linear-gradient(180deg, rgba(189, 204, 171, 0.24), rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.72), transparent 36%);
  opacity: 1;
}

.tarot-stage[data-state="home"]::after {
  box-shadow:
    inset 0 0 0 1px rgba(126, 113, 88, 0.08),
    inset 0 24px 52px rgba(255, 255, 255, 0.24),
    inset 0 -48px 72px rgba(102, 87, 61, 0.06);
}

.tarot-stage[data-state="home"] .qinghe-home {
  gap: 10px;
  height: 100%;
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.qinghe-home-top {
  min-height: 68px;
  align-items: flex-start;
}

.qinghe-brand {
  gap: 5px;
  color: #4f6345;
  font-size: clamp(45px, 12.4vw, 54px);
  line-height: 0.94;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(86, 105, 70, 0.16);
}

.qinghe-brand-text {
  color: #4f6345;
  -webkit-text-stroke: 0.34px rgba(62, 79, 55, 0.36);
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.72));
}

.qinghe-brand-mark {
  margin-top: 1px;
}

.brand-leaf {
  margin-top: 3px;
  color: rgba(139, 160, 111, 0.9);
  font-size: 25px;
}

.brand-spark {
  margin-top: 9px;
  color: rgba(202, 166, 78, 0.92);
  font-size: 16px;
}

.qinghe-tagline {
  margin-top: 7px;
  color: rgba(74, 76, 66, 0.56);
  font-size: 12px;
  font-weight: 500;
}

.qinghe-status-row {
  gap: 8px;
  padding-top: 3px;
}

.qinghe-pill,
.qinghe-icon-button {
  border-color: rgba(132, 124, 100, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 244, 235, 0.76));
  box-shadow:
    0 12px 24px rgba(118, 110, 88, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.qinghe-pill {
  height: 36px;
  padding-inline: 13px;
  color: rgba(75, 75, 66, 0.78);
  font-size: 12px;
}

.qinghe-pill strong {
  color: #b68b35;
  font-size: 20px;
}

.qinghe-icon-button {
  width: 40px;
  height: 40px;
  color: #4d4d45;
}

.qinghe-icon-button::after {
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: #978bd4;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92);
}

.lingbai-hero {
  min-height: 242px;
  border-radius: 25px;
  border-color: rgba(168, 156, 125, 0.2);
  background: #fff8eb;
  box-shadow:
    0 22px 42px rgba(115, 104, 78, 0.18),
    0 7px 0 rgba(210, 197, 161, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.lingbai-hero::after {
  background:
    linear-gradient(90deg, rgba(255, 251, 241, 0.98) 0 34%, rgba(255, 251, 241, 0.62) 48%, rgba(255, 251, 241, 0.08) 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08) 42%, rgba(209, 197, 164, 0.12));
}

.lingbai-hero-art {
  inset: -6px -8px 0 -8px;
  width: calc(100% + 16px);
  height: calc(100% + 10px);
  object-position: 58% 46%;
  filter: saturate(1.06) brightness(1.02) contrast(1.08);
}

.lingbai-hero-copy {
  width: 54%;
  padding: 38px 0 0 24px;
}

.lingbai-name {
  color: #7772ab;
  font-size: 35px;
  text-shadow: 0 12px 24px rgba(116, 108, 163, 0.16);
}

.lingbai-line {
  margin-top: 16px;
  color: rgba(55, 54, 48, 0.88);
  font-size: 18px;
  line-height: 1.72;
}

.lingbai-chat-cta {
  min-width: 188px;
  height: 49px;
  margin-top: 20px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(180deg, rgba(166, 161, 219, 1), rgba(117, 111, 187, 1));
  font-size: 15px;
  font-weight: 700;
  box-shadow:
    0 15px 24px rgba(112, 105, 183, 0.33),
    0 4px 0 rgba(83, 77, 144, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: qingheCtaSettle 520ms cubic-bezier(0.19, 1, 0.22, 1) 80ms both;
}

.lingbai-chat-cta:hover,
.lingbai-chat-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 18px 30px rgba(112, 105, 183, 0.35),
    0 4px 0 rgba(83, 77, 144, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.lingbai-chat-cta:active {
  transform: translateY(2px);
  box-shadow:
    0 8px 16px rgba(112, 105, 183, 0.22),
    0 1px 0 rgba(83, 77, 144, 0.22),
    inset 0 1px 4px rgba(66, 59, 129, 0.2);
}

.cta-mark {
  width: 30px;
  height: 30px;
  color: #7a72bb;
  box-shadow:
    inset 0 -2px 5px rgba(112, 105, 183, 0.13),
    0 5px 12px rgba(82, 78, 139, 0.16);
}

.home-room-grid {
  gap: 10px;
  margin-top: 16px;
}

.tarot-stage[data-state="home"] .home-section-head {
  display: flex;
}

.home-room-card {
  min-height: 204px;
  border-radius: 16px;
  padding: 16px 13px;
  background-size: cover;
  background-position: center;
  box-shadow:
    0 18px 26px rgba(117, 105, 80, 0.18),
    0 7px 0 rgba(203, 193, 166, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.home-room-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: inherit;
  pointer-events: none;
}

.home-room-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.76) 0 28%, rgba(255, 252, 244, 0.22) 48%, transparent 68%),
    linear-gradient(0deg, rgba(74, 61, 38, 0.14), transparent 38%);
  pointer-events: none;
}

.home-room-card:hover,
.home-room-card:focus-visible {
  transform: translateY(-4px);
  box-shadow:
    0 22px 32px rgba(117, 105, 80, 0.2),
    0 7px 0 rgba(203, 193, 166, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.home-room-card:active {
  transform: translateY(2px);
  box-shadow:
    0 10px 16px rgba(117, 105, 80, 0.13),
    0 2px 0 rgba(203, 193, 166, 0.2),
    inset 0 1px 4px rgba(91, 82, 62, 0.08);
}

.home-room-card .room-visual,
.home-room-card .room-arrow,
.today-ledger .ledger-heading,
.today-ledger .ledger-summary-row,
.today-ledger .ledger-actions,
.today-ledger .ledger-decor {
  opacity: 1;
}

.home-room-card .room-title,
.home-room-card .room-copy {
  opacity: 1;
}

.room-title,
.room-copy {
  left: 13px;
  right: 10px;
  z-index: 4;
}

.room-title {
  top: 16px;
  font-size: 18px;
  line-height: 1.15;
}

.room-copy {
  top: 45px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

.tarot-room-card {
  background:
    radial-gradient(circle at 72% 18%, rgba(226, 199, 112, 0.18), transparent 32%),
    linear-gradient(160deg, #182645 0%, #0d1630 72%);
}

.ledger-room-card {
  background:
    radial-gradient(circle at 82% 17%, rgba(255, 255, 255, 0.88), transparent 32%),
    linear-gradient(160deg, #f3f3da 0%, #e6ead1 100%);
}

.letter-room-card {
  background:
    radial-gradient(circle at 79% 14%, rgba(255, 255, 255, 0.74), transparent 33%),
    linear-gradient(160deg, #f2edf8 0%, #ece4f3 100%);
}

.home-room-card img {
  z-index: 2;
  right: -4px;
  bottom: 20px;
  width: 104px;
  height: 148px;
  filter: drop-shadow(0 15px 14px rgba(98, 93, 75, 0.2));
}

.tarot-room-card .tarot-room-visual {
  right: -2px;
  bottom: 17px;
  width: 98px;
  height: 154px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 17px 16px rgba(0, 0, 0, 0.3));
}

.ledger-room-visual {
  right: -4px;
  bottom: 20px;
  width: 101px;
  height: 146px;
  transform: rotate(-5deg);
}

.letter-room-visual {
  right: -4px;
  bottom: 22px;
  width: 101px;
  height: 144px;
  transform: rotate(-4deg);
}

.room-arrow {
  z-index: 5;
  right: 11px;
  bottom: 11px;
  width: 34px;
  height: 34px;
  color: #fff;
  box-shadow:
    0 10px 18px rgba(67, 70, 57, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.tarot-room-card .room-arrow {
  background: linear-gradient(180deg, #384563, #17233f);
  color: #fff9df;
}

.ledger-room-card .room-arrow {
  background: linear-gradient(180deg, #9cac77, #758a58);
}

.letter-room-card .room-arrow {
  background: linear-gradient(180deg, #aaa2ce, #8177ad);
}

.more-rooms-link {
  min-height: 30px;
  margin-top: 7px;
  padding: 5px 2px;
  color: rgba(72, 70, 60, 0.66);
  font-size: 12px;
}

.today-ledger {
  height: 148px;
  margin-top: 0;
  padding: 16px 16px 13px;
  border: 1px solid rgba(168, 155, 121, 0.18);
  border-radius: 23px;
  background:
    radial-gradient(circle at 92% 10%, rgba(232, 237, 211, 0.42), transparent 34%),
    radial-gradient(circle at 18% 100%, rgba(215, 226, 192, 0.32), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 252, 242, 0.84));
  box-shadow:
    0 20px 36px rgba(118, 105, 81, 0.15),
    0 7px 0 rgba(205, 194, 163, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.ledger-heading {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.ledger-heading p {
  color: #555b4f;
  font-size: 19px;
}

.ledger-heading span {
  display: none;
}

.ledger-leaf {
  color: rgba(144, 160, 111, 0.9);
  font-size: 18px;
}

.ledger-summary-row {
  width: 100%;
  height: auto;
  margin-top: 10px;
  transform: none;
  align-items: start;
  grid-template-columns: repeat(3, 1fr);
}

.ledger-summary-row div {
  padding-inline: 5px;
  position: relative;
}

.ledger-summary-row div:not(:last-child) {
  border-right: 1px solid rgba(154, 144, 111, 0.16);
}

.ledger-summary-row div:not(:last-child)::after {
  content: none;
}

.ledger-metric-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
  background: #ede7f7;
  color: #7b72a4;
  font-size: 16px;
  box-shadow:
    0 5px 10px rgba(98, 89, 128, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ledger-summary-row div:nth-child(2) .ledger-metric-icon {
  background: #e2ead6;
  color: #6c7b57;
}

.ledger-summary-row div:nth-child(3) .ledger-metric-icon {
  background: #f1e2bd;
  color: #927438;
}

.ledger-summary-row .ledger-metric-label {
  color: rgba(72, 73, 62, 0.52);
  font-size: 9px;
  font-weight: 700;
}

.ledger-summary-row strong,
.ledger-summary-row div:first-child strong {
  margin-top: 1px;
  color: #33372f;
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  line-height: 1.08;
}

.ledger-actions {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 3;
  display: flex;
  margin-top: 7px;
}

.ledger-add {
  width: 174px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #a9bb84, #819960);
  font-size: 14px;
  box-shadow:
    0 12px 18px rgba(105, 124, 73, 0.24),
    0 4px 0 rgba(91, 111, 61, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.ledger-add:active {
  transform: translateY(2px);
  box-shadow:
    0 6px 10px rgba(105, 124, 73, 0.16),
    0 1px 0 rgba(91, 111, 61, 0.18),
    inset 0 1px 4px rgba(71, 95, 44, 0.2);
}

.home-feedback {
  display: none;
}

.ledger-decor {
  display: none;
}

.qinghe-tabbar {
  --tabbar-pad-x: 7px;
  --tabbar-pad-y: 7px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 62px;
  padding: 7px;
  border-color: rgba(166, 155, 124, 0.16);
  border-radius: 27px;
  background: rgba(255, 253, 247, 0.84);
  box-shadow:
    0 18px 35px rgba(109, 98, 77, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
}

.qinghe-tabbar button {
  gap: 1px;
  border-radius: 19px;
  color: #858278;
  font-size: 11px;
  font-weight: 700;
}

.qinghe-tabbar button.is-active {
  background: transparent;
  color: #5f784d;
  box-shadow: none;
}

.qinghe-tabbar::before {
  background: linear-gradient(180deg, #e6edd8, #d6e3c4);
  box-shadow:
    0 11px 18px rgba(101, 124, 74, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.qinghe-tabbar .material-symbols-rounded {
  font-size: 21px;
}

@media (max-width: 430px) {
  .tarot-stage[data-state="home"] {
    padding: 18px 16px 10px;
  }

  .tarot-stage[data-state="home"] .qinghe-home {
    min-height: calc(100vh - 28px);
    gap: 10px;
  }

  .qinghe-home-top {
    min-height: 68px;
  }

  .qinghe-brand {
    font-size: 46px;
  }

  .qinghe-brand-mark {
    width: 31px;
    height: 25px;
    transform: scale(0.94);
    transform-origin: left top;
  }

  .lingbai-hero {
    min-height: 242px;
  }

  .home-room-card {
    min-height: 204px;
  }

  .today-ledger {
    height: 148px;
  }

  .qinghe-tabbar {
    bottom: -1px;
  }
}

@keyframes qingheCtaSettle {
  from {
    opacity: 1;
    transform: translateY(4px) scale(0.992);
    filter: none;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: none;
  }
}

@keyframes qingheSurfaceSettle {
  from {
    opacity: 1;
    transform: translateY(7px);
    filter: none;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: none;
  }
}

.tarot-stage[data-state="home"] .home-room-card {
  animation: qingheSurfaceSettle 520ms cubic-bezier(0.19, 1, 0.22, 1) both;
  filter: none;
}

.tarot-stage[data-state="home"] .home-room-card:nth-child(1) {
  animation-delay: 30ms;
}

.tarot-stage[data-state="home"] .home-room-card:nth-child(2) {
  animation-delay: 70ms;
}

.tarot-stage[data-state="home"] .home-room-card:nth-child(3) {
  animation-delay: 110ms;
}

.tarot-stage[data-state="home"] .today-ledger {
  height: 154px;
  padding: 15px 16px 14px;
  animation: qingheSurfaceSettle 520ms cubic-bezier(0.19, 1, 0.22, 1) 130ms both;
  filter: none;
}

.tarot-stage[data-state="home"] .ledger-summary-row {
  margin-top: 8px;
}

.tarot-stage[data-state="home"] .ledger-actions {
  margin-top: 7px;
}

.tarot-stage[data-state="home"] .ledger-add {
  height: 30px;
}

.tarot-stage[data-state="home"] .lingbai-hero {
  min-height: 254px;
}

.tarot-stage[data-state="home"] .lingbai-hero::after {
  background:
    linear-gradient(90deg, rgba(255, 251, 241, 0.99) 0 35%, rgba(255, 251, 241, 0.58) 49%, rgba(255, 251, 241, 0.03) 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.05) 42%, rgba(209, 197, 164, 0.12));
}

.tarot-stage[data-state="home"] .lingbai-hero-art {
  inset: -18px -24px -14px -10px;
  width: calc(100% + 42px);
  height: calc(100% + 34px);
  object-position: 61% 44%;
  transform: scale(1.075);
}

.tarot-stage[data-state="home"] .lingbai-hero-copy {
  width: 57%;
  padding: 34px 0 0 24px;
}

.tarot-stage[data-state="home"] .lingbai-name {
  font-size: 38px;
}

.tarot-stage[data-state="home"] .lingbai-line {
  margin-top: 17px;
  font-size: 19px;
  line-height: 1.65;
}

.tarot-stage[data-state="home"] .lingbai-chat-cta {
  min-width: 198px;
  height: 52px;
  margin-top: 22px;
  font-size: 16px;
}

.tarot-stage[data-state="home"] .room-title {
  top: 15px;
  font-size: 19px;
  line-height: 1.12;
}

.tarot-stage[data-state="home"] .room-copy {
  top: 44px;
  font-size: 10.75px;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.tarot-stage[data-state="home"] .home-room-card img {
  inset: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center bottom;
  filter: none;
  transform: scale(1.065);
  transform-origin: center bottom;
}

.tarot-stage[data-state="home"] .tarot-room-card .tarot-room-visual {
  inset: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center bottom;
  filter: none;
  transform: scale(1.08);
}

.tarot-stage[data-state="home"] .ledger-room-visual {
  inset: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: 52% 50%;
  transform: scale(1.08);
}

.tarot-stage[data-state="home"] .letter-room-visual {
  inset: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: 52% 50%;
  transform: scale(1.09);
}

.tarot-stage[data-state="home"] .room-arrow {
  right: 9px;
  bottom: 9px;
  width: 38px;
  height: 38px;
  font-size: 23px;
}

.tarot-stage[data-state="home"] .tarot-room-card::after {
  background:
    linear-gradient(180deg, rgba(10, 15, 31, 0.48) 0 30%, rgba(10, 15, 31, 0.18) 52%, transparent 70%),
    linear-gradient(0deg, rgba(6, 8, 19, 0.32), transparent 42%);
}

.tarot-stage[data-state="home"] .ledger-room-card::after {
  background:
    linear-gradient(180deg, rgba(249, 249, 230, 0.82) 0 27%, rgba(249, 249, 230, 0.22) 49%, transparent 70%),
    linear-gradient(0deg, rgba(90, 103, 69, 0.13), transparent 40%);
}

.tarot-stage[data-state="home"] .letter-room-card::after {
  background:
    linear-gradient(180deg, rgba(249, 244, 253, 0.8) 0 27%, rgba(249, 244, 253, 0.22) 49%, transparent 70%),
    linear-gradient(0deg, rgba(98, 82, 125, 0.13), transparent 40%);
}

.tarot-stage[data-state="home"] .tarot-room-card .room-title,
.tarot-stage[data-state="home"] .tarot-room-card .room-copy {
  color: #ffe5a7;
  text-shadow:
    0 2px 8px rgba(3, 6, 18, 0.9),
    0 0 18px rgba(232, 185, 104, 0.32);
}

/* Qinghe depth v8: soften the dimensionality into paper-like light. */
.tarot-stage[data-state="home"] .qinghe-pill,
.tarot-stage[data-state="home"] .qinghe-icon-button {
  border-color: rgba(132, 124, 100, 0.1);
  box-shadow:
    0 8px 18px rgba(118, 110, 88, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.tarot-stage[data-state="home"] .lingbai-hero {
  border-color: rgba(168, 156, 125, 0.13);
  box-shadow:
    0 16px 34px rgba(115, 104, 78, 0.1),
    0 2px 12px rgba(178, 162, 124, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.tarot-stage[data-state="home"] .lingbai-chat-cta {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.32), transparent 30%),
    linear-gradient(180deg, rgba(160, 156, 214, 0.96), rgba(119, 113, 186, 0.96));
  box-shadow:
    0 12px 24px rgba(112, 105, 183, 0.24),
    0 2px 8px rgba(83, 77, 144, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.tarot-stage[data-state="home"] .lingbai-chat-cta:hover,
.tarot-stage[data-state="home"] .lingbai-chat-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 14px 27px rgba(112, 105, 183, 0.27),
    0 2px 8px rgba(83, 77, 144, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.tarot-stage[data-state="home"] .lingbai-chat-cta:active {
  transform: translateY(1px);
  box-shadow:
    0 8px 16px rgba(112, 105, 183, 0.18),
    inset 0 1px 4px rgba(66, 59, 129, 0.16);
}

/* Companion sticker: keep Lingbai present without making her the page hero. */
.lingbai-sticker {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 auto;
  width: 43px;
  height: 39px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  margin-left: -2px;
  transform: rotate(-5deg);
  filter: drop-shadow(0 6px 10px rgba(68, 77, 56, 0.18));
  box-shadow: none;
}

.lingbai-sticker-blob {
  position: absolute;
  inset: 0;
  display: block;
  padding: 4px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(255, 252, 243, 0.96));
  clip-path: polygon(19% 2%, 70% 0%, 97% 25%, 91% 73%, 62% 99%, 17% 91%, 0% 55%, 7% 18%);
}

.lingbai-sticker-blob img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 50%;
  clip-path: polygon(20% 4%, 70% 2%, 94% 26%, 88% 72%, 62% 96%, 19% 88%, 5% 55%, 11% 20%);
  filter: saturate(0.94) brightness(1.05) contrast(0.96);
  transform: scale(1.82);
  transform-origin: 50% 20%;
}

.lingbai-sticker-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: #8aaa70;
  box-shadow: 0 2px 5px rgba(82, 102, 63, 0.22);
}

.tarot-stage[data-state="home"] .home-room-card {
  box-shadow:
    0 13px 25px rgba(117, 105, 80, 0.1),
    0 2px 8px rgba(203, 193, 166, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tarot-stage[data-state="home"] .home-room-card::before {
  border-color: rgba(255, 255, 255, 0.42);
}

.tarot-stage[data-state="home"] .home-room-card:hover,
.tarot-stage[data-state="home"] .home-room-card:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 16px 29px rgba(117, 105, 80, 0.12),
    0 2px 8px rgba(203, 193, 166, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.tarot-stage[data-state="home"] .home-room-card:active {
  transform: translateY(1px);
  box-shadow:
    0 8px 17px rgba(117, 105, 80, 0.09),
    inset 0 1px 4px rgba(91, 82, 62, 0.05);
}

.tarot-stage[data-state="home"] .room-arrow {
  box-shadow:
    0 8px 14px rgba(67, 70, 57, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.tarot-stage[data-state="home"] .today-ledger {
  border-color: rgba(168, 155, 121, 0.12);
  box-shadow:
    0 14px 28px rgba(118, 105, 81, 0.09),
    0 2px 10px rgba(205, 194, 163, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.tarot-stage[data-state="home"] .ledger-metric-icon {
  box-shadow:
    0 3px 8px rgba(98, 89, 128, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.tarot-stage[data-state="home"] .ledger-add {
  background: linear-gradient(180deg, #a3b77d, #839b63);
  box-shadow:
    0 9px 16px rgba(105, 124, 73, 0.17),
    0 1px 5px rgba(91, 111, 61, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.tarot-stage[data-state="home"] .ledger-add:hover,
.tarot-stage[data-state="home"] .ledger-add:focus-visible {
  transform: translateY(-1px);
}

.tarot-stage[data-state="home"] .ledger-add:active {
  transform: translateY(1px);
  box-shadow:
    0 6px 11px rgba(105, 124, 73, 0.13),
    inset 0 1px 4px rgba(71, 95, 44, 0.14);
}

.tarot-stage[data-state="home"] .qinghe-tabbar,
.tarot-stage[data-state="ledger"] .qinghe-tabbar {
  border-color: rgba(166, 155, 124, 0.11);
  background: rgba(255, 253, 248, 0.88);
  box-shadow:
    0 -5px 16px rgba(104, 83, 53, 0.04),
    0 10px 22px rgba(109, 98, 77, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tarot-stage[data-state="home"] .qinghe-tabbar button.is-active,
.tarot-stage[data-state="ledger"] .qinghe-tabbar button.is-active {
  background: transparent;
  box-shadow: none;
}

.tarot-stage[data-state="home"] .qinghe-tabbar::before,
.tarot-stage[data-state="ledger"] .qinghe-tabbar::before {
  background: rgba(136, 158, 102, 0.16);
  box-shadow:
    0 7px 14px rgba(101, 124, 74, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

@media (min-height: 880px) {
  .tarot-stage[data-state="home"] .today-ledger {
    height: 168px;
    padding: 18px 18px 16px;
  }

  .tarot-stage[data-state="home"] .ledger-summary-row {
    margin-top: 11px;
  }

  .tarot-stage[data-state="home"] .ledger-actions {
    margin-top: 9px;
  }

  .tarot-stage[data-state="home"] .qinghe-tabbar {
    bottom: 20px;
  }
}

@media (max-height: 850px) {
  .tarot-stage[data-state="home"] .today-ledger {
    height: 148px;
    padding: 13px 16px 12px;
  }

  .tarot-stage[data-state="home"] .ledger-summary-row {
    margin-top: 7px;
  }

  .tarot-stage[data-state="home"] .ledger-actions {
    margin-top: 5px;
  }

  .tarot-stage[data-state="home"] .qinghe-tabbar {
    bottom: 7px;
  }
}

@media (max-height: 790px) {
  .tarot-stage[data-state="home"] {
    padding-top: 14px;
  }

  .qinghe-home-top {
    min-height: 64px;
  }

  .qinghe-brand {
    font-size: 40px;
  }

  .qinghe-brand-mark {
    width: 29px;
    height: 24px;
    transform: scale(0.88);
    transform-origin: left top;
  }

  .lingbai-hero {
    min-height: 228px;
  }

  .tarot-stage[data-state="home"] .lingbai-hero {
    min-height: 238px;
  }

  .tarot-stage[data-state="home"] .lingbai-hero-copy {
    padding-top: 31px;
  }

  .tarot-stage[data-state="home"] .lingbai-line {
    margin-top: 14px;
    font-size: 18px;
    line-height: 1.54;
  }

  .tarot-stage[data-state="home"] .lingbai-chat-cta {
    min-width: 188px;
    height: 48px;
    margin-top: 16px;
  }

  .home-room-grid {
    margin-top: 12px;
  }

  .home-room-card {
    min-height: 190px;
  }

  .tarot-stage[data-state="home"] .today-ledger {
    height: 148px;
    padding-top: 13px;
  }
}

/* Qinghe depth v9: make the shell feel like a real app, not a stacked mockup. */
.tarot-stage[data-state="home"] .top-ui,
.tarot-stage[data-state="home"] .benefits,
.tarot-stage[data-state="home"] .ritual-area,
.tarot-stage[data-state="home"] .question-panel,
.tarot-stage[data-state="home"] .hint-panel,
.tarot-stage[data-state="home"] .bottom-ui,
.tarot-stage[data-state="home"] .unlock-panel,
.tarot-stage[data-state="home"] .payment-sheet,
.tarot-stage[data-state="home"] .reading-panel {
  display: none !important;
}

.tarot-stage[data-state="home"] .qinghe-home {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 11px;
}

.tarot-stage[data-state="home"] .home-room-card::after {
  z-index: 3;
}

.tarot-stage[data-state="home"] .tarot-room-card::after {
  background:
    linear-gradient(180deg, rgba(8, 13, 27, 0.62) 0 32%, rgba(8, 13, 27, 0.24) 52%, transparent 74%),
    radial-gradient(circle at 18% 14%, rgba(255, 224, 151, 0.18), transparent 38%),
    linear-gradient(0deg, rgba(4, 7, 18, 0.22), transparent 46%);
}

.tarot-stage[data-state="home"] .ledger-room-card::after {
  background:
    linear-gradient(180deg, rgba(251, 251, 235, 0.9) 0 35%, rgba(251, 251, 235, 0.34) 57%, transparent 78%),
    radial-gradient(circle at 18% 16%, rgba(255, 255, 247, 0.42), transparent 38%),
    linear-gradient(0deg, rgba(90, 103, 69, 0.09), transparent 44%);
}

.tarot-stage[data-state="home"] .letter-room-card::after {
  background:
    linear-gradient(180deg, rgba(250, 246, 253, 0.88) 0 35%, rgba(250, 246, 253, 0.32) 57%, transparent 78%),
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.36), transparent 38%),
    linear-gradient(0deg, rgba(98, 82, 125, 0.09), transparent 44%);
}

.tarot-stage[data-state="home"] .room-title,
.tarot-stage[data-state="home"] .room-copy,
.tarot-stage[data-state="home"] .room-arrow {
  z-index: 5;
}

.tarot-stage[data-state="home"] .room-title {
  letter-spacing: 0;
}

.tarot-stage[data-state="home"] .room-copy {
  opacity: 0.86;
  letter-spacing: 0;
}

.tarot-stage[data-state="home"] .ledger-room-card .room-title,
.tarot-stage[data-state="home"] .ledger-room-card .room-copy {
  color: #42583b;
  text-shadow: 0 1px 8px rgba(255, 255, 244, 0.72);
}

.tarot-stage[data-state="home"] .letter-room-card .room-title,
.tarot-stage[data-state="home"] .letter-room-card .room-copy {
  color: #615381;
  text-shadow: 0 1px 8px rgba(255, 249, 255, 0.78);
}

.tarot-stage[data-state="home"] .more-rooms-link {
  min-height: 30px;
  margin-top: 6px;
  padding: 0 10px 0 12px;
  border: 1px solid rgba(152, 139, 111, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.52);
  color: rgba(69, 64, 55, 0.72);
  font-size: 12px;
  font-weight: 600;
  box-shadow:
    0 5px 12px rgba(115, 104, 80, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.tarot-stage[data-state="home"] .more-rooms-link:hover,
.tarot-stage[data-state="home"] .more-rooms-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 253, 248, 0.72);
  box-shadow:
    0 7px 15px rgba(115, 104, 80, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.tarot-stage[data-state="home"] .more-rooms-link:active {
  transform: translateY(1px);
  box-shadow:
    0 5px 12px rgba(115, 104, 80, 0.05),
    inset 0 1px 4px rgba(100, 91, 72, 0.08);
}

.tarot-stage[data-state="home"] .today-ledger {
  height: 154px;
}

.tarot-stage[data-state="home"] .ledger-summary-row {
  margin-top: 10px;
}

.tarot-stage[data-state="home"] .ledger-summary-row strong {
  margin-top: 3px;
}

.tarot-stage[data-state="home"] .ledger-actions {
  grid-template-columns: minmax(138px, 38%) 1fr;
  gap: 13px;
  margin-top: 8px;
}

.tarot-stage[data-state="home"] .ledger-add {
  height: 30px;
  font-size: 13px;
  box-shadow:
    0 7px 13px rgba(105, 124, 73, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.tarot-stage[data-state="home"] .home-feedback {
  color: rgba(76, 72, 63, 0.52);
}

.tarot-stage[data-state="home"] .qinghe-tabbar {
  bottom: 14px;
  animation: none;
}

@media (min-height: 880px) {
  .tarot-stage[data-state="home"] .qinghe-tabbar {
    bottom: 20px;
  }
}

@media (max-height: 850px) {
  .tarot-stage[data-state="home"] .qinghe-home {
    gap: 9px;
  }

  .tarot-stage[data-state="home"] .more-rooms-link {
    min-height: 28px;
    margin-top: 5px;
  }

  .tarot-stage[data-state="home"] .today-ledger {
    height: 138px;
    padding-top: 12px;
  }

  .tarot-stage[data-state="home"] .ledger-summary-row {
    margin-top: 6px;
  }

  .tarot-stage[data-state="home"] .ledger-actions {
    margin-top: 4px;
  }

  .tarot-stage[data-state="home"] .qinghe-tabbar {
    bottom: 7px;
  }
}

/* Qinghe depth v10: chibi Lingbai and cleaner ledger hierarchy. */
.tarot-stage[data-state="home"] .lingbai-hero {
  background:
    radial-gradient(circle at 84% 22%, rgba(228, 230, 205, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(248, 244, 234, 0.86));
}

.tarot-stage[data-state="home"] .lingbai-hero::after {
  background:
    linear-gradient(90deg, rgba(255, 251, 242, 0.93) 0 42%, rgba(255, 251, 242, 0.56) 58%, rgba(255, 251, 242, 0.08) 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(222, 214, 188, 0.1));
}

.tarot-stage[data-state="home"] .lingbai-hero-art {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.96;
  filter: saturate(0.9) brightness(0.96) contrast(0.98);
  transform: none;
}

.tarot-stage[data-state="home"] .today-ledger {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 162px;
  padding: 15px 17px 14px;
}

.tarot-stage[data-state="home"] .ledger-heading {
  min-height: 24px;
}

.tarot-stage[data-state="home"] .ledger-title-row {
  gap: 7px;
}

.tarot-stage[data-state="home"] .ledger-heading p {
  font-size: 18px;
  line-height: 1.15;
}

.tarot-stage[data-state="home"] .ledger-summary-row {
  align-self: center;
  margin-top: 7px;
}

.tarot-stage[data-state="home"] .ledger-summary-row div {
  display: grid;
  justify-items: center;
  row-gap: 2px;
  padding-inline: 8px;
}

.tarot-stage[data-state="home"] .ledger-metric-icon {
  width: 22px;
  height: 22px;
  margin: 0 0 1px;
  font-size: 15px;
}

.tarot-stage[data-state="home"] .ledger-summary-row .ledger-metric-label {
  font-size: 9px;
  line-height: 1.15;
}

.tarot-stage[data-state="home"] .ledger-summary-row strong,
.tarot-stage[data-state="home"] .ledger-summary-row div:first-child strong {
  margin-top: 0;
  font-size: 16px;
  line-height: 1.08;
}

.tarot-stage[data-state="home"] .ledger-actions {
  display: grid;
  grid-template-columns: minmax(146px, 42%) 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
}

.tarot-stage[data-state="home"] .ledger-add {
  width: 100%;
  height: 32px;
  font-size: 13px;
}

.tarot-stage[data-state="home"] .home-feedback {
  display: block;
  overflow: hidden;
  color: rgba(76, 72, 63, 0.46);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-height: 850px) {
  .tarot-stage[data-state="home"] .today-ledger {
    height: 142px;
    padding: 12px 16px 11px;
  }

  .tarot-stage[data-state="home"] .ledger-summary-row {
    margin-top: 5px;
  }

  .tarot-stage[data-state="home"] .ledger-summary-row div {
    row-gap: 1px;
    padding-inline: 5px;
  }

  .tarot-stage[data-state="home"] .ledger-metric-icon {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }

  .tarot-stage[data-state="home"] .ledger-summary-row strong,
  .tarot-stage[data-state="home"] .ledger-summary-row div:first-child strong {
    font-size: 15px;
  }

  .tarot-stage[data-state="home"] .ledger-actions {
    grid-template-columns: minmax(136px, 48%) 1fr;
    margin-top: 6px;
  }

  .tarot-stage[data-state="home"] .ledger-add {
    height: 28px;
  }

  .tarot-stage[data-state="home"] .home-feedback {
    display: none;
  }
}

/* Qinghe depth v11: hide the generated chibi hero's baked canvas edge on first paint. */
.tarot-stage[data-state="home"] .lingbai-hero {
  background:
    radial-gradient(circle at 82% 22%, rgba(228, 230, 205, 0.28), transparent 40%),
    linear-gradient(180deg, #fbf5ea, #f7f1e7);
}

.tarot-stage[data-state="home"] .lingbai-hero-art {
  inset: -12px -16px;
  width: calc(100% + 32px);
  height: calc(100% + 24px);
  object-position: 52% center;
  transform: scale(1.04);
  transform-origin: center;
  animation: qingheChibiCropFloat 7.2s ease-in-out 900ms infinite;
}

@keyframes qingheChibiCropFloat {
  0%,
  100% {
    transform: scale(1.04) translateY(0);
  }
  50% {
    transform: scale(1.055) translateY(-4px);
  }
}

@media (max-height: 850px) {
  .tarot-stage[data-state="home"] .lingbai-hero-art {
    inset: -14px -18px;
    width: calc(100% + 36px);
    height: calc(100% + 28px);
    object-position: 53% center;
    transform: scale(1.045);
  }
}

/* Qinghe home v12: user-centered mood check-in with collapsible feelings. */
.tarot-stage[data-state="home"] .home-mood-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 258px;
  padding: 24px 23px 22px;
  border: 1px solid rgba(169, 157, 128, 0.13);
  border-radius: 26px;
  background:
    radial-gradient(circle at 87% 18%, rgba(237, 241, 225, 0.42), transparent 36%),
    radial-gradient(circle at 16% 92%, rgba(170, 164, 218, 0.09), transparent 36%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.9), rgba(252, 249, 241, 0.78));
  box-shadow:
    0 16px 30px rgba(108, 100, 78, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.84),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(1.04);
  animation: qingheHeroIn 380ms cubic-bezier(0.19, 1, 0.22, 1) both;
  transition:
    min-height 460ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 460ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 340ms ease,
    transform 340ms ease;
}

.tarot-stage[data-state="home"] .home-mood-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.52), transparent 33% 69%, rgba(143, 160, 116, 0.06)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 58%, rgba(232, 222, 199, 0.1)),
    radial-gradient(circle at 82% 72%, rgba(214, 205, 170, 0.08), transparent 32%);
  pointer-events: none;
}

.tarot-stage[data-state="home"] .home-mood-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.99) 0 35%, rgba(255, 253, 249, 0.66) 57%, rgba(255, 253, 249, 0.3) 100%),
    radial-gradient(circle at 82% 44%, rgba(255, 255, 255, 0.42), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 252, 246, 0.5));
  pointer-events: none;
}

.home-ambient-lingbai {
  position: absolute;
  z-index: 0;
  top: -46px;
  right: -136px;
  width: 432px;
  height: 314px;
  object-fit: cover;
  object-position: 72% 32%;
  opacity: 0.5;
  filter: saturate(0.72) brightness(1.2) contrast(0.8) blur(1px);
  transform: scale(1.02);
  transform-origin: right top;
  pointer-events: none;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 24%, rgba(0, 0, 0, 0.58) 52%, rgba(0, 0, 0, 0.34) 78%, transparent 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.48) 64%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 24%, rgba(0, 0, 0, 0.58) 52%, rgba(0, 0, 0, 0.34) 78%, transparent 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.48) 64%, transparent 100%);
  -webkit-mask-composite: source-in;
}

.home-mood-head,
.home-mood-grid,
.home-mood-bottom {
  position: relative;
  z-index: 2;
}

.home-mood-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.home-mood-head p {
  margin: 0;
  color: #4d493f;
  font-family: "Noto Serif SC", serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.home-mood-head span:not(.home-mood-leaf) {
  display: block;
  margin-top: 6px;
  color: rgba(76, 72, 63, 0.48);
  font-size: 12px;
}

.home-mood-leaf {
  margin-top: 4px;
  color: rgba(133, 151, 98, 0.58);
  font-size: 23px;
}

.home-mood-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 0;
  margin-top: 19px;
  transition:
    row-gap 430ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 360ms ease;
}

.home-mood-card.is-expanded .home-mood-grid {
  row-gap: 8px;
}

.tarot-stage[data-state="home"] .home-mood-card.is-gsap-toggling,
.home-mood-card.is-gsap-toggling .home-mood-grid,
.home-mood-card.is-gsap-toggling .home-mood-option,
.home-mood-card.is-gsap-toggling .home-mood-extra,
.home-mood-card.is-gsap-toggling .home-mood-bottom,
.home-mood-card.is-gsap-toggling .home-ambient-lingbai {
  transition: none !important;
}

.tarot-stage[data-state="home"] .home-mood-card.is-gsap-toggling {
  will-change: height, min-height, transform;
}

.home-mood-card.is-gsap-toggling .home-mood-extra,
.home-mood-card.is-gsap-toggling .home-mood-bottom {
  will-change: transform, opacity;
}

.home-mood-option {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  min-height: 80px;
  padding: 10px 7px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 20px;
  background: rgba(255, 255, 252, 0.56);
  color: rgba(81, 75, 66, 0.74);
  font-family: "Noto Serif SC", serif;
  box-shadow:
    0 12px 24px rgba(112, 103, 81, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    max-height 440ms cubic-bezier(0.22, 1, 0.36, 1),
    min-height 440ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 440ms cubic-bezier(0.22, 1, 0.36, 1),
    border-width 220ms ease,
    opacity 360ms ease,
    visibility 0ms linear,
    transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.home-mood-option .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: rgba(145, 160, 111, 0.13);
  color: #8a9a67;
  font-size: 28px;
  font-variation-settings:
    "FILL" 0,
    "wght" 320,
    "GRAD" 0,
    "opsz" 24;
}

.home-mood-option:nth-child(2) .material-symbols-rounded,
.home-mood-option:nth-child(5) .material-symbols-rounded,
.home-mood-option:nth-child(8) .material-symbols-rounded {
  background: rgba(160, 154, 217, 0.12);
  color: #9690c4;
}

.home-mood-option:nth-child(3) .material-symbols-rounded,
.home-mood-option:nth-child(6) .material-symbols-rounded {
  background: rgba(214, 158, 137, 0.12);
  color: #d39a84;
}

.home-mood-option strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.home-mood-option:hover,
.home-mood-option:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(145, 160, 111, 0.2);
  background: rgba(255, 255, 252, 0.76);
  box-shadow:
    0 12px 22px rgba(115, 104, 78, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.home-mood-option.is-selected {
  border-color: rgba(145, 160, 111, 0.3);
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.92), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 250, 0.82), rgba(250, 249, 237, 0.68));
  color: #63764e;
  box-shadow:
    0 13px 24px rgba(127, 143, 92, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.home-mood-extra {
  display: none;
  max-height: 0;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  overflow: hidden;
  transition:
    max-height 440ms cubic-bezier(0.22, 1, 0.36, 1),
    min-height 440ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 440ms cubic-bezier(0.22, 1, 0.36, 1),
    border-width 220ms ease,
    opacity 300ms ease,
    visibility 0ms linear 440ms,
    transform 390ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.home-mood-card.is-expanded .home-mood-extra {
  display: grid;
  max-height: 88px;
  min-height: 74px;
  padding: 8px 6px;
  border-width: 1px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    max-height 460ms cubic-bezier(0.22, 1, 0.36, 1),
    min-height 460ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 460ms cubic-bezier(0.22, 1, 0.36, 1),
    border-width 180ms ease,
    opacity 360ms ease,
    visibility 0ms linear,
    transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.home-mood-card.is-expanded {
  padding-bottom: 44px;
  box-shadow:
    0 18px 34px rgba(108, 100, 78, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.home-mood-card.is-expanded .home-ambient-lingbai {
  top: -64px;
  right: -168px;
  opacity: 0.24;
  transform: scale(0.98);
}

.home-mood-card.is-expanded .home-mood-grid {
  gap: 7px;
  margin-top: 14px;
}

.home-mood-card.is-expanded .home-mood-option {
  min-height: 72px;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 18px;
}

.home-mood-card.is-expanded .home-mood-extra:nth-child(4) {
  transition-delay: 0ms, 0ms, 0ms, 0ms, 120ms, 0ms, 120ms;
}

.home-mood-card.is-expanded .home-mood-extra:nth-child(5) {
  transition-delay: 24ms, 24ms, 24ms, 12ms, 165ms, 0ms, 165ms;
}

.home-mood-card.is-expanded .home-mood-extra:nth-child(6) {
  transition-delay: 48ms, 48ms, 48ms, 24ms, 210ms, 0ms, 210ms;
}

.home-mood-card.is-expanded .home-mood-extra:nth-child(7) {
  transition-delay: 72ms, 72ms, 72ms, 36ms, 255ms, 0ms, 255ms;
}

.home-mood-card.is-expanded .home-mood-extra:nth-child(8) {
  transition-delay: 96ms, 96ms, 96ms, 48ms, 300ms, 0ms, 300ms;
}

.home-mood-card.is-expanded .home-mood-extra:nth-child(9) {
  transition-delay: 120ms, 120ms, 120ms, 60ms, 345ms, 0ms, 345ms;
}

.home-mood-card.is-collapsing .home-mood-extra {
  transition-delay: 0ms, 0ms, 0ms, 0ms, 0ms, 430ms, 0ms;
}

.home-mood-card.is-expanded .home-mood-option .material-symbols-rounded {
  width: 36px;
  height: 36px;
  font-size: 26px;
}

.home-mood-card.is-expanded .home-mood-bottom {
  margin-top: 14px;
  padding-top: 12px;
  padding-bottom: 0;
  transform: translateY(-6px);
}

.home-mood-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(137, 124, 101, 0.085);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-mood-bottom p {
  margin: 0;
  color: rgba(76, 72, 63, 0.58);
  font-family: "Noto Serif SC", serif;
  font-size: 12.5px;
  line-height: 1.45;
}

.home-mood-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-mood-toggle,
.home-companion-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(132, 124, 100, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: #64764e;
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  font-weight: 700;
  box-shadow:
    0 7px 14px rgba(118, 110, 88, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.home-mood-toggle {
  height: 34px;
  gap: 3px;
  min-width: 84px;
  padding: 0 8px 0 11px;
  color: #607548;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.72), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 250, 0.94), rgba(245, 241, 227, 0.78));
  border-color: rgba(129, 150, 95, 0.17);
  box-shadow:
    0 9px 18px rgba(118, 110, 88, 0.07),
    0 0 0 0 rgba(129, 150, 95, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: homeMoodToggleBreathe 2.8s ease-in-out 1.2s infinite;
}

.home-mood-toggle .home-mood-toggle-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #7f9664;
  font-size: 18px;
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 180ms ease;
}

.home-mood-toggle[aria-expanded="true"] {
  animation: none;
  color: #6f7650;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.76), transparent 48%),
    linear-gradient(180deg, rgba(246, 243, 231, 0.96), rgba(236, 231, 214, 0.82));
}

.home-mood-toggle[aria-expanded="true"] .home-mood-toggle-icon {
  transform: rotate(180deg);
  background: rgba(129, 150, 95, 0.1);
}

.home-mood-toggle:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 5px 12px rgba(118, 110, 88, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.home-mood-toggle.is-toggling {
  animation: homeMoodTogglePop 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-companion-chip {
  gap: 5px;
  height: 38px;
  padding: 0 9px 0 4px;
  color: #6d669b;
  background: rgba(255, 253, 249, 0.86);
}

.home-companion-chip .material-symbols-rounded {
  font-size: 17px;
}

.home-companion-chip .lingbai-sticker {
  width: 30px;
  height: 28px;
}

@keyframes homeMoodToggleBreathe {
  0%,
  100% {
    box-shadow:
      0 9px 18px rgba(118, 110, 88, 0.07),
      0 0 0 0 rgba(129, 150, 95, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
  50% {
    box-shadow:
      0 10px 20px rgba(118, 110, 88, 0.08),
      0 0 0 5px rgba(129, 150, 95, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }
}

@keyframes homeMoodTogglePop {
  0% {
    transform: scale(0.98);
  }
  48% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes qingheMoodFly {
  0% {
    opacity: 0;
    filter: blur(0.4px);
    transform: translate(-50%, -50%) scale(0.82);
  }
  16% {
    opacity: 0.9;
    filter: blur(0);
    transform: translate(-50%, -54%) scale(1);
  }
  72% {
    opacity: 0.82;
    filter: blur(0.4px);
  }
  100% {
    opacity: 0;
    filter: blur(1.5px);
    transform:
      translate(
        calc(-50% + var(--mood-fly-x)),
        calc(-50% + var(--mood-fly-y))
      )
      scale(0.56);
  }
}

@keyframes qingheMoodReceive {
  0%,
  100% {
    background: transparent;
    box-shadow: none;
    transform: translateY(0);
  }
  42% {
    background: rgba(224, 234, 210, 0.28);
    box-shadow: 0 10px 22px rgba(116, 133, 86, 0.12);
    transform: translateY(-1px);
  }
}

@keyframes qingheMoodIconReceive {
  0%,
  100% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.12);
  }
}

@keyframes qingheMoodEasterReceive {
  0%,
  100% {
    box-shadow: none;
    transform: translateY(0);
  }
  38% {
    box-shadow:
      0 12px 26px rgba(116, 133, 86, 0.16),
      0 0 0 8px rgba(177, 199, 143, 0.1);
    transform: translateY(-2px);
  }
}

.tarot-stage[data-state="home"] .home-room-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.tarot-stage[data-state="home"] .home-room-card {
  min-height: 166px;
  border-radius: 18px;
  padding: 15px 8px 12px;
}

.tarot-stage[data-state="home"] .room-title,
.tarot-stage[data-state="home"] .room-copy {
  left: 9px;
  right: 8px;
}

.tarot-stage[data-state="home"] .room-title {
  top: 15px;
  font-size: 17px;
  line-height: 1.12;
}

.tarot-stage[data-state="home"] .room-copy {
  top: 41px;
  font-size: 10px;
  line-height: 1.34;
}

.tarot-stage[data-state="home"] .home-room-card:nth-child(4) {
  animation-delay: 550ms;
}

.dream-room-card {
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(160deg, #eeeffb 0%, #e4e1f7 100%);
  color: #655c90;
}

.tarot-stage[data-state="home"] .dream-room-card::after {
  background:
    linear-gradient(180deg, rgba(247, 247, 255, 0.76) 0 27%, rgba(247, 247, 255, 0.2) 49%, transparent 70%),
    linear-gradient(0deg, rgba(98, 82, 125, 0.12), transparent 40%);
}

.dream-room-visual {
  position: absolute;
  inset: auto auto 26px 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.85), transparent 44%),
    linear-gradient(180deg, #f8f1c8, #d7d1f4);
  color: #8177ad;
  font-size: 39px;
  transform: translateX(-50%);
  box-shadow: 0 14px 22px rgba(99, 88, 126, 0.14);
}

.dream-room-card .room-arrow {
  background: linear-gradient(180deg, #aba4d4, #8177ad);
}

@media (max-height: 850px) {
  .tarot-stage[data-state="home"] .home-mood-card {
    min-height: 240px;
    padding: 19px 20px 15px;
  }

  .home-ambient-lingbai {
    top: -44px;
    right: -132px;
    width: 404px;
    height: 292px;
    opacity: 0.54;
  }

  .home-mood-head p {
    font-size: 24px;
  }

  .home-mood-grid {
    gap: 8px;
    margin-top: 15px;
  }

  .home-mood-option {
    min-height: 70px;
    gap: 6px;
  }

  .home-mood-card.is-expanded .home-mood-option {
    min-height: 64px;
  }

  .home-mood-card.is-expanded .home-mood-extra {
    min-height: 64px;
  }

  .home-mood-option .material-symbols-rounded {
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .home-mood-bottom {
    margin-top: 12px;
    padding-top: 11px;
  }

  .home-mood-bottom p {
    display: block;
    font-size: 11.5px;
    line-height: 1.36;
  }

  .home-mood-actions {
    gap: 5px;
  }

  .home-mood-toggle {
    height: 32px;
    min-width: 78px;
    padding-inline: 9px 6px;
    font-size: 11.5px;
  }

  .home-companion-chip {
    height: 32px;
    gap: 4px;
    padding: 0 7px 0 3px;
    font-size: 11.5px;
  }

  .home-companion-chip .lingbai-sticker {
    width: 24px;
    height: 23px;
  }

  .home-companion-chip .material-symbols-rounded {
    font-size: 15px;
  }

  .home-mood-card.is-expanded .home-mood-bottom {
    grid-template-columns: 1fr;
    justify-items: end;
  }

  .tarot-stage[data-state="home"] .home-room-card {
    min-height: 148px;
  }
}

/* Qinghe ledger v1: first functional ledger room and add-entry sheet. */
body:has(.tarot-stage[data-state="ledger"]) {
  background:
    radial-gradient(circle at 18% 8%, rgba(238, 227, 203, 0.86), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(205, 218, 197, 0.4), transparent 34%),
    linear-gradient(180deg, #fffaf0 0%, #fbf5ea 54%, #fff9ef 100%);
}

body:has(.tarot-stage[data-state="personality"]) {
  background:
    radial-gradient(circle at 18% 8%, rgba(238, 227, 203, 0.86), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(214, 210, 232, 0.34), transparent 34%),
    linear-gradient(180deg, #fffaf0 0%, #fbf5ea 54%, #fff9ef 100%);
}

.qinghe-ledger-page,
.qinghe-mine-page,
.qinghe-pantry-page,
.qinghe-personality-page {
  display: none;
}

.qinghe-rooms-page {
  display: none;
}

.tarot-stage[data-state="ledger"] {
  display: block;
  min-height: 100%;
  padding: 22px 18px 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 8%, rgba(238, 227, 203, 0.92), transparent 32%),
    radial-gradient(circle at 86% 17%, rgba(205, 218, 197, 0.48), transparent 36%),
    linear-gradient(180deg, #fffaf0 0%, #fbf5ea 58%, #fff9ef 100%);
  color: #4c483f;
}

.tarot-stage[data-state="ledger"]::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.52), transparent 30% 72%, rgba(148, 164, 124, 0.14)),
    radial-gradient(circle at 48% 42%, rgba(147, 160, 121, 0.1), transparent 36%);
  opacity: 1;
  mask-image: none;
  -webkit-mask-image: none;
}

.tarot-stage[data-state="ledger"]::after {
  z-index: 8;
  box-shadow:
    inset 0 0 0 1px rgba(122, 106, 83, 0.1),
    inset 0 18px 48px rgba(255, 255, 255, 0.24),
    inset 0 -52px 82px rgba(105, 88, 61, 0.07);
  mix-blend-mode: normal;
}

.tarot-stage[data-state="ledger"] .background,
.tarot-stage[data-state="ledger"] .veil,
.tarot-stage[data-state="ledger"] .stars,
.tarot-stage[data-state="ledger"] .qinghe-home,
.tarot-stage[data-state="ledger"] .top-ui,
.tarot-stage[data-state="ledger"] .benefits,
.tarot-stage[data-state="ledger"] .ritual-area,
.tarot-stage[data-state="ledger"] .question-panel,
.tarot-stage[data-state="ledger"] .hint-panel,
.tarot-stage[data-state="ledger"] .bottom-ui,
.tarot-stage[data-state="ledger"] .unlock-panel,
.tarot-stage[data-state="ledger"] .payment-sheet,
.tarot-stage[data-state="ledger"] .reading-panel {
  opacity: 0;
  pointer-events: none;
}

.tarot-stage[data-state="ledger"] .qinghe-ledger-page {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
  padding-bottom: 76px;
}

.ledger-page-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  animation: none;
}

.ledger-page-top p {
  margin: 0;
  color: #4f6044;
  font-family: "Noto Serif SC", serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.ledger-page-top span {
  display: block;
  margin-top: 5px;
  color: rgba(76, 72, 63, 0.58);
  font-size: 12px;
}

.ledger-back,
.ledger-page-add {
  border: 1px solid rgba(126, 112, 91, 0.15);
  background: rgba(255, 252, 246, 0.78);
  color: #6a7655;
  box-shadow:
    0 10px 22px rgba(94, 82, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

.ledger-back {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.ledger-back .material-symbols-rounded {
  font-size: 22px;
}

.ledger-page-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: #fffaf4;
  background: linear-gradient(180deg, #9cad78, #829465);
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 700;
}

.ledger-add,
.ledger-page-add {
  position: relative;
  overflow: hidden;
}

.ledger-add::after,
.ledger-page-add::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: inherit;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.58) 0 12%, rgba(171, 190, 134, 0.32) 22%, transparent 58%);
  opacity: 0;
  transform: scale(0.52);
  pointer-events: none;
}

.ledger-add.is-ledger-origin::after,
.ledger-page-add.is-ledger-origin::after {
  animation: ledgerOriginBloom 720ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.ledger-page-add .material-symbols-rounded {
  font-size: 17px;
}

.ledger-overview-card,
.ledger-insight-card,
.ledger-list-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(132, 117, 92, 0.12);
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.78);
  box-shadow:
    0 16px 34px rgba(109, 88, 57, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.ledger-overview-card {
  min-height: 208px;
  padding: 18px;
  background:
    radial-gradient(circle at 82% 18%, rgba(205, 218, 197, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 252, 246, 0.94), rgba(245, 240, 225, 0.78));
  animation: none;
}

.ledger-overview-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 252, 246, 0.96) 0%, rgba(255, 252, 246, 0.82) 48%, rgba(255, 252, 246, 0.24) 100%),
    url("./assets/qinghe/qinghe_ledger_tile.png") right -76px center / 270px auto no-repeat;
  opacity: 0.3;
  pointer-events: none;
}

.ledger-overview-decor {
  position: absolute;
  right: -4px;
  bottom: -8px;
  width: 92px;
  opacity: 0.42;
  pointer-events: none;
}

.ledger-overview-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ledger-overview-head > .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(139, 157, 103, 0.16);
  color: #6d8057;
  font-size: 21px;
}

.ledger-overview-head p,
.ledger-list-head p {
  margin: 0;
  color: #514b42;
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 700;
}

.ledger-overview-head small,
.ledger-list-head span {
  display: block;
  margin-top: 3px;
  color: rgba(76, 72, 63, 0.56);
  font-size: 12px;
}

.ledger-overview-total {
  position: relative;
  z-index: 1;
  margin-top: 22px;
}

.ledger-overview-total span {
  display: block;
  color: rgba(76, 72, 63, 0.56);
  font-size: 12px;
}

.ledger-overview-total strong {
  display: block;
  margin-top: 3px;
  color: #4d493f;
  font-family: "Inter", "Noto Serif SC", sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.ledger-overview-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 0.85fr 1.3fr;
  gap: 0;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(121, 104, 76, 0.12);
}

.ledger-overview-grid div {
  min-width: 0;
  padding-right: 9px;
}

.ledger-overview-grid div:not(:last-child) {
  border-right: 1px solid rgba(121, 104, 76, 0.12);
  margin-right: 10px;
}

.ledger-overview-grid span {
  display: block;
  color: rgba(76, 72, 63, 0.52);
  font-size: 11px;
}

.ledger-overview-grid strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #514b42;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-insight-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 12px 15px;
  animation: none;
}

.ledger-insight-card .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(130, 122, 180, 0.14);
  color: #7774ad;
  font-size: 19px;
  font-variation-settings:
    "FILL" 1,
    "wght" 380,
    "GRAD" 0,
    "opsz" 24;
}

.ledger-insight-card p {
  margin: 0;
  color: rgba(70, 66, 59, 0.78);
  font-size: 12px;
  line-height: 1.45;
}

.ledger-list-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  padding: 15px;
  animation: none;
}

.ledger-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(121, 104, 76, 0.12);
}

.ledger-list-head > div {
  min-width: 0;
}

.ledger-list-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 18px;
  margin-top: 7px;
  padding: 0;
  color: rgba(76, 72, 63, 0.48);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.ledger-entry-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 0 0;
  scrollbar-width: none;
}

.ledger-entry-list::-webkit-scrollbar {
  display: none;
}

.ledger-entry-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 10px 0 10px 8px;
  border-radius: 18px;
  cursor: pointer;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.ledger-entry-item + .ledger-entry-item {
  border-top: 0;
  background-clip: padding-box;
}

.ledger-entry-item + .ledger-entry-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 59px;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(121, 104, 76, 0.1), rgba(121, 104, 76, 0.06), transparent);
  pointer-events: none;
}

.ledger-entry-item:hover,
.ledger-entry-item:focus-visible {
  background: transparent;
  box-shadow: none;
}

.ledger-entry-item:hover .ledger-entry-icon,
.ledger-entry-item:focus-visible .ledger-entry-icon {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 9px 18px rgba(106, 122, 80, 0.11),
    inset 0 0 0 3px rgba(255, 255, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform: none;
}

.ledger-entry-item:hover strong,
.ledger-entry-item:focus-visible strong {
  color: #46533d;
}

.ledger-entry-item:active {
  transform: scale(0.992);
}

.ledger-entry-item:focus-visible {
  outline: none;
}

.ledger-entry-icon {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.92), transparent 42%),
    linear-gradient(145deg, rgba(229, 237, 211, 0.98), rgba(203, 219, 178, 0.88));
  box-shadow:
    0 9px 18px rgba(106, 122, 80, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  color: #61754a;
}

.ledger-entry-icon::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -8px -12px 42%;
  height: 24px;
  border-radius: 999px;
  background: rgba(129, 150, 95, 0.16);
  transform: rotate(-22deg);
}

.ledger-entry-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 12px;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.54), transparent 56%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.ledger-entry-item:hover .ledger-entry-icon::after,
.ledger-entry-item:focus-visible .ledger-entry-icon::after {
  opacity: 1;
}

.ledger-entry-icon .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  color: currentColor;
  font-size: 21px;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 520, "GRAD" 0, "opsz" 24;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
}

.ledger-entry-item:nth-child(2n) .ledger-entry-icon {
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.9), transparent 42%),
    linear-gradient(145deg, rgba(238, 230, 201, 0.98), rgba(219, 201, 158, 0.86));
  color: #8a6f39;
}

.ledger-entry-item:nth-child(3n) .ledger-entry-icon {
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.88), transparent 42%),
    linear-gradient(145deg, rgba(226, 231, 243, 0.98), rgba(197, 207, 229, 0.86));
  color: #64729a;
}

.ledger-entry-item > div > strong,
.ledger-entry-item > div > span {
  display: block;
}

.ledger-entry-item strong {
  overflow: hidden;
  color: #4d493f;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-entry-item > div > span {
  margin-top: 3px;
  color: rgba(76, 72, 63, 0.52);
  font-size: 11px;
}

.ledger-entry-item em {
  padding-right: 0;
  color: #4f6044;
  font-family: "Inter", "Noto Serif SC", sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.ledger-empty {
  display: grid;
  justify-items: center;
  padding: 28px 20px;
  text-align: center;
}

.ledger-empty .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(139, 157, 103, 0.12);
  color: #7c9062;
  font-size: 23px;
}

.ledger-empty p {
  margin: 10px 0 0;
  color: #514b42;
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 700;
}

.ledger-empty small {
  margin-top: 5px;
  color: rgba(76, 72, 63, 0.54);
  font-size: 12px;
  line-height: 1.45;
}

.ledger-empty button {
  margin-top: 14px;
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #9cad78, #829465);
  color: #fffaf4;
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow:
    0 10px 18px rgba(105, 124, 73, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tarot-stage[data-state="ledger"] .qinghe-tabbar {
  bottom: 14px;
  animation: none;
}

@media (min-height: 880px) {
  .tarot-stage[data-state="ledger"] .qinghe-tabbar {
    bottom: 20px;
  }
}

@media (max-height: 850px) {
  .tarot-stage[data-state="ledger"] .qinghe-tabbar {
    bottom: 7px;
  }
}

/* Qinghe ledger v15: keep the home intro for first load only. */
.tarot-stage.is-returning-home[data-state="home"] .qinghe-home {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  transition: none !important;
}

.tarot-stage.is-returning-home[data-state="home"] .qinghe-home-top,
.tarot-stage.is-returning-home[data-state="home"] .lingbai-hero,
.tarot-stage.is-returning-home[data-state="home"] .lingbai-chat-cta,
.tarot-stage.is-returning-home[data-state="home"] .home-section-head,
.tarot-stage.is-returning-home[data-state="home"] .home-room-card,
.tarot-stage.is-returning-home[data-state="home"] .today-ledger,
.tarot-stage.is-returning-home[data-state="home"] .qinghe-tabbar {
  animation: none !important;
  opacity: 1 !important;
  filter: none !important;
}

.tarot-stage.is-returning-home[data-state="home"] .lingbai-chat-cta::after {
  animation: none !important;
}

.ledger-entry-sheet {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
  overflow: hidden;
  pointer-events: none;
}

.ledger-entry-sheet[aria-hidden="true"] {
  opacity: 0;
}

.ledger-entry-sheet[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.ledger-entry-sheet[aria-hidden="true"] .ledger-sheet-card {
  opacity: 0;
  transform: translate3d(0, 106%, 0) scale(0.98);
}

.tarot-stage.is-ledger-sheet-open .qinghe-ledger-page {
  filter: saturate(0.985) brightness(0.985);
  transform: translateZ(0) scale(0.996);
  transition:
    filter 240ms ease,
    transform 260ms cubic-bezier(0.19, 1, 0.22, 1);
}

.ledger-sheet-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 82%, rgba(255, 252, 246, 0.5), transparent 32%),
    rgba(48, 42, 34, 0.2);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  opacity: 0;
}

.ledger-sheet-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: calc(100% - 20px);
  max-height: calc(100% - 44px);
  margin: 0 auto 10px;
  padding: 10px 18px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid rgba(132, 117, 92, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 0%, rgba(205, 218, 197, 0.28), transparent 36%),
    rgba(255, 252, 246, 0.96);
  box-shadow:
    0 -18px 46px rgba(84, 67, 43, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  color: #4c483f;
  opacity: 0;
  transform-origin: center bottom;
  transform: translate3d(0, 106%, 0) scale(0.98);
  backface-visibility: hidden;
  contain: layout paint;
  will-change: transform, opacity;
}

.ledger-sheet-card::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.ledger-entry-sheet.is-entering[aria-hidden="false"] .ledger-sheet-backdrop {
  animation: ledgerBackdropIn 260ms ease both;
}

.ledger-entry-sheet.is-entering[aria-hidden="false"] .ledger-sheet-card {
  animation: qingheSheetFastIn 420ms cubic-bezier(0.2, 0.82, 0.16, 1) both;
}

.ledger-sheet-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(255, 255, 255, 0.46) 45%, transparent 62% 100%);
  opacity: 0;
  transform: translateX(-48%);
  pointer-events: none;
}

.ledger-entry-sheet.is-entering[aria-hidden="false"] .ledger-sheet-card::before {
  animation: none;
}

.ledger-sheet-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.46);
  pointer-events: none;
}

.ledger-sheet-head,
.ledger-amount-field,
.ledger-chip-group,
.ledger-note-field,
.ledger-form-error,
.ledger-sheet-actions,
.ledger-save-button {
  position: relative;
  z-index: 1;
}

.ledger-entry-sheet[aria-hidden="false"] .ledger-sheet-head,
.ledger-entry-sheet[aria-hidden="false"] .ledger-amount-field,
.ledger-entry-sheet[aria-hidden="false"] .ledger-chip-group,
.ledger-entry-sheet[aria-hidden="false"] .ledger-note-field,
.ledger-entry-sheet[aria-hidden="false"] .ledger-sheet-actions,
.ledger-entry-sheet[aria-hidden="false"] .ledger-save-button {
  animation: none;
}

.ledger-entry-sheet[aria-hidden="false"] .ledger-amount-field {
  animation-delay: 0ms;
}

.ledger-entry-sheet[aria-hidden="false"] .ledger-amount-field + .ledger-chip-group {
  animation-delay: 0ms;
}

.ledger-entry-sheet[aria-hidden="false"] .ledger-amount-field + .ledger-chip-group + .ledger-chip-group {
  animation-delay: 0ms;
}

.ledger-entry-sheet[aria-hidden="false"] .ledger-note-field {
  animation-delay: 0ms;
}

.ledger-entry-sheet[aria-hidden="false"] .ledger-sheet-actions,
.ledger-entry-sheet[aria-hidden="false"] .ledger-save-button {
  animation-delay: 0ms;
}

.ledger-sheet-grip {
  justify-self: center;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(87, 78, 65, 0.18);
}

.ledger-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ledger-sheet-head p {
  margin: 0;
  color: #4f6044;
  font-family: "Noto Serif SC", serif;
  font-size: 25px;
  font-weight: 700;
}

.ledger-sheet-head span {
  display: block;
  margin-top: 4px;
  color: rgba(76, 72, 63, 0.56);
  font-size: 12px;
}

.ledger-sheet-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(126, 112, 91, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(76, 72, 63, 0.64);
  appearance: none;
  line-height: 1;
}

.ledger-sheet-close .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 20px;
  transform: translateY(-2px);
}

.memory-sheet {
  position: absolute;
  inset: 0;
  z-index: 21;
  display: grid;
  align-items: end;
  overflow: hidden;
  pointer-events: none;
}

.memory-sheet[aria-hidden="true"] {
  opacity: 0;
}

.memory-sheet[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.memory-sheet[aria-hidden="true"] .memory-sheet-card {
  opacity: 0;
  transform: translate3d(0, 106%, 0) scale(0.98);
}

.tarot-stage.is-memory-sheet-open .qinghe-mine-page {
  filter: saturate(0.98) brightness(0.985);
  transform: translateZ(0) scale(0.995);
  transition:
    filter 420ms ease,
    transform 520ms cubic-bezier(0.19, 1, 0.22, 1);
}

.memory-sheet-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 84%, rgba(255, 252, 246, 0.42), transparent 34%),
    rgba(48, 42, 34, 0.16);
  opacity: 0;
}

.memory-sheet-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: calc(100% - 20px);
  max-height: calc(100% - 44px);
  margin: 0 auto 10px;
  padding: 10px 16px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid rgba(132, 117, 92, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 0%, rgba(160, 154, 217, 0.16), transparent 36%),
    radial-gradient(circle at 0% 92%, rgba(205, 218, 197, 0.24), transparent 38%),
    rgba(255, 252, 246, 0.96);
  box-shadow:
    0 -18px 46px rgba(84, 67, 43, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  color: #4c483f;
  opacity: 0;
  transform-origin: center bottom;
  transform: translate3d(0, 106%, 0) scale(0.98);
  backface-visibility: hidden;
  contain: layout paint;
  will-change: transform, opacity;
}

.memory-sheet-card::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.memory-sheet.is-entering[aria-hidden="false"] .memory-sheet-backdrop {
  animation: ledgerBackdropIn 260ms ease both;
}

.memory-sheet.is-entering[aria-hidden="false"] .memory-sheet-card {
  animation: qingheSheetFastIn 420ms cubic-bezier(0.2, 0.82, 0.16, 1) both;
}

.memory-sheet-head,
.memory-hero,
.memory-signal-grid,
.memory-clue-list,
.memory-actions {
  position: relative;
  z-index: 1;
}

.memory-sheet[aria-hidden="false"] .memory-sheet-head,
.memory-sheet[aria-hidden="false"] .memory-hero,
.memory-sheet[aria-hidden="false"] .memory-signal-grid,
.memory-sheet[aria-hidden="false"] .memory-clue-list,
.memory-sheet[aria-hidden="false"] .memory-actions {
  animation: none;
}

.memory-sheet[aria-hidden="false"] .memory-hero {
  animation-delay: 110ms;
}

.memory-sheet[aria-hidden="false"] .memory-signal-grid {
  animation-delay: 170ms;
}

.memory-sheet[aria-hidden="false"] .memory-clue-list {
  animation-delay: 230ms;
}

.memory-sheet[aria-hidden="false"] .memory-actions {
  animation-delay: 300ms;
}

.memory-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.memory-sheet-head p {
  margin: 0;
  color: #4f6044;
  font-family: "Noto Serif SC", serif;
  font-size: 25px;
  font-weight: 700;
}

.memory-sheet-head span {
  display: block;
  margin-top: 4px;
  color: rgba(76, 72, 63, 0.56);
  font-size: 12px;
  line-height: 1.45;
}

.memory-sheet-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(126, 112, 91, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(76, 72, 63, 0.64);
  appearance: none;
  line-height: 1;
}

.memory-sheet-close .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 20px;
  transform: translateY(-2px);
}

.memory-hero {
  padding: 15px;
  border: 1px solid rgba(126, 112, 91, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 251, 0.88), rgba(245, 240, 226, 0.66)),
    radial-gradient(circle at 88% 20%, rgba(160, 154, 217, 0.14), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.memory-hero span,
.memory-clue-list strong,
.memory-signal-grid small {
  color: #7a72a8;
  font-size: 12px;
  font-weight: 700;
}

.memory-hero strong {
  display: block;
  margin-top: 5px;
  color: #4c483f;
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  line-height: 1.35;
}

.memory-hero p {
  margin: 8px 0 0;
  color: rgba(76, 72, 63, 0.64);
  font-size: 13px;
  line-height: 1.55;
}

.memory-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.memory-signal-grid article {
  display: grid;
  justify-items: center;
  min-height: 88px;
  padding: 10px 7px;
  border: 1px solid rgba(126, 112, 91, 0.1);
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.74);
}

.memory-signal-grid .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: rgba(136, 158, 102, 0.14);
  color: #78905a;
  font-size: 18px;
}

.memory-signal-grid strong {
  margin-top: 4px;
  color: #514b42;
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  line-height: 1.15;
}

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

.memory-clue-list article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  min-height: 66px;
  padding: 11px 12px;
  border: 1px solid rgba(126, 112, 91, 0.1);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.66);
}

.memory-clue-list .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(136, 158, 102, 0.14);
  color: #78905a;
  font-size: 18px;
}

.memory-clue-list p {
  margin: 3px 0 0;
  color: rgba(76, 72, 63, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.memory-actions {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 10px;
}

.memory-primary,
.memory-secondary {
  height: 44px;
  border-radius: 16px;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  font-weight: 700;
}

.memory-primary {
  border: 0;
  background: linear-gradient(180deg, #a7ba87, #829861);
  color: #fffaf7;
  box-shadow:
    0 12px 20px rgba(103, 125, 76, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.memory-secondary {
  border: 1px solid rgba(126, 112, 91, 0.14);
  background: rgba(255, 255, 255, 0.62);
  color: rgba(76, 72, 63, 0.68);
}

.memory-sheet button:focus {
  outline: none;
}

.memory-sheet button:focus-visible {
  outline: 2px solid rgba(136, 158, 102, 0.34);
  outline-offset: 3px;
}

.feature-sheet {
  position: absolute;
  inset: 0;
  z-index: 22;
  display: grid;
  align-items: end;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 220ms ease;
  --sheet-drag-y: 0px;
  --sheet-drag-progress: 0;
}

.feature-sheet[aria-hidden="true"] {
  opacity: 0;
}

.feature-sheet[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.feature-sheet-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 76%, rgba(255, 251, 241, 0.44), transparent 35%),
    linear-gradient(180deg, rgba(255, 250, 238, 0.08), rgba(64, 57, 44, 0.14));
  opacity: 0;
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  transition: opacity 260ms ease;
}

.feature-sheet[aria-hidden="false"] .feature-sheet-backdrop {
  opacity: 1;
}

.feature-sheet.is-dragging .feature-sheet-backdrop,
.feature-sheet.is-settling .feature-sheet-backdrop {
  opacity: calc(1 - (var(--sheet-drag-progress) * 0.72));
  transition: opacity 180ms ease;
}

.feature-sheet-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: calc(100% - 22px);
  max-height: calc(100% - 44px);
  margin: 0 auto 10px;
  padding: 10px 16px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid rgba(132, 117, 92, 0.13);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 8%, rgba(160, 154, 217, 0.12), transparent 36%),
    radial-gradient(circle at 10% 96%, rgba(205, 218, 197, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(255, 254, 249, 0.985), rgba(249, 246, 235, 0.965));
  box-shadow:
    0 -22px 48px rgba(84, 67, 43, 0.13),
    0 14px 38px rgba(103, 91, 66, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: #4c483f;
  opacity: 0;
  transform-origin: center bottom;
  transform: translate3d(0, calc(106% + var(--sheet-drag-y)), 0) scale(0.982);
  backface-visibility: hidden;
  contain: layout paint;
  will-change: transform, opacity;
}

.feature-sheet-card::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 38%;
  border-radius: 27px 27px 40% 40%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), transparent),
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.34), transparent 42%);
  opacity: 0.62;
  pointer-events: none;
}

.feature-sheet-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: inherit;
  pointer-events: none;
}

.feature-sheet-card::-webkit-scrollbar,
.feature-list.is-records::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.feature-sheet[aria-hidden="false"] .feature-sheet-card {
  opacity: 1;
  transform: translate3d(0, var(--sheet-drag-y), 0) scale(1);
}

.feature-sheet[aria-hidden="true"] .feature-sheet-card {
  opacity: 0;
  transform: translate3d(0, calc(106% + var(--sheet-drag-y)), 0) scale(0.982);
}

.feature-sheet.is-dragging .feature-sheet-card {
  transform: translate3d(0, var(--sheet-drag-y), 0) scale(calc(1 - (var(--sheet-drag-progress) * 0.012)));
  transition: none;
}

.feature-sheet.is-settling .feature-sheet-card {
  transform: translate3d(0, var(--sheet-drag-y), 0) scale(1);
  transition: transform 240ms cubic-bezier(0.2, 0.82, 0.16, 1);
}

.feature-sheet.is-entering[aria-hidden="false"] .feature-sheet-backdrop {
  animation: qingheFeatureBackdropIn 520ms ease both;
}

.feature-sheet.is-entering[aria-hidden="false"] .feature-sheet-card {
  animation: qingheFeatureSheetIn 620ms cubic-bezier(0.18, 0.92, 0.2, 1) both;
}

.feature-sheet.is-dragging .feature-sheet-card,
.feature-sheet.is-settling .feature-sheet-card {
  animation: none;
}

.tarot-stage.is-feature-sheet-open .qinghe-home,
.tarot-stage.is-feature-sheet-open .qinghe-rooms-page,
.tarot-stage.is-feature-sheet-open .qinghe-ledger-page,
.tarot-stage.is-feature-sheet-open .qinghe-mine-page {
  filter: saturate(0.98) brightness(0.98);
  transform: translateZ(0) scale(0.992);
  transition:
    filter 520ms ease,
    transform 620ms cubic-bezier(0.19, 1, 0.22, 1);
}

.feature-sheet-head,
.feature-sheet-body > * {
  position: relative;
  z-index: 1;
}

.feature-sheet[aria-hidden="false"] .feature-sheet-head,
.feature-sheet[aria-hidden="false"] .feature-sheet-body > * {
  animation: qingheFeatureItemIn 520ms cubic-bezier(0.2, 0.82, 0.16, 1) both;
}

.feature-sheet[aria-hidden="false"] .feature-sheet-head {
  animation-delay: 130ms;
}

.feature-sheet[aria-hidden="false"] .feature-sheet-body > *:nth-child(1) {
  animation-delay: 210ms;
}

.feature-sheet[aria-hidden="false"] .feature-sheet-body > *:nth-child(2) {
  animation-delay: 285ms;
}

.feature-sheet[aria-hidden="false"] .feature-sheet-body > *:nth-child(3) {
  animation-delay: 360ms;
}

.feature-sheet[aria-hidden="false"] .feature-sheet-body > *:nth-child(4) {
  animation-delay: 435ms;
}

.feature-sheet[data-feature="daily-tarot"][aria-hidden="false"] .feature-sheet-body > * {
  animation: none;
}

.feature-sheet.is-entering[aria-hidden="false"] .feature-sheet-card > .ledger-sheet-grip {
  animation: qingheFeatureGripIn 520ms ease both;
}

.feature-sheet-grip {
  position: relative;
  justify-self: center;
  width: 58px;
  height: 22px;
  margin-top: -2px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.feature-sheet-grip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(87, 78, 65, 0.18);
  transform: translateX(-50%);
  transition:
    width 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.feature-sheet-grip::after {
  content: "下拉关闭";
  position: absolute;
  left: 50%;
  top: 15px;
  color: rgba(76, 72, 63, 0.32);
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -2px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.feature-sheet-grip:hover::before,
.feature-sheet-grip:focus-visible::before,
.feature-sheet.is-dragging .feature-sheet-grip::before {
  width: 48px;
  background: rgba(87, 78, 65, 0.28);
}

.feature-sheet-grip:hover::after,
.feature-sheet-grip:focus-visible::after,
.feature-sheet.is-dragging .feature-sheet-grip::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.feature-sheet.is-dragging .feature-sheet-grip {
  cursor: grabbing;
}

.feature-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.feature-sheet-head p {
  margin: 0;
  color: #4f6044;
  font-family: "Noto Serif SC", serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.15;
}

.feature-sheet-head span {
  display: block;
  margin-top: 4px;
  color: rgba(76, 72, 63, 0.57);
  font-size: 12px;
  line-height: 1.45;
}

.feature-sheet-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  flex: 0 0 auto;
  border: 1px solid rgba(126, 112, 91, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(76, 72, 63, 0.64);
  appearance: none;
  line-height: 1;
}

.feature-sheet-close .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 20px;
  transform: translateY(-2px);
}

.feature-sheet-body {
  display: grid;
  gap: 11px;
}

.feature-note-card,
.feature-form,
.feature-list-item,
.feature-empty,
.feature-summary-grid article,
.feature-toggle-row,
.feature-policy-list article,
.feature-benefit-list {
  border: 1px solid rgba(126, 112, 91, 0.1);
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.feature-note-card {
  padding: 15px;
}

.feature-note-card span,
.feature-input-wrap span,
.feature-status,
.feature-list-item small {
  color: #7a72a8;
  font-size: 12px;
  font-weight: 700;
}

.feature-note-card strong {
  display: block;
  margin-top: 5px;
  color: #4c483f;
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  line-height: 1.35;
}

.feature-note-card p,
.feature-list-item p,
.feature-benefit-list p,
.feature-toggle-row small,
.feature-empty p {
  margin: 7px 0 0;
  color: rgba(76, 72, 63, 0.64);
  font-size: 12px;
  line-height: 1.55;
}

.feature-note-card.is-membership {
  background:
    radial-gradient(circle at 86% 10%, rgba(210, 183, 107, 0.18), transparent 35%),
    rgba(255, 253, 247, 0.78);
}

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

.feature-policy-list article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  min-height: 70px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.82), rgba(247, 249, 238, 0.68)),
    rgba(255, 253, 247, 0.74);
}

.feature-policy-list .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #78915c;
  background: rgba(218, 229, 204, 0.68);
  font-size: 18px;
}

.feature-policy-list strong {
  display: block;
  color: #4c483f;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  line-height: 1.35;
}

.feature-policy-list p {
  margin: 5px 0 0;
  color: rgba(76, 72, 63, 0.62);
  font-size: 12px;
  line-height: 1.55;
}

.feature-form {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.feature-input-wrap {
  display: grid;
  gap: 7px;
}

.feature-textarea,
.feature-text-input,
.feature-select {
  width: 100%;
  border: 1px solid rgba(126, 112, 91, 0.16);
  border-radius: 16px;
  outline: none;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.72);
  color: #4c483f;
  font: 14px/1.55 "Inter", "Noto Serif SC", sans-serif;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.feature-textarea {
  resize: none;
}

.feature-text-input,
.feature-select {
  min-height: 42px;
}

.feature-select {
  appearance: none;
  padding-right: 34px;
  background:
    linear-gradient(45deg, transparent 50%, rgba(88, 105, 74, 0.72) 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(88, 105, 74, 0.72) 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    rgba(255, 255, 255, 0.72);
}

.daily-tarot-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 13px;
  align-items: stretch;
  min-height: 148px;
  padding: 13px;
  border: 1px solid rgba(126, 112, 91, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 16% 0%, rgba(151, 139, 204, 0.14), transparent 44%),
    radial-gradient(circle at 95% 18%, rgba(158, 175, 124, 0.16), transparent 46%),
    rgba(255, 253, 247, 0.78);
  box-shadow:
    0 18px 34px rgba(117, 105, 80, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  perspective: 720px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.daily-tarot-face {
  position: relative;
  min-height: 126px;
  border: 1px solid rgba(108, 96, 74, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(232, 185, 104, 0.28), transparent 38%),
    linear-gradient(180deg, #19234a, #0d132c);
  box-shadow:
    0 14px 22px rgba(82, 78, 66, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.daily-tarot-face.has-art {
  background: var(--daily-card-art) center / cover no-repeat;
}

.daily-tarot-face.has-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(16, 14, 26, 0.34));
}

.daily-tarot-face.has-art > span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 999px;
  color: rgba(35, 29, 20, 0.82);
  background: rgba(255, 248, 228, 0.78);
  font-size: 10px;
}

.daily-tarot-face.is-placeholder {
  display: grid;
  place-items: center;
}

.daily-tarot-copy {
  min-width: 0;
  align-self: center;
  will-change: transform, opacity;
}

.daily-tarot-copy span,
.daily-tarot-copy small {
  color: rgba(76, 72, 63, 0.54);
  font-size: 11px;
}

.daily-tarot-copy strong {
  display: block;
  margin-top: 4px;
  color: #4f6044;
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  line-height: 1.12;
}

.daily-tarot-copy p {
  margin: 8px 0;
  color: rgba(76, 72, 63, 0.72);
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  line-height: 1.55;
}

.daily-tarot-form {
  margin-top: 9px;
}

.feature-sheet[data-feature="daily-tarot"] .daily-tarot-form .feature-input-wrap,
.feature-sheet[data-feature="daily-tarot"] .daily-tarot-form .feature-status,
.feature-sheet[data-feature="daily-tarot"] .daily-tarot-form .feature-primary,
.feature-sheet[data-feature="daily-tarot"] .feature-secondary {
  will-change: transform, opacity;
}

.personality-intro {
  background:
    radial-gradient(circle at 92% 8%, rgba(160, 154, 217, 0.16), transparent 34%),
    rgba(255, 253, 247, 0.78);
}

.personality-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.personality-question-list {
  display: grid;
  gap: 9px;
}

.personality-question {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(126, 112, 91, 0.11);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.personality-question > strong {
  display: block;
  margin: 0 0 9px;
  color: #4c483f;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.36;
}

.personality-question legend {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  padding: 0 0 8px;
  color: #4c483f;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.personality-question legend span {
  color: #7a72a8;
  font-family: "Inter", sans-serif;
  font-size: 11px;
}

.personality-question > div {
  display: grid;
  gap: 7px;
}

.personality-question label {
  position: relative;
  display: block;
  min-height: 36px;
  padding: 9px 11px 9px 34px;
  border: 1px solid rgba(126, 112, 91, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(76, 72, 63, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.personality-question label + label {
  margin-top: 7px;
}

.personality-question label::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(122, 114, 168, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  transform: translateY(-50%);
}

.personality-question input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.personality-question label:has(input:checked) {
  border-color: rgba(127, 147, 95, 0.22);
  background:
    linear-gradient(135deg, rgba(232, 238, 218, 0.78), rgba(247, 244, 255, 0.52));
  color: #4f6044;
}

.personality-question label:has(input:checked)::before {
  border-color: rgba(127, 147, 95, 0.42);
  background:
    radial-gradient(circle at center, #7f9664 0 38%, transparent 42%),
    #fffefa;
}

.personality-result-card,
.personality-weather,
.personality-manual-section,
.personality-life-grid article,
.personality-room-list,
.personality-dimension-grid article {
  border: 1px solid rgba(126, 112, 91, 0.11);
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.76);
  box-shadow:
    0 12px 24px rgba(102, 90, 67, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.personality-result-card {
  padding: 14px;
  background:
    radial-gradient(circle at 86% 0%, rgba(160, 154, 217, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.9), rgba(246, 249, 236, 0.74));
}

.personality-manual-card.is-preview {
  border-color: rgba(127, 147, 95, 0.22);
  background:
    radial-gradient(circle at 86% 0%, rgba(136, 158, 102, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(242, 248, 235, 0.78));
}

.personality-manual-note {
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
}

.personality-manual-note span,
.personality-manual-section span,
.personality-life-grid span {
  display: block;
  color: #7a72a8;
  font-size: 11px;
  font-weight: 800;
}

.personality-manual-note strong {
  display: block;
  margin-top: 3px;
  color: #4f6044;
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  line-height: 1.2;
}

.personality-manual-note p,
.personality-manual-section p,
.personality-life-grid p {
  margin: 6px 0 0;
  color: rgba(76, 72, 63, 0.68);
  font-size: 12px;
  line-height: 1.55;
}

.personality-manual-section {
  padding: 13px 14px;
  background: rgba(255, 253, 247, 0.72);
}

.personality-life-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.personality-life-grid article {
  min-height: 106px;
  padding: 12px;
}

@media (max-width: 380px) {
  .personality-life-grid {
    grid-template-columns: 1fr;
  }
}

.personality-reference-setting {
  margin-top: 2px;
}

.personality-delete-confirm {
  border-color: rgba(173, 96, 74, 0.2);
  background: rgba(255, 248, 244, 0.8);
}

.qinghe-personality-page .personality-form {
  display: grid;
  gap: 11px;
  padding-bottom: 8px;
}

.qinghe-personality-page .personality-question-list {
  gap: 10px;
}

.qinghe-personality-page .personality-question {
  padding: 13px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(252, 249, 240, 0.76)),
    rgba(255, 253, 247, 0.78);
  box-shadow:
    0 10px 22px rgba(105, 93, 72, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.qinghe-personality-page .feature-status {
  min-height: 18px;
  margin: 0;
  text-align: center;
}

.personality-result-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.personality-result-head > .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: rgba(137, 129, 190, 0.15);
  color: #7a72a8;
  font-size: 20px;
}

.personality-result-card small,
.personality-weather span,
.personality-room-list > span,
.personality-dimension-grid span {
  color: #7a72a8;
  font-size: 11px;
  font-weight: 700;
}

.personality-result-card strong,
.personality-weather strong {
  display: block;
  margin-top: 3px;
  color: #4f6044;
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  line-height: 1.16;
}

.personality-result-card p,
.personality-weather p {
  margin: 7px 0 0;
  color: rgba(76, 72, 63, 0.66);
  font-size: 12px;
  line-height: 1.55;
}

.personality-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.personality-keywords span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(136, 158, 102, 0.14);
  color: #61784b;
  font-size: 11px;
  font-weight: 700;
}

.personality-weather {
  padding: 13px 14px;
}

.personality-weather strong {
  color: #7a72a8;
  font-size: 20px;
}

.personality-dimension-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.personality-dimension-grid article {
  display: grid;
  justify-items: center;
  min-height: 58px;
  padding: 8px 4px;
}

.personality-dimension-grid strong {
  color: #4f6044;
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  line-height: 1;
}

.personality-feedback-card p {
  color: rgba(76, 72, 63, 0.7);
}

.personality-room-list {
  display: grid;
  gap: 9px;
  padding: 13px;
}

.personality-room-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.personality-room-list strong {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(232, 238, 218, 0.75);
  color: #5f7748;
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
}

.feature-textarea:focus,
.feature-text-input:focus,
.feature-select:focus {
  border-color: rgba(127, 147, 95, 0.46);
  box-shadow:
    0 0 0 4px rgba(136, 158, 102, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feature-primary,
.feature-secondary,
.feature-secondary-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 44px;
  border-radius: 16px;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  font-weight: 700;
}

.feature-primary {
  border: 0;
  background: linear-gradient(180deg, #a7ba87, #829861);
  color: #fffaf7;
  box-shadow:
    0 12px 20px rgba(103, 125, 76, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.feature-primary:disabled {
  opacity: 0.68;
}

.feature-secondary {
  border: 1px solid rgba(126, 112, 91, 0.13);
  background: rgba(255, 253, 247, 0.76);
  color: #677d4c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.feature-secondary-danger {
  border: 1px solid rgba(158, 90, 90, 0.18);
  background: rgba(255, 246, 242, 0.78);
  color: #9a5b51;
}

.privacy-import-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.feature-primary .material-symbols-rounded,
.feature-secondary .material-symbols-rounded,
.feature-secondary-danger .material-symbols-rounded {
  font-size: 19px;
}

.feature-list,
.feature-chat-log,
.feature-benefit-list,
.feature-toggle-list {
  display: grid;
  gap: 8px;
}

.feature-sheet[data-feature="records"] .feature-sheet-card {
  max-height: calc(100% - 106px);
  padding-bottom: 18px;
}

.feature-sheet[data-feature="records"] .feature-sheet-body {
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.feature-sheet[data-feature="chat"] .feature-sheet-card {
  height: min(650px, calc(100% - 118px));
  min-height: 560px;
  max-height: calc(100% - 118px);
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
}

.feature-sheet[data-feature="chat"] .feature-sheet-body {
  min-height: 0;
  display: grid;
}

.feature-chat-shell {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.feature-chat-log {
  position: relative;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 4px 4px 10px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.feature-chat-log::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.feature-chat-form {
  position: relative;
  z-index: 2;
  padding: 12px 0 0;
  border-top: 1px solid rgba(126, 112, 91, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 254, 249, 0), rgba(255, 254, 249, 0.96) 22%, rgba(255, 254, 249, 0.98));
}

@media (max-height: 760px) {
  .feature-sheet[data-feature="chat"] .feature-sheet-card {
    height: calc(100% - 74px);
    min-height: 0;
    max-height: calc(100% - 74px);
  }
}

.feature-list.is-records {
  max-height: clamp(260px, 46vh, 390px);
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1px 3px 18px 0;
  overscroll-behavior: contain;
}

.feature-list-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  min-height: 66px;
  padding: 11px 12px;
}

.feature-list-item.tarot-record-item {
  width: 100%;
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  border: 1px solid rgba(126, 112, 91, 0.12);
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.feature-list-item.daily-tarot-record-item {
  width: 100%;
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  border: 1px solid rgba(137, 129, 190, 0.14);
  text-align: left;
  cursor: pointer;
  background:
    radial-gradient(circle at 0% 0%, rgba(137, 129, 190, 0.12), transparent 42%),
    rgba(255, 253, 247, 0.76);
}

.feature-list-item.daily-tarot-record-item > .material-symbols-rounded {
  background: rgba(137, 129, 190, 0.14);
  color: #817aba;
}

.feature-list-item.tarot-record-item:hover,
.feature-list-item.tarot-record-item:focus-visible,
.feature-list-item.daily-tarot-record-item:hover,
.feature-list-item.daily-tarot-record-item:focus-visible {
  border-color: rgba(127, 147, 95, 0.32);
  background: rgba(255, 253, 247, 0.9);
  box-shadow:
    0 12px 22px rgba(103, 125, 76, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.record-open-icon {
  align-self: center;
  justify-self: end;
  width: 22px;
  height: 22px;
  color: rgba(76, 72, 63, 0.36);
  font-size: 20px;
}

.feature-list.is-records .feature-list-item {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  min-height: 76px;
  padding: 10px 11px;
  align-items: start;
}

.feature-list.is-records .tarot-record-item,
.feature-list.is-records .daily-tarot-record-item {
  grid-template-columns: 30px minmax(0, 1fr) 22px;
}

.feature-list-item > .material-symbols-rounded,
.feature-empty .material-symbols-rounded,
.feature-benefit-list .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(136, 158, 102, 0.14);
  color: #78905a;
  font-size: 18px;
}

.feature-list-item strong {
  display: block;
  color: #4c483f;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  line-height: 1.25;
}

.feature-list.is-records .feature-list-item > .material-symbols-rounded {
  width: 30px;
  height: 30px;
  font-size: 17px;
}

.feature-list.is-records .feature-list-item > .record-open-icon {
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: transparent;
  color: rgba(76, 72, 63, 0.36);
  font-size: 20px;
}

.feature-list.is-records .feature-list-item div {
  min-width: 0;
}

.feature-list.is-records .feature-list-item strong,
.feature-list.is-records .feature-list-item p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.feature-list.is-records .feature-list-item strong {
  -webkit-line-clamp: 1;
}

.feature-list.is-records .feature-list-item p {
  margin-top: 4px;
  -webkit-line-clamp: 2;
  font-size: 11px;
  line-height: 1.38;
}

.feature-list.is-records .feature-list-item small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.2;
}

.feature-empty {
  display: grid;
  justify-items: center;
  padding: 18px 12px;
  text-align: center;
}

.feature-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.feature-summary-grid article {
  display: grid;
  justify-items: center;
  min-height: 58px;
  padding: 8px 5px;
  border-radius: 17px;
}

.feature-summary-grid span {
  color: rgba(76, 72, 63, 0.55);
  font-size: 11px;
}

.feature-summary-grid strong {
  margin-top: 2px;
  color: #4f6044;
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  line-height: 1;
}

.feature-chat-message {
  display: grid;
  gap: 5px;
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  -webkit-user-select: none;
  user-select: none;
}

.feature-chat-message.is-user {
  justify-self: end;
  background: rgba(232, 238, 218, 0.86);
}

.feature-chat-message span {
  color: #7a72a8;
  font-size: 11px;
  font-weight: 700;
}

.feature-chat-message p {
  margin: 0;
  color: #4c483f;
  font-size: 13px;
  line-height: 1.55;
}

.feature-sheet.is-loading .feature-chat-log::after {
  content: "绫白正在慢慢读完你的话";
  justify-self: start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(160, 154, 217, 0.15);
  color: #7a72a8;
  font-size: 12px;
}

.feature-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-chip-row label,
.feature-chip-row button {
  position: relative;
  min-height: 34px;
  border: 1px solid rgba(126, 112, 91, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(76, 72, 63, 0.68);
  font-size: 13px;
  font-weight: 700;
}

.feature-chip-row label {
  display: grid;
  place-items: center;
  padding: 0 13px;
}

.feature-chip-row button {
  padding: 0 14px;
}

.feature-chip-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.feature-chip-row label:has(input:checked),
.feature-chip-row button.is-selected {
  border-color: rgba(127, 147, 95, 0.18);
  background: rgba(136, 158, 102, 0.18);
  color: #5f7748;
}

.feature-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 11px 12px;
  text-align: left;
}

.feature-toggle-row strong {
  display: block;
  color: #4c483f;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
}

.feature-toggle-row i {
  position: relative;
  width: 44px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(126, 112, 91, 0.14);
  transition: background 220ms ease;
}

.feature-toggle-row i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fffefa;
  box-shadow: 0 3px 8px rgba(72, 60, 44, 0.16);
  transition: transform 220ms cubic-bezier(0.19, 1, 0.22, 1);
}

.feature-toggle-row.is-on i {
  background: rgba(136, 158, 102, 0.42);
}

.feature-toggle-row.is-on i::after {
  transform: translateX(18px);
}

.feature-benefit-list {
  padding: 12px;
}

.feature-benefit-list p {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.feature-sheet button:focus,
.feature-sheet textarea:focus {
  outline: none;
}

.feature-sheet button:focus-visible {
  outline: 2px solid rgba(136, 158, 102, 0.34);
  outline-offset: 3px;
}

.ledger-amount-field,
.ledger-note-field {
  display: grid;
  gap: 7px;
}

.ledger-amount-field span,
.ledger-note-field span,
.ledger-chip-group p {
  margin: 0;
  color: rgba(76, 72, 63, 0.66);
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 700;
}

.ledger-amount-input,
.ledger-note-input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(126, 112, 91, 0.16);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.72);
  color: #4c483f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.ledger-amount-input {
  padding: 0 14px;
  font-family: "Inter", "Noto Serif SC", sans-serif;
  font-size: 25px;
  font-weight: 600;
  appearance: textfield;
}

.ledger-entry-sheet[aria-hidden="false"] .ledger-amount-input {
  animation: none;
}

.ledger-note-input {
  padding: 0 13px;
  font-size: 15px;
}

.ledger-amount-input:focus,
.ledger-note-input:focus {
  border-color: rgba(127, 147, 95, 0.46);
  box-shadow:
    0 0 0 4px rgba(136, 158, 102, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ledger-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ledger-chip-group p {
  flex: 0 0 100%;
}

.ledger-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(126, 112, 91, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(76, 72, 63, 0.74);
  font-size: 13px;
}

.ledger-chip .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  color: rgba(99, 121, 77, 0.72);
  font-size: 17px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 20;
}

.ledger-chip.is-active {
  border-color: rgba(129, 148, 99, 0.22);
  background: rgba(136, 158, 102, 0.18);
  color: #5d7149;
  font-weight: 700;
}

.ledger-chip.is-active .material-symbols-rounded {
  color: #5d7149;
}

.ledger-form-error {
  min-height: 17px;
  margin: -2px 0 0;
  color: #aa665f;
  font-size: 12px;
}

.ledger-sheet-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 10px;
}

.ledger-save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #9cad78, #829465);
  color: #fffaf4;
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow:
    0 14px 28px rgba(111, 131, 83, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.ledger-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border: 1px solid rgba(169, 96, 84, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.72);
  color: rgba(150, 72, 62, 0.82);
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(116, 80, 61, 0.08);
}

.ledger-delete-button[hidden] {
  display: none;
}

.ledger-delete-button[hidden] + .ledger-save-button {
  grid-column: 1 / -1;
}

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

@keyframes ledgerSheetRiseStage {
  0% {
    opacity: 1;
    transform: translate3d(0, 108%, 0) scale(0.985);
  }
  28% {
    opacity: 1;
    transform: translate3d(0, 74px, 0) scale(0.99);
  }
  64% {
    opacity: 1;
    transform: translate3d(0, -12px, 0) scale(1.01);
  }
  84% {
    transform: translate3d(0, 4px, 0) scale(0.997);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes qingheSheetFastIn {
  from {
    opacity: 1;
    transform: translate3d(0, 24px, 0) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes qingheFeatureSheetIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 76px, 0) scale(0.976);
  }
  54% {
    opacity: 1;
    transform: translate3d(0, -7px, 0) scale(1.003);
  }
  76% {
    opacity: 1;
    transform: translate3d(0, 2px, 0) scale(0.998);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes qingheFeatureBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes qingheFeatureItemIn {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes qingheFeatureGripIn {
  0% {
    opacity: 0;
    transform: scaleX(0.56);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes ledgerBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ledgerOriginBloom {
  0% {
    opacity: 0.72;
    transform: scale(0.42);
  }
  62% {
    opacity: 0.26;
  }
  100% {
    opacity: 0;
    transform: scale(1.82);
  }
}

@keyframes ledgerSheetSheen {
  0% {
    opacity: 0;
    transform: translateX(-48%);
  }
  34% {
    opacity: 0.56;
  }
  100% {
    opacity: 0;
    transform: translateX(48%);
  }
}

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

@keyframes ledgerInputWake {
  0% {
    box-shadow:
      0 0 0 0 rgba(136, 158, 102, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.74);
  }
  42% {
    box-shadow:
      0 0 0 5px rgba(136, 158, 102, 0.18),
      0 12px 26px rgba(111, 131, 83, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.82);
  }
  100% {
    box-shadow:
      0 0 0 4px rgba(136, 158, 102, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
}

@media (max-height: 850px) {
  .tarot-stage[data-state="ledger"] {
    padding: 18px 16px 10px;
  }

  .tarot-stage[data-state="ledger"] .qinghe-ledger-page {
    gap: 9px;
  }

  .ledger-page-top p {
    font-size: 29px;
  }

  .ledger-overview-card {
    min-height: 190px;
    padding: 16px;
  }

  .ledger-overview-total {
    margin-top: 16px;
  }

  .ledger-overview-total strong {
    font-size: 36px;
  }

  .ledger-overview-grid {
    margin-top: 16px;
    padding-top: 12px;
  }

  .ledger-insight-card {
    min-height: 58px;
    padding: 10px 13px;
  }

  .ledger-list-card {
    padding: 13px;
  }

  .ledger-entry-item {
    min-height: 56px;
    padding: 7px 2px;
  }

  .ledger-sheet-card {
    gap: 11px;
    padding: 10px 16px 16px;
  }
}

/* Qinghe rooms v1: functional room hub. */
body:has(.tarot-stage[data-state="rooms"]) {
  background:
    radial-gradient(circle at 18% 8%, rgba(238, 227, 203, 0.86), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(205, 218, 197, 0.42), transparent 34%),
    linear-gradient(180deg, #fffaf0 0%, #fbf5ea 54%, #fff9ef 100%);
}

body:has(.tarot-stage[data-state="mine"]) {
  background:
    radial-gradient(circle at 18% 8%, rgba(238, 227, 203, 0.86), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(205, 218, 197, 0.42), transparent 34%),
    linear-gradient(180deg, #fffaf0 0%, #fbf5ea 54%, #fff9ef 100%);
}

body:has(.tarot-stage[data-state="pantry"]) {
  background:
    radial-gradient(circle at 18% 8%, rgba(238, 227, 203, 0.86), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(205, 218, 197, 0.42), transparent 34%),
    linear-gradient(180deg, #fffaf0 0%, #f8f2e4 54%, #fff9ef 100%);
}

.tarot-stage[data-state="rooms"] {
  display: block;
  min-height: 100%;
  padding: 22px 18px 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, 0.88), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(206, 219, 191, 0.5), transparent 36%),
    linear-gradient(180deg, #fffaf0 0%, #f8f2e4 58%, #fff9ef 100%);
  color: #4c483f;
}

.tarot-stage[data-state="mine"] {
  display: block;
  min-height: 100%;
  padding: 22px 18px 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, 0.86), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(206, 219, 191, 0.48), transparent 36%),
    linear-gradient(180deg, #fffaf0 0%, #f8f2e4 58%, #fff9ef 100%);
  color: #4c483f;
}

.tarot-stage[data-state="pantry"] {
  display: block;
  min-height: 100%;
  padding: 22px 18px 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, 0.88), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(206, 219, 191, 0.5), transparent 36%),
    linear-gradient(180deg, #fffaf0 0%, #f8f2e4 58%, #fff9ef 100%);
  color: #4c483f;
}

.tarot-stage[data-state="personality"] {
  display: block;
  min-height: 100%;
  padding: 22px 18px 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.9), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(220, 214, 236, 0.44), transparent 34%),
    radial-gradient(circle at 50% 96%, rgba(207, 220, 187, 0.3), transparent 42%),
    linear-gradient(180deg, #fffaf0 0%, #f8f2e4 58%, #fff9ef 100%);
  color: #4c483f;
}

.tarot-stage[data-state="rooms"]::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.54), transparent 30% 72%, rgba(148, 164, 124, 0.12)),
    radial-gradient(circle at 48% 42%, rgba(147, 160, 121, 0.09), transparent 36%);
  opacity: 1;
  mask-image: none;
  -webkit-mask-image: none;
}

.tarot-stage[data-state="mine"]::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent 30% 72%, rgba(148, 164, 124, 0.12)),
    radial-gradient(circle at 48% 42%, rgba(147, 160, 121, 0.09), transparent 36%);
  opacity: 1;
  mask-image: none;
  -webkit-mask-image: none;
}

.tarot-stage[data-state="pantry"]::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent 30% 72%, rgba(148, 164, 124, 0.12)),
    radial-gradient(circle at 48% 42%, rgba(147, 160, 121, 0.09), transparent 36%);
  opacity: 1;
  mask-image: none;
  -webkit-mask-image: none;
}

.tarot-stage[data-state="personality"]::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.48), transparent 30% 72%, rgba(160, 154, 217, 0.1)),
    radial-gradient(circle at 48% 36%, rgba(137, 129, 190, 0.08), transparent 34%),
    radial-gradient(circle at 24% 74%, rgba(136, 158, 102, 0.08), transparent 28%);
  opacity: 1;
  mask-image: none;
  -webkit-mask-image: none;
}

.tarot-stage[data-state="rooms"]::after {
  z-index: 8;
  box-shadow:
    inset 0 0 0 1px rgba(122, 106, 83, 0.1),
    inset 0 18px 48px rgba(255, 255, 255, 0.24),
    inset 0 -52px 82px rgba(105, 88, 61, 0.07);
  mix-blend-mode: normal;
}

.tarot-stage[data-state="mine"]::after {
  z-index: 8;
  box-shadow:
    inset 0 0 0 1px rgba(122, 106, 83, 0.1),
    inset 0 18px 48px rgba(255, 255, 255, 0.24),
    inset 0 -52px 82px rgba(105, 88, 61, 0.07);
  mix-blend-mode: normal;
}

.tarot-stage[data-state="pantry"]::after {
  z-index: 8;
  box-shadow:
    inset 0 0 0 1px rgba(122, 106, 83, 0.1),
    inset 0 18px 48px rgba(255, 255, 255, 0.24),
    inset 0 -52px 82px rgba(105, 88, 61, 0.07);
  mix-blend-mode: normal;
}

.tarot-stage[data-state="personality"]::after {
  z-index: 8;
  box-shadow:
    inset 0 0 0 1px rgba(122, 106, 83, 0.1),
    inset 0 18px 48px rgba(255, 255, 255, 0.22),
    inset 0 -52px 82px rgba(105, 88, 61, 0.06);
  mix-blend-mode: normal;
}

.tarot-stage[data-state="rooms"] .background,
.tarot-stage[data-state="rooms"] .veil,
.tarot-stage[data-state="rooms"] .stars,
.tarot-stage[data-state="rooms"] .qinghe-home,
.tarot-stage[data-state="rooms"] .qinghe-ledger-page,
.tarot-stage[data-state="rooms"] .qinghe-mine-page,
.tarot-stage[data-state="rooms"] .qinghe-personality-page,
.tarot-stage[data-state="rooms"] .top-ui,
.tarot-stage[data-state="rooms"] .benefits,
.tarot-stage[data-state="rooms"] .ritual-area,
.tarot-stage[data-state="rooms"] .question-panel,
.tarot-stage[data-state="rooms"] .hint-panel,
.tarot-stage[data-state="rooms"] .bottom-ui,
.tarot-stage[data-state="rooms"] .unlock-panel,
.tarot-stage[data-state="rooms"] .payment-sheet,
.tarot-stage[data-state="rooms"] .reading-panel {
  opacity: 0;
  pointer-events: none;
}

.tarot-stage[data-state="mine"] .background,
.tarot-stage[data-state="mine"] .veil,
.tarot-stage[data-state="mine"] .stars,
.tarot-stage[data-state="mine"] .qinghe-home,
.tarot-stage[data-state="mine"] .qinghe-ledger-page,
.tarot-stage[data-state="mine"] .qinghe-rooms-page,
.tarot-stage[data-state="mine"] .qinghe-personality-page,
.tarot-stage[data-state="mine"] .top-ui,
.tarot-stage[data-state="mine"] .benefits,
.tarot-stage[data-state="mine"] .ritual-area,
.tarot-stage[data-state="mine"] .question-panel,
.tarot-stage[data-state="mine"] .hint-panel,
.tarot-stage[data-state="mine"] .bottom-ui,
.tarot-stage[data-state="mine"] .unlock-panel,
.tarot-stage[data-state="mine"] .payment-sheet,
.tarot-stage[data-state="mine"] .reading-panel {
  opacity: 0;
  pointer-events: none;
}

.tarot-stage[data-state="pantry"] .background,
.tarot-stage[data-state="pantry"] .veil,
.tarot-stage[data-state="pantry"] .stars,
.tarot-stage[data-state="pantry"] .qinghe-home,
.tarot-stage[data-state="pantry"] .qinghe-ledger-page,
.tarot-stage[data-state="pantry"] .qinghe-rooms-page,
.tarot-stage[data-state="pantry"] .qinghe-mine-page,
.tarot-stage[data-state="pantry"] .qinghe-personality-page,
.tarot-stage[data-state="pantry"] .top-ui,
.tarot-stage[data-state="pantry"] .benefits,
.tarot-stage[data-state="pantry"] .ritual-area,
.tarot-stage[data-state="pantry"] .question-panel,
.tarot-stage[data-state="pantry"] .hint-panel,
.tarot-stage[data-state="pantry"] .bottom-ui,
.tarot-stage[data-state="pantry"] .unlock-panel,
.tarot-stage[data-state="pantry"] .payment-sheet,
.tarot-stage[data-state="pantry"] .reading-panel {
  opacity: 0;
  pointer-events: none;
}

.tarot-stage[data-state="personality"] .background,
.tarot-stage[data-state="personality"] .veil,
.tarot-stage[data-state="personality"] .stars,
.tarot-stage[data-state="personality"] .qinghe-home,
.tarot-stage[data-state="personality"] .qinghe-ledger-page,
.tarot-stage[data-state="personality"] .qinghe-rooms-page,
.tarot-stage[data-state="personality"] .qinghe-pantry-page,
.tarot-stage[data-state="personality"] .qinghe-mine-page,
.tarot-stage[data-state="personality"] .top-ui,
.tarot-stage[data-state="personality"] .benefits,
.tarot-stage[data-state="personality"] .ritual-area,
.tarot-stage[data-state="personality"] .question-panel,
.tarot-stage[data-state="personality"] .hint-panel,
.tarot-stage[data-state="personality"] .bottom-ui,
.tarot-stage[data-state="personality"] .unlock-panel,
.tarot-stage[data-state="personality"] .payment-sheet,
.tarot-stage[data-state="personality"] .reading-panel {
  opacity: 0;
  pointer-events: none;
}

.tarot-stage[data-state="rooms"] .qinghe-rooms-page {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 12px;
  height: 100%;
  min-height: 0;
  padding-bottom: 76px;
}

.tarot-stage[data-state="mine"] .qinghe-mine-page {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: none;
  align-content: start;
  gap: 10px;
  height: 100%;
  min-height: 0;
  padding-bottom: 118px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-bottom: 118px;
  scrollbar-width: none;
}

.tarot-stage[data-state="pantry"] .qinghe-pantry-page {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
  padding-bottom: 34px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-bottom: 34px;
  scrollbar-width: none;
}

.tarot-stage[data-state="personality"] .qinghe-personality-page {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
  padding-bottom: 34px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-bottom: 34px;
  scrollbar-width: none;
}

.tarot-stage[data-state="pantry"] .qinghe-pantry-page::-webkit-scrollbar {
  display: none;
}

.tarot-stage[data-state="personality"] .qinghe-personality-page::-webkit-scrollbar {
  display: none;
}

.tarot-stage[data-state="mine"] .qinghe-mine-page::-webkit-scrollbar {
  display: none;
}

.personality-page-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.personality-page-back {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 36px;
  padding: 0 11px 0 9px;
  border: 1px solid rgba(126, 112, 91, 0.14);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.78);
  color: #6a7655;
  box-shadow:
    0 10px 22px rgba(94, 82, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

.tarot-stage[data-state="personality"] .personality-page-back {
  appearance: none;
  border: 1px solid rgba(126, 112, 91, 0.14);
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.82), transparent 44%),
    rgba(255, 252, 246, 0.82);
  color: #60724d;
  box-shadow:
    0 10px 22px rgba(94, 82, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.personality-page-back .material-symbols-rounded {
  font-size: 18px;
}

.personality-page-back span:last-child {
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 700;
}

.personality-page-top p {
  margin: 0;
  color: #4f6044;
  font-family: "Noto Serif SC", serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
}

.personality-page-top div > span {
  display: block;
  margin-top: 5px;
  color: rgba(76, 72, 63, 0.56);
  font-size: 12px;
}

.personality-page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 112px;
  padding: 17px 16px;
  overflow: hidden;
  border: 1px solid rgba(126, 112, 91, 0.1);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 12%, rgba(160, 154, 217, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.9), rgba(247, 249, 238, 0.7));
  box-shadow:
    0 16px 30px rgba(106, 96, 74, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.personality-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(137, 129, 190, 0.12);
  border-radius: 999px;
  pointer-events: none;
}

.personality-orbit-a {
  right: -34px;
  top: -48px;
  width: 134px;
  height: 134px;
}

.personality-orbit-b {
  left: 46px;
  bottom: -54px;
  width: 112px;
  height: 112px;
  border-color: rgba(136, 158, 102, 0.11);
}

.personality-hero-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 20px;
  color: #7a72a8;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.7), transparent 42%),
    linear-gradient(180deg, rgba(238, 234, 252, 0.9), rgba(226, 235, 211, 0.72));
  box-shadow:
    0 12px 22px rgba(122, 114, 168, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.personality-hero-icon .material-symbols-rounded {
  font-size: 28px;
}

.personality-page-hero span:not(.material-symbols-rounded):not(.personality-orbit) {
  color: #7a72a8;
  font-size: 12px;
  font-weight: 700;
}

.personality-page-hero p {
  margin: 5px 0 0;
  color: rgba(76, 72, 63, 0.7);
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.personality-page-body {
  display: grid;
  align-content: start;
  gap: 11px;
  min-height: 0;
}

.qinghe-personality-page .personality-intro {
  display: none;
}

.rooms-page-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.pantry-page-top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
}

.mine-page-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.rooms-page-top p,
.rooms-section-title p,
.pantry-page-top p,
.mine-page-top p {
  margin: 0;
  color: #4f6044;
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
}

.rooms-page-top p,
.pantry-page-top p {
  font-size: 32px;
  line-height: 1;
}

.mine-page-top p {
  font-size: 32px;
  line-height: 1;
}

.rooms-page-top span,
.rooms-section-title span,
.pantry-page-top span,
.mine-page-top span {
  display: block;
  margin-top: 5px;
  color: rgba(76, 72, 63, 0.58);
  font-size: 12px;
}

.mine-soft-action,
.rooms-soft-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(126, 112, 91, 0.15);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.78);
  color: #6f679e;
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow:
    0 10px 22px rgba(94, 82, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

.pantry-page-back {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  place-items: center;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 13px 0 11px;
  border: 1px solid rgba(126, 112, 91, 0.15);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.84);
  color: #6a7655;
  font-size: 13px;
  font-weight: 800;
  box-shadow:
    0 10px 22px rgba(94, 82, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

.pantry-page-back .material-symbols-rounded {
  font-size: 20px;
}

.mine-soft-action {
  justify-content: center;
  width: 38px;
  padding: 0;
  color: #6a7655;
}

.mine-soft-action .material-symbols-rounded,
.rooms-soft-action .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 0;
  font-size: 18px;
  line-height: 1;
}

.mine-profile-card,
.mine-memory-card,
.mine-recovery-card,
.mine-menu-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(126, 112, 91, 0.12);
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.76);
  box-shadow:
    0 18px 34px rgba(104, 92, 70, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.mine-profile-card {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  padding: 14px 16px;
  background:
    radial-gradient(circle at 86% 12%, rgba(160, 154, 217, 0.17), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(246, 241, 226, 0.78));
}

.mine-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 38% 26%, rgba(255, 255, 255, 0.95), transparent 42%),
    linear-gradient(145deg, #dfe8cf, #b4c294);
  color: #62764e;
  box-shadow:
    0 13px 24px rgba(104, 92, 70, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.mine-avatar .material-symbols-rounded {
  font-size: 34px;
  font-variation-settings:
    "FILL" 0,
    "wght" 360,
    "GRAD" 0,
    "opsz" 24;
}

.mine-profile-copy {
  min-width: 0;
}

.mine-profile-copy > span,
.mine-memory-card div > span,
.mine-recovery-card div > span {
  color: #7a72a8;
  font-size: 12px;
  font-weight: 700;
}

.mine-profile-copy p {
  margin: 6px 0 10px;
  color: #4c483f;
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.mine-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mine-profile-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(126, 112, 91, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 251, 0.6);
  color: rgba(76, 72, 63, 0.66);
  font-size: 12px;
}

.mine-profile-tags .material-symbols-rounded {
  color: #829465;
  font-size: 15px;
}

.mine-memory-card {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 104px;
  padding: 13px 16px;
}

.mine-memory-card img {
  position: absolute;
  right: -60px;
  bottom: -58px;
  width: 250px;
  opacity: 0.32;
  filter: saturate(0.9) brightness(0.96);
  pointer-events: none;
}

.mine-memory-card div {
  position: relative;
  z-index: 1;
  width: min(68%, 245px);
}

.mine-memory-card p {
  margin: 6px 0 10px;
  color: #4c483f;
  font-size: 13px;
  line-height: 1.42;
}

.mine-memory-card button {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #a29ad9, #8078bf);
  color: #fffaf7;
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow:
    0 10px 18px rgba(106, 99, 170, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.mine-recovery-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 12px 16px;
  background:
    radial-gradient(circle at 88% 22%, rgba(160, 154, 217, 0.13), transparent 34%),
    radial-gradient(circle at 16% 90%, rgba(136, 158, 102, 0.13), transparent 42%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.91), rgba(248, 245, 233, 0.75));
}

.mine-recovery-card div {
  min-width: 0;
}

.mine-recovery-card strong {
  display: block;
  margin-top: 4px;
  color: #506344;
  font-family: "Inter", "Noto Serif SC", serif;
  font-size: 21px;
  font-weight: 740;
  letter-spacing: 1.2px;
  line-height: 1.05;
}

.mine-recovery-card p {
  margin: 5px 0 0;
  color: rgba(76, 72, 63, 0.54);
  font-size: 12px;
  line-height: 1.35;
}

.mine-recovery-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(126, 112, 91, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 251, 0.68);
  color: #6d7f55;
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  font-weight: 700;
  box-shadow:
    0 10px 18px rgba(104, 92, 70, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.mine-recovery-card button .material-symbols-rounded {
  font-size: 17px;
}

.mine-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mine-stats-grid button {
  display: grid;
  place-items: center;
  min-height: 78px;
  padding: 8px 8px;
  border: 1px solid rgba(126, 112, 91, 0.1);
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.78);
  color: #4c483f;
  box-shadow:
    0 13px 24px rgba(104, 92, 70, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.mine-stats-grid .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: rgba(136, 158, 102, 0.14);
  color: #78905a;
  font-size: 18px;
}

.mine-stats-grid strong {
  margin-top: 5px;
  color: #514b42;
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  line-height: 1;
}

.mine-stats-grid small {
  margin-top: 3px;
  color: rgba(76, 72, 63, 0.52);
  font-size: 11px;
}

.mine-menu-card {
  display: grid;
  align-content: start;
  min-height: 0;
  padding: 6px 14px;
}

.mine-menu-card button {
  display: grid;
  grid-template-columns: 34px 1fr 20px;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border: 0;
  border-bottom: 1px solid rgba(121, 104, 76, 0.09);
  background: transparent;
  color: #4c483f;
  text-align: left;
}

.mine-soft-action:focus,
.mine-memory-card button:focus,
.mine-recovery-card button:focus,
.mine-stats-grid button:focus,
.mine-menu-card button:focus {
  outline: none;
}

.mine-soft-action:focus-visible,
.mine-memory-card button:focus-visible,
.mine-recovery-card button:focus-visible,
.mine-stats-grid button:focus-visible,
.mine-menu-card button:focus-visible {
  outline: 2px solid rgba(136, 158, 102, 0.34);
  outline-offset: 3px;
}

.mine-menu-card button:last-child {
  border-bottom: 0;
}

.mine-menu-card button > .material-symbols-rounded:first-child {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(136, 158, 102, 0.14);
  color: #78905a;
  font-size: 18px;
}

.mine-menu-card button > .material-symbols-rounded:last-child {
  color: rgba(76, 72, 63, 0.34);
  font-size: 20px;
}

.mine-menu-card strong {
  display: block;
  color: #514b42;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
}

.mine-menu-card small {
  display: block;
  margin-top: 2px;
  color: rgba(76, 72, 63, 0.5);
  font-size: 11px;
  line-height: 1.35;
}

.mine-feedback {
  margin: 0;
  padding: 0 8px;
  color: rgba(76, 72, 63, 0.52);
  font-size: 12px;
  line-height: 1.4;
}

.rooms-companion-card,
.rooms-more-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(126, 112, 91, 0.12);
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.76);
  box-shadow:
    0 18px 34px rgba(104, 92, 70, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.rooms-companion-card {
  display: block;
  min-height: 146px;
  padding: 18px 18px 16px;
}

.rooms-companion-card::before,
.rooms-companion-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rooms-companion-card::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.9) 0%, rgba(255, 253, 247, 0.68) 40%, rgba(255, 253, 247, 0.08) 70%, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
}

.rooms-companion-card::after {
  z-index: 2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -22px 34px rgba(111, 94, 64, 0.06);
}

.rooms-companion-card img {
  position: absolute;
  inset: -2px;
  z-index: 0;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
  object-position: 58% 50%;
  opacity: 0.96;
  filter: saturate(0.96) brightness(0.92) contrast(1.08);
  transform: none;
}

.rooms-companion-card div {
  position: relative;
  z-index: 3;
  align-self: center;
  width: min(58%, 220px);
  min-width: 0;
}

.rooms-companion-card span {
  color: #7a72a8;
  font-size: 12px;
  font-weight: 700;
}

.rooms-companion-card p {
  margin: 8px 0 12px;
  color: #4c483f;
  font-family: "Noto Serif SC", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.rooms-companion-card button {
  height: 38px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #a29ad9, #8078bf);
  color: #fffaf7;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow:
    0 10px 18px rgba(106, 99, 170, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.rooms-cluster {
  display: grid;
  gap: 10px;
}

.rooms-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.rooms-section-title p {
  font-size: 20px;
}

.rooms-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rooms-feature-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 188px;
  padding: 17px 15px;
  border: 1px solid rgba(126, 112, 91, 0.12);
  border-radius: 24px;
  text-align: left;
  box-shadow:
    0 16px 28px rgba(102, 90, 67, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.rooms-feature-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: 0;
  border-radius: inherit;
  background: var(--room-feature-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.rooms-feature-card-tarot {
  --room-feature-bg:
    linear-gradient(90deg, rgba(18, 29, 57, 0.86) 0%, rgba(18, 29, 57, 0.48) 54%, rgba(18, 29, 57, 0.1) 100%),
    url("./assets/qinghe/home_tarot_card_bg_v2.png");
  background: #16223d;
  color: #f4dfa6;
}

.rooms-feature-card-ledger {
  --room-feature-bg:
    linear-gradient(90deg, rgba(250, 253, 237, 0.9) 0%, rgba(240, 246, 222, 0.54) 52%, rgba(240, 246, 222, 0.12) 100%),
    url("./assets/qinghe/home_ledger_card_bg_v2.png");
  background: #eef2dc;
  color: #4f6044;
}

.rooms-room-kicker {
  position: relative;
  z-index: 2;
  display: block;
  color: currentColor;
  font-size: 12px;
  opacity: 0.78;
}

.rooms-feature-card strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 5px;
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  line-height: 1.05;
}

.rooms-feature-card .room-arrow {
  z-index: 3;
  right: 13px;
  bottom: 13px;
}

.rooms-more-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

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

.rooms-mini-grid button {
  --room-mini-icon-size: 30px;
  --room-mini-icon-gap: 8px;
  display: grid;
  grid-template-rows: var(--room-mini-icon-size) auto auto;
  align-content: start;
  justify-items: start;
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(126, 112, 91, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 251, 0.72);
  color: #4c483f;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.rooms-mini-grid [data-home-action="personality"] {
  background:
    radial-gradient(circle at 90% 8%, rgba(160, 154, 217, 0.15), transparent 34%),
    rgba(255, 255, 251, 0.76);
}

.rooms-mini-grid .material-symbols-rounded {
  display: grid;
  place-items: center;
  align-self: start;
  justify-self: start;
  width: var(--room-mini-icon-size);
  height: var(--room-mini-icon-size);
  margin: 0 0 var(--room-mini-icon-gap);
  border-radius: 12px;
  background: rgba(136, 158, 102, 0.14);
  color: #78905a;
  font-size: 18px;
  line-height: 1;
  vertical-align: top;
}

.rooms-mini-grid strong {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
}

.rooms-mini-grid small {
  display: block;
  margin-top: 3px;
  color: rgba(76, 72, 63, 0.52);
  font-size: 11px;
  line-height: 1.35;
}

.rooms-feedback {
  margin: 0;
  padding: 0 8px;
  color: rgba(76, 72, 63, 0.52);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-height: 850px) {
  .tarot-stage[data-state="rooms"] {
    padding: 18px 16px 10px;
  }

  .tarot-stage[data-state="rooms"] .qinghe-rooms-page {
    gap: 9px;
  }

  .rooms-page-top p {
    font-size: 29px;
  }

  .rooms-companion-card {
    min-height: 128px;
    padding: 14px 16px;
  }

  .rooms-companion-card img {
    width: calc(100% + 4px);
    height: calc(100% + 4px);
  }

  .rooms-companion-card p {
    margin-bottom: 10px;
    font-size: 15px;
  }

  .rooms-feature-card {
    min-height: 164px;
  }

  .rooms-more-card {
    padding: 13px;
  }

  .rooms-mini-grid button {
    min-height: 74px;
    padding: 10px;
  }
}

@media (max-height: 850px) {
  .tarot-stage[data-state="mine"] {
    padding: 18px 16px 10px;
  }

  .tarot-stage[data-state="mine"] .qinghe-mine-page {
    gap: 8px;
    padding-bottom: 116px;
    scroll-padding-bottom: 116px;
  }

  .mine-page-top p {
    font-size: 29px;
  }

  .mine-profile-card {
    min-height: 96px;
    padding: 13px;
    grid-template-columns: 58px 1fr;
  }

  .mine-avatar {
    width: 56px;
    height: 56px;
    border-radius: 21px;
  }

  .mine-profile-copy p {
    margin-bottom: 8px;
    font-size: 16px;
  }

  .mine-memory-card {
    min-height: 92px;
    padding: 13px 14px;
  }

  .mine-recovery-card {
    min-height: 82px;
    padding: 11px 14px;
  }

  .mine-stats-grid button {
    min-height: 68px;
    padding: 8px 6px;
  }

  .mine-menu-card {
    padding: 6px 12px;
  }

  .mine-menu-card button {
    min-height: 46px;
  }
}

/* Qinghe ledger v22: the tabbar belongs to the phone shell, not page content. */
.phone-shell > .qinghe-tabbar {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 14px;
  z-index: 12;
  display: grid;
  animation: none !important;
  transform: none !important;
  transition: none;
}

.phone-shell:has(.ledger-entry-sheet[aria-hidden="false"]) > .tarot-stage,
.phone-shell:has(.memory-sheet[aria-hidden="false"]) > .tarot-stage,
.phone-shell:has(.feature-sheet[aria-hidden="false"]) > .tarot-stage {
  z-index: 30;
}

.phone-shell:has(.ledger-entry-sheet[aria-hidden="false"]) > .qinghe-tabbar,
.phone-shell:has(.memory-sheet[aria-hidden="false"]) > .qinghe-tabbar,
.phone-shell:has(.feature-sheet[aria-hidden="false"]) > .qinghe-tabbar {
  pointer-events: none;
}

.phone-shell:has(.tarot-stage:not([data-state="home"]):not([data-state="ledger"]):not([data-state="rooms"]):not([data-state="mine"])) > .qinghe-tabbar {
  display: none;
}

.phone-shell:has(.tarot-stage[data-state="home"]) > .qinghe-tabbar,
.phone-shell:has(.tarot-stage[data-state="ledger"]) > .qinghe-tabbar,
.phone-shell:has(.tarot-stage[data-state="rooms"]) > .qinghe-tabbar,
.phone-shell:has(.tarot-stage[data-state="mine"]) > .qinghe-tabbar {
  border-color: rgba(166, 155, 124, 0.11);
  background: rgba(255, 253, 248, 0.88);
  box-shadow:
    0 -5px 16px rgba(104, 83, 53, 0.04),
    0 10px 22px rgba(109, 98, 77, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tarot-stage[data-state="home"],
.tarot-stage[data-state="rooms"],
.tarot-stage[data-state="pantry"],
.tarot-stage[data-state="ledger"],
.tarot-stage[data-state="mine"] {
  touch-action: pan-y;
}

/* Qinghe chat sheet v1: make the conversation breathe and keep input as a compact composer. */
.feature-sheet[data-feature="chat"] .feature-sheet-card {
  width: calc(100% - 22px);
  height: min(720px, calc(100% - 26px));
  min-height: min(610px, calc(100% - 26px));
  max-height: calc(100% - 26px);
  margin-bottom: 10px;
  padding: 10px 16px 24px;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.feature-sheet[data-feature="chat"] .feature-sheet-head {
  padding-top: 4px;
}

.feature-sheet[data-feature="chat"] .feature-sheet-body {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.feature-chat-shell {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 9px;
}

.feature-chat-log {
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 20px 4px 30px 0;
  overflow-y: auto;
  mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 100%);
}

.feature-chat-message {
  max-width: min(84%, 330px);
  padding: 12px 14px;
  border: 1px solid rgba(126, 112, 91, 0.075);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.8);
  box-shadow:
    0 12px 24px rgba(116, 105, 82, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  animation: qingheChatBubbleIn 360ms cubic-bezier(0.2, 0.82, 0.16, 1) both;
}

.feature-chat-message.is-user {
  max-width: min(72%, 265px);
  border-color: rgba(134, 158, 99, 0.1);
  border-radius: 18px 18px 8px 18px;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.36), transparent 42%),
    rgba(232, 238, 218, 0.9);
  box-shadow:
    0 10px 22px rgba(112, 131, 83, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.feature-chat-message:not(.is-user) {
  border-radius: 18px 18px 18px 8px;
}

.feature-sheet[data-feature="chat"] .feature-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  grid-template-areas:
    "input send"
    "status status";
  align-items: end;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(126, 112, 91, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.82), transparent 42%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.93), rgba(249, 246, 235, 0.9));
  box-shadow:
    0 -12px 28px rgba(111, 101, 78, 0.08),
    0 8px 20px rgba(116, 105, 82, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  margin-bottom: 2px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.feature-sheet[data-feature="chat"] .feature-chat-form::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: -7px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(126, 112, 91, 0.14), transparent);
  pointer-events: none;
}

.feature-sheet[data-feature="chat"] .feature-chat-form:has(.feature-chat-input:focus) {
  border-color: rgba(136, 158, 102, 0.22);
  box-shadow:
    0 -12px 28px rgba(111, 101, 78, 0.08),
    0 9px 24px rgba(116, 135, 89, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.feature-sheet[data-feature="chat"] .feature-input-wrap {
  grid-area: input;
  gap: 5px;
  min-width: 0;
}

.feature-sheet[data-feature="chat"] .feature-input-wrap span {
  padding-left: 2px;
  font-size: 11px;
}

.feature-sheet[data-feature="chat"] .feature-chat-input {
  height: 50px;
  min-height: 50px;
  max-height: 92px;
  padding: 10px 12px 9px;
  border-color: rgba(126, 112, 91, 0.11);
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.74);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.feature-sheet[data-feature="chat"] .feature-chat-input:focus {
  border-color: rgba(136, 158, 102, 0.26);
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 4px rgba(211, 224, 193, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.feature-sheet[data-feature="chat"] .feature-status {
  grid-area: status;
  min-height: 0;
  margin: -2px 2px 0;
  font-size: 11px;
}

.feature-sheet[data-feature="chat"] .feature-primary {
  grid-area: send;
  min-height: 50px;
  padding: 0 10px;
  border-radius: 18px;
  opacity: 0.76;
  white-space: nowrap;
  transform: translateY(0);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.feature-sheet[data-feature="chat"] .feature-chat-form.has-text .feature-primary {
  opacity: 1;
  box-shadow:
    0 10px 18px rgba(105, 124, 73, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.feature-sheet[data-feature="chat"] .feature-primary:active {
  transform: translateY(1px) scale(0.99);
}

@media (max-width: 390px) {
  .feature-sheet[data-feature="chat"] .feature-chat-form {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 7px;
    padding: 9px;
  }

  .feature-sheet[data-feature="chat"] .feature-primary {
    padding-inline: 9px;
    font-size: 12px;
  }
}

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

/* Qinghe home rooms polish v1: add a quiet paper-like stage without adding new function. */
.tarot-stage[data-state="home"] .today-rooms {
  position: relative;
  isolation: isolate;
  margin-top: 12px;
  padding: 0;
}

.tarot-stage[data-state="home"] .today-rooms::before {
  display: none;
}

.tarot-stage[data-state="home"] .today-rooms::after {
  display: none;
}

.tarot-stage[data-state="home"] .home-section-head {
  margin-bottom: 12px;
}

.tarot-stage[data-state="home"] .home-section-head p {
  font-size: 25px;
  line-height: 1.12;
}

.tarot-stage[data-state="home"] .home-section-head span {
  margin-top: 7px;
  font-size: 13px;
}

.tarot-stage[data-state="home"] .home-room-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 0;
  width: calc(100% - 10px);
  padding-right: 0;
}

.tarot-stage[data-state="home"] .home-room-card {
  min-height: 154px;
  overflow: hidden;
  border: 1px solid rgba(132, 124, 100, 0.12);
  border-radius: 18px;
  padding: 14px 8px 12px;
  background-size: cover;
  box-shadow:
    0 12px 24px rgba(111, 101, 78, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.tarot-stage[data-state="home"] .home-room-card::after {
  z-index: 3;
}

.tarot-stage[data-state="home"] .home-room-card:hover,
.tarot-stage[data-state="home"] .home-room-card:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 17px 32px rgba(111, 101, 78, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.tarot-stage[data-state="home"] .home-room-card:active {
  transform: translateY(1px);
}

.tarot-stage[data-state="home"] .room-title,
.tarot-stage[data-state="home"] .room-copy,
.tarot-stage[data-state="home"] .room-visual,
.tarot-stage[data-state="home"] .room-arrow {
  opacity: 1;
}

.tarot-stage[data-state="home"] .room-title,
.tarot-stage[data-state="home"] .room-copy {
  left: 8px;
  right: 7px;
  letter-spacing: 0;
}

.tarot-stage[data-state="home"] .room-title {
  top: 14px;
  font-size: 16px;
  line-height: 1.08;
  white-space: nowrap;
}

.tarot-stage[data-state="home"] .room-copy {
  top: 42px;
  font-size: 9px;
  line-height: 1.34;
  opacity: 0.86;
}

.tarot-stage[data-state="home"] .home-room-card img {
  right: -20px;
  bottom: -6px;
  width: 116px;
  height: 148px;
  object-fit: cover;
  filter: drop-shadow(0 12px 20px rgba(76, 61, 34, 0.17));
  transform: scale(1.04);
}

.tarot-stage[data-state="home"] .tarot-room-card .tarot-room-visual {
  right: -16px;
  bottom: -7px;
  width: 114px;
  height: 154px;
  object-fit: cover;
  transform: scale(1.05);
}

.tarot-stage[data-state="home"] .ledger-room-visual {
  right: -24px;
  bottom: -6px;
  width: 118px;
  height: 150px;
  transform: scale(1.05);
}

.tarot-stage[data-state="home"] .letter-room-visual {
  right: -22px;
  bottom: -6px;
  width: 120px;
  height: 150px;
  transform: scale(1.06);
}

.tarot-stage[data-state="home"] .dream-room-visual {
  inset: auto auto 35px 50%;
  width: 58px;
  height: 58px;
  font-size: 38px;
}

.tarot-stage[data-state="home"] .room-arrow {
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 36px;
  font-size: 22px;
  box-shadow:
    0 10px 18px rgba(99, 113, 79, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tarot-stage[data-state="home"] .more-rooms-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 31px;
  margin: 8px 12px 0 auto;
  padding: 6px 13px;
  border: 1px solid rgba(132, 124, 100, 0.1);
  border-radius: 999px;
  color: rgba(84, 78, 68, 0.72);
  background: rgba(255, 253, 247, 0.72);
  box-shadow:
    0 10px 18px rgba(118, 110, 88, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

@media (max-height: 850px) {
  .tarot-stage[data-state="home"] .today-rooms {
    padding-bottom: 0;
  }

  .tarot-stage[data-state="home"] .home-room-card {
    min-height: 146px;
  }

  .tarot-stage[data-state="home"] .room-title {
    font-size: 16px;
  }

  .tarot-stage[data-state="home"] .room-copy {
    top: 40px;
    font-size: 9px;
  }

  .tarot-stage[data-state="home"] .room-arrow {
    width: 34px;
    height: 34px;
  }
}

/* Keep Qinghe home room artwork full-bleed inside each card. */
.tarot-stage[data-state="home"] .home-room-card img.room-visual {
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  filter: none;
  transform: none;
}

.tarot-stage[data-state="home"] .tarot-room-card .tarot-room-visual,
.tarot-stage[data-state="home"] .ledger-room-visual,
.tarot-stage[data-state="home"] .letter-room-visual {
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  transform: none;
}

.tarot-stage[data-state="home"] .tarot-room-card .tarot-room-visual {
  object-position: center 54%;
}

.tarot-stage[data-state="home"] .ledger-room-visual {
  object-position: center 50%;
}

.tarot-stage[data-state="home"] .letter-room-visual {
  object-position: center 52%;
}

.tarot-stage[data-state="home"] .home-room-card::before {
  inset: 1px;
  border: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34% 72%, rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 14% 9%, rgba(255, 255, 255, 0.18), transparent 32%);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.12),
    inset 0 1px 7px rgba(255, 255, 255, 0.16),
    inset 0 -10px 18px rgba(255, 255, 255, 0.05);
}

.tarot-stage[data-state="home"] .home-room-card::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 42%, rgba(255, 255, 255, 0.14)),
    radial-gradient(circle at 18% 9%, rgba(255, 255, 255, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0 24%, rgba(255, 255, 255, 0.03) 58%, rgba(94, 82, 55, 0.05) 100%);
  backdrop-filter: blur(0.9px) saturate(1.05);
  -webkit-backdrop-filter: blur(0.9px) saturate(1.05);
}

.tarot-stage[data-state="home"] .tarot-room-card::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025) 45%, rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 18% 9%, rgba(255, 238, 186, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(5, 10, 24, 0.16) 0 28%, rgba(5, 10, 24, 0.03) 62%, rgba(1, 4, 14, 0.16) 100%);
  backdrop-filter: blur(0.7px) saturate(1.06);
  -webkit-backdrop-filter: blur(0.7px) saturate(1.06);
}

.tarot-stage[data-state="home"] .dream-room-card::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.16)),
    radial-gradient(circle at 24% 11%, rgba(255, 255, 255, 0.34), transparent 36%),
    linear-gradient(180deg, rgba(252, 250, 255, 0.15) 0 32%, rgba(235, 231, 251, 0.06) 64%, rgba(132, 119, 173, 0.08) 100%);
  backdrop-filter: blur(1px) saturate(1.05);
  -webkit-backdrop-filter: blur(1px) saturate(1.05);
}

/* Qinghe room-card polish: clearer artwork with soft glass edges. */
.tarot-stage[data-state="home"] .home-room-card {
  border-color: rgba(103, 95, 75, 0.1);
  box-shadow:
    0 12px 20px rgba(111, 101, 78, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.tarot-stage[data-state="home"] .home-room-card img.room-visual {
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  filter: saturate(1.03) contrast(1.035) brightness(1.01);
}

.tarot-stage[data-state="home"] .home-room-card::before {
  inset: 0;
  border: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 30% 74%, rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 16% 9%, rgba(255, 255, 255, 0.18), transparent 32%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 8px 14px rgba(255, 255, 255, 0.09),
    inset 0 -10px 18px rgba(60, 52, 35, 0.045);
}

.tarot-stage[data-state="home"] .home-room-card::after {
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.18) 0 25%, rgba(255, 253, 246, 0.035) 48%, rgba(70, 61, 42, 0.045) 100%),
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.18), transparent 34%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tarot-stage[data-state="home"] .tarot-room-card::after {
  background:
    linear-gradient(180deg, rgba(6, 10, 24, 0.1) 0 28%, rgba(6, 10, 24, 0.015) 58%, rgba(1, 4, 14, 0.18) 100%),
    radial-gradient(circle at 18% 9%, rgba(255, 232, 166, 0.1), transparent 35%);
}

.tarot-stage[data-state="home"] .dream-room-card::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0 32%, rgba(244, 241, 255, 0.04) 62%, rgba(117, 103, 164, 0.08) 100%),
    radial-gradient(circle at 44% 45%, rgba(255, 249, 210, 0.22), transparent 38%),
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.2), transparent 34%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tarot-stage[data-state="home"] .room-title {
  text-shadow: 0 1px 8px rgba(255, 252, 242, 0.72);
}

.tarot-stage[data-state="home"] .tarot-room-card .room-title,
.tarot-stage[data-state="home"] .tarot-room-card .room-copy {
  text-shadow:
    0 1px 1px rgba(4, 7, 18, 0.42),
    0 8px 18px rgba(4, 7, 18, 0.18);
}

.tarot-stage[data-state="home"] .room-arrow {
  right: 9px;
  bottom: 9px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  box-shadow:
    0 8px 16px rgba(72, 66, 50, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.tarot-stage[data-state="home"] .tarot-room-card .room-arrow {
  background: rgba(25, 36, 64, 0.86);
}

.tarot-stage[data-state="home"] .ledger-room-card .room-arrow {
  background: rgba(116, 139, 86, 0.82);
}

.tarot-stage[data-state="home"] .letter-room-card .room-arrow,
.tarot-stage[data-state="home"] .dream-room-card .room-arrow {
  background: rgba(126, 115, 178, 0.82);
}

@media (min-height: 880px) {
  .phone-shell > .qinghe-tabbar {
    bottom: 20px;
  }
}

@media (max-height: 850px) {
  .phone-shell > .qinghe-tabbar {
    bottom: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qinghe-home *,
  .qinghe-home,
  .qinghe-rooms-page,
  .qinghe-rooms-page *,
  .qinghe-pantry-page,
  .qinghe-pantry-page *,
  .qinghe-mine-page,
  .qinghe-mine-page *,
  .qinghe-ledger-page,
  .qinghe-ledger-page *,
  .ledger-entry-sheet,
  .ledger-entry-sheet *,
  .memory-sheet,
  .memory-sheet *,
  .lingbai-hero-art,
  .lingbai-chat-cta::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* Qinghe monthly journal V1 */
.feature-sheet[data-feature="monthly-journal"] .feature-sheet-card {
  width: calc(100% - 10px);
  height: calc(100% - 14px);
  max-height: calc(100% - 14px);
  margin-bottom: 6px;
  padding: 9px 10px 12px;
  border-radius: 24px;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.feature-sheet[data-feature="monthly-journal"] .feature-sheet-body {
  min-height: 0;
  overflow: hidden;
}

.monthly-journal-shell {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
}

.monthly-journal-topbar {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.monthly-journal-topbar strong,
.monthly-journal-topbar span {
  display: block;
}

.monthly-journal-topbar strong {
  color: #4c5945;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  line-height: 1.2;
}

.monthly-journal-topbar span {
  margin-top: 2px;
  color: rgba(76, 72, 63, 0.5);
  font-size: 10.5px;
  line-height: 1.25;
}

.monthly-icon-button,
.monthly-save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
}

.monthly-icon-button {
  width: 36px;
  height: 36px;
  background: rgba(255, 253, 247, 0.78);
  color: #72855b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.monthly-save-button {
  min-height: 36px;
  padding: 0 11px;
  background: linear-gradient(180deg, #a3b983, #80975f);
  color: #fffaf4;
  box-shadow:
    0 10px 18px rgba(103, 125, 76, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.monthly-icon-button .material-symbols-rounded,
.monthly-save-button .material-symbols-rounded {
  font-size: 18px;
}

.monthly-journal-board-wrap {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px 0;
  scrollbar-width: none;
}

.monthly-journal-board-wrap::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.monthly-journal-board {
  position: relative;
  width: min(100%, calc((100vh - 285px) * 0.675));
  min-width: 292px;
  max-width: 430px;
  aspect-ratio: 1080 / 1600;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 10%, rgba(223, 233, 211, 0.68), transparent 28%),
    radial-gradient(circle at 84% 94%, rgba(216, 232, 236, 0.46), transparent 26%),
    linear-gradient(180deg, #f7f2e6, #fbf7ef);
  color: #46503f;
  box-shadow:
    0 18px 34px rgba(104, 92, 70, 0.18),
    0 0 0 1px rgba(126, 112, 91, 0.16);
  transform-origin: center;
  container-type: size;
}

.monthly-paper-texture {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(125, 112, 91, 0.12) 0 0.7px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34), transparent 40%);
  background-size: 17px 19px, 100% 100%;
}

.monthly-board-hero,
.monthly-weather-card,
.monthly-keyword-row,
.monthly-journal-grid,
.monthly-lingbai-note {
  position: absolute;
  z-index: 1;
}

.monthly-board-hero {
  left: 10.6%;
  top: 5.6%;
  width: 72%;
}

.monthly-board-hero span,
.monthly-weather-card span,
.monthly-lingbai-note span {
  display: block;
  color: #7d74aa;
  font-size: 2.4cqw;
  font-weight: 700;
}

.monthly-board-hero h2 {
  margin: 2.2% 0 0;
  color: #46503f;
  font-family: "Noto Serif SC", serif;
  font-size: 5.8cqw;
  line-height: 1.18;
  letter-spacing: 0;
}

.monthly-board-hero p {
  margin: 2.4% 0 0;
  color: rgba(70, 80, 63, 0.58);
  font-size: 2.5cqw;
}

.monthly-weather-card {
  left: 8.5%;
  top: 20.6%;
  width: 83%;
  min-height: 13%;
  padding: 4.2%;
  border: 1px solid rgba(130, 148, 106, 0.16);
  border-radius: 6px;
  background: rgba(255, 253, 246, 0.78);
}

.monthly-weather-card strong {
  display: block;
  margin-top: 2%;
  color: #526447;
  font-family: "Noto Serif SC", serif;
  font-size: 5cqw;
  line-height: 1.1;
}

.monthly-weather-card p,
.monthly-journal-grid p,
.monthly-lingbai-note p {
  margin: 2.2% 0 0;
  color: rgba(72, 72, 62, 0.68);
  font-size: 2.55cqw;
  line-height: 1.5;
}

.monthly-keyword-row {
  left: 11.5%;
  right: 11%;
  top: 38.2%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.8%;
}

.monthly-keyword-row b {
  min-width: 0;
  padding: 8.5% 5%;
  border-radius: 999px;
  background: #edf3e5;
  color: #61764c;
  font-family: "Noto Serif SC", serif;
  font-size: 2.65cqw;
  line-height: 1;
  text-align: center;
}

.monthly-journal-grid {
  left: 8.6%;
  right: 8.6%;
  top: 48%;
  display: grid;
  gap: 2.1cqw;
}

.monthly-journal-grid article {
  display: grid;
  grid-template-columns: 7.4cqw minmax(0, 1fr);
  gap: 2.4cqw;
  height: 12.2cqw;
  padding: 3.3%;
  border: 1px solid rgba(126, 112, 91, 0.12);
  border-radius: 6px;
  background: rgba(255, 253, 246, 0.74);
  overflow: hidden;
}

.monthly-journal-grid .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 7.2cqw;
  height: 7.2cqw;
  border-radius: 2.4cqw;
  background: rgba(136, 158, 102, 0.14);
  color: #78905a;
  font-size: 4cqw;
}

.monthly-journal-grid strong {
  display: block;
  color: #4f5948;
  font-family: "Noto Serif SC", serif;
  font-size: 2.75cqw;
  line-height: 1.2;
}

.monthly-journal-grid p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.monthly-lingbai-note {
  left: 11.2%;
  right: 11.2%;
  bottom: 7.2%;
  padding: 4%;
  border: 1px dashed rgba(130, 148, 106, 0.28);
  border-radius: 7px;
  background: rgba(251, 248, 239, 0.78);
}

.monthly-lingbai-note p {
  color: #4d5548;
  font-family: "Noto Serif SC", serif;
  font-size: 3.1cqw;
}

.monthly-sticker-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.monthly-journal-sticker {
  position: absolute;
  left: var(--sticker-left);
  top: var(--sticker-top);
  display: grid;
  place-items: center;
  width: calc(8cqw * var(--sticker-scale));
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 30%;
  background: #dfe9d3;
  color: rgba(72, 84, 62, 0.78);
  box-shadow: 0 6px 12px rgba(104, 92, 70, 0.12);
  cursor: grab;
  touch-action: none;
  transform: translate(-50%, -50%) rotate(var(--sticker-rotation));
  transition:
    box-shadow 160ms ease,
    outline-color 160ms ease;
}

.monthly-journal-sticker[data-sticker-type="flower"] { background: #f3d8d8; }
.monthly-journal-sticker[data-sticker-type="star"] { background: #efe3a8; }
.monthly-journal-sticker[data-sticker-type="moon"] { background: #d7e2ef; }
.monthly-journal-sticker[data-sticker-type="letter"] { background: #f1e5d7; }
.monthly-journal-sticker[data-sticker-type="tarot"] { background: #dad6ee; }
.monthly-journal-sticker[data-sticker-type="tea"] { background: #ead9c3; }
.monthly-journal-sticker[data-sticker-type="book"] { background: #d5e0d4; }
.monthly-journal-sticker[data-sticker-type="tape"] { background: #e7e2bd; }
.monthly-journal-sticker[data-sticker-type="note"] { background: #f2eecb; }
.monthly-journal-sticker[data-sticker-type="window"] { background: #d8e8ec; }
.monthly-journal-sticker[data-sticker-type="sprout"] { background: #d6ead2; }

.monthly-journal-sticker .material-symbols-rounded {
  font-size: calc(4.8cqw * var(--sticker-scale));
  line-height: 1;
}

.monthly-journal-sticker.is-selected {
  outline: 2px solid rgba(122, 114, 168, 0.72);
  outline-offset: 3px;
}

.monthly-journal-sticker.is-dragging {
  cursor: grabbing;
  box-shadow: 0 12px 22px rgba(104, 92, 70, 0.22);
}

.monthly-journal-sticker.is-warning {
  outline: 2px solid rgba(164, 95, 78, 0.78);
  outline-offset: 4px;
}

.monthly-editor-panel {
  display: grid;
  gap: 8px;
}

.monthly-sticker-palette,
.monthly-selected-tools,
.monthly-editor-actions {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.monthly-sticker-palette::-webkit-scrollbar,
.monthly-selected-tools::-webkit-scrollbar,
.monthly-editor-actions::-webkit-scrollbar {
  display: none;
}

.monthly-sticker-palette button,
.monthly-selected-tools button,
.monthly-editor-actions button {
  flex: 0 0 auto;
  border: 1px solid rgba(126, 112, 91, 0.12);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.82);
  color: #657852;
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.monthly-sticker-palette button,
.monthly-selected-tools button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 36px;
}

.monthly-sticker-palette .material-symbols-rounded,
.monthly-selected-tools .material-symbols-rounded {
  font-size: 19px;
}

.monthly-editor-actions button {
  min-height: 34px;
  padding: 0 12px;
  color: #7a72a8;
  font-size: 12px;
}

.monthly-selected-tools button:disabled {
  opacity: 0.42;
}

.monthly-journal-status {
  margin: 0;
  min-height: 18px;
  padding-bottom: 2px;
  font-size: 11px;
  line-height: 1.2;
}

.monthly-journal-status.is-warning {
  color: #9a5b51;
}

/* Qinghe mine memory v1: keep memory content readable, with Lingbai as quiet background. */
.tarot-stage[data-state="mine"] .mine-memory-card {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 126px;
  padding: 17px 18px 16px;
  background:
    radial-gradient(circle at 90% 46%, rgba(160, 154, 217, 0.1), transparent 34%),
    radial-gradient(circle at 12% 95%, rgba(136, 158, 102, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.92), rgba(249, 246, 236, 0.8));
}

.tarot-stage[data-state="mine"] .mine-memory-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 50px;
  height: 1px;
  background: linear-gradient(90deg, rgba(126, 112, 91, 0.08), transparent 72%);
  pointer-events: none;
}

.tarot-stage[data-state="mine"] .mine-memory-card img {
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  opacity: 0.24;
  filter: saturate(0.82) brightness(1.08) contrast(0.98);
  box-shadow: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 33%, rgba(0, 0, 0, 0.32) 50%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0 33%, rgba(0, 0, 0, 0.32) 50%, #000 100%);
}

.tarot-stage[data-state="mine"] .mine-memory-card div {
  display: grid;
  align-content: start;
  justify-items: start;
  width: min(100%, 330px);
  min-height: 92px;
}

.tarot-stage[data-state="mine"] .mine-memory-card div > span {
  color: #7a72a8;
  font-size: 12px;
  line-height: 1.2;
}

.tarot-stage[data-state="mine"] .mine-memory-card p {
  width: min(100%, 292px);
  min-height: 40px;
  margin: 7px 0 14px;
  color: rgba(76, 72, 63, 0.78);
  font-size: 14px;
  line-height: 1.52;
}

.tarot-stage[data-state="mine"] .mine-memory-card button {
  height: 35px;
  padding: 0 16px;
}

/* Qinghe subpage clipping fix: keep secondary pages scrollable above the shell tabbar. */
.tarot-stage[data-state="rooms"],
.tarot-stage[data-state="mine"] {
  overflow: hidden;
}

.tarot-stage[data-state="rooms"] .qinghe-rooms-page,
.tarot-stage[data-state="mine"] .qinghe-mine-page {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.tarot-stage[data-state="rooms"] .qinghe-rooms-page::-webkit-scrollbar,
.tarot-stage[data-state="mine"] .qinghe-mine-page::-webkit-scrollbar {
  display: none;
}

.tarot-stage[data-state="rooms"] .qinghe-rooms-page {
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  align-content: start;
  padding-bottom: 138px;
  scroll-padding-bottom: 138px;
}

.tarot-stage[data-state="mine"] .qinghe-mine-page {
  padding-bottom: 146px;
  scroll-padding-bottom: 146px;
}

.rooms-more-card {
  overflow: visible;
}

.mine-menu-card {
  overflow: hidden;
}

.mine-menu-card {
  margin-bottom: 4px;
  min-height: 194px;
}

.mine-feedback,
.rooms-feedback {
  padding-bottom: 8px;
}

@media (max-height: 850px) {
  .tarot-stage[data-state="rooms"] .qinghe-rooms-page {
    padding-bottom: 132px;
    scroll-padding-bottom: 132px;
  }

  .tarot-stage[data-state="mine"] .qinghe-mine-page {
    padding-bottom: 142px;
    scroll-padding-bottom: 142px;
  }

  .rooms-mini-grid button {
    min-height: 82px;
  }
}

@media (max-height: 930px) {
  .tarot-stage[data-state="rooms"] .qinghe-rooms-page {
    gap: 9px;
    padding-bottom: 126px;
    scroll-padding-bottom: 126px;
  }

  .rooms-companion-card {
    min-height: 124px;
    padding: 14px 16px;
  }

  .rooms-companion-card p {
    margin-bottom: 9px;
    font-size: 15px;
  }

  .rooms-feature-card {
    min-height: 150px;
    padding: 14px;
  }

  .rooms-feature-card strong {
    font-size: 22px;
  }

  .rooms-more-card {
    gap: 10px;
    padding: 13px;
    border-radius: 22px;
  }

  .rooms-mini-grid {
    gap: 9px;
  }

  .rooms-mini-grid button {
    --room-mini-icon-size: 26px;
    --room-mini-icon-gap: 5px;
    min-height: 70px;
    padding: 9px 10px;
    border-radius: 16px;
  }

  .rooms-mini-grid .material-symbols-rounded {
    width: var(--room-mini-icon-size);
    height: var(--room-mini-icon-size);
    margin-bottom: var(--room-mini-icon-gap);
    border-radius: 10px;
    font-size: 17px;
  }

  .rooms-mini-grid strong {
    font-size: 14px;
  }

  .rooms-mini-grid small {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.25;
  }

  .rooms-feedback {
    padding-bottom: 18px;
  }

  .tarot-stage[data-state="mine"] .qinghe-mine-page {
    gap: 8px;
    padding-bottom: 136px;
    scroll-padding-bottom: 136px;
  }

  .mine-profile-card {
    min-height: 94px;
    padding: 13px;
    grid-template-columns: 58px 1fr;
  }

  .mine-avatar {
    width: 56px;
    height: 56px;
    border-radius: 21px;
  }

  .mine-profile-copy p {
    margin-bottom: 8px;
    font-size: 16px;
  }

  .tarot-stage[data-state="mine"] .mine-memory-card {
    min-height: 118px;
    padding: 14px 15px;
  }

  .tarot-stage[data-state="mine"] .mine-memory-card p {
    max-width: 74%;
    font-size: 14px;
    line-height: 1.48;
  }

  .mine-recovery-card {
    min-height: 88px;
    padding: 12px 14px;
  }

  .mine-stats-grid button {
    min-height: 68px;
    padding: 8px 6px;
    border-radius: 18px;
  }

  .mine-menu-card {
    min-height: 190px;
    padding: 5px 12px;
    border-radius: 22px;
  }

  .mine-menu-card button {
    min-height: 45px;
    grid-template-columns: 32px 1fr 18px;
  }

  .mine-menu-card button > .material-symbols-rounded:first-child {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    font-size: 17px;
  }

  .mine-feedback {
    min-height: 18px;
    margin-top: 1px;
    padding: 0 8px 22px;
    font-size: 11px;
    line-height: 1.25;
  }
}

@media (max-height: 930px) and (max-width: 520px) {
  .tarot-stage[data-state="mine"] .mine-feedback {
    opacity: 0;
    pointer-events: none;
  }
}

/* Qinghe visual fix: keep notification dot off the bell and restore ledger decor. */
.tarot-stage[data-state="home"] .qinghe-icon-button::after,
.qinghe-icon-button::after {
  top: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  transform: translate(22%, -18%);
}

.ledger-overview-card {
  isolation: isolate;
}

.ledger-overview-decor {
  display: block;
  z-index: 0;
  right: 10px;
  bottom: 16px;
  width: 118px;
  max-width: 34%;
  opacity: 0.22;
  filter: saturate(0.74) brightness(1.05);
  mix-blend-mode: multiply;
  transform: none;
}

.ledger-overview-head,
.ledger-overview-total,
.ledger-overview-grid {
  z-index: 1;
}

@media (max-width: 430px) {
  .ledger-overview-decor {
    right: 8px;
    bottom: 18px;
    width: 112px;
    max-width: 35%;
  }
}

/* Qinghe subpage fit fix: keep room and mine endings clear of the tabbar. */
@media (max-height: 930px) and (max-width: 680px) {
  .tarot-stage[data-state="rooms"] .qinghe-rooms-page {
    padding-bottom: 150px;
    scroll-padding-bottom: 150px;
  }

  .tarot-stage[data-state="rooms"] .rooms-more-card {
    gap: 9px;
    padding: 13px 14px 14px;
  }

  .tarot-stage[data-state="rooms"] .rooms-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .tarot-stage[data-state="rooms"] .rooms-mini-grid button {
    --room-mini-icon-size: 25px;
    --room-mini-icon-gap: 5px;
    min-height: 74px;
    padding: 9px 9px 8px;
  }

  .tarot-stage[data-state="rooms"] .rooms-mini-grid .material-symbols-rounded {
    width: var(--room-mini-icon-size);
    height: var(--room-mini-icon-size);
    margin-bottom: var(--room-mini-icon-gap);
    font-size: 16px;
  }

  .tarot-stage[data-state="rooms"] .rooms-mini-grid strong {
    font-size: 13px;
    line-height: 1.15;
  }

  .tarot-stage[data-state="rooms"] .rooms-mini-grid small {
    font-size: 10px;
    line-height: 1.2;
  }

  .tarot-stage[data-state="rooms"] .rooms-feedback {
    opacity: 0;
    pointer-events: none;
  }

  .tarot-stage[data-state="mine"] .qinghe-mine-page {
    padding-bottom: 152px;
    scroll-padding-bottom: 152px;
  }

  .tarot-stage[data-state="mine"] .mine-menu-card {
    margin-bottom: 12px;
  }

  .tarot-stage[data-state="mine"] .mine-feedback {
    opacity: 0;
    pointer-events: none;
  }
}

/* Qinghe rooms hero lift: make the first screen feel less bottom-heavy. */
@media (max-height: 930px) and (max-width: 680px) {
  .tarot-stage[data-state="rooms"] .qinghe-rooms-page {
    gap: 8px;
  }

  .tarot-stage[data-state="rooms"] .rooms-page-top span {
    margin-top: 4px;
  }

  .tarot-stage[data-state="rooms"] .rooms-companion-card {
    min-height: 108px;
    padding: 12px 15px 11px;
    border-radius: 21px;
  }

  .tarot-stage[data-state="rooms"] .rooms-companion-card img {
    inset: -12px -4px 0;
    width: calc(100% + 8px);
    height: calc(100% + 18px);
    object-position: 60% 36%;
  }

  .tarot-stage[data-state="rooms"] .rooms-companion-card div {
    transform: translateY(-3px);
    width: min(60%, 218px);
  }

  .tarot-stage[data-state="rooms"] .rooms-companion-card p {
    margin: 6px 0 9px;
    font-size: 15px;
    line-height: 1.36;
  }

  .tarot-stage[data-state="rooms"] .rooms-companion-card button {
    height: 34px;
    padding: 0 15px;
    font-size: 13px;
  }
}

/* Qinghe rooms hero button lift: keep the CTA attached to the copy group. */
@media (max-height: 930px) and (max-width: 680px) {
  .tarot-stage[data-state="rooms"] .rooms-companion-card button {
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
    transform: translateY(-7px);
    box-shadow:
      0 7px 13px rgba(106, 99, 170, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.42);
  }
}

/* Qinghe rooms CTA cleanup: move by layout, not transform, and remove dirty shadow residue. */
@media (max-height: 930px) and (max-width: 680px) {
  .tarot-stage[data-state="rooms"] .rooms-companion-card p {
    margin-bottom: 3px;
  }

  .tarot-stage[data-state="rooms"] .rooms-companion-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 31px;
    margin-top: -3px;
    padding: 0 14px;
    transform: none;
    background: linear-gradient(180deg, #9f96d9, #7f75c2);
    box-shadow:
      0 4px 8px rgba(106, 99, 170, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.42);
  }
}

/* Qinghe rooms CTA final: apply the lifted button in every rooms viewport. */
.tarot-stage[data-state="rooms"] .rooms-companion-card p {
  margin-bottom: 4px;
}

.tarot-stage[data-state="rooms"] .rooms-companion-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  margin-top: -5px;
  padding: 0 15px;
  transform: none;
  box-shadow:
    0 4px 8px rgba(106, 99, 170, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.home-pantry-alert {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 13px;
  border: 1px solid rgba(126, 112, 91, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.92), rgba(238, 246, 229, 0.82)),
    #fbfbf3;
  box-shadow:
    0 12px 24px rgba(91, 112, 76, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.home-pantry-alert[hidden] {
  display: none;
}

.home-pantry-alert > .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: rgba(126, 151, 100, 0.14);
  color: #6f8653;
  font-size: 20px;
}

.home-pantry-alert p {
  margin: 0;
  color: #4c483f;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

/* Qinghe rooms feature cards: clean up the muddy bottom shadow. */
.tarot-stage[data-state="rooms"] .rooms-feature-card {
  border-color: rgba(126, 112, 91, 0.1);
  box-shadow:
    0 6px 14px rgba(104, 92, 70, 0.055),
    0 1px 0 rgba(255, 255, 255, 0.64),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.tarot-stage[data-state="rooms"] .rooms-feature-card .room-arrow {
  box-shadow:
    0 5px 10px rgba(77, 64, 45, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

/* Qinghe rooms feature edge cleanup: keep image fill inside the rounded corner. */
.tarot-stage[data-state="rooms"] .rooms-feature-card::before {
  inset: 0;
  border-radius: calc(24px - 1px);
  background-clip: padding-box;
}

.tarot-stage[data-state="rooms"] .rooms-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(126, 112, 91, 0.06);
  pointer-events: none;
}

.tarot-stage[data-state="rooms"] .rooms-room-kicker,
.tarot-stage[data-state="rooms"] .rooms-feature-card strong {
  z-index: 2;
}

.tarot-stage[data-state="rooms"] .rooms-feature-card .room-arrow {
  z-index: 3;
}

.home-pantry-alert button {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #7f9664;
  color: #fffdf7;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.rooms-mini-grid [data-home-action="pantry"] {
  background:
    linear-gradient(135deg, rgba(255, 255, 251, 0.82), rgba(237, 247, 230, 0.86)),
    #fbfbf4;
}

/* Qinghe rooms feature fill: remove the inner white strip on the card edge. */
.tarot-stage[data-state="rooms"] .rooms-feature-card::before {
  inset: -1px;
  border-radius: inherit;
}

.tarot-stage[data-state="rooms"] .rooms-feature-card-ledger {
  background: #edf2df;
  color: #405a3c;
}

.tarot-stage[data-state="rooms"] .rooms-feature-card-ledger::before {
  inset: -2px;
  background:
    linear-gradient(90deg, rgba(239, 246, 225, 0.94) 0%, rgba(239, 246, 225, 0.72) 46%, rgba(239, 246, 225, 0.12) 100%),
    url("./assets/qinghe/home_ledger_card_bg_v2.png");
  background-position: center, 56% 63%;
  background-size: cover, 128% auto;
}

.tarot-stage[data-state="rooms"] .rooms-feature-card-ledger::after {
  background:
    linear-gradient(
      90deg,
      rgba(239, 246, 225, 0.18) 0%,
      rgba(239, 246, 225, 0.04) 56%,
      rgba(237, 242, 223, 0.62) 100%
    ),
    radial-gradient(circle at 88% 86%, rgba(141, 157, 104, 0.1), transparent 34%);
  box-shadow:
    inset 0 0 0 1px rgba(138, 154, 104, 0.12),
    inset 0 -1px 0 rgba(126, 112, 91, 0.05);
}

/* Qinghe rooms tarot card crop: hide the bright edge baked into the artwork. */
.tarot-stage[data-state="rooms"] .rooms-feature-card-tarot {
  background: #16223d;
  border-color: rgba(36, 42, 68, 0.34);
}

.tarot-stage[data-state="rooms"] .rooms-feature-card-tarot::before {
  inset: -3px;
  background:
    linear-gradient(90deg, rgba(18, 29, 57, 0.82) 0%, rgba(18, 29, 57, 0.46) 54%, rgba(18, 29, 57, 0.1) 100%),
    url("./assets/qinghe/home_tarot_card_bg_v2.png");
  background-position: center, 51% 55%;
  background-size: cover, 138% auto;
}

/* Qinghe home expanded mood scroll: keep the lower content reachable. */
.tarot-stage[data-state="home"] {
  overflow: hidden;
}

.tarot-stage[data-state="home"] .qinghe-home {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 156px;
  scroll-padding-bottom: 156px;
  scrollbar-width: none;
}

.tarot-stage[data-state="home"] .qinghe-home::-webkit-scrollbar {
  display: none;
}

.tarot-stage[data-state="home"] .qinghe-home::after {
  content: "";
  display: block;
  grid-column: 1 / -1;
  min-height: 112px;
}

.tarot-stage[data-state="home"] .home-mood-card.is-expanded {
  min-height: 420px;
}

.tarot-stage[data-state="home"] .home-mood-card.is-expanded ~ .today-rooms {
  margin-top: 14px;
}

@media (max-height: 850px) {
  .tarot-stage[data-state="home"] .home-mood-card.is-expanded {
    min-height: 404px;
  }
}

.tarot-stage[data-state="home"] .home-mood-card.is-expanded ~ .today-ledger {
  min-height: 154px;
}

/* Qinghe rooms mini cards: keep secondary entries in one calm green palette. */
.tarot-stage[data-state="rooms"] .rooms-more-card {
  background:
    linear-gradient(180deg, rgba(255, 254, 249, 0.82), rgba(250, 251, 242, 0.78)),
    rgba(255, 253, 247, 0.76);
}

.tarot-stage[data-state="rooms"] .rooms-mini-grid button,
.tarot-stage[data-state="rooms"] .rooms-mini-grid [data-home-action="pantry"],
.tarot-stage[data-state="rooms"] .rooms-mini-grid [data-home-action="personality"] {
  border-color: rgba(126, 112, 91, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 251, 0.78), rgba(249, 250, 239, 0.68)),
    #fbfaf2;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.tarot-stage[data-state="rooms"] .rooms-mini-grid button:hover,
.tarot-stage[data-state="rooms"] .rooms-mini-grid button:focus-visible {
  border-color: rgba(126, 151, 100, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 251, 0.86), rgba(244, 249, 234, 0.76)),
    #fbfaf2;
}

.tarot-stage[data-state="rooms"] .rooms-mini-grid button:active {
  transform: translateY(1px);
}

.tarot-stage[data-state="rooms"] .rooms-mini-grid .material-symbols-rounded {
  background:
    linear-gradient(180deg, rgba(237, 244, 224, 0.96), rgba(225, 235, 209, 0.92));
  color: #748a57;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 4px 8px rgba(116, 138, 87, 0.08);
}

.tarot-stage[data-state="rooms"] .rooms-mini-grid strong {
  color: #4f5547;
}

.tarot-stage[data-state="rooms"] .rooms-mini-grid small {
  color: rgba(76, 72, 63, 0.5);
}

/* Qinghe mine layout: make the page read as profile -> summary -> tools. */
.tarot-stage[data-state="mine"] .qinghe-mine-page {
  gap: 10px;
  padding-bottom: 196px;
  scroll-padding-bottom: 196px;
}

.tarot-stage[data-state="mine"] .mine-page-top {
  order: 0;
}

.tarot-stage[data-state="mine"] .mine-profile-card {
  order: 1;
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 102px;
  padding: 13px 14px 16px;
  border-radius: 24px;
  background:
    linear-gradient(105deg, rgba(255, 253, 248, 0.9), rgba(250, 247, 239, 0.7)),
    rgba(255, 253, 247, 0.78);
}

.tarot-stage[data-state="mine"] .mine-avatar {
  width: 54px;
  height: 54px;
  border-radius: 19px;
}

.tarot-stage[data-state="mine"] .mine-avatar .material-symbols-rounded {
  font-size: 30px;
}

.tarot-stage[data-state="mine"] .mine-profile-copy p {
  margin: 4px 0 6px;
  font-size: 16px;
  line-height: 1.36;
}

.tarot-stage[data-state="mine"] .mine-profile-tags {
  gap: 6px;
  transform: translateY(-1px);
}

.tarot-stage[data-state="mine"] .mine-profile-tags span {
  height: 24px;
  padding: 0 8px;
  background: rgba(255, 255, 251, 0.68);
}

.tarot-stage[data-state="mine"] .mine-stats-grid {
  order: 2;
  gap: 0;
  padding: 7px 6px;
  border: 1px solid rgba(126, 112, 91, 0.09);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.84), rgba(250, 248, 240, 0.66)),
    rgba(255, 253, 247, 0.7);
  box-shadow:
    0 10px 22px rgba(104, 92, 70, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.tarot-stage[data-state="mine"] .mine-stats-grid button {
  position: relative;
  min-height: 59px;
  padding: 5px 4px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.tarot-stage[data-state="mine"] .mine-stats-grid button + button {
  border-left: 1px solid rgba(126, 112, 91, 0.08);
}

.tarot-stage[data-state="mine"] .mine-stats-grid .material-symbols-rounded {
  width: 28px;
  height: 28px;
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(237, 244, 224, 0.96), rgba(225, 235, 209, 0.9));
}

.tarot-stage[data-state="mine"] .mine-stats-grid strong {
  margin-top: 3px;
  font-size: 17px;
}

.tarot-stage[data-state="mine"] .mine-memory-card {
  order: 3;
  min-height: 132px;
  padding: 15px 16px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.94) 0%, rgba(255, 253, 247, 0.82) 58%, rgba(247, 242, 234, 0.5) 100%),
    radial-gradient(circle at 88% 50%, rgba(160, 154, 217, 0.12), transparent 36%);
}

.tarot-stage[data-state="mine"] .mine-memory-card::before {
  left: 16px;
  right: 16px;
  bottom: 48px;
  background: linear-gradient(90deg, rgba(126, 112, 91, 0.08), transparent 64%);
}

.tarot-stage[data-state="mine"] .mine-memory-card img {
  inset: auto 10px 0 auto;
  width: 132px;
  height: 112px;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0.18;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.22) 26%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.22) 26%, #000 100%);
}

.tarot-stage[data-state="mine"] .mine-memory-card div {
  width: min(100%, 300px);
  min-height: 102px;
}

.tarot-stage[data-state="mine"] .mine-memory-card p {
  width: min(100%, 250px);
  max-width: min(100%, 250px);
  min-height: 42px;
  margin: 6px 0 10px;
  font-size: 14px;
  line-height: 1.48;
  overflow: hidden;
}

.tarot-stage[data-state="mine"] .mine-memory-card button {
  height: 34px;
  padding: 0 15px;
  background: linear-gradient(180deg, #93aa73, #7f9664);
  box-shadow:
    0 10px 18px rgba(111, 137, 82, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.tarot-stage[data-state="mine"] .mine-recovery-card {
  order: 4;
  min-height: 112px;
  padding: 14px 15px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.9), rgba(248, 247, 238, 0.78)),
    rgba(255, 253, 247, 0.76);
}

.tarot-stage[data-state="mine"] .mine-recovery-card strong {
  margin-top: 2px;
  font-size: 19px;
  letter-spacing: 1px;
}

.tarot-stage[data-state="mine"] .mine-recovery-card p {
  max-width: 280px;
  margin-top: 6px;
  line-height: 1.42;
}

.tarot-stage[data-state="mine"] .mine-menu-card {
  order: 5;
  min-height: 238px;
  height: auto;
  margin-top: 2px;
  margin-bottom: 18px;
  padding: 8px 14px 14px;
  border-radius: 24px;
  overflow: hidden;
}

.tarot-stage[data-state="mine"] .mine-menu-card button {
  min-height: 53px;
  padding-block: 6px;
}

.tarot-stage[data-state="mine"] .mine-menu-card small {
  line-height: 1.45;
}

.tarot-stage[data-state="mine"] .mine-menu-card button:last-child {
  padding-bottom: 10px;
}

.tarot-stage[data-state="mine"] .mine-feedback {
  order: 6;
  display: none !important;
}

@media (max-height: 930px) and (max-width: 520px) {
  .tarot-stage[data-state="mine"] .mine-feedback {
    display: none !important;
  }
}

.feature-sheet[data-feature="pantry"] .feature-sheet-card {
  max-height: min(86vh, 760px);
}

.feature-sheet[data-feature="pantry"] .feature-sheet-body {
  gap: 12px;
}

.pantry-page-body {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
}

.pantry-summary-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(126, 112, 91, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(238, 246, 229, 0.72)),
    #fbfbf4;
  box-shadow:
    0 14px 26px rgba(92, 105, 74, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.pantry-summary-card span {
  color: rgba(76, 72, 63, 0.55);
  font-size: 12px;
  font-weight: 700;
}

.pantry-summary-card strong {
  display: block;
  margin-top: 4px;
  color: #44553a;
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  line-height: 1.1;
}

.pantry-summary-card p {
  margin: 7px 0 0;
  color: rgba(76, 72, 63, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.pantry-summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(58px, 1fr));
  gap: 8px;
}

.pantry-summary-metrics article {
  display: grid;
  align-content: center;
  min-width: 58px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 251, 0.72);
  text-align: center;
}

.pantry-summary-metrics article strong {
  margin: 3px 0 0;
  font-size: 20px;
}

.pantry-add-button {
  width: 100%;
}

.pantry-filter-row {
  display: flex;
  gap: 8px;
  padding: 1px 0 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pantry-filter-row::-webkit-scrollbar {
  display: none;
}

.pantry-filter-row button {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(126, 112, 91, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 251, 0.78);
  color: rgba(76, 72, 63, 0.68);
  font-size: 12px;
  font-weight: 800;
  box-shadow:
    0 8px 18px rgba(90, 84, 68, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.pantry-filter-row button.is-selected {
  border-color: rgba(126, 151, 100, 0.2);
  background: #7f9664;
  color: #fffdf7;
}

.pantry-form {
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(126, 112, 91, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 251, 0.76);
}

.pantry-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pantry-photo-field {
  gap: 9px;
}

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

.pantry-photo-action {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(126, 112, 91, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 251, 0.82);
  color: #4c483f;
  box-shadow:
    0 8px 18px rgba(90, 84, 68, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.pantry-photo-action > .material-symbols-rounded {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: rgba(126, 151, 100, 0.14);
  color: #708753;
  font-size: 20px;
}

.pantry-photo-action strong {
  min-width: 0;
  color: #3f4638;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pantry-photo-action small {
  display: block;
  margin-top: 2px;
  color: rgba(76, 72, 63, 0.52);
  font-size: 11px;
  line-height: 1.2;
}

.pantry-photo-action:active {
  transform: translateY(1px);
}

.pantry-photo-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.pantry-photo-current {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 10px;
}

.pantry-photo-current img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(90, 84, 68, 0.14);
}

.pantry-form-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
}

.pantry-list {
  display: grid;
  gap: 10px;
}

.pantry-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(126, 112, 91, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 251, 0.78);
  box-shadow:
    0 12px 22px rgba(84, 78, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.pantry-item.is-expiring {
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.86), rgba(255, 244, 218, 0.82)),
    #fffaf1;
}

.pantry-item.is-expired {
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.86), rgba(246, 229, 223, 0.82)),
    #fff8f5;
}

.pantry-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(126, 151, 100, 0.14);
  color: #708753;
}

.pantry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pantry-thumb .material-symbols-rounded {
  font-size: 25px;
}

.pantry-item-main {
  min-width: 0;
}

.pantry-item-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pantry-item-title strong {
  min-width: 0;
  color: #3f4638;
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pantry-status {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(126, 151, 100, 0.13);
  color: #667c4f;
  font-size: 11px;
  font-weight: 800;
}

.pantry-item.is-expiring .pantry-status {
  background: rgba(193, 143, 67, 0.14);
  color: #9b6b25;
}

.pantry-item.is-expired .pantry-status {
  background: rgba(166, 85, 74, 0.14);
  color: #974e43;
}

.pantry-item-main p,
.pantry-item-main small,
.pantry-item-main em {
  display: block;
  margin: 4px 0 0;
  color: rgba(76, 72, 63, 0.62);
  font-size: 12px;
  line-height: 1.4;
}

.pantry-item-main small {
  color: #566a45;
  font-weight: 700;
}

.pantry-item-main em {
  color: rgba(76, 72, 63, 0.54);
  font-style: normal;
  overflow-wrap: anywhere;
}

.pantry-item-actions {
  display: grid;
  gap: 7px;
  align-self: start;
}

.pantry-item-actions button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 13px;
  background: rgba(126, 112, 91, 0.08);
  color: #696250;
}

.pantry-item-actions button:last-child {
  color: #9a584d;
}

.pantry-delete-confirm {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 9px;
  border-radius: 14px;
  background: rgba(255, 250, 246, 0.9);
}

.pantry-delete-confirm span {
  color: #604d45;
  font-size: 12px;
  line-height: 1.35;
}

.pantry-delete-confirm button {
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(126, 112, 91, 0.1);
  color: #5d5648;
  font-size: 12px;
  font-weight: 700;
}

.pantry-delete-confirm button:last-child {
  background: #a85f52;
  color: #fffaf7;
}

.pantry-empty {
  min-height: 148px;
}

@media (max-width: 430px) {
  .pantry-summary-card,
  .pantry-item {
    border-radius: 16px;
  }

  .pantry-summary-card {
    grid-template-columns: 1fr;
  }

  .pantry-form-row,
  .pantry-form-actions {
    grid-template-columns: 1fr;
  }

  .pantry-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .pantry-thumb {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .pantry-item-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
  }

  .pantry-item-actions button {
    width: 100%;
  }

  .pantry-delete-confirm {
    grid-template-columns: 1fr;
  }
}

/* Qinghe rooms responsive stability: keep key cards readable; let the page scroll instead of compressing content. */
.tarot-stage[data-state="rooms"] .qinghe-rooms-page {
  display: flex;
  flex-direction: column;
  align-content: initial;
  gap: clamp(10px, 1.35svh, 14px);
  min-height: 0;
  overflow-y: auto;
  padding-bottom: calc(142px + env(safe-area-inset-bottom));
  scroll-padding-bottom: calc(142px + env(safe-area-inset-bottom));
}

.tarot-stage[data-state="rooms"] .rooms-companion-card {
  display: grid;
  align-items: center;
  min-height: clamp(144px, 17svh, 166px);
  padding: clamp(15px, 3.8vw, 18px) clamp(16px, 4vw, 18px);
  border-radius: 24px;
}

.tarot-stage[data-state="rooms"] .rooms-companion-card img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: 59% 44%;
}

.tarot-stage[data-state="rooms"] .rooms-companion-card div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(58%, 224px);
  min-height: 106px;
  transform: none;
}

.tarot-stage[data-state="rooms"] .rooms-companion-card p {
  margin: 6px 0 10px;
  font-size: clamp(15px, 4vw, 17px);
  line-height: 1.42;
}

.tarot-stage[data-state="rooms"] .rooms-companion-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 34px;
  height: auto;
  margin-top: 0;
  padding: 7px 16px 8px;
  line-height: 1.1;
  transform: none;
}

@media (max-width: 360px) {
  .tarot-stage[data-state="rooms"] .rooms-companion-card div {
    width: min(62%, 214px);
  }

  .tarot-stage[data-state="rooms"] .rooms-companion-card p {
    font-size: 15px;
  }
}

@media (pointer: coarse) {
  input[type="text"],
  input[type="number"],
  input[type="date"],
  input[type="file"],
  input:not([type]),
  textarea,
  select {
    font-size: max(16px, 1em);
  }

  a,
  button,
  input,
  textarea,
  select,
  label {
    touch-action: manipulation;
  }
}
