:root {
  --ink: #26190e;
  --ink-2: #463019;
  --panel: rgba(84, 54, 27, 0.74);
  --panel-strong: rgba(103, 68, 34, 0.86);
  --paper: #f7ead0;
  --paper-soft: #dfc99f;
  --muted: #bea77c;
  --gold: #c9963d;
  --gold-2: #f0cf83;
  --cinnabar: #b23b2f;
  --cinnabar-2: #d85e43;
  --pine: #58705a;
  --jade: #8bad82;
  --blue: #6d84a8;
  --border: rgba(230, 182, 91, 0.28);
  --border-strong: rgba(240, 207, 131, 0.46);
  --shadow: 0 24px 64px rgba(54, 32, 12, 0.28);
  --radius: 8px;
  --max: 1120px;
  --brush-font: "STXingkai", "华文行楷", "FZKai-Z03S", "KaiTi", "楷体", "Noto Serif SC", serif;
  --dao-celadon: #9bb8a5;
  --dao-ink: #0f1b18;
  --dao-bronze: #b89455;
  color-scheme: dark;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(60, 36, 15, 0.08), rgba(87, 58, 29, 0.42) 54%, #d8bd8b 100%),
    url("assets/temple-bg-bright.png") center top / cover fixed,
    #d8bd8b;
  color: var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(55, 33, 13, 0.28), transparent 24%, transparent 76%, rgba(55, 33, 13, 0.24)),
    linear-gradient(180deg, rgba(255, 236, 190, 0.06), rgba(82, 50, 20, 0.28) 66%, rgba(59, 38, 18, 0.52) 100%);
}

