:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: rgba(14, 14, 13, 0.82);
  --panel-soft: rgba(255, 255, 255, 0.045);
  --gold: #c9a96e;
  --gold-soft: #ead7ad;
  --white: #ffffff;
  --ink: #0a0a0a;
  --muted: rgba(234, 215, 173, 0.68);
  --line: rgba(201, 169, 110, 0.26);
  --deep-line: rgba(255, 255, 255, 0.08);
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
  --reading-font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

@font-face {
  font-family: "ZCoolXiaoWeiLocal";
  src: local("STKaiti"), local("KaiTi"), local("Kaiti SC");
  font-display: swap;
}

@font-face {
  font-family: "Zhi Mang Xing";
  src:
    url("./assets/fonts/ZhiMangXing-Brand.woff2?v=font3") format("woff2"),
    url("./assets/fonts/ZhiMangXing-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "ZhiMangXingFull";
  src: url("./assets/fonts/ZhiMangXing-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "MaShanZhengLocal";
  src: url("./assets/fonts/MaShanZheng-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "HengshanBrushLocal";
  src:
    url("./assets/fonts/HengshanBrush-Daily.woff2?v=font1") format("woff2"),
    url("./assets/fonts/HengshanBrush-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "MaobiSignLocal";
  src:
    url("./assets/fonts/MaobiSign-Daily.woff2?v=font1") format("woff2"),
    url("./assets/fonts/MaobiSign-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "MaobiSignFull";
  src: url("./assets/fonts/MaobiSign-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "InkRevealClassicBrushLocal";
  src: url("./assets/fonts/InkRevealClassicBrush-Regular.ttf?v=classicbrush1") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 24% 22%, rgba(201, 169, 110, 0.16), transparent 26%),
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.055), transparent 24%),
    linear-gradient(140deg, #030303 0%, #0a0a0a 46%, #14110b 100%);
  color: var(--white);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.18) 0 0.7px, transparent 0.7px 4px),
    repeating-linear-gradient(90deg, rgba(201, 169, 110, 0.035) 0 1px, transparent 1px 13px);
  opacity: 0.18;
  mix-blend-mode: overlay;
}

body::after {
  content: "";
  position: fixed;
  inset: 24px;
  z-index: 0;
  border: 1px solid rgba(201, 169, 110, 0.11);
  pointer-events: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
}

body.is-home-view .app-shell {
  min-height: 100svh;
  padding-bottom: 0;
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.app-shell::before {
  top: 24px;
  left: 24px;
  border-top: 1px solid rgba(201, 169, 110, 0.58);
  border-left: 1px solid rgba(201, 169, 110, 0.58);
}

.app-shell::after {
  right: 24px;
  bottom: 24px;
  border-right: 1px solid rgba(201, 169, 110, 0.58);
  border-bottom: 1px solid rgba(201, 169, 110, 0.58);
}

.auth-button,
.records-button {
  position: fixed;
  right: 22px;
  z-index: 5;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.72);
  color: var(--gold-soft);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.auth-button {
  top: 22px;
}

.records-button {
  top: 74px;
}

#funnelEntry {
  top: 126px;
}

.auth-button.is-login {
  color: var(--gold);
  border-color: rgba(201, 169, 110, 0.44);
}

.auth-button.is-suppressed,
.records-button.is-suppressed {
  display: none;
}

.home-screen {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  container-type: inline-size;
  isolation: isolate;
  overflow: hidden;
  width: 100vw;
  min-height: calc(100vh - 48px);
  margin-inline: calc(50% - 50vw);
  padding: 86px 32px 78px;
}

body.is-home-view .home-screen {
  min-height: calc(100svh - 24px);
  padding-block: clamp(58px, 7svh, 76px) 112px;
}

.home-screen::before,
.home-screen::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.14), rgba(201, 169, 110, 0.035) 45%, transparent 70%);
  filter: blur(26px);
  opacity: 0.36;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.home-screen::before {
  top: 18%;
  left: 12%;
  animation: ink-mist-a 118s ease-in-out infinite alternate;
}

.home-screen::after {
  right: 9%;
  bottom: 15%;
  width: 240px;
  opacity: 0.28;
  animation: ink-mist-b 146s ease-in-out infinite alternate;
}

.brand-watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.brand-watermark::before,
.brand-watermark::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 215, 173, 0.12), rgba(201, 169, 110, 0.025) 46%, transparent 72%);
  filter: blur(22px);
  opacity: 0.26;
  pointer-events: none;
}

.brand-watermark::before {
  top: 54%;
  left: 56%;
  animation: ink-mist-c 132s ease-in-out infinite alternate;
}

.brand-watermark::after {
  top: 10%;
  right: 23%;
  width: 120px;
  opacity: 0.22;
  animation: ink-mist-d 168s ease-in-out infinite alternate;
}

.mark-char {
  position: absolute;
  z-index: 1;
  color: rgba(201, 169, 110, 0.16);
  font-family: "Zhi Mang Xing", cursive;
  font-size: clamp(300px, 40vw, 530px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: 0;
  opacity: 0;
  white-space: nowrap;
  user-select: none;
}

.mark-zi {
  top: -1.70cqw;
  left: -7.96cqw;
  right: auto;
  bottom: auto;
  font-size: 59.99cqw;
  transform: rotate(-7deg);
  animation:
    watermark-zi-drift 164s ease-in-out infinite,
    home-watermark-reveal 1200ms ease 600ms both;
}

.mark-xiang {
  top: 1.31cqw;
  left: 50.13cqw;
  right: auto;
  bottom: auto;
  color: rgba(201, 169, 110, 0.18);
  font-size: 67.57cqw;
  transform: rotate(5deg);
  animation:
    watermark-xiang-drift 187s ease-in-out infinite,
    home-watermark-reveal 1300ms ease 700ms both;
}

.brand-intro {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(420px, 100%);
}

.brand-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

.brand-latin {
  color: rgba(255, 255, 255, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4.2vw, 40px);
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 0.92;
  animation: home-enter 720ms ease 200ms both;
}

.brand-slogan {
  color: var(--gold);
  font-family: "Zhi Mang Xing", "ZhiMangXingFull", "STXingkai", "KaiTi", cursive;
  font-size: clamp(25px, 3.45vw, 36px);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 0.96;
  animation: home-enter 720ms ease 400ms both;
}

.brand-rule {
  display: block;
  width: 218px;
  height: 1px;
  margin: 1px 0 3px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.74), transparent);
  animation: home-enter 720ms ease 400ms both;
}

.home-mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(320px, 100%);
  animation: home-enter 740ms ease 620ms both;
}

.home-mode-tabs button {
  position: relative;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: rgba(234, 215, 173, 0.62);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  padding: 0 2px 7px;
  transition: color 160ms ease;
}

.home-mode-tabs button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 2px;
  background: rgba(201, 169, 110, 0);
  transform: translateX(-50%);
  transition: background 160ms ease, width 160ms ease;
}

.home-mode-tabs button.is-active {
  color: #f4e6c3;
}

.home-mode-tabs button.is-active::after {
  width: 34px;
  background: rgba(201, 169, 110, 0.82);
}

.self-home-panel {
  width: min(520px, calc(100vw - 40px));
  margin: 18px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: 8px;
  background: rgba(12, 10, 8, 0.58);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  text-align: center;
  animation: home-enter 740ms ease 700ms both;
}

.self-home-panel h2 {
  margin: 4px 0 8px;
  color: rgba(255, 244, 214, 0.94);
  font-size: 22px;
  letter-spacing: 0;
}

.self-home-panel p {
  margin: 0 auto 14px;
  max-width: 32em;
  color: rgba(238, 222, 186, 0.72);
  line-height: 1.8;
}

.self-home-kicker {
  font-size: 12px;
  color: rgba(201, 169, 110, 0.82) !important;
}

.question-input {
  width: min(236px, 100%);
  min-height: 44px;
  margin-top: 10px;
  border: 1px solid rgba(201, 169, 110, 0.36);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.5);
  box-shadow:
    inset 0 0 24px rgba(201, 169, 110, 0.055),
    0 8px 24px rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  outline: none;
  padding: 12px 22px;
  text-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  animation: home-enter 760ms ease 800ms both;
}

.question-input::placeholder {
  color: rgba(234, 215, 173, 0.62);
}

.question-input:focus {
  border-color: rgba(232, 201, 122, 0.86);
  background: rgba(10, 10, 10, 0.58);
  box-shadow:
    inset 0 0 30px rgba(201, 169, 110, 0.1),
    0 0 0 3px rgba(201, 169, 110, 0.08),
    0 0 34px rgba(201, 169, 110, 0.15);
}

.daily-stamp-pair {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-bottom: 26px;
  animation: home-enter 760ms ease 900ms both;
}

.daily-entry {
  --seal-char: #4a3318;
  position: relative;
  display: grid;
  place-items: center;
  width: 110px;
  aspect-ratio: 1;
  border: 0;
  background:
    radial-gradient(ellipse at 50% 66%, rgba(201, 169, 110, 0.045) 0 18%, rgba(201, 169, 110, 0.018) 32%, transparent 58%);
  color: var(--seal-char);
  cursor: pointer;
  isolation: isolate;
  padding: 0;
  transition: transform 180ms ease;
}

.daily-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("./assets/gold_wax_seal.png?v=seal3") center / contain no-repeat;
  filter:
    drop-shadow(0 7px 16px rgba(0, 0, 0, 0.62))
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.32));
  pointer-events: none;
}

.daily-entry::after {
  content: "";
  position: absolute;
  inset: -2%;
  z-index: 2;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 54%, rgba(10, 10, 10, 0.055) 70%, rgba(10, 10, 10, 0.19) 94%, rgba(10, 10, 10, 0.26) 100%);
  mix-blend-mode: multiply;
  opacity: 0.82;
  pointer-events: none;
}

.daily-reveal-ring {
  position: absolute;
  inset: -40%;
  z-index: 4;
  background:
    radial-gradient(circle, transparent 38%, rgba(255, 225, 142, 0.42) 43%, rgba(201, 169, 110, 0.24) 46%, transparent 52%) center / 100% 100% no-repeat,
    url("./assets/gold_ring_glow.png") center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(218, 176, 92, 0.22));
  transform: scale(1);
  transform-origin: center;
  will-change: opacity, transform, filter;
}

.daily-entry.is-revealing .daily-reveal-ring {
  animation: daily-reveal-ring 1360ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.daily-entry:hover,
.daily-entry:focus-visible,
.daily-entry.is-open {
  transform: translateY(-1px);
}

.daily-stamp-label,
.daily-stamp-date {
  position: absolute;
  z-index: 3;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.daily-stamp-label {
  top: calc(100% + 7px);
  left: 50%;
  color: rgba(234, 215, 173, 0.66);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  transform: translateX(-50%);
}

.daily-stamp-date {
  top: 79%;
  left: 50%;
  color: rgba(74, 51, 24, 0.72);
  font-family: "ZCoolXiaoWeiLocal", "STKaiti", "KaiTi", serif;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  mix-blend-mode: multiply;
  text-shadow:
    -0.3px -0.3px 0 rgba(198, 150, 75, 0.14),
    0.5px 0.5px 0 rgba(45, 28, 12, 0.24);
  transform: translate(-50%, -50%);
}

.daily-entry strong {
  position: relative;
  z-index: 3;
  color: var(--seal-char);
  font-family: "MaobiSignLocal", "HengshanBrushLocal", "STXingkai", "KaiTi", cursive;
  font-size: 54px;
  font-weight: 400;
  line-height: 1;
  mix-blend-mode: multiply;
  text-shadow:
    -0.5px -0.5px 0 rgba(198, 150, 75, 0.16),
    0.7px 0.7px 0 rgba(45, 28, 12, 0.32),
    0 1px 1px rgba(43, 27, 12, 0.2);
  transform: translateY(0);
}

@keyframes daily-reveal-ring {
  0% {
    opacity: 0;
    transform: scale(0.98);
    filter: drop-shadow(0 0 8px rgba(218, 176, 92, 0.16));
  }

  16% {
    opacity: 0.78;
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(218, 176, 92, 0.38));
  }

  46% {
    opacity: 0.5;
    transform: scale(1.34);
    filter: drop-shadow(0 0 18px rgba(218, 176, 92, 0.26));
  }

  76% {
    opacity: 0.18;
    transform: scale(1.66);
    filter: drop-shadow(0 0 12px rgba(218, 176, 92, 0.12));
  }

  100% {
    opacity: 0;
    transform: scale(1.8);
    filter: drop-shadow(0 0 4px rgba(218, 176, 92, 0));
  }
}

h1 {
  width: min(900px, 100%);
  color: var(--white);
  font-family: "ZCoolXiaoWeiLocal", "STKaiti", "KaiTi", serif;
  font-size: 68px;
  font-weight: 500;
  line-height: 1.08;
  text-align: left;
  letter-spacing: 0;
  text-shadow: 0 0 36px rgba(201, 169, 110, 0.14);
}

.ink-form {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 360px;
  margin: 0;
  animation: home-enter 780ms ease 800ms both;
}

.dream-form,
.name-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(360px, 100%);
  margin: 0;
  animation: home-enter 780ms ease 800ms both;
}

.dream-guide {
  color: var(--gold);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.28em;
  line-height: 1.4;
  text-align: center;
}

.name-sub-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.name-sub-tabs button {
  position: relative;
  min-height: 30px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.26);
  color: rgba(234, 215, 173, 0.58);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.name-sub-tabs button.is-active {
  border-color: rgba(201, 169, 110, 0.62);
  background: rgba(201, 169, 110, 0.14);
  color: #f4e6c3;
  box-shadow: inset 0 0 16px rgba(201, 169, 110, 0.06);
}

.name-panel {
  display: grid;
  gap: 12px;
  width: 100%;
}

.name-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.name-meta-grid label {
  display: grid;
  gap: 6px;
  color: rgba(234, 215, 173, 0.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.name-pair-panel,
.name-create-panel {
  align-items: stretch;
}

.name-pair-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.name-pair-field {
  display: grid;
  gap: 8px;
}

.gender-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.gender-toggle button {
  min-height: 28px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.22);
  color: rgba(234, 215, 173, 0.58);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 8px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.gender-toggle button.is-active {
  border-color: rgba(201, 169, 110, 0.58);
  background: rgba(201, 169, 110, 0.13);
  color: #f4e6c3;
}

.dream-form textarea,
.dream-char-row input,
.name-panel input,
.name-panel select,
.name-panel textarea {
  width: 100%;
  border: 1px solid rgba(201, 169, 110, 0.36);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.58);
  box-shadow:
    inset 0 0 24px rgba(201, 169, 110, 0.055),
    0 12px 32px rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  padding: 14px 16px;
}

.dream-form textarea,
.name-panel textarea {
  min-height: 132px;
  resize: vertical;
}

.dream-form textarea::placeholder,
.dream-char-row input::placeholder,
.name-panel input::placeholder,
.name-panel textarea::placeholder {
  color: rgba(234, 215, 173, 0.54);
}

.dream-form textarea:focus,
.dream-char-row input:focus,
.name-panel input:focus,
.name-panel select:focus,
.name-panel textarea:focus {
  border-color: rgba(232, 201, 122, 0.82);
  box-shadow:
    inset 0 0 30px rgba(201, 169, 110, 0.09),
    0 0 0 3px rgba(201, 169, 110, 0.08),
    0 0 34px rgba(201, 169, 110, 0.14);
}

.dream-char-row {
  display: grid;
  grid-template-columns: minmax(0, 96px) minmax(0, 1fr);
  gap: 10px;
}

.name-panel > .primary-button {
  justify-self: end;
  min-width: 118px;
}

.dream-char-row input {
  text-align: center;
  font-family: "MaShanZhengLocal", "STXingkai", "KaiTi", cursive;
  font-size: 32px;
  line-height: 1;
  padding: 10px 12px;
}

.handwriting-pad {
  --pad-size: 248px;
  position: relative;
  width: var(--pad-size);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 169, 110, 0.44);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.7), transparent 34%),
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(117, 63, 28, 0.14) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(117, 63, 28, 0.14) 50%, transparent calc(50% + 0.5px)),
    repeating-linear-gradient(0deg, rgba(117, 63, 28, 0.035) 0 1px, transparent 1px 7px),
    #efe4c8;
  box-shadow:
    inset 0 0 0 8px rgba(117, 63, 28, 0.035),
    inset 0 0 42px rgba(117, 63, 28, 0.12),
    0 28px 80px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.input-mode-toggle {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(201, 169, 110, 0.46);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.42);
  color: var(--gold);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.input-mode-toggle:hover {
  border-color: rgba(232, 201, 122, 0.82);
  background: rgba(10, 10, 10, 0.62);
  transform: rotate(12deg);
}

.handwriting-pad:focus-within,
.handwriting-pad.is-writing {
  border-color: rgba(232, 201, 122, 0.86);
  box-shadow:
    inset 0 0 0 8px rgba(117, 63, 28, 0.045),
    inset 0 0 50px rgba(117, 63, 28, 0.19),
    0 0 0 4px rgba(201, 169, 110, 0.11),
    0 0 42px rgba(201, 169, 110, 0.12),
    0 28px 90px rgba(0, 0, 0, 0.42);
}

.handwriting-canvas,
#handwritingCanvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  cursor: crosshair;
  touch-action: none;
  opacity: 1;
  transition: opacity 260ms ease, filter 260ms ease;
}

.handwriting-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(80, 43, 22, 0.32);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

.handwriting-pad.has-ink .handwriting-hint {
  opacity: 0;
}

.manual-character-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: rgba(46, 27, 14, 0.9);
  font-size: 158px;
  font-weight: 400;
  line-height: var(--pad-size);
  opacity: 0;
  outline: none;
  padding: 0 20px;
  pointer-events: none;
  text-align: center;
  transform: translateY(5px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.handwriting-pad.typing-mode #handwritingCanvas {
  opacity: 0;
  filter: blur(3px);
  pointer-events: none;
}

.handwriting-pad.typing-mode .handwriting-hint {
  opacity: 0;
  transform: translateY(-4px);
}

.handwriting-pad.typing-mode .manual-character-input {
  font-family: "MaShanZhengLocal", "STXingkai", "KaiTi", cursive;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.handwriting-pad.typing-mode .manual-character-input::placeholder {
  color: rgba(80, 43, 22, 0.34);
  font-size: clamp(12px, 3.2vw, 15px);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ink-actions {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 10px;
  justify-content: stretch;
  width: 248px;
}

.ink-actions .ghost-button,
.ink-actions .primary-button {
  width: 100%;
  min-width: 0;
  padding-inline: 0;
}

.ghost-button.compact {
  min-width: 96px;
  padding-inline: 16px;
}

.primary-button,
.ghost-button,
.icon-button {
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 22px;
  font-weight: 850;
}

.primary-button {
  position: relative;
  min-width: 180px;
  border-color: rgba(201, 169, 110, 0.38);
  background: linear-gradient(135deg, #e2c78b, var(--gold));
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(201, 169, 110, 0.14);
  overflow: hidden;
}

.primary-button.ink-ripple::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 245, 210, 0.48) 0 16%, rgba(201, 169, 110, 0.36) 40%, rgba(201, 169, 110, 0.08) 64%, transparent 76%);
  filter: blur(1px);
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.3);
  animation: ink-ripple 680ms ease-out forwards;
}

.primary-button.ink-ripple {
  animation: ink-button-aura 680ms ease-out;
}

.primary-button:hover {
  background: linear-gradient(135deg, #f1d9a3, var(--gold));
}

.primary-button.compact {
  width: auto;
  min-width: 132px;
}

.ghost-button,
.icon-button {
  border-color: var(--line);
  background: rgba(10, 10, 10, 0.66);
  color: var(--gold-soft);
}

.ghost-button:hover,
.icon-button:hover,
.auth-button:hover {
  border-color: rgba(201, 169, 110, 0.62);
}

.icon-button {
  min-width: 44px;
  width: 44px;
  padding: 0;
}

.daily-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(540px, 100%);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(201, 169, 110, 0.018) 0 1px, transparent 1px 9px),
    rgba(7, 7, 6, 0.76);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  padding: 18px;
}

.daily-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.daily-panel-head h2 {
  margin-top: 4px;
  color: #f4e6c3;
  font-size: 24px;
  line-height: 1.25;
}

#dailyDateLabel {
  color: rgba(234, 215, 173, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.daily-panel-body {
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 16px;
  align-items: center;
}

.daily-panel-body > div {
  min-width: 0;
}

#dailyPanelChar {
  display: grid;
  place-items: center;
  width: 106px;
  aspect-ratio: 1;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 8px;
  background: rgba(201, 169, 110, 0.08);
  color: #ffffff;
  font-family: "MaobiSignLocal", "HengshanBrushLocal", "STXingkai", "KaiTi", cursive;
  font-size: 66px;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 0 20px rgba(201, 169, 110, 0.2);
}

.daily-meaning {
  display: grid;
  gap: 10px;
  color: rgba(234, 215, 173, 0.72);
  font-size: 13px;
  line-height: 1.72;
}

.daily-intro {
  color: rgba(245, 240, 228, 0.9);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}

.daily-luck {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 10px;
  border: 1px solid rgba(201, 169, 110, 0.24);
  border-radius: 8px;
  background: rgba(201, 169, 110, 0.08);
  padding: 10px 12px;
}