body.theme-dao {
  --ink: #0f1b18;
  --ink-2: #1d312a;
  --panel: rgba(18, 37, 32, 0.78);
  --panel-strong: rgba(27, 52, 45, 0.9);
  --paper: #f1f4df;
  --paper-soft: #c6d1bc;
  --muted: #9fb1a0;
  --gold: var(--dao-bronze);
  --gold-2: #dfc77d;
  --cinnabar: #9d332c;
  --cinnabar-2: #c44e3d;
  --pine: #365f52;
  --jade: var(--dao-celadon);
  --blue: #6f8f8a;
  --border: rgba(191, 160, 86, 0.26);
  --border-strong: rgba(223, 199, 125, 0.48);
  --shadow: 0 24px 64px rgba(4, 13, 12, 0.36);
  background:
    linear-gradient(180deg, rgba(12, 26, 23, 0.12), rgba(15, 31, 27, 0.5) 54%, #0f1b18 100%),
    url("assets/temple-bg-dao.png") center top / cover fixed,
    #0f1b18;
}

body.theme-dao::before {
  background:
    linear-gradient(90deg, rgba(5, 12, 11, 0.46), transparent 28%, transparent 74%, rgba(5, 12, 11, 0.3)),
    linear-gradient(180deg, rgba(155, 184, 165, 0.05), rgba(10, 26, 23, 0.38) 62%, rgba(5, 13, 12, 0.72) 100%);
}

body.theme-dao .site-header,
body.theme-dao .bottom-nav {
  border-color: rgba(191, 160, 86, 0.18);
  background: rgba(14, 28, 25, 0.82);
}

body.theme-dao .brand-mark,
body.theme-dao .service-icon,
body.theme-dao .round-icon {
  background: linear-gradient(180deg, rgba(223, 199, 125, 0.2), rgba(54, 95, 82, 0.32));
}

body.theme-dao .primary-button {
  border-color: rgba(157, 51, 44, 0.72);
  box-shadow: 0 12px 26px rgba(157, 51, 44, 0.2);
}

body.theme-dao .soft-button {
  border-color: rgba(155, 184, 165, 0.42);
  background: rgba(54, 95, 82, 0.3);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 14px;
  align-content: center;
  color: var(--gold-2);
}

.boot-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(92, 59, 29, 0.66);
  font-size: 34px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(230, 182, 91, 0.18);
  background: rgba(73, 46, 22, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark,
.service-icon,
.round-icon {
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(239, 203, 126, 0.22), rgba(88, 112, 90, 0.18));
  color: var(--gold-2);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 20px;
  overflow: hidden;
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-title {
  display: grid;
  line-height: 1.1;
}

.brand-title strong {
  color: var(--gold-2);
  font-size: 24px;
  letter-spacing: 0.14em;
}

body.theme-dao .brand-title strong {
  font-family: var(--brush-font);
  font-weight: 500;
  letter-spacing: 0;
  text-shadow: 0 5px 16px rgba(0, 0, 0, 0.28);
}

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

.desktop-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 2px;
}

.desktop-nav a,
.bottom-nav a {
  color: var(--paper-soft);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.desktop-nav a {
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 14px;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: rgba(240, 207, 131, 0.14);
  color: var(--gold-2);
}

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

.icon-button,
.ghost-button,
.primary-button,
.soft-button,
.danger-button {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--paper);
  background: rgba(80, 50, 24, 0.72);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-button {
  width: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.icon-button.active {
  border-color: var(--gold);
  color: var(--gold-2);
  background: rgba(157, 51, 44, 0.34);
  box-shadow: 0 0 0 3px rgba(223, 199, 125, 0.08);
}

.ghost-button,
.primary-button,
.soft-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
}

.primary-button {
  border-color: rgba(187, 63, 53, 0.7);
  background: linear-gradient(180deg, var(--cinnabar-2), var(--cinnabar));
  color: #fffaf0;
  box-shadow: 0 12px 26px rgba(187, 63, 53, 0.18);
}

.soft-button {
  border-color: rgba(139, 176, 141, 0.4);
  background: rgba(88, 112, 90, 0.28);
}

.danger-button {
  border-color: rgba(224, 106, 79, 0.55);
  color: #ffd5c6;
  background: rgba(187, 63, 53, 0.22);
}

.icon-button:hover,
.ghost-button:hover,
.primary-button:hover,
.soft-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 18px 96px;
}

.hero {
  min-height: calc(100svh - 88px);
  display: grid;
  align-items: center;
  padding: 34px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 34px;
  align-items: center;
}

.hero-copy h1 {
  text-align: center;
}

body.theme-dao .hero-copy h1 {
  font-family: var(--brush-font);
  font-weight: 500;
  letter-spacing: 0;
  text-shadow:
    0 7px 18px rgba(0, 0, 0, 0.36),
    0 0 18px rgba(223, 199, 125, 0.12);
}

.hero h1,
.page-title h1 {
  margin: 0;
  color: var(--gold-2);
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-shadow: 0 10px 30px rgba(44, 25, 10, 0.36);
}

.hero p,
.page-title p,
.lead {
  color: var(--paper-soft);
  line-height: 1.9;
  font-size: 17px;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(86, 56, 29, 0.74), rgba(57, 38, 19, 0.78));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual {
  min-height: 392px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(60, 36, 15, 0.02), rgba(70, 45, 22, 0.58)),
    url("assets/temple-bg-bright.png") center / cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(56, 37, 19, 0.82));
}

body.theme-dao .hero-panel {
  background: linear-gradient(180deg, rgba(20, 43, 37, 0.78), rgba(9, 23, 20, 0.84));
}

body.theme-dao .hero-visual {
  background:
    linear-gradient(180deg, rgba(9, 22, 19, 0.02), rgba(8, 25, 22, 0.56)),
    url("assets/temple-bg-dao.png") center / cover;
}

body.theme-dao .hero-visual::after {
  background: linear-gradient(180deg, transparent, rgba(8, 20, 18, 0.88));
}

.ritual-strip {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.ritual-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(230, 182, 91, 0.24);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(67, 43, 22, 0.72);
  color: var(--paper-soft);
}

.ritual-row strong {
  color: var(--gold-2);
}

.section {
  padding: 34px 0;
}

.section-head,
.page-title {
  margin-bottom: 20px;
}