.daily-luck span {
  color: rgba(234, 215, 173, 0.64);
  font-size: 12px;
  font-weight: 900;
}

.daily-luck strong {
  color: #ffffff;
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
  text-align: right;
}

.daily-luck em {
  grid-column: 1 / -1;
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
  line-height: 1.5;
}

.daily-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.daily-list-block {
  min-width: 0;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px 12px;
}

.daily-list-block h3 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 950;
}

.daily-list-block.is-do h3 {
  color: #8fe0b0;
}

.daily-list-block.is-avoid h3 {
  color: #ff9a82;
}

.daily-list-block ul {
  display: grid;
  gap: 5px;
  list-style: none;
}

.daily-list-block li {
  overflow: hidden;
  color: rgba(245, 240, 228, 0.88);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-list-block li::before {
  content: "·";
  margin-right: 5px;
  color: rgba(201, 169, 110, 0.72);
}

.daily-message {
  margin-top: 10px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.daily-panel .ghost-button {
  width: 100%;
}

.report-panel,
.points-page,
.records-page,
.self-page {
  position: relative;
  margin: -18px auto 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 42%),
    rgba(10, 10, 10, 0.78);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
}

.report-panel::before,
.points-page::before,
.records-page::before,
.self-page::before,
.auth-dialog::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 169, 110, 0.08);
  border-radius: 6px;
  pointer-events: none;
}

.report-head,
.dialog-head,
.points-head,
.records-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

h2 {
  margin-top: 7px;
  color: var(--white);
  font-family: "ZCoolXiaoWeiLocal", "STKaiti", "KaiTi", serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 7px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.detail-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.detail-gate strong {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-soft);
  font-size: 17px;
}

.detail-gate p,
.detail-card p,
.detail-card li,
.points-card p {
  color: var(--muted);
  line-height: 1.86;
}

.detail-gate .reading-loading {
  margin-top: 8px;
  color: #c9a96e;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-shadow: 0 0 18px rgba(201, 169, 110, 0.22);
  animation: reading-loading-pulse 2.4s ease-in-out infinite;
}

@keyframes reading-loading-pulse {
  0%,
  100% {
    opacity: 0.58;
  }

  50% {
    opacity: 1;
  }
}

@keyframes home-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-watermark-reveal {
  from {
    opacity: 0;
    filter: blur(12px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes watermark-zi-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-7deg);
  }

  28% {
    transform: translate3d(1.1%, -0.7%, 0) rotate(-7.5deg);
  }

  58% {
    transform: translate3d(0.2%, 1.2%, 0) rotate(-6.7deg);
  }

  82% {
    transform: translate3d(-1%, 0.4%, 0) rotate(-7.2deg);
  }
}

@keyframes watermark-xiang-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(5deg);
  }

  24% {
    transform: translate3d(-0.9%, 0.7%, 0) rotate(5.4deg);
  }

  53% {
    transform: translate3d(0.8%, -1%, 0) rotate(4.7deg);
  }

  78% {
    transform: translate3d(1.1%, 0.5%, 0) rotate(5.2deg);
  }
}

@keyframes ink-mist-a {
  from {
    transform: translate3d(-3%, 2%, 0) scale(1);
  }

  to {
    transform: translate3d(18%, -11%, 0) scale(1.18);
  }
}

@keyframes ink-mist-b {
  from {
    transform: translate3d(4%, -2%, 0) scale(0.94);
  }

  to {
    transform: translate3d(-16%, 10%, 0) scale(1.12);
  }
}

@keyframes ink-mist-c {
  from {
    transform: translate3d(0, 0, 0) scale(0.96);
  }

  to {
    transform: translate3d(-14%, -8%, 0) scale(1.14);
  }
}

@keyframes ink-mist-d {
  from {
    transform: translate3d(4%, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-8%, 16%, 0) scale(1.22);
  }
}

@keyframes ink-ripple {
  0% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.35);
  }

  68% {
    opacity: 0.28;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(13);
  }
}

@keyframes ink-button-aura {
  0% {
    box-shadow:
      0 18px 42px rgba(201, 169, 110, 0.14),
      0 0 0 0 rgba(201, 169, 110, 0.2);
  }

  56% {
    box-shadow:
      0 18px 42px rgba(201, 169, 110, 0.18),
      0 0 0 12px rgba(201, 169, 110, 0.12);
  }

  100% {
    box-shadow:
      0 18px 42px rgba(201, 169, 110, 0.14),
      0 0 0 22px rgba(201, 169, 110, 0);
  }
}

.detail-report {
  display: grid;
  gap: 0;
  margin-top: 18px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(201, 169, 110, 0.018) 0 1px, transparent 1px 9px),
    rgba(5, 5, 5, 0.42);
  overflow: hidden;
}

.detail-report.locked {
  padding: 16px;
  color: var(--muted);
}

.detail-card {
  position: relative;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.028);
}

.detail-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 169, 110, 0.72), transparent);
}

.detail-card + .detail-card {
  border-top: 1px solid rgba(201, 169, 110, 0.12);
}

.detail-card h3 {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.detail-card.core p {
  color: var(--white);
  font-family: var(--reading-font);
  font-size: clamp(20px, 2.5vw, 27px);
  font-weight: 650;
  line-height: 1.78;
  letter-spacing: 0;
}

.detail-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.report-highlights {
  padding-block: 16px;
}

.highlight-grid {
  display: grid;
  gap: 9px;
}

.highlight-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(201, 169, 110, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
  padding: 8px 10px;
}

.highlight-item strong {
  display: grid;
  place-items: center;
  width: 28px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.14);
  color: var(--gold);
  font-family: "ZCoolXiaoWeiLocal", "STKaiti", "KaiTi", serif;
  font-size: 15px;
  line-height: 1;
}

.highlight-item span {
  min-width: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.name-combine-score {
  display: grid;
  gap: 12px;
}

.score-meter {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.score-meter strong {
  color: var(--gold);
  font-family: "ZCoolXiaoWeiLocal", "STKaiti", "KaiTi", serif;
  font-size: clamp(56px, 10vw, 88px);
  font-weight: 800;
  line-height: 0.95;
}

.score-meter span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.score-track {
  height: 9px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.score-track.compact {
  height: 7px;
  margin-bottom: 10px;
}

.score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(201, 169, 110, 0.72), rgba(234, 215, 173, 0.9));
}

.name-dimension-card h3 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.numerology-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 14px;
}

.numerology-item {
  display: grid;
  gap: 4px;
  min-height: 128px;
  border: 1px solid rgba(201, 169, 110, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
  padding: 10px;
}

.numerology-item span,
.numerology-item em,
.report-note,
.weekly-period,
.weekly-suggestion {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.numerology-item strong {
  color: var(--gold);
  font-family: "ZCoolXiaoWeiLocal", "STKaiti", "KaiTi", serif;
  font-size: 30px;
  line-height: 1;
}

.numerology-item em {
  font-style: normal;
  font-weight: 900;
}

.numerology-item p {
  font-size: 12px;
  line-height: 1.55;
}

.weekly-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.weekly-card-head h3 {
  margin-bottom: 0;
}

.weekly-card-head span {
  flex: none;
  border: 1px solid rgba(201, 169, 110, 0.24);
  border-radius: 999px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 4px 8px;
}

.name-weekly-card {
  box-shadow: inset 4px 0 0 rgba(201, 169, 110, 0.42);
}

.detail-share {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-top: 1px solid rgba(201, 169, 110, 0.12);
  background: rgba(255, 255, 255, 0.022);
}

.detail-share p,
.home-risk-note,
.auth-risk-note,
.site-footer,
.share-save-tip {
  color: rgba(234, 215, 173, 0.56);
  font-size: 12px;
  line-height: 1.72;
}

.detail-share .ghost-button {
  width: 100%;
}

body.is-ink-theme .report-panel {
  border-color: rgba(42, 42, 42, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), transparent 44%),
    repeating-linear-gradient(96deg, rgba(42, 42, 42, 0.018) 0 1px, transparent 1px 10px),
    rgba(250, 251, 252, 0.86);
  box-shadow: 0 28px 72px rgba(37, 43, 49, 0.13);
  color: rgba(42, 42, 42, 0.88);
  backdrop-filter: blur(8px);
}

body.is-ink-theme .report-panel::before {
  border-color: rgba(42, 42, 42, 0.08);
}

body.is-ink-theme .report-head h2 {
  color: rgba(42, 42, 42, 0.92);
}

body.is-ink-theme .status-pill {
  border-color: rgba(42, 42, 42, 0.16);
  background: rgba(250, 251, 252, 0.52);
  color: rgba(42, 42, 42, 0.64);
}

body.is-ink-theme .detail-gate {
  border-color: rgba(42, 42, 42, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), transparent 58%),
    rgba(250, 251, 252, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

body.is-ink-theme .detail-gate strong {
  color: rgba(42, 42, 42, 0.86);
}

body.is-ink-theme .detail-gate p,
body.is-ink-theme .detail-card p,
body.is-ink-theme .detail-card li {
  color: rgba(42, 42, 42, 0.64);
}

body.is-ink-theme .detail-gate .reading-loading {
  color: #8a6838;
}

body.is-ink-theme .detail-report {
  border-color: rgba(42, 42, 42, 0.14);
  background:
    repeating-linear-gradient(90deg, rgba(42, 42, 42, 0.014) 0 1px, transparent 1px 9px),
    rgba(250, 251, 252, 0.62);
}

body.is-ink-theme .detail-report.locked {
  color: rgba(42, 42, 42, 0.62);
}

body.is-ink-theme .detail-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.36), transparent 46%),
    rgba(250, 251, 252, 0.48);
}

body.is-ink-theme .detail-card::before {
  background: linear-gradient(90deg, rgba(168, 130, 74, 0.46), transparent);
}

body.is-ink-theme .detail-card + .detail-card {
  border-top-color: rgba(42, 42, 42, 0.1);
}

body.is-ink-theme .detail-card h3 {
  color: rgba(42, 42, 42, 0.82);
}

body.is-ink-theme .detail-card.core p {
  color: rgba(42, 42, 42, 0.92);
}

body.is-ink-theme .numerology-item {
  border-color: rgba(42, 42, 42, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), transparent 70%),
    rgba(42, 42, 42, 0.03);
}

body.is-ink-theme .numerology-item strong,
body.is-ink-theme .weekly-card-head span {
  color: #8a6838;
}

body.is-ink-theme .numerology-item span,
body.is-ink-theme .numerology-item em,
body.is-ink-theme .report-note,
body.is-ink-theme .weekly-period,
body.is-ink-theme .weekly-suggestion {
  color: rgba(42, 42, 42, 0.58);
}

body.is-ink-theme .name-weekly-card {
  background:
    radial-gradient(circle at 85% 12%, rgba(168, 130, 74, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), transparent 48%),
    rgba(250, 251, 252, 0.58);
  box-shadow: inset 4px 0 0 rgba(168, 130, 74, 0.42);
}

body.is-ink-theme .highlight-item {
  border-color: rgba(42, 42, 42, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent 70%),
    rgba(42, 42, 42, 0.032);
}

body.is-ink-theme .highlight-item strong {
  background: rgba(168, 130, 74, 0.12);
  color: #8a6838;
}

body.is-ink-theme .highlight-item span {
  color: rgba(42, 42, 42, 0.76);
}

body.is-ink-theme .score-meter strong {
  color: #8a6838;
}

body.is-ink-theme .score-track {
  border-color: rgba(42, 42, 42, 0.14);
  background: rgba(42, 42, 42, 0.05);
}

body.is-ink-theme .score-track span {
  background: linear-gradient(90deg, rgba(168, 130, 74, 0.76), rgba(191, 159, 103, 0.92));
}

body.is-ink-theme .detail-share {
  border-top-color: rgba(42, 42, 42, 0.1);
  background: rgba(250, 251, 252, 0.5);
}

body.is-ink-theme .detail-share p {
  color: rgba(42, 42, 42, 0.54);
}

body.is-ink-theme .report-panel .primary-button {
  border-color: rgba(126, 95, 47, 0.48);
  background: linear-gradient(135deg, #b99456, #8e6c3c);
  color: #fff8e8;
  box-shadow: 0 18px 42px rgba(126, 95, 47, 0.2);
}

body.is-ink-theme .report-panel .ghost-button {
  border-color: rgba(42, 42, 42, 0.2);
  background: rgba(250, 251, 252, 0.66);
  color: rgba(42, 42, 42, 0.76);
  box-shadow: 0 12px 34px rgba(52, 45, 32, 0.08);
}

body.is-ink-theme .points-page,
body.is-ink-theme .records-page,
body.is-ink-theme .self-page {
  border-color: rgba(42, 42, 42, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), transparent 45%),
    repeating-linear-gradient(96deg, rgba(42, 42, 42, 0.016) 0 1px, transparent 1px 10px),
    rgba(250, 251, 252, 0.9);
  box-shadow: 0 28px 72px rgba(37, 43, 49, 0.13);
  color: rgba(42, 42, 42, 0.88);
}

body.is-ink-theme .points-page::before,
body.is-ink-theme .records-page::before,
body.is-ink-theme .self-page::before {
  border-color: rgba(42, 42, 42, 0.08);
}

body.is-ink-theme .points-head strong {
  color: #8a6838;
  text-shadow: 0 14px 34px rgba(126, 95, 47, 0.14);
}

body.is-ink-theme .points-head span,
body.is-ink-theme .points-card p,
body.is-ink-theme .record-card p,
body.is-ink-theme .empty-records,
body.is-ink-theme .invite-share span {
  color: rgba(42, 42, 42, 0.62);
}

body.is-ink-theme .points-card,
body.is-ink-theme .record-card,
body.is-ink-theme .dream-reminder-grid > div {
  border-color: rgba(42, 42, 42, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), transparent 56%),
    rgba(250, 251, 252, 0.64);
  box-shadow: 0 16px 42px rgba(37, 43, 49, 0.08);
}

body.is-ink-theme .points-card h3,
body.is-ink-theme .record-card h3,
body.is-ink-theme .record-section > h3,
body.is-ink-theme .dream-reminder-grid strong {
  color: rgba(42, 42, 42, 0.84);
}

body.is-ink-theme .record-card time {
  color: rgba(42, 42, 42, 0.46);
}

body.is-ink-theme .record-question {
  color: rgba(42, 42, 42, 0.68);
}

body.is-ink-theme .points-head-actions .ghost-button,
body.is-ink-theme .points-card .ghost-button,
body.is-ink-theme .invite-share .ghost-button,
body.is-ink-theme .records-page .ghost-button {
  border-color: rgba(42, 42, 42, 0.2);
  background: rgba(250, 251, 252, 0.7);
  color: rgba(42, 42, 42, 0.76);
  box-shadow: 0 12px 30px rgba(52, 45, 32, 0.08);
}

body.is-ink-theme .redeem-row input,
body.is-ink-theme .name-panel input,
body.is-ink-theme .name-panel select,
body.is-ink-theme .name-panel textarea,
body.is-ink-theme .auth-dialog input {
  border-color: rgba(42, 42, 42, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent 58%),
    rgba(250, 251, 252, 0.78);
  color: rgba(42, 42, 42, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 10px 26px rgba(37, 43, 49, 0.06);
}

body.is-ink-theme .redeem-row input:focus,
body.is-ink-theme .name-panel input:focus,
body.is-ink-theme .name-panel select:focus,
body.is-ink-theme .name-panel textarea:focus,
body.is-ink-theme .auth-dialog input:focus {
  border-color: rgba(126, 95, 47, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), transparent 60%),
    rgba(250, 251, 252, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.54),
    0 0 0 3px rgba(168, 130, 74, 0.1);
}

body.is-ink-theme .redeem-row input::placeholder,
body.is-ink-theme .name-panel input::placeholder,
body.is-ink-theme .name-panel textarea::placeholder,
body.is-ink-theme .auth-dialog input::placeholder {
  color: rgba(42, 42, 42, 0.38);
}

body.is-ink-theme .name-meta-grid label {
  color: rgba(42, 42, 42, 0.56);
}

body.is-ink-theme .auth-overlay,
body.is-ink-theme .share-overlay {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.58), transparent 24%),
    radial-gradient(circle at 78% 82%, rgba(168, 130, 74, 0.08), transparent 28%),
    rgba(247, 248, 249, 0.74);
  backdrop-filter: blur(10px);
}

body.is-ink-theme .auth-overlay::before {
  background:
    repeating-radial-gradient(circle at 0 0, rgba(42, 42, 42, 0.055) 0 0.7px, transparent 0.7px 4px),
    linear-gradient(180deg, rgba(42, 42, 42, 0.025), transparent 42%, rgba(168, 130, 74, 0.035));
  opacity: 0.32;
  mix-blend-mode: multiply;
}

body.is-ink-theme .auth-inkscape {
  opacity: 0.42;
}

body.is-ink-theme .auth-inkscape .inkscape-layer {
  stroke: rgba(42, 42, 42, 0.34);
}

body.is-ink-theme .auth-inkscape .layer-far {
  stroke-opacity: 0.12;
}

body.is-ink-theme .auth-inkscape .layer-mid {
  stroke-opacity: 0.18;
}

body.is-ink-theme .auth-inkscape .layer-mist {
  stroke: rgba(168, 130, 74, 0.42);
  stroke-opacity: 0.2;
}

body.is-ink-theme .auth-dialog,
body.is-ink-theme .share-dialog {
  border-color: rgba(42, 42, 42, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), transparent 42%),
    repeating-linear-gradient(96deg, rgba(42, 42, 42, 0.016) 0 1px, transparent 1px 10px),
    rgba(250, 251, 252, 0.94);
  color: rgba(42, 42, 42, 0.86);
  box-shadow: 0 30px 80px rgba(37, 43, 49, 0.16);
  scrollbar-color: rgba(42, 42, 42, 0.24) rgba(250, 251, 252, 0.72);
}

body.is-ink-theme .auth-dialog::before {
  border-color: rgba(42, 42, 42, 0.08);
}

body.is-ink-theme .auth-dialog::after {
  background:
    linear-gradient(90deg, rgba(168, 130, 74, 0.08), transparent 18%, transparent 82%, rgba(168, 130, 74, 0.06)),
    repeating-linear-gradient(0deg, rgba(42, 42, 42, 0.014) 0 1px, transparent 1px 12px);
  opacity: 0.52;
}

body.is-ink-theme .auth-dialog .dialog-head {
  border-bottom-color: rgba(42, 42, 42, 0.1);
}

body.is-ink-theme .auth-calligraphy {
  color: #8a6838;
}

body.is-ink-theme .auth-dialog #authTitle,
body.is-ink-theme .share-dialog h2,
body.is-ink-theme .recognition-dialog h2 {
  color: rgba(42, 42, 42, 0.9);
}

body.is-ink-theme .auth-dialog label,
body.is-ink-theme .auth-link-button,
body.is-ink-theme .auth-reset-hint,
body.is-ink-theme .auth-risk-note,
body.is-ink-theme .share-save-tip {
  color: rgba(42, 42, 42, 0.58);
}

body.is-ink-theme .auth-link-button:hover {
  color: #6f552f;
}

body.is-ink-theme .auth-mode-switch {
  border-color: rgba(42, 42, 42, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), transparent),
    rgba(42, 42, 42, 0.036);
}

body.is-ink-theme .auth-mode-switch button {
  color: rgba(42, 42, 42, 0.58);
}

body.is-ink-theme .auth-mode-switch button.is-active {
  background: linear-gradient(135deg, #b99456, #8e6c3c);
  color: #fff8e8;
  box-shadow: 0 10px 28px rgba(126, 95, 47, 0.14);
}

body.is-ink-theme .auth-dialog .ghost-button,
body.is-ink-theme .share-dialog .ghost-button {
  border-color: rgba(42, 42, 42, 0.2);
  background: rgba(250, 251, 252, 0.7);
  color: rgba(42, 42, 42, 0.76);
}

body.is-ink-theme .auth-dialog .primary-button {
  border-color: rgba(126, 95, 47, 0.48);
  background: linear-gradient(135deg, #b99456, #8e6c3c);
  color: #fff8e8;
  box-shadow: 0 18px 42px rgba(126, 95, 47, 0.18);
}

body.is-ink-theme .auth-code-row .ghost-button:disabled {
  background: rgba(250, 251, 252, 0.48);
  color: rgba(42, 42, 42, 0.42);
}

body.is-ink-theme .share-dialog img {
  border-color: rgba(42, 42, 42, 0.12);
  background: rgba(250, 251, 252, 0.7);
}

.closing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-risk-note {
  width: min(760px, calc(100vw - 72px));
  max-width: 620px;
  margin: 0 auto;
  padding-inline: 0;
  line-height: 1.32;
  text-align: center;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -10px;
  padding: 0 18px 24px;
  line-height: 1.32;
  text-align: center;
}

.legal-footer-link,
.icp-footer-link {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(201, 169, 110, 0.28);
  text-underline-offset: 3px;
}

.legal-footer-link:hover,
.icp-footer-link:hover {
  color: var(--gold);
}

body.is-ink-theme .home-risk-note,
body.is-ink-theme .site-footer {
  color: rgba(42, 42, 42, 0.54);
}

body.is-ink-theme .legal-footer-link,
body.is-ink-theme .icp-footer-link {
  text-decoration-color: rgba(42, 42, 42, 0.22);
}

body.is-home-view .home-risk-note,
body.is-home-view .site-footer {
  position: fixed;
  z-index: 4;
  transform: none;
}

body.is-home-view .home-risk-note {
  left: 50%;
  bottom: 58px;
  margin: 0;
  transform: translateX(-50%);
}

body.is-home-view .site-footer {
  right: 0;
  bottom: 28px;
  left: 0;
  margin-top: 0;
  padding: 0 18px;
}

.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.55), transparent 24%),
    rgba(247, 248, 249, 0.72);
  padding: 22px;
  backdrop-filter: blur(10px);
}