.section-head h2,
.page-title h1,
.panel h2 {
  margin: 0 0 8px;
  color: var(--gold-2);
  font-weight: 500;
}

.section-head p,
.panel p {
  margin: 0;
  color: var(--paper-soft);
  line-height: 1.75;
}

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

.service-card,
.panel,
.result-card,
.lamp-card,
.history-item,
.track-row,
.name-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(54, 32, 12, 0.18);
}

.service-card {
  display: grid;
  gap: 12px;
  min-height: 184px;
  padding: 18px;
}

.service-card:hover {
  border-color: var(--border-strong);
  background: var(--panel-strong);
}

.service-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.service-icon,
.round-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 18px;
}

.service-card h3,
.result-card h3,
.lamp-card h3,
.name-card h3 {
  margin: 0;
  color: var(--paper);
  font-weight: 500;
}

.service-card p,
.result-card p,
.history-item p,
.track-row p,
.name-card p {
  margin: 0;
  color: var(--paper-soft);
  line-height: 1.65;
  font-size: 14px;
}

.dao-proof-section {
  padding-top: 28px;
}

.dao-proof-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(223, 199, 125, 0.35);
  border-radius: var(--radius);
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(223, 199, 125, 0.11), transparent 26%),
    linear-gradient(180deg, rgba(39, 31, 21, 0.86), rgba(27, 24, 18, 0.92));
  box-shadow: 0 18px 52px rgba(4, 13, 12, 0.34), inset 0 0 0 1px rgba(245, 222, 159, 0.04);
}

.dao-proof-head {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.dao-proof-head h2 {
  margin: 0;
  color: var(--gold-2);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.dao-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dao-proof-grid article {
  min-height: 118px;
  border: 1px solid rgba(223, 199, 125, 0.22);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(244, 226, 180, 0.05);
}

.dao-proof-grid h3 {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 18px;
  font-weight: 500;
}

.dao-proof-grid p {
  margin: 0;
  color: var(--paper-soft);
  line-height: 1.75;
}

.dao-book-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 28px;
  margin-top: 32px;
  align-items: end;
}

.dao-book {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 228px;
  border: 1px solid rgba(123, 82, 31, 0.7);
  border-radius: 3px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 78%, rgba(48, 43, 34, 0.2), transparent 20%),
    linear-gradient(90deg, rgba(116, 75, 31, 0.4), transparent 8%, transparent 88%, rgba(116, 75, 31, 0.58)),
    linear-gradient(180deg, #ead8ad, #cfb079);
  box-shadow: 0 14px 28px rgba(7, 7, 5, 0.38), inset 0 0 22px rgba(80, 44, 16, 0.26);
}

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

.dao-book::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(83, 54, 20, 0.35) 0 3px, transparent 3px calc(100% - 3px), rgba(83, 54, 20, 0.45) calc(100% - 3px)),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 34%, rgba(78, 48, 17, 0.18));
}

.dao-book::after {
  left: 14px;
  bottom: 18px;
  width: 58px;
  height: 62px;
  border-left: 1px solid rgba(73, 73, 55, 0.35);
  border-bottom: 1px solid rgba(73, 73, 55, 0.28);
  opacity: 0.55;
}

.dao-book span {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  color: #302315;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(255, 244, 210, 0.45);
}

.dao-book i {
  position: absolute;
  right: 18px;
  bottom: 28px;
  width: 12px;
  height: 20px;
  border: 1px solid rgba(155, 45, 32, 0.62);
}

.dao-action-stack {
  position: relative;
  display: grid;
  gap: 72px;
  padding: 48px 0 28px;
}

.dao-action-stack::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(223, 199, 125, 0.24), transparent);
}

.dao-action-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px solid rgba(214, 188, 126, 0.72);
  border-radius: var(--radius);
  padding: 44px 24px;
  background: #ece3d1;
  color: #26231d;
  text-align: center;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
}