.legal-overlay.is-hidden {
  display: none;
}

.legal-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(78vh, 720px);
  border: 1px solid rgba(42, 42, 42, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), transparent 48%),
    repeating-linear-gradient(96deg, rgba(42, 42, 42, 0.016) 0 1px, transparent 1px 10px),
    rgba(250, 251, 252, 0.94);
  box-shadow: 0 30px 80px rgba(37, 43, 49, 0.16);
  color: rgba(42, 42, 42, 0.86);
  overflow: auto;
  padding: 24px;
}

.legal-dialog::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(42, 42, 42, 0.08);
  border-radius: 6px;
  pointer-events: none;
}

.legal-dialog > * {
  position: relative;
  z-index: 1;
}

.compliance-dialog {
  width: min(520px, 100%);
  text-align: left;
}

.legal-doc-dialog {
  padding-right: 26px;
}

.legal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.legal-dialog h2 {
  color: rgba(42, 42, 42, 0.92);
  font-size: 28px;
}

.compliance-copy,
.legal-intro,
.legal-section p {
  color: rgba(42, 42, 42, 0.66);
  line-height: 1.82;
}

.legal-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.legal-inline-links button {
  border: 1px solid rgba(42, 42, 42, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(42, 42, 42, 0.7);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.legal-inline-links button:hover {
  border-color: rgba(168, 130, 74, 0.46);
  color: #6f552f;
}

.legal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.legal-doc-body {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.legal-section {
  border-top: 1px solid rgba(42, 42, 42, 0.1);
  padding-top: 16px;
}

.legal-section h3 {
  color: rgba(42, 42, 42, 0.84);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.legal-section p {
  margin-top: 8px;
}

.points-page,
.records-page,
.self-page {
  margin-top: 24px;
}

.points-head {
  display: grid;
  justify-items: center;
  text-align: center;
}

.points-head-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
}

.points-head-actions .ghost-button {
  min-height: 38px;
  padding: 9px 14px;
}

.points-head strong {
  color: var(--gold);
  font-size: 96px;
  line-height: 0.94;
  text-shadow: 0 0 36px rgba(201, 169, 110, 0.16);
}

.points-head span {
  color: var(--muted);
  font-weight: 800;
}

.points-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.points-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 50%),
    rgba(5, 5, 5, 0.52);
  padding: 16px;
}

.points-emoji {
  font-size: 30px;
  line-height: 1;
  filter: saturate(0.7);
}

.points-card h3 {
  color: var(--gold-soft);
  font-size: 20px;
}

.membership-card {
  border-color: rgba(201, 169, 110, 0.34);
  background:
    radial-gradient(circle at 88% 12%, rgba(201, 169, 110, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(201, 169, 110, 0.11), rgba(5, 5, 5, 0.54));
}

.membership-card.is-active {
  box-shadow: inset 0 0 0 1px rgba(201, 169, 110, 0.12);
}

.membership-expiry {
  color: rgba(234, 215, 173, 0.58);
  font-size: 12px;
  line-height: 1.6;
}

.records-head {
  align-items: center;
}

.records-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.record-section {
  display: grid;
  gap: 10px;
}

.record-section > h3 {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 0.08em;
}

.record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 48%),
    rgba(5, 5, 5, 0.5);
  padding: 15px;
}

.record-card h3 {
  color: var(--gold-soft);
  font-size: 18px;
}

.record-card time,
.record-card p,
.empty-records {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.record-card time {
  display: block;
  margin: 3px 0 7px;
  color: rgba(234, 215, 173, 0.48);
}

.record-question {
  color: rgba(255, 255, 255, 0.64);
}

.self-page {
  max-width: 920px;
}

.self-page-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.self-page-head h2 {
  margin: 0;
  color: rgba(255, 244, 214, 0.94);
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: 0;
}

.self-page-head p:last-child,
.self-status-line,
.self-muted,
.self-follow-up {
  font-family: var(--reading-font);
  color: rgba(238, 222, 186, 0.68);
  line-height: 1.8;
}

.self-status-line {
  margin: 8px 0 16px;
}

.self-hero-card,
.self-card,
.self-question-card,
.self-report-card {
  font-family: var(--reading-font);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 46%),
    rgba(18, 15, 11, 0.74);
  padding: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.self-hero-card h3,
.self-card h3,
.self-question-card h3,
.self-report-card h3 {
  margin: 4px 0 12px;
  color: rgba(255, 244, 214, 0.96);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0;
}

.self-product-facts,
.self-value-tags,
.self-actions,
.self-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.self-product-facts {
  margin: 16px 0;
}

.self-product-facts span,
.self-value-tags span {
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(244, 230, 195, 0.82);
  background: rgba(201, 169, 110, 0.08);
  font-size: 13px;
}

.self-progress-block {
  margin: 16px 0;
}

.self-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: rgba(238, 222, 186, 0.74);
  font-size: 13px;
}

.self-progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.self-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(201, 169, 110, 0.65), rgba(244, 230, 195, 0.9));
}

.self-question-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(201, 169, 110, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.self-options {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.self-option {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.36);
  color: rgba(244, 230, 195, 0.86);
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.self-option span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.12);
  color: rgba(201, 169, 110, 0.92);
}

.self-option.is-selected {
  border-color: rgba(201, 169, 110, 0.62);
  background: rgba(201, 169, 110, 0.12);
}

.self-extra-grid,
.self-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.self-extra-grid label,
.self-report-grid section {
  border: 1px solid rgba(201, 169, 110, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.self-extra-grid span {
  display: block;
  margin-bottom: 8px;
  color: rgba(238, 222, 186, 0.68);
  font-size: 13px;
}

.self-question-card textarea,
.self-chapter-card input,
.self-extra-grid select,
#selfResultFeeling {
  width: 100%;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.54);
  color: rgba(255, 244, 214, 0.9);
  padding: 11px 12px;
  outline: none;
}

.self-question-card textarea {
  resize: vertical;
  min-height: 108px;
  line-height: 1.7;
}

.self-deeper-fields {
  margin: 16px 0;
  border-top: 1px solid rgba(201, 169, 110, 0.14);
  padding-top: 12px;
}

.self-deeper-fields summary {
  color: rgba(238, 222, 186, 0.64);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.self-ranking-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.self-ranking-list span {
  border: 1px solid rgba(201, 169, 110, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(238, 222, 186, 0.76);
}

.self-report-card ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
  color: rgba(238, 222, 186, 0.72);
  line-height: 1.8;
}

.self-report-summary {
  font-family: var(--reading-font);
  font-size: 17px;
  color: rgba(238, 222, 186, 0.78);
  line-height: 1.9;
}

.self-report-grid p,
.self-report-grid li,
.self-question-card h3,
.self-option strong {
  font-family: var(--reading-font);
  line-height: 1.75;
}

.dream-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.dream-keywords span {
  border: 1px solid rgba(201, 169, 110, 0.24);
  border-radius: 999px;
  background: rgba(201, 169, 110, 0.08);
  color: rgba(244, 230, 195, 0.82);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.dream-reminder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dream-reminder-grid > div {
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.dream-reminder-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 15px;
}

.dream-reminder-grid ul {
  display: grid;
  gap: 6px;
  list-style: none;
}

.redeem-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.invite-share {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.invite-share span {
  min-width: 0;
  color: rgba(234, 215, 173, 0.66);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.redeem-row input,
.auth-dialog input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(201, 169, 110, 0.26);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 45%),
    rgba(0, 0, 0, 0.38);
  color: var(--white);
  outline: none;
  padding: 11px 13px;
}

.auth-dialog input {
  min-height: 50px;
  border-color: rgba(201, 169, 110, 0.28);
  background:
    linear-gradient(90deg, rgba(201, 169, 110, 0.08), transparent 22%),
    rgba(4, 4, 4, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.auth-dialog input:focus {
  border-color: rgba(232, 201, 122, 0.72);
  background:
    linear-gradient(90deg, rgba(201, 169, 110, 0.13), transparent 28%),
    rgba(5, 5, 5, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(232, 201, 122, 0.08),
    0 0 0 3px rgba(201, 169, 110, 0.08);
}

.redeem-row input::placeholder,
.auth-dialog input::placeholder {
  color: rgba(234, 215, 173, 0.36);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 42px);
  background:
    radial-gradient(circle at 28% 18%, rgba(201, 169, 110, 0.16), transparent 28%),
    radial-gradient(circle at 78% 80%, rgba(201, 169, 110, 0.09), transparent 26%),
    rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.auth-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.16) 0 0.7px, transparent 0.7px 4px),
    linear-gradient(180deg, rgba(201, 169, 110, 0.055), transparent 34%, rgba(201, 169, 110, 0.05));
  opacity: 0.18;
  mix-blend-mode: overlay;
}

.auth-inkscape {
  position: absolute;
  inset: -8% -16%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.98;
}

.auth-inkscape svg {
  width: 132%;
  height: 118%;
  transform-origin: center;
  animation: authMountainDrift 86s ease-in-out infinite alternate;
}

.inkscape-layer {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  animation: authInkBreath 72s ease-in-out infinite alternate;
}

.layer-far {
  stroke-width: 1.2;
  stroke-opacity: 0.12;
}

.layer-mid {
  stroke-width: 1.4;
  stroke-opacity: 0.22;
  animation-duration: 84s;
  animation-delay: -18s;
}

.layer-mist {
  stroke-width: 0.9;
  stroke-opacity: 0.3;
  stroke-dasharray: 2 16;
  animation-duration: 68s;
  animation-delay: -10s;
}

.auth-overlay.is-hidden,
.is-hidden {
  display: none;
}

.auth-dialog {
  position: relative;
  display: grid;
  z-index: 1;
  gap: 16px;
  width: min(486px, 100%);
  max-height: min(760px, calc(100dvh - 32px));
  border: 1px solid rgba(201, 169, 110, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 36%),
    radial-gradient(circle at 18% 0%, rgba(201, 169, 110, 0.16), transparent 34%),
    radial-gradient(circle at 82% 100%, rgba(201, 169, 110, 0.08), transparent 34%),
    rgba(13, 13, 12, 0.96);
  color: var(--white);
  padding: clamp(22px, 3vw, 32px);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 110, 0.48) rgba(0, 0, 0, 0.22);
}

.auth-dialog::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(201, 169, 110, 0.18), transparent 18%, transparent 82%, rgba(201, 169, 110, 0.12)),
    repeating-linear-gradient(0deg, rgba(201, 169, 110, 0.025) 0 1px, transparent 1px 12px);
  opacity: 0.5;
}