.dao-action-card::before {
  content: "";
  position: absolute;
  top: -45px;
  left: 50%;
  width: 108px;
  height: 45px;
  transform: translateX(-50%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: rgba(46, 34, 20, 0.75);
}

.dao-action-card:first-child::before {
  display: none;
}

.dao-action-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(196, 78, 61, 0.34);
  border-radius: 999px;
  color: var(--cinnabar-2);
  background: rgba(196, 78, 61, 0.08);
  font-size: 24px;
}

.dao-action-card > span {
  color: #6f6658;
}

.dao-action-card h2 {
  margin: 0;
  color: #2e2a23;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.dao-action-card p {
  max-width: 620px;
  margin: 0;
  color: #3a352d;
  font-size: 17px;
  line-height: 1.9;
}

.dao-closing {
  position: relative;
  display: grid;
  min-height: 330px;
  margin-top: 26px;
  margin-left: calc(50% - var(--app-vw, 100vw) / 2);
  margin-right: calc(50% - var(--app-vw, 100vw) / 2);
  place-items: center;
  width: var(--app-vw, 100vw);
  overflow: hidden;
  border-top: 1px solid rgba(215, 181, 91, 0.16);
  background:
    radial-gradient(circle at 50% 0, rgba(191, 62, 43, 0.08), transparent 24%),
    radial-gradient(circle at 95% 0, rgba(236, 199, 105, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(22, 18, 13, 0.18), rgba(12, 10, 8, 0.72));
  text-align: center;
}

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

.dao-closing::before {
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(218, 183, 93, 0.25), transparent);
}

.dao-closing::after {
  right: -8%;
  top: -20%;
  width: 42%;
  height: 92%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 181, 91, 0.08), transparent 62%);
  opacity: 0.6;
}

.dao-talisman {
  position: absolute;
  inset: -18px 18% 4px;
  opacity: 0.17;
  pointer-events: none;
}

.dao-talisman::before,
.dao-talisman::after,
.dao-talisman span {
  content: "";
  position: absolute;
  border: 3px solid rgba(160, 117, 47, 0.55);
}

.dao-talisman::before {
  top: -36px;
  left: 26%;
  width: 48%;
  height: 116px;
  transform: rotate(30deg);
}

.dao-talisman::after {
  top: 42px;
  left: 30%;
  width: 40%;
  height: 114px;
  transform: rotate(45deg);
}

.dao-talisman span:nth-child(1) {
  left: 34%;
  bottom: 4px;
  width: 12%;
  height: 204px;
  border-top: 0;
}

.dao-talisman span:nth-child(2) {
  left: 46%;
  bottom: 4px;
  width: 12%;
  height: 204px;
  border-top: 0;
}

.dao-talisman span:nth-child(3) {
  left: 40%;
  top: 46px;
  width: 38px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: rgba(158, 49, 40, 0.5);
  box-shadow: 292px 0 0 rgba(158, 49, 40, 0.5);
}

.dao-closing-copy {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 760px;
  justify-items: center;
  gap: 20px;
  padding: 56px 22px 68px;
}

.dao-closing-copy p {
  margin: 0;
  color: rgba(232, 220, 197, 0.7);
  font-size: 16px;
  line-height: 1.9;
}

.dao-closing-copy .dao-closing-lead {
  color: var(--gold-2);
  font-size: 17px;
}

.dao-closing-copy i {
  display: block;
  width: 54px;
  height: 1px;
  margin: 2px 0 2px;
  background: linear-gradient(90deg, transparent, rgba(215, 181, 91, 0.45), transparent);
}

.dao-closing-copy .dao-closing-sign {
  color: rgba(228, 206, 151, 0.76);
  font-size: 15px;
}

.tag,
.status-pill,
.mini-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(240, 207, 131, 0.12);
}

.tag {
  padding: 4px 8px;
  font-size: 12px;
}

.status-pill,
.mini-pill {
  padding: 5px 10px;
  font-size: 13px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 18px;
  align-items: start;
}

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

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  padding: 18px;
}

.panel + .panel,
.stack > * + * {
  margin-top: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--paper-soft);
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(230, 182, 91, 0.24);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(47, 31, 16, 0.58);
  color: var(--paper);
  outline: none;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
}

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