.auth-dialog > * {
  position: relative;
  z-index: 1;
}

.share-dialog {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  max-height: calc(100svh - 36px);
  border: 1px solid rgba(201, 169, 110, 0.26);
  border-radius: 8px;
  background: #0d0d0c;
  box-shadow: var(--shadow);
  overflow: auto;
  padding: 16px;
}

.share-dialog img {
  width: 100%;
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: 8px;
  background: #050505;
}

.share-save-tip {
  text-align: center;
}

.recognition-dialog {
  width: min(420px, 100%);
}

.auth-dialog .dialog-head {
  align-items: flex-start;
  border-bottom: 1px solid rgba(201, 169, 110, 0.18);
  padding-bottom: 14px;
}

.auth-calligraphy {
  margin: -8px 0 5px;
  color: var(--gold);
  font-family: "Zhi Mang Xing", "STKaiti", "KaiTi", cursive;
  font-size: clamp(58px, 7vw, 86px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.08em;
}

.auth-dialog #authTitle {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.manual-character-field input {
  text-align: center;
  font-size: 24px;
  font-family: "ZCoolXiaoWeiLocal", "STKaiti", "KaiTi", serif;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(201, 169, 110, 0.08), transparent),
    rgba(0, 0, 0, 0.34);
  padding: 6px;
}

.auth-mode-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(234, 215, 173, 0.62);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.auth-mode-switch button.is-active {
  background: linear-gradient(135deg, #e2c78b, var(--gold));
  color: var(--ink);
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.auth-code-row .ghost-button {
  min-width: 112px;
  padding-inline: 14px;
}

.auth-code-row .ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.auth-helper-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}

.auth-link-button {
  border: 0;
  background: transparent;
  color: rgba(234, 215, 173, 0.66);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  padding: 2px 0;
}

.auth-link-button:hover {
  color: rgba(234, 215, 173, 0.92);
}

.auth-reset-hint {
  margin: -6px 0 0;
  color: rgba(234, 215, 173, 0.58);
  font-size: 12px;
  line-height: 1.7;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-dialog label {
  gap: 9px;
  color: rgba(234, 215, 173, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
  padding-top: 4px;
}

@keyframes authMountainDrift {
  from {
    transform: translate3d(-2.4%, 0, 0) scale(1.02);
  }

  to {
    transform: translate3d(2.6%, -1.4%, 0) scale(1.045);
  }
}

@keyframes authInkBreath {
  from {
    opacity: 0.72;
    transform: translateX(-1.2%);
  }

  to {
    opacity: 1;
    transform: translateX(1.2%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-screen::before,
  .home-screen::after,
  .brand-watermark::before,
  .brand-watermark::after,
  .mark-char,
  .brand-latin,
  .brand-slogan,
  .brand-rule,
  .question-input,
  .ink-form,
  .dream-form,
  .name-form,
  .primary-button.ink-ripple::after,
  .auth-inkscape svg,
  .inkscape-layer {
    animation: none;
  }

  .mark-char {
    opacity: 1;
  }

  .brand-latin,
  .brand-slogan,
  .brand-rule,
  .question-input,
  .ink-form,
  .dream-form,
  .name-form {
    opacity: 1;
    transform: none;
  }
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: 340px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0d0c;
  color: var(--gold-soft);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  body::after {
    inset: 14px;
  }

  .app-shell {
    padding: 14px;
  }

  body.is-home-view .app-shell {
    padding: 14px;
  }

  .auth-button {
    top: 14px;
    right: 14px;
  }

  .records-button {
    top: 66px;
    right: 14px;
  }

  .home-screen {
    min-height: calc(100svh - 28px);
    min-height: calc(100dvh - 28px);
    padding: clamp(58px, 8svh, 76px) 12px clamp(42px, 7svh, 64px);
    gap: clamp(14px, 1.9svh, 18px);
  }

  body.is-home-view .home-screen {
    min-height: calc(100svh - 28px);
    min-height: calc(100dvh - 28px);
    padding: clamp(58px, 8svh, 76px) 12px clamp(42px, 7svh, 64px);
  }

  .home-risk-note {
    width: calc(100vw - 48px);
    margin: 0 auto;
    font-size: clamp(8.5px, 2.35vw, 10.5px);
    line-height: 1.32;
  }

  .site-footer {
    margin-top: -8px;
    padding-bottom: 18px;
    line-height: 1.32;
  }

  body.is-home-view .home-risk-note,
  body.is-home-view .site-footer {
    position: static;
    transform: none;
  }

  .mark-char {
    line-height: 0.82;
  }

  .mark-zi {
    top: -2.09cqw;
    left: -15.56cqw;
    right: auto;
    bottom: auto;
    font-size: 98.69cqw;
  }

  .mark-xiang {
    top: auto;
    left: 15.00cqw;
    right: auto;
    bottom: -18.00cqw;
    color: rgba(201, 169, 110, 0.15);
    font-size: 118.06cqw;
  }

  .brand-intro {
    width: min(320px, 100%);
  }

  .brand-copy {
    gap: 8px;
  }

  .brand-slogan {
    font-size: clamp(25px, 7.6vw, 34px);
    letter-spacing: 0.02em;
  }

  .question-input {
    width: min(224px, 62vw);
    min-height: 40px;
    margin-top: 6px;
    font-size: 12px;
    padding: 11px 16px;
  }

  h1 {
    font-size: 52px;
  }

  .ink-form {
    order: 4;
    width: 100%;
    margin-left: 0;
    justify-items: center;
    gap: clamp(14px, 2.3svh, 18px);
  }

  .dream-form,
  .name-form {
    order: 4;
  }

  .handwriting-pad {
    --pad-size: min(244px, 68vw, 30svh);
  }

  .ink-actions {
    grid-template-columns: 96px 1fr;
    gap: 8px;
    width: min(244px, 68vw, 30svh);
  }

  .ink-actions .primary-button {
    min-width: 0;
  }

  .daily-stamp-pair {
    order: 5;
    gap: 14px;
    padding-bottom: 24px;
  }

  .daily-entry {
    width: 94px;
  }

  .daily-entry strong {
    font-size: 47px;
  }

  .daily-stamp-date {
    top: 79%;
    font-size: 8px;
  }

  .daily-panel {
    order: 6;
    width: min(320px, 100%);
    padding: 16px;
  }

  .daily-panel-body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .daily-list-grid {
    grid-template-columns: 1fr;
  }

  .self-extra-grid,
  .self-report-grid {
    grid-template-columns: 1fr;
  }

  .self-page-head,
  .self-actions,
  .self-nav-row {
    align-items: stretch;
  }

  .dream-reminder-grid {
    grid-template-columns: 1fr;
  }

  .name-meta-grid,
  .numerology-grid {
    grid-template-columns: 1fr;
  }

  .daily-luck {
    text-align: left;
  }

  #dailyPanelChar {
    width: 92px;
    font-size: 62px;
  }

  .report-panel,
  .points-page,
  .records-page,
  .self-page {
    margin-top: -14px;
    padding: 16px;
  }

  .report-head,
  .detail-gate,
    .points-card-grid,
  .records-list,
  .record-card,
    .closing-row,
  .redeem-row,
  .invite-share,
  .auth-code-row {
    grid-template-columns: 1fr;
  }

  .auth-overlay {
    align-items: center;
    padding: 14px;
  }

  .auth-inkscape {
    inset: -5% -62%;
  }

  .auth-inkscape svg {
    width: 190%;
    height: 112%;
  }

  .auth-dialog {
    width: 100%;
    max-height: calc(100dvh - 28px);
    gap: 12px;
    padding: 18px;
  }

  .auth-dialog .dialog-head {
    padding-bottom: 11px;
  }

  .auth-calligraphy {
    margin-top: -4px;
    font-size: 58px;
  }

  .auth-dialog #authTitle {
    font-size: 15px;
  }

  .auth-mode-switch {
    gap: 5px;
    padding: 5px;
  }

  .auth-mode-switch button {
    min-height: 40px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .auth-code-row .ghost-button {
    min-width: 0;
    width: 100%;
  }

  .dialog-actions {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .report-head,
  .closing-row {
    display: grid;
  }

  .points-card-grid {
    display: grid;
  }

  .detail-card.core p {
    font-size: 30px;
  }

  .points-head strong {
    font-size: 68px;
  }

  .primary-button.compact,
  .detail-gate .primary-button {
    width: 100%;
  }
}

/* Cold white ink theme */
body.is-ink-theme {
  color-scheme: light;
  --bg: #f7f8f9;
  --panel: rgba(250, 251, 252, 0.76);
  --panel-soft: rgba(255, 255, 255, 0.5);
  --gold: #a8824a;
  --gold-soft: #7d623d;
  --white: #2a2a2a;
  --ink: #2a2a2a;
  --muted: rgba(42, 42, 42, 0.62);
  --line: rgba(42, 42, 42, 0.18);
  --deep-line: rgba(42, 42, 42, 0.1);
  --shadow: 0 28px 72px rgba(37, 43, 49, 0.14);
  background: #f7f8f9;
  color: #2a2a2a;
}

body.is-ink-theme::before {
  background:
    radial-gradient(ellipse at 15% 18%, rgba(78, 89, 99, 0.045), transparent 25%),
    radial-gradient(ellipse at 86% 74%, rgba(92, 100, 108, 0.038), transparent 26%),
    radial-gradient(circle at 72% 16%, rgba(255, 255, 255, 0.34), transparent 20%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.38), transparent 38%, rgba(111, 124, 137, 0.035)),
    repeating-linear-gradient(7deg, rgba(60, 70, 80, 0.018) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(96deg, rgba(60, 70, 80, 0.014) 0 1px, transparent 1px 11px),
    #f7f8f9;
  opacity: 1;
  mix-blend-mode: normal;
}

body.is-ink-theme::after {
  inset: 22px;
  border-color: rgba(42, 42, 42, 0.12);
  background:
    radial-gradient(circle at 11% 16%, rgba(60, 70, 80, 0.02), transparent 15%),
    radial-gradient(circle at 86% 80%, rgba(60, 70, 80, 0.018), transparent 18%),
    radial-gradient(circle at 50% 42%, transparent 0 58%, rgba(70, 82, 94, 0.026) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(113, 126, 138, 0.018));
}

body.is-ink-theme .app-shell::before,
body.is-ink-theme .app-shell::after {
  border-color: rgba(42, 42, 42, 0.24);
}

body.is-home-view .auth-button,
body.is-home-view .records-button {
  border-color: rgba(42, 42, 42, 0.18);
  background: rgba(250, 251, 252, 0.72);
  color: rgba(42, 42, 42, 0.72);
  box-shadow: 0 14px 36px rgba(52, 45, 32, 0.1);
}

body.is-home-view .auth-button.is-login,
body.is-home-view .auth-button:hover,
body.is-home-view .records-button:hover {
  border-color: rgba(168, 130, 74, 0.46);
  color: #6f552f;
}

body.is-home-view .home-screen::before,
body.is-home-view .home-screen::after {
  display: none;
}

body.is-home-view .brand-watermark {
  display: none;
}

.ink-drop-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  contain: strict;
}

body.is-home-view .mark-char,
body.is-home-view .mark-xiang {
  color: transparent;
  opacity: 0;
  text-shadow: none;
}

body.is-home-view .brand-latin {
  color: rgba(46, 45, 43, 0.9);
}

body.is-home-view .brand-slogan,
body.is-home-view .dream-guide,
body.is-home-view .daily-message {
  color: rgba(46, 45, 43, 0.84);
}

body.is-home-view .brand-rule {
  background: linear-gradient(90deg, transparent, rgba(42, 42, 42, 0.32), rgba(168, 130, 74, 0.48), transparent);
}

body.is-home-view .home-mode-tabs button {
  color: rgba(46, 45, 43, 0.66);
}

body.is-home-view .home-mode-tabs button.is-active {
  color: #2e2d2b;
}

body.is-home-view .home-mode-tabs button.is-active::after {
  background: rgba(168, 130, 74, 0.82);
}

body.is-home-view .name-sub-tabs button {
  border-color: rgba(42, 42, 42, 0.16);
  background: rgba(250, 251, 252, 0.5);
  color: rgba(42, 42, 42, 0.55);
}

body.is-home-view .name-sub-tabs button.is-active {
  border-color: rgba(168, 130, 74, 0.52);
  background: rgba(168, 130, 74, 0.1);
  color: rgba(42, 42, 42, 0.88);
  box-shadow: inset 0 0 16px rgba(168, 130, 74, 0.055);
}

body.is-home-view .gender-toggle button {
  border-color: rgba(42, 42, 42, 0.16);
  background: rgba(250, 251, 252, 0.48);
  color: rgba(42, 42, 42, 0.55);
}

body.is-home-view .gender-toggle button.is-active {
  border-color: rgba(168, 130, 74, 0.52);
  background: rgba(168, 130, 74, 0.1);
  color: rgba(42, 42, 42, 0.86);
}

body.is-home-view .question-input,
body.is-home-view .dream-form textarea,
body.is-home-view .dream-char-row input,
body.is-home-view .name-panel input,
body.is-home-view .name-panel select,
body.is-home-view .name-panel textarea {
  border-color: rgba(42, 42, 42, 0.22);
  background: rgba(250, 251, 252, 0.68);
  color: rgba(42, 42, 42, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.44),
    inset 0 0 24px rgba(42, 42, 42, 0.035),
    0 16px 42px rgba(52, 45, 32, 0.1);
  backdrop-filter: blur(5px);
}

body.is-home-view .question-input::placeholder,
body.is-home-view .dream-form textarea::placeholder,
body.is-home-view .dream-char-row input::placeholder,
body.is-home-view .name-panel input::placeholder,
body.is-home-view .name-panel textarea::placeholder {
  color: rgba(42, 42, 42, 0.46);
}

body.is-home-view .name-meta-grid label {
  color: rgba(42, 42, 42, 0.6);
}

body.is-home-view .question-input:focus,
body.is-home-view .dream-form textarea:focus,
body.is-home-view .dream-char-row input:focus,
body.is-home-view .name-panel input:focus,
body.is-home-view .name-panel select:focus,
body.is-home-view .name-panel textarea:focus {
  border-color: rgba(168, 130, 74, 0.62);
  background: rgba(252, 253, 254, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    0 0 0 3px rgba(168, 130, 74, 0.12),
    0 18px 48px rgba(52, 45, 32, 0.12);
}

body.is-home-view .handwriting-pad {
  border-color: rgba(42, 42, 42, 0.24);
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.82), transparent 36%),
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(42, 42, 42, 0.14) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(42, 42, 42, 0.14) 50%, transparent calc(50% + 0.5px)),
    repeating-linear-gradient(0deg, rgba(42, 42, 42, 0.035) 0 1px, transparent 1px 7px),
    #f4f5f6;
  box-shadow:
    inset 0 0 0 8px rgba(42, 42, 42, 0.025),
    inset 0 0 42px rgba(42, 42, 42, 0.08),
    0 26px 68px rgba(52, 45, 32, 0.16);
}

body.is-home-view .handwriting-pad:focus-within,
body.is-home-view .handwriting-pad.is-writing {
  border-color: rgba(168, 130, 74, 0.62);
  box-shadow:
    inset 0 0 0 8px rgba(42, 42, 42, 0.025),
    inset 0 0 50px rgba(168, 130, 74, 0.08),
    0 0 0 4px rgba(168, 130, 74, 0.12),
    0 30px 80px rgba(52, 45, 32, 0.18);
}

body.is-home-view .handwriting-hint,
body.is-home-view .manual-character-input,
body.is-home-view .handwriting-pad.typing-mode .manual-character-input::placeholder {
  color: rgba(42, 42, 42, 0.48);
}

body.is-home-view .input-mode-toggle {
  border-color: rgba(42, 42, 42, 0.22);
  background: rgba(250, 251, 252, 0.76);
  color: #6f552f;
}

body.is-home-view .input-mode-toggle:hover {
  border-color: rgba(168, 130, 74, 0.56);
  background: rgba(252, 253, 254, 0.88);
}

body.is-home-view .primary-button {
  border-color: rgba(126, 95, 47, 0.48);
  background: linear-gradient(135deg, #b99456, #8e6c3c);
  color: #fff8e8;
  box-shadow: 0 18px 42px rgba(126, 95, 47, 0.22);
}

body.is-home-view .primary-button:hover {
  background: linear-gradient(135deg, #c19b5e, #96713e);
}

body.is-home-view .ghost-button,
body.is-home-view .icon-button {
  border-color: rgba(42, 42, 42, 0.2);
  background: rgba(250, 251, 252, 0.66);
  color: rgba(42, 42, 42, 0.76);
  box-shadow: 0 12px 34px rgba(52, 45, 32, 0.08);
}

body.is-home-view .ghost-button:hover,
body.is-home-view .icon-button:hover {
  border-color: rgba(168, 130, 74, 0.54);
  color: #6f552f;
}

body.is-home-view .daily-stamp-label {
  color: rgba(42, 42, 42, 0.58);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
}

body.is-home-view .daily-panel {
  border-color: rgba(42, 42, 42, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 44%),
    repeating-linear-gradient(90deg, rgba(42, 42, 42, 0.018) 0 1px, transparent 1px 9px),
    rgba(250, 251, 252, 0.82);
  box-shadow: 0 24px 70px rgba(52, 45, 32, 0.14);
  backdrop-filter: blur(7px);
}

body.is-home-view .daily-panel-head h2,
body.is-home-view .daily-intro,
body.is-home-view .daily-luck strong,
body.is-home-view .daily-list-block li {
  color: rgba(42, 42, 42, 0.88);
}

body.is-home-view #dailyDateLabel,
body.is-home-view .daily-meaning,
body.is-home-view .daily-luck span {
  color: rgba(42, 42, 42, 0.62);
}

body.is-home-view #dailyPanelChar,
body.is-home-view .daily-luck,
body.is-home-view .daily-list-block {
  border-color: rgba(42, 42, 42, 0.18);
  background: rgba(250, 251, 252, 0.58);
}

body.is-home-view #dailyPanelChar {
  color: rgba(42, 42, 42, 0.9);
  text-shadow: none;
}

body.is-home-view .daily-luck em,
body.is-home-view .daily-list-block li::before {
  color: #8a6838;
}

body.is-home-view .daily-list-block.is-do h3 {
  color: #2f7050;
}

body.is-home-view .daily-list-block.is-avoid h3 {
  color: #9a5a4a;
}

body.is-home-view .home-risk-note,
body.is-home-view .site-footer {
  color: rgba(42, 42, 42, 0.54);
}

body.is-home-view .toast {
  background: rgba(42, 42, 42, 0.9);
  color: #f8f4e8;
}

@media (max-width: 760px) {
  body.is-home-view::before {
    background:
      radial-gradient(ellipse at 18% 22%, rgba(78, 89, 99, 0.04), transparent 25%),
      radial-gradient(ellipse at 84% 78%, rgba(92, 100, 108, 0.032), transparent 24%),
      linear-gradient(115deg, rgba(255, 255, 255, 0.34), transparent 38%, rgba(111, 124, 137, 0.03)),
      repeating-linear-gradient(7deg, rgba(60, 70, 80, 0.016) 0 1px, transparent 1px 8px),
      repeating-linear-gradient(96deg, rgba(60, 70, 80, 0.012) 0 1px, transparent 1px 11px),
      #f7f8f9;
  }

  body.is-home-view .mark-char,
  body.is-home-view .mark-xiang {
    color: transparent;
    opacity: 0;
  }
}

/* name-share-modal-v2:start */
@font-face {
  font-family: "MaShanZhengShare";
  src: url("./assets/fonts/MaShanZheng-Share.woff2?v=share1") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

#shareDialog.share-overlay {
  background: rgba(17, 17, 17, 0.36);
  backdrop-filter: blur(8px);
}

.share-preview-dialog,
body.is-ink-theme .share-preview-dialog {
  width: min(500px, 96vw);
  max-height: calc(100svh - 20px);
  gap: 10px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 14px;
  background: #f7f8f9;
  box-shadow: 0 20px 54px rgba(17, 17, 17, 0.18);
  padding: 14px;
}

.share-preview-dialog .dialog-head {
  min-height: 34px;
  align-items: center;
  margin: 0;
  padding: 0 2px;
}

.share-preview-dialog .eyebrow {
  display: none;
}

.share-preview-dialog h2,
body.is-ink-theme .share-preview-dialog h2 {
  margin: 0;
  color: #171717;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.share-preview-dialog .share-close-button,
body.is-ink-theme .share-preview-dialog .share-close-button {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 50%;
  padding: 0 0 2px;
  background: rgba(23, 23, 23, 0.035);
  box-shadow: none;
  color: rgba(23, 23, 23, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}

.share-preview-dialog .share-close-button:hover,
body.is-ink-theme .share-preview-dialog .share-close-button:hover {
  border: 0;
  background: rgba(23, 23, 23, 0.07);
  color: #171717;
}

.share-preview-dialog > img,
body.is-ink-theme .share-preview-dialog > img {
  display: block;
  width: min(100%, 405px);
  max-height: calc(100svh - 112px);
  margin: 0 auto;
  border: 0;
  border-radius: 3px;
  background: #f7f8f9;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.09);
  object-fit: contain;
}

.share-preview-dialog .share-save-tip,
body.is-ink-theme .share-preview-dialog .share-save-tip {
  margin: 0;
  color: rgba(23, 23, 23, 0.5);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 13px;
}

@media (max-width: 520px) {
  .share-preview-dialog,
  body.is-ink-theme .share-preview-dialog {
    width: min(96vw, 430px);
    padding: 10px;
  }

  .share-preview-dialog > img,
  body.is-ink-theme .share-preview-dialog > img {
    max-height: calc(100svh - 100px);
  }
}
/* name-share-modal-v2:end */
/* name-share-modal-v2:end */
/* name-share-modal-v2:end */

/* market-validation-journey:start */
.journey-experience {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.daily-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.sharp-insight-card,
.follow-up-section,
.conversation-panel,
.later-update-card,
.journey-actions,
.pattern-reminder {
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 46%),
    rgba(5, 5, 5, 0.52);
}

.sharp-insight-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 38px);
}

.sharp-insight-card::before {
  content: "字";
  position: absolute;
  right: -30px;
  bottom: -96px;
  color: rgba(201, 169, 110, 0.07);
  font-family: "Zhi Mang Xing", "STKaiti", "KaiTi", cursive;
  font-size: 260px;
  line-height: 1;
  pointer-events: none;
}

.sharp-insight-kicker,
.journey-section-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sharp-insight-kicker span,
.journey-section-head > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.sharp-insight-kicker em {
  color: rgba(234, 215, 173, 0.5);
  font-size: 12px;
  font-style: normal;
}

.sharp-insight-card > p {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: #fff;
  font-family: var(--reading-font);
  font-size: clamp(20px, 2.45vw, 28px);
  font-weight: 650;
  line-height: 1.82;
  letter-spacing: 0;
}

.pattern-reminder {
  border-color: rgba(231, 178, 93, 0.34);
  background: rgba(201, 169, 110, 0.09);
  color: rgba(244, 230, 195, 0.9);
  font-size: 14px;
  line-height: 1.8;
  padding: 14px 16px;
}

.follow-up-section,
.conversation-panel,
.later-update-card {
  display: grid;
  gap: 15px;
  padding: 18px;
}

.journey-section-head h3 {
  margin-top: 4px;
  color: var(--gold-soft);
  font-size: 20px;
}

.follow-up-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.follow-up-option,
.next-prompt {
  font-family: var(--reading-font);
  border: 1px solid rgba(201, 169, 110, 0.24);
  border-radius: 8px;
  background: rgba(201, 169, 110, 0.055);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 850;
  line-height: 1.55;
  padding: 13px 14px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.follow-up-option:hover,
.next-prompt:hover {
  border-color: rgba(201, 169, 110, 0.62);
  background: rgba(201, 169, 110, 0.13);
  transform: translateY(-1px);
}

.follow-up-option {
  text-align: left;
}

.follow-up-option strong,
.follow-up-option span {
  display: block;
}

.follow-up-option strong {
  margin-bottom: 5px;
  color: var(--gold-soft);
}

.follow-up-option span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

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

.conversation-message {
  max-width: min(88%, 720px);
  border: 1px solid rgba(201, 169, 110, 0.16);
  border-radius: 12px 12px 12px 3px;
  background: rgba(255, 255, 255, 0.04);
  padding: 13px 15px;
}

.conversation-message.is-user {
  justify-self: end;
  border-radius: 12px 12px 3px 12px;
  background: rgba(201, 169, 110, 0.12);
}

.conversation-message span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.conversation-message p {
  font-family: var(--reading-font);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.conversation-message em {
  display: block;
  margin-top: 6px;
  color: rgba(234, 215, 173, 0.46);
  font-size: 11px;
  font-style: normal;
}

.conversation-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.conversation-compose textarea,
.later-update-card textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(201, 169, 110, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.36);
  color: #fff;
  font: inherit;
  line-height: 1.7;
  outline: none;
  padding: 12px 14px;
}

.conversation-compose textarea:focus,
.later-update-card textarea:focus {
  border-color: rgba(201, 169, 110, 0.62);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.08);
}

.next-prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.next-prompt {
  padding: 8px 11px;
  color: rgba(234, 215, 173, 0.78);
  font-size: 12px;
}

.journey-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}

.journey-actions > * {
  width: 100%;
}

body.is-ink-theme .sharp-insight-card,
body.is-ink-theme .follow-up-section,
body.is-ink-theme .conversation-panel,
body.is-ink-theme .later-update-card,
body.is-ink-theme .journey-actions,
body.is-ink-theme .pattern-reminder {
  border-color: rgba(91, 70, 43, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), transparent 52%),
    #f8f3e9;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.56),
    0 14px 34px rgba(66, 51, 34, 0.08);
}

body.is-ink-theme .sharp-insight-card {
  background:
    radial-gradient(circle at 92% 12%, rgba(168, 130, 74, 0.1), transparent 31%),
    linear-gradient(145deg, #fffdf8, #f4ecde);
}

body.is-ink-theme .sharp-insight-card::before {
  color: rgba(126, 95, 47, 0.08);
}

body.is-ink-theme .sharp-insight-kicker span,
body.is-ink-theme .journey-section-head > span {
  color: #795526;
}

body.is-ink-theme .sharp-insight-kicker em {
  color: #625b52;
}

body.is-ink-theme .sharp-insight-card > p {
  color: #24201b;
  font-weight: 750;
  text-shadow: none;
}

body.is-ink-theme .pattern-reminder {
  border-color: rgba(139, 100, 48, 0.28);
  background: #f4ead7;
  color: #40372d;
}

body.is-ink-theme .journey-section-head h3 {
  color: #312b24;
}

body.is-ink-theme .follow-up-option,
body.is-ink-theme .next-prompt {
  border-color: rgba(126, 95, 47, 0.25);
  background: rgba(255, 253, 248, 0.86);
  color: #312b24;
  box-shadow: 0 8px 20px rgba(66, 51, 34, 0.045);
}

body.is-ink-theme .follow-up-option:hover,
body.is-ink-theme .next-prompt:hover {
  border-color: rgba(126, 95, 47, 0.54);
  background: #f5ead5;
}

body.is-ink-theme .follow-up-option strong {
  color: #69491f;
}

body.is-ink-theme .follow-up-option span {
  color: #514a42;
}

body.is-ink-theme .conversation-message {
  border-color: rgba(91, 70, 43, 0.16);
  background: #fffdf8;
  box-shadow: 0 8px 22px rgba(66, 51, 34, 0.05);
}

body.is-ink-theme .conversation-message.is-user {
  border-color: rgba(126, 95, 47, 0.22);
  background: #eee1c9;
}

body.is-ink-theme .conversation-message span {
  color: #795526;
}

body.is-ink-theme .conversation-message p {
  color: #302a24;
}

body.is-ink-theme .conversation-message em {
  color: #6c645b;
}

body.is-ink-theme .conversation-compose textarea,
body.is-ink-theme .later-update-card textarea {
  border-color: rgba(91, 70, 43, 0.22);
  background: #fffdf8;
  color: #29241f;
  box-shadow: inset 0 1px 3px rgba(66, 51, 34, 0.05);
}

body.is-ink-theme .conversation-compose textarea:focus,
body.is-ink-theme .later-update-card textarea:focus {
  border-color: rgba(126, 95, 47, 0.58);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(168, 130, 74, 0.12);
}

body.is-ink-theme .conversation-compose textarea::placeholder,
body.is-ink-theme .later-update-card textarea::placeholder {
  color: rgba(48, 42, 36, 0.48);
}

body.is-ink-theme .next-prompt {
  color: #5a4935;
}

body.is-ink-theme .journey-actions {
  background: rgba(248, 243, 233, 0.9);
}

.funnel-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 54px);
}