.option-tile,
.lamp-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  text-align: left;
}

.option-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(66, 42, 21, 0.62);
  color: var(--paper);
}

.option-tile.selected,
.lamp-card.selected {
  border-color: var(--gold);
  background: rgba(197, 138, 44, 0.22);
}

.lamp-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  box-shadow: 0 0 24px currentColor;
}

.wall-list,
.history-list,
.result-list {
  display: grid;
  gap: 10px;
}

.history-item,
.result-card,
.track-row,
.name-card {
  padding: 14px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.history-item strong {
  color: var(--gold-2);
}

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

.stat {
  border: 1px solid rgba(230, 182, 91, 0.20);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(47, 31, 16, 0.36);
}

.stat strong {
  display: block;
  color: var(--gold-2);
  font-size: 24px;
  font-weight: 500;
}

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

.divider {
  height: 1px;
  margin: 16px 0;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.result-card {
  display: grid;
  gap: 10px;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hexagram-lines {
  display: grid;
  gap: 7px;
  width: 128px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(47, 31, 16, 0.38);
}

.yao {
  height: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.yao.broken {
  grid-template-columns: 1fr 1fr;
}

.yao span {
  border-radius: 999px;
  background: var(--gold-2);
}

.progress {
  position: relative;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 239, 200, 0.14);
}

.progress span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--jade), var(--gold));
  transition: width 240ms ease;
}

.track-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.temple-stage {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(60, 36, 15, 0.04), rgba(64, 41, 21, 0.64)),
    url("assets/temple-bg-bright.png") center / cover;
  box-shadow: var(--shadow);
}

body.theme-dao .temple-stage {
  background:
    linear-gradient(180deg, rgba(10, 23, 20, 0.04), rgba(8, 24, 21, 0.66)),
    url("assets/temple-bg-dao.png") center / cover;
}

.altar {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: min(76%, 360px);
  transform: translateX(-50%);
  display: grid;
  gap: 10px;
  justify-items: center;
}

.incense-bowl {
  width: 210px;
  height: 62px;
  border-radius: 0 0 90px 90px;
  border: 1px solid rgba(211, 168, 79, 0.45);
  background: linear-gradient(180deg, #9b6941, #5d341f);
}

.incense-sticks {
  display: flex;
  gap: 18px;
  height: 150px;
  align-items: end;
}

.stick {
  width: 5px;
  height: 118px;
  position: relative;
  border-radius: 999px;
  background: linear-gradient(180deg, #d8bd83, #74342c);
}

.stick::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -70px;
  width: 28px;
  height: 70px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(244, 234, 211, 0), rgba(244, 234, 211, 0.28));
  filter: blur(6px);
  animation: smoke 3.4s ease-in-out infinite;
}

@keyframes smoke {
  0%, 100% { transform: translateX(-50%) translateY(8px) scaleX(0.8); opacity: 0.24; }
  45% { transform: translateX(-70%) translateY(-10px) scaleX(1.2); opacity: 0.52; }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(43, 25, 10, 0.44);
}