.funnel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.funnel-head h1 {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(36px, 6vw, 72px);
}

.funnel-head > div > p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

.funnel-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.funnel-controls select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0d0c;
  color: var(--gold-soft);
  padding: 0 12px;
}

.funnel-controls a {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.panel-card,
.funnel-step {
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 10px;
  background: rgba(8, 8, 7, 0.7);
  box-shadow: var(--shadow);
}

.funnel-status {
  margin-top: 28px;
  color: var(--gold-soft);
  padding: 16px 18px;
}

.funnel-status a {
  color: var(--gold);
}

.funnel-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.funnel-step {
  min-width: 0;
  padding: 16px;
}

.funnel-step > span,
.funnel-step em {
  color: rgba(234, 215, 173, 0.46);
  font-size: 11px;
  font-style: normal;
}

.funnel-step h2 {
  margin-top: 15px;
  color: var(--gold-soft);
  font-size: 15px;
}

.funnel-step strong {
  display: block;
  margin: 12px 0 10px;
  color: #fff;
  font-size: 42px;
}

.funnel-step p {
  color: var(--gold);
  font-size: 12px;
}

.funnel-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.funnel-detail-grid .panel-card {
  min-width: 0;
  padding: 18px;
}

.funnel-detail-grid h2 {
  margin-bottom: 16px;
  color: var(--gold-soft);
}

.funnel-table-wrap {
  overflow-x: auto;
}

.funnel-table {
  width: 100%;
  border-collapse: collapse;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.funnel-table th,
.funnel-table td {
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
  padding: 11px 8px;
  text-align: left;
  white-space: nowrap;
}

.funnel-table th {
  color: var(--gold);
}

.funnel-rank {
  display: grid;
  gap: 18px;
}

.funnel-rank h3 {
  color: var(--gold);
  font-size: 14px;
}

.funnel-rank ol {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.funnel-rank li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.76);
}

.funnel-rank li span {
  color: var(--muted);
}

@media (max-width: 980px) {
  .funnel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funnel-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .follow-up-grid,
  .journey-actions,
  .conversation-compose {
    grid-template-columns: 1fr;
  }

  .journey-section-head,
  .sharp-insight-kicker,
  .funnel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sharp-insight-card > p {
    font-size: 21px;
    line-height: 1.86;
  }

  .conversation-message {
    max-width: 96%;
  }
}

@media (max-width: 520px) {
  .funnel-grid {
    grid-template-columns: 1fr;
  }
}
/* market-validation-journey:end */

/* Monthly energy visual: keep the homepage entry compact and unobtrusive. */
.energy-home-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: rgba(201, 169, 110, 0.82);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

.energy-home-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 17px;
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 999px;
  color: rgba(242, 218, 164, 0.94);
  font-size: 9px;
  letter-spacing: 0;
}

.energy-home-link:hover,
.energy-home-link:focus-visible {
  color: #f4dfad;
}

@media (max-width: 620px) {
  .energy-home-link {
    margin-top: 10px;
  }
}