.modal {
  width: min(420px, 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(61, 40, 21, 0.96);
  color: var(--paper);
  box-shadow: var(--shadow);
  padding: 20px;
}

.modal h2 {
  margin: 0 0 8px;
  color: var(--gold-2);
  font-weight: 500;
}

.share-modal {
  width: min(460px, 100%);
}

.share-qr {
  display: grid;
  width: min(260px, 100%);
  margin: 18px auto 14px;
  padding: 12px;
  border: 1px solid rgba(240, 207, 131, 0.3);
  border-radius: var(--radius);
  background: #f7ead0;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 19, 0.08);
}

.qr-svg,
.qr-image {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}

.qr-image {
  border-radius: 6px;
  background: #fff;
}

.share-link {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid rgba(230, 182, 91, 0.22);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(47, 31, 16, 0.42);
  color: var(--paper-soft);
  font-size: 13px;
  line-height: 1.6;
}

.referral-link {
  margin: 14px 0 8px;
}

.mini-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.toast-root {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 100;
  display: grid;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(61, 40, 21, 0.94);
  color: var(--gold-2);
  box-shadow: 0 14px 34px rgba(54, 32, 12, 0.24);
}

.bottom-nav {
  position: fixed;
  inset: auto 0 0;
  z-index: 32;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(230, 182, 91, 0.18);
  background: rgba(73, 46, 22, 0.88);
  backdrop-filter: blur(18px);
}

.bottom-nav a {
  display: grid;
  justify-items: center;
  gap: 3px;
  border-radius: var(--radius);
  padding: 7px 4px;
  font-size: 11px;
}

.bottom-nav a strong {
  font-size: 16px;
  font-weight: 500;
}

.bottom-nav a.active {
  background: rgba(240, 207, 131, 0.14);
  color: var(--gold-2);
}

.empty-state {
  border: 1px dashed rgba(230, 182, 91, 0.28);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.preview-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.mobile-only {
  display: none;
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .dao-proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .dao-proof-grid article {
    padding: 14px;
  }

  .dao-proof-grid h3 {
    font-size: 16px;
  }

  .dao-proof-grid p {
    font-size: 14px;
    line-height: 1.65;
  }

  .dao-book-row {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 18px;
  }

  .dao-talisman {
    inset-inline: 8%;
  }

  .dao-talisman span:nth-child(3) {
    box-shadow: 214px 0 0 rgba(158, 49, 40, 0.5);
  }
}

@media (max-width: 680px) {
  body {
    background-attachment: scroll;
  }

  .header-inner {
    height: 58px;
    padding: 0 14px;
  }

  .brand-title strong {
    font-size: 21px;
  }

  .brand-title span,
  .hide-sm {
    display: none;
  }

  .main {
    padding: 18px 14px 92px;
  }

  .hero {
    min-height: auto;
    padding-top: 22px;
  }

  .hero h1,
  .page-title h1 {
    font-size: 46px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .service-grid,
  .two-col,
  .three-col,
  .form-grid,
  .select-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .dao-proof-grid {
    display: flex;
    gap: 10px;
    margin: 0 -2px;
    padding: 0 2px 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .dao-proof-grid article {
    flex: 0 0 min(76vw, 240px);
    min-height: 0;
    padding: 12px;
    scroll-snap-align: start;
  }

  .dao-proof-grid h3 {
    margin-bottom: 7px;
    font-size: 15px;
  }

  .dao-proof-grid p {
    font-size: 13px;
    line-height: 1.55;
  }

  .service-card {
    min-height: 150px;
  }

  .dao-proof-shell {
    padding: 18px;
  }

  .dao-proof-head h2,
  .dao-action-card h2 {
    font-size: 26px;
  }

  .dao-book-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .dao-book {
    min-height: 184px;
  }

  .dao-book span {
    font-size: 23px;
  }

  .dao-action-stack {
    gap: 52px;
    padding-top: 34px;
  }

  .dao-action-card {
    padding: 34px 18px;
  }

  .dao-closing {
    min-height: 330px;
    margin-left: -14px;
    margin-right: -14px;
  }

  .dao-talisman {
    inset: 0 -14% 0;
  }

  .dao-talisman::before {
    left: 16%;
    width: 68%;
  }

  .dao-talisman::after {
    left: 18%;
    width: 64%;
  }

  .dao-talisman span:nth-child(1) {
    left: 24%;
    width: 22%;
  }

  .dao-talisman span:nth-child(2) {
    left: 46%;
    width: 22%;
  }

  .dao-talisman span:nth-child(3) {
    left: 27%;
    width: 32px;
    height: 50px;
    box-shadow: 160px 0 0 rgba(158, 49, 40, 0.5);
  }

  .dao-closing-copy {
    gap: 16px;
    padding: 48px 28px 60px;
  }

  .dao-closing-copy p,
  .dao-closing-copy .dao-closing-lead {
    font-size: 15px;
  }

  .bottom-nav {
    display: grid;
  }

  .mobile-only {
    display: initial;
  }
}

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