/* ============================================================
   一念 · 自动求佛
   A quiet digital shrine — ink, gold, ember light.
   ============================================================ */

:root {
  --bg: #090806;
  --bg-2: #0e0c09;
  --bg-3: #14110c;
  --ink: #f1e9da;
  --ink-dim: #c3b8a5;
  --muted: #8d8373;
  --faint: #655d50;
  --gold: #c9a45c;
  --gold-2: #e8d4a7;
  --gold-3: #8d6d3a;
  --gold-4: #5c4726;
  --red: #a04436;
  --red-soft: rgba(160, 68, 54, .55);
  --jade: #7f9b82;
  --line: rgba(201, 164, 92, .17);
  --line-soft: rgba(201, 164, 92, .08);
  --line-faint: rgba(201, 164, 92, .04);
  --serif: "STSong", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --kai: "STKaiti", "KaiTi", "FangSong", "STSong", serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --shadow: 0 40px 120px rgba(0, 0, 0, .55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .02em;
  background:
    radial-gradient(ellipse 76% 54% at 72% 14%, rgba(96, 70, 33, .19), transparent 64%),
    radial-gradient(ellipse 50% 44% at 12% 2%, rgba(59, 48, 31, .12), transparent 72%),
    linear-gradient(180deg, #0b0a08 0%, #080706 48%, #0b0907 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 60% at 50% 105%, rgba(0, 0, 0, .68), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 30%, transparent 45%, rgba(0, 0, 0, .42) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  box-shadow: inset 0 0 180px 20px rgba(0, 0, 0, .5);
}

::selection {
  color: #171208;
  background: var(--gold);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0907;
}

::-webkit-scrollbar-thumb {
  background: #33291a;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4b3b23;
}

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

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

button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 1px solid var(--gold-2);
  outline-offset: 4px;
}

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

[hidden] {
  display: none !important;
}

/* ---------- Texture & atmosphere ---------- */

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

.frame-line {
  position: fixed;
  inset: 14px;
  z-index: 94;
  pointer-events: none;
  border: 1px solid rgba(201, 164, 92, .055);
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .55;
}

.ambient-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .32;
  will-change: transform;
}

.orb-a {
  top: -18%;
  right: 2%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(132, 94, 36, .24), transparent 68%);
  animation: orbDrift 28s var(--ease-soft) infinite alternate;
}

.orb-b {
  bottom: 10%;
  left: -14%;
  width: 44vw;
  height: 44vw;
  background: radial-gradient(circle, rgba(78, 65, 39, .18), transparent 68%);
  animation: orbDrift 36s var(--ease-soft) infinite alternate-reverse;
}

.orb-c {
  top: 45%;
  left: 48%;
  width: 28vw;
  height: 28vw;
  background: radial-gradient(circle, rgba(103, 64, 31, .1), transparent 68%);
  animation: orbDrift 24s var(--ease-soft) infinite alternate;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 clamp(22px, 4.5vw, 72px);
  border-bottom: 1px solid transparent;
  transition:
    height .4s var(--ease),
    background .4s var(--ease),
    border-color .4s var(--ease),
    backdrop-filter .4s var(--ease);
}

.site-header.is-scrolled {
  height: 72px;
  background: rgba(8, 7, 5, .78);
  border-bottom-color: var(--line-faint);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}

.brand-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--gold-2);
  border: 1px solid rgba(201, 164, 92, .5);
  font-family: var(--kai);
  font-size: 21px;
  line-height: 1;
  background: rgba(201, 164, 92, .025);
  transition: border-color .4s var(--ease), color .4s var(--ease);
}

.brand-seal::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(201, 164, 92, .16);
}

.brand:hover .brand-seal {
  color: #fff2d3;
  border-color: var(--gold-2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-text b {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .28em;
  line-height: 1.2;
  color: var(--ink);
}

.brand-text small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .25em;
  line-height: 1.4;
  white-space: nowrap;
}

.site-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.4vw, 48px);
  transform: translate(-50%, -50%);
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .22em;
  transition: color .35s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--gold-2);
}

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

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  min-width: 36px;
  padding: 0 9px;
  color: var(--ink-dim);
  border: 1px solid var(--line-soft);
  font-size: 10px;
  letter-spacing: .14em;
  transition:
    color .3s var(--ease),
    border-color .3s var(--ease),
    background .3s var(--ease);
}

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

.icon-btn:hover {
  color: var(--gold-2);
  border-color: var(--line);
  background: rgba(201, 164, 92, .05);
}

.icon-btn .sound-slash {
  display: none;
}

.icon-btn.is-off {
  color: var(--faint);
}

.icon-btn.is-off .sound-wave {
  display: none;
}

.icon-btn.is-off .sound-slash {
  display: block;
}

.icon-btn.is-off .sound-slash {
  stroke: var(--muted);
}

.icon-btn--wide {
  padding: 0 12px;
}

.icon-btn--wide span {
  font-size: 10px;
}

/* ---------- Side verses ---------- */

.side-verse {
  position: fixed;
  top: 50%;
  z-index: 2;
  color: rgba(232, 212, 167, .2);
  font-family: var(--kai);
  font-size: 11px;
  letter-spacing: .5em;
  writing-mode: vertical-rl;
  pointer-events: none;
  transform: translateY(-50%);
}

.side-verse--left {
  left: 24px;
}

.side-verse--right {
  right: 24px;
  color: rgba(232, 212, 167, .14);
}

/* ---------- Shared type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .34em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-line {
  display: inline-block;
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-3));
}

.eyebrow .eyebrow-line {
  flex: 0 0 auto;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.section-head h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.1;
}

.section-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
}

.section-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 6px;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  color: var(--ink-dim);
  border: 1px solid var(--line-soft);
  font-size: 9.5px;
  letter-spacing: .16em;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 25px;
  overflow: hidden;
  border: 1px solid transparent;
  font-size: 13px;
  letter-spacing: .12em;
  transition:
    transform .35s var(--ease),
    box-shadow .35s var(--ease),
    border-color .35s var(--ease),
    background .35s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 54%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .14), transparent);
  transform: skewX(-18deg);
  transition: left .7s var(--ease);
  pointer-events: none;
}

.btn:hover::after {
  left: 130%;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #171208;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 55%),
    linear-gradient(135deg, #d5b373, #b78b47 52%, #d8b879);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .32);
}

.btn--primary:hover {
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .38),
    0 0 50px rgba(201, 164, 92, .16),
    inset 0 1px 0 rgba(255, 255, 255, .36);
}

.btn-glyph {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(23, 18, 8, .36);
  border-radius: 50%;
  font-family: var(--kai);
  font-size: 17px;
  letter-spacing: 0;
}

.btn-text {
  font-weight: 500;
}

.btn-meta {
  padding-left: 12px;
  border-left: 1px solid rgba(23, 18, 8, .22);
  font-size: 10px;
  letter-spacing: .08em;
  opacity: .68;
}

.btn--ghost {
  color: var(--ink-dim);
  border-color: var(--line);
  background: rgba(201, 164, 92, .025);
}

.btn--ghost .btn-meta {
  border-left-color: var(--line);
  color: var(--gold);
}

.btn--ghost:hover {
  color: var(--gold-2);
  border-color: rgba(201, 164, 92, .4);
  background: rgba(201, 164, 92, .055);
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  font-size: 10.5px;
  letter-spacing: .12em;
  white-space: nowrap;
  transition: color .3s var(--ease);
}

.text-btn span {
  transition: transform .3s var(--ease);
}

.text-btn:hover {
  color: var(--gold-2);
}

.text-btn:hover span {
  transform: translate(2px, -2px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 138px clamp(22px, 4.5vw, 72px) 96px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 4%;
  right: -4%;
  width: 58vw;
  height: 70vh;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(137, 99, 43, .12), transparent 65%);
  filter: blur(20px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(460px, .98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 86px);
  width: min(1440px, 100%);
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-top: 12px;
}

.h1 {
  position: relative;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-left: -5px;
}

.h1-top {
  display: block;
  margin-bottom: 20px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 400;
  letter-spacing: .68em;
  line-height: 1.4;
  text-indent: .1em;
}

.h1-main {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: clamp(13px, 2vw, 24px);
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: clamp(74px, 9.1vw, 146px);
  font-weight: 400;
  letter-spacing: .045em;
  line-height: .88;
  white-space: nowrap;
  background: linear-gradient(175deg, #fbf3df 2%, #e8d4a7 38%, #c6a263 70%, #8f6d39 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 16px 46px rgba(0, 0, 0, .42));
}

.h1-main::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 9%;
  bottom: -26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 164, 92, .45), rgba(201, 164, 92, .08), transparent);
}

.h1-seal {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(38px, 4vw, 52px);
  height: clamp(38px, 4vw, 52px);
  margin-top: clamp(7px, 1.2vw, 18px);
  color: #b95747;
  border: 1px solid var(--red-soft);
  font-family: var(--kai);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1;
  letter-spacing: 0;
  transform: rotate(3.5deg);
  background: rgba(160, 68, 54, .045);
  -webkit-text-fill-color: #b95747;
  box-shadow: inset 0 0 22px rgba(160, 68, 54, .045);
}

.hero-lede {
  margin-top: 45px;
  color: var(--ink-dim);
  font-family: var(--serif);
  font-size: clamp(15px, 1.35vw, 18px);
  letter-spacing: .16em;
  line-height: 2.15;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 112px;
  padding: 0 clamp(18px, 2.2vw, 32px);
  border-left: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .2em;
}

.stat strong {
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.15;
  transition: color .3s var(--ease), transform .3s var(--ease);
}

.stat strong i {
  margin-left: 3px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
}

.stat strong.bump {
  animation: numberBump .45s var(--ease);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: .12em;
}

.status-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 8px rgba(127, 155, 130, .6);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: .32em;
  transform: translateX(-50%);
  writing-mode: horizontal-tb;
}

.hero-scroll span {
  position: relative;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: var(--line);
}

.hero-scroll span::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 55%;
  background: var(--gold);
  animation: scrollCue 2.6s var(--ease-soft) infinite;
}

/* ---------- Altar ---------- */

.altar {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 590px;
  padding-bottom: 28px;
}

.altar-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  height: clamp(600px, 71vh, 760px);
  border: 1px solid rgba(201, 164, 92, .22);
  background:
    linear-gradient(180deg, rgba(41, 33, 21, .52), rgba(13, 11, 8, .3) 46%, rgba(22, 18, 12, .58)),
    radial-gradient(ellipse 70% 55% at 50% 34%, rgba(201, 164, 92, .085), transparent 66%);
  box-shadow:
    0 50px 120px rgba(0, 0, 0, .58),
    inset 0 0 100px rgba(201, 164, 92, .035);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.altar-frame::before {
  content: "";
  position: absolute;
  inset: 11px;
  z-index: 1;
  border: 1px solid rgba(201, 164, 92, .09);
  pointer-events: none;
}

.altar-frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 212, 167, .72), transparent);
  transform: translateX(-50%);
  opacity: .6;
}

.corner {
  position: absolute;
  z-index: 5;
  width: 19px;
  height: 19px;
  border-color: rgba(201, 164, 92, .55);
  border-style: solid;
  pointer-events: none;
}

.corner--tl {
  top: 5px;
  left: 5px;
  border-width: 1px 0 0 1px;
}

.corner--tr {
  top: 5px;
  right: 5px;
  border-width: 1px 1px 0 0;
}

.corner--bl {
  bottom: 5px;
  left: 5px;
  border-width: 0 0 1px 1px;
}

.corner--br {
  bottom: 5px;
  right: 5px;
  border-width: 0 1px 1px 0;
}

.altar-head {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  flex: 0 0 auto;
  padding: 24px 20px 0;
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: .4em;
  white-space: nowrap;
}

.altar-head-line {
  width: 24px;
  height: 1px;
  background: var(--line);
}

.altar-head-en {
  color: var(--faint);
  font-family: var(--sans);
  font-size: 6.5px;
  letter-spacing: .3em;
}

.altar-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}

.mandala {
  position: absolute;
  top: 47%;
  left: 50%;
  z-index: 0;
  width: min(96%, 550px);
  aspect-ratio: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.mandala-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.mandala-ring--a {
  width: 100%;
  height: 100%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(201, 164, 92, .2) 0deg .42deg,
    transparent .42deg 5.6deg
  );
  -webkit-mask: radial-gradient(circle, transparent 0 64%, #000 64.5% 65%, transparent 65.5% 70%, #000 70.5% 71%, transparent 71.5% 100%);
  mask: radial-gradient(circle, transparent 0 64%, #000 64.5% 65%, transparent 65.5% 70%, #000 70.5% 71%, transparent 71.5% 100%);
  opacity: .75;
  animation: spinSlow 150s linear infinite;
}

.mandala-ring--b {
  width: 85%;
  height: 85%;
  border: 1px dashed rgba(201, 164, 92, .19);
  animation: spinSlow 100s linear infinite reverse;
}

.mandala-ring--b::before,
.mandala-ring--b::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(201, 164, 92, .45);
  box-shadow: 0 0 10px rgba(201, 164, 92, .3);
  transform: translate(-50%, -50%);
}

.mandala-ring--b::before {
  top: 0;
}

.mandala-ring--b::after {
  top: 100%;
}

.mandala-ring--c {
  width: 68%;
  height: 68%;
  border: 1px solid rgba(201, 164, 92, .1);
  animation: spinSlow 74s linear infinite;
}

.mandala-ring--c::before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px solid rgba(201, 164, 92, .06);
}

.mandala-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(232, 212, 167, .032);
  font-family: var(--serif);
  font-size: clamp(190px, 23vw, 310px);
  font-style: normal;
  line-height: 1;
  transform: translate(-50%, -53%) rotate(-8deg);
  user-select: none;
}

.buddha-aura {
  position: absolute;
  top: 43%;
  left: 50%;
  z-index: 1;
  width: min(80%, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(205, 164, 91, .19) 0%, rgba(205, 164, 91, .06) 38%, transparent 70%);
  filter: blur(18px);
  transform: translate(-50%, -50%);
  animation: auraBreathe 7s ease-in-out infinite;
}

.buddha-svg {
  position: absolute;
  bottom: 82px;
  left: 50%;
  z-index: 3;
  width: min(72%, 366px);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 26px rgba(201, 164, 92, .13));
  animation: buddhaBreathe 8s ease-in-out infinite;
  will-change: transform;
}

.halo {
  transform-origin: 220px 226px;
  animation: haloPulse 8s ease-in-out infinite;
}

.smoke {
  position: absolute;
  bottom: 126px;
  z-index: 2;
  width: 2px;
  height: 230px;
  pointer-events: none;
  background: linear-gradient(to top, transparent, rgba(214, 192, 151, .2) 26%, rgba(214, 192, 151, .07) 66%, transparent);
  filter: blur(3px);
  opacity: .62;
  transform-origin: bottom center;
  animation: smokeSway 9s ease-in-out infinite;
}

.smoke::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d78b45;
  box-shadow: 0 0 12px 3px rgba(215, 139, 69, .34);
  opacity: .55;
}

.smoke--a {
  left: 12%;
  animation-delay: -2s;
}

.smoke--b {
  right: 13%;
  height: 190px;
  bottom: 138px;
  animation-delay: -5.4s;
  opacity: .45;
}

.smoke--c {
  right: 27%;
  bottom: 118px;
  height: 150px;
  animation-delay: -7.2s;
  opacity: .3;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.altar-wish {
  position: absolute;
  top: 58px;
  left: 18px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  width: 47px;
  max-height: 240px;
  padding: 11px 0;
  color: rgba(232, 212, 167, .48);
  border-top: 1px solid rgba(201, 164, 92, .16);
  border-bottom: 1px solid rgba(201, 164, 92, .16);
  background: linear-gradient(180deg, rgba(201, 164, 92, .045), transparent);
  pointer-events: none;
}

.altar-wish-mark {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: rgba(185, 87, 71, .78);
  border: 1px solid rgba(160, 68, 54, .33);
  font-family: var(--kai);
  font-size: 13px;
  line-height: 1;
}

.altar-wish p {
  overflow: hidden;
  color: rgba(232, 212, 167, .56);
  font-family: var(--kai);
  font-size: 11px;
  letter-spacing: .2em;
  line-height: 1.9;
  writing-mode: vertical-rl;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.altar-auto-tag {
  position: absolute;
  right: 22px;
  bottom: 137px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding: 0 9px;
  color: var(--gold);
  border: 1px solid rgba(201, 164, 92, .24);
  background: rgba(10, 9, 7, .56);
  font-family: var(--sans);
  font-size: 7.5px;
  letter-spacing: .18em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.altar-auto-tag span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 7px var(--gold);
  animation: blink 1.4s ease-in-out infinite;
}

.altar-auto-tag b {
  font-weight: 400;
  color: var(--gold-2);
}

.pray-disc {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 9;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  color: var(--gold-2);
  background:
    radial-gradient(circle at 50% 37%, rgba(201, 164, 92, .13), transparent 54%),
    radial-gradient(circle at 50% 50%, #20190f, #0c0a07 72%);
  border: 1px solid rgba(201, 164, 92, .4);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, .55),
    inset 0 0 30px rgba(201, 164, 92, .07);
  transform: translateX(-50%);
  transition:
    transform .35s var(--ease),
    border-color .35s var(--ease),
    box-shadow .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.pray-disc:hover {
  border-color: rgba(232, 212, 167, .72);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, .62),
    0 0 46px rgba(201, 164, 92, .14),
    inset 0 0 36px rgba(201, 164, 92, .12);
  transform: translateX(-50%) scale(1.045);
}

.pray-disc:active {
  transform: translateX(-50%) scale(.97);
}

.disc-progress {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from -90deg, rgba(201, 164, 92, .85) calc(var(--progress, 0) * 1%), rgba(201, 164, 92, .08) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  opacity: .8;
  transition: background .4s var(--ease);
}

.disc-ring {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(201, 164, 92, .2);
  border-radius: 50%;
}

.disc-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(201, 164, 92, .14);
  border-radius: 50%;
  animation: spin360 26s linear infinite;
}

.disc-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  line-height: 1;
}

.disc-inner b {
  font-family: var(--kai);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: .06em;
  text-shadow: 0 0 18px rgba(201, 164, 92, .35);
}

.disc-inner small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: .2em;
}

.disc-ripple {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(232, 212, 167, .65);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.pray-disc.is-hit {
  animation: discHit .55s var(--ease);
}

.pray-disc.is-hit .disc-ripple {
  animation: discRipple .85s var(--ease) forwards;
}

.altar.is-praying .buddha-svg {
  filter: drop-shadow(0 0 46px rgba(232, 212, 167, .34));
}

.altar.is-praying .buddha-aura {
  background: radial-gradient(circle, rgba(222, 184, 113, .33) 0%, rgba(205, 164, 91, .1) 40%, transparent 70%);
}

.altar.is-praying .halo {
  animation: haloFlash 1s var(--ease);
}

.altar.is-auto .pray-disc {
  border-color: rgba(232, 212, 167, .58);
}

.altar.is-auto .disc-progress {
  opacity: 1;
}

.altar-foot {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr minmax(58px, 1.1fr) auto;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  height: 62px;
  padding: 0 22px;
  border-top: 1px solid var(--line-soft);
  background: rgba(9, 8, 6, .34);
}

.incense-status {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: var(--ink-dim);
  font-family: var(--kai);
  font-size: 10.5px;
  letter-spacing: .14em;
  white-space: nowrap;
}

.flame {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 5px;
  height: 9px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #d99b53;
  box-shadow: 0 0 10px rgba(217, 155, 83, .7);
  animation: flame 2.4s ease-in-out infinite;
}

.mini-progress {
  height: 1px;
  overflow: hidden;
  background: rgba(201, 164, 92, .12);
}

.mini-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  box-shadow: 0 0 8px rgba(232, 212, 167, .4);
  transition: width .5s var(--ease);
}

.mini-count {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.mini-count b {
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
}

.altar-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8px;
  z-index: -1;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  filter: blur(18px);
  opacity: .8;
}

.altar-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  color: var(--faint);
  font-size: 8.5px;
  letter-spacing: .24em;
  text-align: center;
}

.altar-caption::before,
.altar-caption::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--line-soft);
}

/* ---------- Floating merit ---------- */

.merit-float {
  position: absolute;
  z-index: 10;
  color: var(--gold-2);
  font-family: var(--kai);
  font-size: 18px;
  letter-spacing: .08em;
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(201, 164, 92, .55);
  pointer-events: none;
  animation: meritFloat 1.5s var(--ease) forwards;
  will-change: transform, opacity;
}

.pray-ripple {
  position: absolute;
  z-index: 6;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 1px solid rgba(232, 212, 167, .55);
  border-radius: 50%;
  pointer-events: none;
  animation: rippleOut 1.15s var(--ease-soft) forwards;
}

/* ---------- Console ---------- */

.console {
  position: relative;
  z-index: 3;
  padding: 0 clamp(22px, 4.5vw, 72px) clamp(100px, 10vw, 150px);
  margin-top: -22px;
}

.console-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr .92fr;
  max-width: 1440px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--line-soft);
  gap: 1px;
}

.panel {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 2.2vw, 32px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 42%),
    var(--bg-2);
  transition: background .4s var(--ease);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 92, .15), transparent);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.panel:hover::before {
  opacity: 1;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

.panel-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--gold-3);
  font-size: 7.5px;
  letter-spacing: .27em;
  line-height: 1.4;
}

.panel h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: .12em;
  line-height: 1.25;
}

.panel-date {
  padding-top: 2px;
  color: var(--faint);
  font-family: var(--kai);
  font-size: 10px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.practice-body {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 34px);
}

.practice-ring {
  position: relative;
  flex: 0 0 auto;
  width: 130px;
  height: 130px;
}

.practice-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.practice-ring circle {
  fill: none;
  stroke-width: 1.5;
}

.ring-bg {
  stroke: rgba(201, 164, 92, .11);
}

.ring-fg {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  filter: drop-shadow(0 0 5px rgba(201, 164, 92, .4));
  transition: stroke-dashoffset .6s var(--ease);
}

.practice-ring::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px dashed rgba(201, 164, 92, .1);
  border-radius: 50%;
}

.practice-ring-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.practice-ring-copy strong {
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
}

.practice-ring-copy span {
  color: var(--faint);
  font-size: 8px;
  letter-spacing: .1em;
}

.practice-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1 1 auto;
  min-width: 0;
}

.practice-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--faint);
  transition: color .35s var(--ease), transform .35s var(--ease);
}

.practice-step::before {
  content: "";
  position: absolute;
  left: 11px;
  top: -9px;
  width: 1px;
  height: 9px;
  background: var(--line-soft);
}

.practice-step:first-child::before {
  display: none;
}

.step-dot {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  color: var(--faint);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  font-family: var(--kai);
  font-size: 10px;
  line-height: 1;
  transition:
    color .35s var(--ease),
    border-color .35s var(--ease),
    background .35s var(--ease),
    box-shadow .35s var(--ease);
}

.practice-step div {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.practice-step b {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .15em;
  line-height: 1.35;
}

.practice-step small {
  color: var(--faint);
  font-size: 8px;
  letter-spacing: .1em;
  line-height: 1.4;
}

.practice-step.is-active {
  color: var(--gold-2);
  transform: translateX(3px);
}

.practice-step.is-active .step-dot {
  color: #171208;
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 18px rgba(201, 164, 92, .25);
}

.practice-step.is-done {
  color: var(--ink-dim);
}

.practice-step.is-done .step-dot {
  color: var(--gold);
  border-color: rgba(201, 164, 92, .35);
  background: rgba(201, 164, 92, .06);
}

/* ---------- Auto panel ---------- */

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 3px;
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  display: block;
  width: 34px;
  height: 17px;
  border: 1px solid rgba(201, 164, 92, .22);
  border-radius: 20px;
  background: rgba(201, 164, 92, .04);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}

.switch-track i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}

.switch input:checked + .switch-track {
  border-color: rgba(201, 164, 92, .48);
  background: rgba(201, 164, 92, .16);
}

.switch input:checked + .switch-track i {
  background: var(--gold-2);
  box-shadow: 0 0 10px rgba(232, 212, 167, .55);
  transform: translateX(17px);
}

.switch input:focus-visible + .switch-track {
  outline: 1px solid var(--gold-2);
  outline-offset: 3px;
}

.switch-label {
  color: var(--faint);
  font-size: 8.5px;
  letter-spacing: .1em;
  white-space: nowrap;
}

.switch input:checked ~ .switch-label {
  color: var(--gold);
}

.auto-form {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field > span {
  color: var(--faint);
  font-size: 8.5px;
  letter-spacing: .14em;
}

.field input,
.field select {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  color: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  background: rgba(255, 255, 255, .018);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .08em;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  color-scheme: dark;
}

.field select {
  appearance: none;
  padding-right: 26px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold-3) 50%),
    linear-gradient(135deg, var(--gold-3) 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 19px,
    calc(100% - 11px) 19px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

.field input:hover,
.field select:hover {
  border-color: var(--line);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(201, 164, 92, .42);
  background: rgba(201, 164, 92, .035);
}

.auto-next {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 16px;
  padding: 0 11px;
  color: var(--muted);
  border-left: 1px solid rgba(201, 164, 92, .24);
  background: linear-gradient(90deg, rgba(201, 164, 92, .035), transparent 80%);
  font-size: 9.5px;
  letter-spacing: .05em;
}

.auto-next.is-live {
  color: var(--gold-2);
}

.auto-next.is-live .pulse-dot {
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201, 164, 92, .5);
  animation: pulse 2s infinite;
}

.pulse-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--faint);
}

.auto-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin-top: 16px;
}

.auto-foot p {
  max-width: 190px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: .03em;
  line-height: 1.7;
}

.panel--auto.is-on {
  background:
    linear-gradient(180deg, rgba(201, 164, 92, .045), transparent 48%),
    var(--bg-3);
}

.panel--auto.is-on::before {
  opacity: 1;
}

/* ---------- Wish panel ---------- */

.wish-mark {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: var(--red);
  border: 1px solid rgba(160, 68, 54, .32);
  font-family: var(--kai);
  font-size: 13px;
  line-height: 1;
  transform: rotate(3deg);
}

.panel--wish textarea {
  display: block;
  width: 100%;
  height: 92px;
  padding: 13px 14px;
  resize: none;
  color: var(--ink-dim);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(201, 164, 92, .055) 27px 28px),
    rgba(255, 255, 255, .012);
  font-family: var(--kai);
  font-size: 13px;
  letter-spacing: .08em;
  line-height: 28px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}

.panel--wish textarea::placeholder {
  color: var(--faint);
}

.panel--wish textarea:focus {
  outline: none;
  border-color: rgba(201, 164, 92, .34);
}

.wish-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
}

.wish-foot > span {
  color: var(--faint);
  font-size: 8px;
  letter-spacing: .1em;
}

.wish-note {
  margin-top: 17px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: .07em;
}

/* ---------- Temples ---------- */

.temples {
  position: relative;
  z-index: 3;
  padding: clamp(90px, 9vw, 140px) clamp(22px, 4.5vw, 72px);
  border-top: 1px solid var(--line-faint);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .012), transparent 24%),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(88, 65, 32, .08), transparent 70%);
}

.temples .section-head,
.records .section-head {
  margin-bottom: clamp(44px, 5vw, 70px);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  max-width: 1440px;
  margin: 0 auto clamp(28px, 3vw, 42px);
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line-soft);
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 0 13px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: .16em;
  white-space: nowrap;
  transition: color .3s var(--ease);
}

.filter span {
  color: var(--faint);
  font-size: 7px;
  letter-spacing: .04em;
  transition: color .3s var(--ease);
}

.filter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.filter:hover {
  color: var(--ink-dim);
}

.filter.is-active {
  color: var(--gold-2);
}

.filter.is-active span {
  color: var(--gold-3);
}

.filter.is-active::after {
  transform: scaleX(1);
}

.temple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1440px;
  margin: 0 auto;
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}

.temple-grid[data-count="1"] {
  grid-template-columns: 1fr;
}

.temple-grid[data-count="2"],
.temple-grid[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.temple-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 272px;
  padding: clamp(22px, 2.2vw, 30px);
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, .022), transparent 40%),
    var(--bg-2);
  transition:
    background .45s var(--ease),
    transform .45s var(--ease),
    box-shadow .45s var(--ease),
    opacity .4s var(--ease);
}

.temple-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 92, .42), transparent);
  opacity: 0;
  transition: opacity .45s var(--ease);
}

.temple-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 92, .08), transparent 68%);
  opacity: 0;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}

.temple-card:hover {
  z-index: 2;
  background:
    linear-gradient(165deg, rgba(201, 164, 92, .055), transparent 55%),
    #110e0a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
  transform: translateY(-4px);
}

.temple-card:hover::before {
  opacity: 1;
}

.temple-card:hover::after {
  opacity: 1;
  transform: scale(1.15);
}

.temple-card.is-hidden {
  display: none;
}

.temple-card.is-filtering {
  animation: cardIn .55s var(--ease) both;
  animation-delay: calc(var(--card-index, 0) * 45ms);
}

.temple-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.temple-index {
  color: var(--gold-3);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .14em;
}

.temple-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--faint);
  font-size: 7.5px;
  letter-spacing: .12em;
}

.temple-status::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 6px rgba(127, 155, 130, .5);
}

.temple-card h3 {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.35;
  transition: color .35s var(--ease);
}

.temple-card:hover h3 {
  color: var(--gold-2);
}

.temple-card h3 em {
  color: var(--faint);
  font-family: var(--sans);
  font-size: 8px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: .06em;
  word-break: break-all;
}

.temple-desc {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  max-width: 34em;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: .035em;
  line-height: 1.95;
}

.temple-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 19px;
}

.temple-tags span {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 7px;
  color: var(--faint);
  border: 1px solid var(--line-soft);
  font-size: 7.5px;
  letter-spacing: .08em;
}

.temple-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.temple-enter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .16em;
  transition: color .3s var(--ease), gap .3s var(--ease);
}

.temple-enter svg {
  width: 13px;
  height: 13px;
  transition: transform .35s var(--ease);
}

.temple-enter:hover {
  color: var(--gold-2);
  gap: 11px;
}

.temple-enter:hover svg {
  transform: translate(2px, -2px);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: .1em;
  transition: color .3s var(--ease);
}

.copy-btn svg {
  width: 11px;
  height: 11px;
}

.copy-btn:hover {
  color: var(--ink-dim);
}

.temple-glyph {
  position: absolute;
  right: 12px;
  bottom: -26px;
  z-index: 0;
  color: rgba(201, 164, 92, .04);
  font-family: var(--kai);
  font-size: 132px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color .5s var(--ease), transform .5s var(--ease);
}

.temple-card:hover .temple-glyph {
  color: rgba(201, 164, 92, .07);
  transform: translateY(-4px);
}

.temple-card[data-cat="zen"] .temple-glyph {
  color: rgba(127, 155, 130, .04);
}

.temple-card[data-cat="zen"]:hover .temple-glyph {
  color: rgba(127, 155, 130, .08);
}

.temple-card[data-cat="qian"] .temple-glyph {
  color: rgba(160, 68, 54, .05);
}

.temple-card[data-cat="qian"]:hover .temple-glyph {
  color: rgba(160, 68, 54, .09);
}

.temple-card[data-cat="qian"] .temple-index {
  color: #8c4c41;
}

.directory-note {
  max-width: 1440px;
  margin: 22px auto 0;
  color: var(--faint);
  font-size: 8.5px;
  letter-spacing: .05em;
  line-height: 1.8;
}

/* ---------- Records ---------- */

.records {
  position: relative;
  z-index: 3;
  padding: clamp(90px, 9vw, 140px) clamp(22px, 4.5vw, 72px) clamp(110px, 11vw, 170px);
  border-top: 1px solid var(--line-faint);
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(87, 65, 34, .075), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .012), transparent 30%);
}

.level-badge {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  background: rgba(201, 164, 92, .025);
}

.level-badge span {
  color: var(--faint);
  font-size: 8px;
  letter-spacing: .14em;
}

.level-badge strong {
  color: var(--gold-2);
  font-family: var(--kai);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .12em;
}

.record-grid {
  display: grid;
  grid-template-columns: 1.16fr .92fr 1fr;
  gap: 1px;
  max-width: 1440px;
  margin: 0 auto;
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}

.record-card {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 2.2vw, 30px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .018), transparent 45%),
    var(--bg-2);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.card-head h3 {
  color: var(--ink-dim);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .14em;
}

.card-head > span {
  color: var(--faint);
  font-size: 8.5px;
  letter-spacing: .07em;
}

.chart {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(8px, 1.4vw, 18px);
  height: 166px;
  padding-top: 10px;
}

.chart-col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}

.chart-bar-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 34px;
  height: 124px;
}

.chart-bar {
  position: relative;
  width: 100%;
  min-height: 2px;
  background: linear-gradient(180deg, rgba(232, 212, 167, .84), rgba(201, 164, 92, .38) 60%, rgba(201, 164, 92, .14));
  box-shadow: 0 0 18px rgba(201, 164, 92, .07);
  transition: height .7s var(--ease), background .3s var(--ease);
}

.chart-col.is-today .chart-bar {
  background: linear-gradient(180deg, #f2e1ba, var(--gold) 55%, #8f6d39);
  box-shadow: 0 0 24px rgba(201, 164, 92, .16);
}

.chart-col:hover .chart-bar {
  background: linear-gradient(180deg, #fff2d3, var(--gold) 60%, #9e793f);
}

.chart-count {
  position: absolute;
  top: -17px;
  left: 50%;
  color: var(--gold-3);
  font-family: var(--serif);
  font-size: 9px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-50%) translateY(3px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}

.chart-col:hover .chart-count,
.chart-col.is-today .chart-count {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.chart-label {
  color: var(--faint);
  font-size: 8px;
  letter-spacing: .05em;
  line-height: 1;
  white-space: nowrap;
}

.chart-col.is-today .chart-label {
  color: var(--gold);
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--faint);
  font-family: var(--kai);
  font-size: 11px;
  letter-spacing: .18em;
  pointer-events: none;
}

/* Level card */

.level-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.level-card .card-head {
  width: 100%;
  justify-content: space-between;
}

.level-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  margin: 2px auto 14px;
  border: 1px solid rgba(201, 164, 92, .24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 30%, rgba(232, 212, 167, .16), transparent 50%),
    radial-gradient(circle, rgba(201, 164, 92, .11), transparent 70%);
  box-shadow:
    0 0 0 8px rgba(201, 164, 92, .025),
    0 0 45px rgba(201, 164, 92, .11),
    inset 0 0 30px rgba(201, 164, 92, .08);
}

.level-orb::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(201, 164, 92, .13);
  border-radius: 50%;
  animation: spin360 40s linear infinite;
}

.level-orb span {
  color: var(--gold-2);
  font-family: var(--kai);
  font-size: 39px;
  line-height: 1;
  text-shadow: 0 0 22px rgba(201, 164, 92, .32);
}

.level-copy {
  color: var(--muted);
  font-family: var(--kai);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.8;
}

.level-track {
  position: relative;
  width: 100%;
  height: 2px;
  margin: 23px 0 9px;
  overflow: hidden;
  background: rgba(201, 164, 92, .11);
}

.level-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  box-shadow: 0 0 10px rgba(232, 212, 167, .35);
  transition: width .8s var(--ease);
}

.level-ticks {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: var(--faint);
  font-size: 7.5px;
  letter-spacing: .06em;
}

.level-ticks span:first-child {
  color: var(--gold-3);
}

/* Log card */

.log-card {
  display: flex;
  flex-direction: column;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  max-height: 236px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #33291a transparent;
}

.log-list li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border-bottom: 1px solid var(--line-faint);
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: .05em;
}

.log-list li:last-child {
  border-bottom: 0;
}

.log-time {
  color: var(--faint);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .04em;
}

.log-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-amount {
  color: var(--gold-3);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .04em;
}

.log-list .log-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border: 0;
  color: var(--faint);
  font-family: var(--kai);
  font-size: 11px;
  letter-spacing: .14em;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 3;
  padding: 0 clamp(22px, 4.5vw, 72px) 30px;
  border-top: 1px solid var(--line-faint);
  background: linear-gradient(180deg, rgba(255, 255, 255, .012), transparent 60%);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(38px, 5vw, 58px) 0;
}

.brand--footer {
  opacity: .82;
}

.footer-verse {
  color: var(--faint);
  font-family: var(--kai);
  font-size: 11px;
  letter-spacing: .18em;
  line-height: 2;
  text-align: right;
}

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--line-faint);
}

.footer-bottom > p {
  max-width: 640px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: .05em;
  line-height: 1.8;
}

.footer-meta {
  display: flex;
  gap: 26px;
  color: var(--faint);
  font-size: 7.5px;
  letter-spacing: .13em;
  white-space: nowrap;
}

/* ---------- Session bar & toast ---------- */

.session-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(570px, calc(100% - 32px));
  padding: 12px 13px 12px 18px;
  border: 1px solid rgba(201, 164, 92, .28);
  background: rgba(13, 11, 8, .9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55), inset 0 0 40px rgba(201, 164, 92, .03);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

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

.session-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.session-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201, 164, 92, .5);
  animation: pulse 1.8s infinite;
}

.session-info div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.session-info b {
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .1em;
  white-space: nowrap;
}

.session-info span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.session-line {
  flex: 1 1 auto;
  height: 1px;
  overflow: hidden;
  background: rgba(201, 164, 92, .12);
}

.session-line span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  transition: width .4s var(--ease);
}

.session-stop {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  font-size: 8.5px;
  letter-spacing: .12em;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}

.session-stop:hover {
  color: var(--gold-2);
  border-color: var(--line);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 100;
  max-width: min(420px, calc(100% - 40px));
  padding: 10px 18px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(18, 15, 10, .94);
  box-shadow: 0 15px 44px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--kai);
  font-size: 12px;
  letter-spacing: .08em;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

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

.noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 120;
  padding: 16px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #14110c;
  text-align: center;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
}

body.is-loaded .reveal {
  animation: revealUp .95s var(--ease) forwards;
}

body.is-loaded .hero-copy .reveal:nth-child(1) { animation-delay: .08s; }
body.is-loaded .hero-copy .reveal:nth-child(2) { animation-delay: .15s; }
body.is-loaded .hero-copy .reveal:nth-child(3) { animation-delay: .24s; }
body.is-loaded .hero-copy .reveal:nth-child(4) { animation-delay: .32s; }
body.is-loaded .hero-copy .reveal:nth-child(5) { animation-delay: .4s; }
body.is-loaded .hero-copy .reveal:nth-child(6) { animation-delay: .48s; }
body.is-loaded .altar.reveal { animation-delay: .22s; }

/* If the entrance animation is interrupted or unsupported, never leave the hero blank. */
body.is-settled .hero-copy .reveal,
body.is-settled .altar.reveal {
  opacity: 1;
  transform: none;
  animation: none;
}

.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.js-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Animations ---------- */

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

@keyframes orbDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3%, 4%, 0) scale(1.08); }
}

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

@keyframes spin360 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes auraBreathe {
  0%, 100% { opacity: .72; transform: translate(-50%, -50%) scale(.96); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes buddhaBreathe {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(-3px) scale(1.006); }
}

@keyframes haloPulse {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}

@keyframes haloFlash {
  0%, 100% { opacity: 1; }
  30% { opacity: .35; }
  60% { opacity: 1; }
}

@keyframes smokeSway {
  0%, 100% { transform: translateX(0) skewX(0deg) scaleY(1); opacity: .45; }
  30% { transform: translateX(9px) skewX(4deg) scaleY(1.04); opacity: .68; }
  65% { transform: translateX(-5px) skewX(-3deg) scaleY(.97); opacity: .38; }
}

@keyframes flame {
  0%, 100% { transform: scaleY(1) translateY(0); opacity: .82; }
  50% { transform: scaleY(1.18) translateY(-1px); opacity: 1; }
}

@keyframes scrollCue {
  0% { top: -60%; }
  55%, 100% { top: 110%; }
}

@keyframes meritFloat {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.8) rotate(var(--rot, 0deg)); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -64px) scale(1.06) rotate(var(--rot, 0deg)); }
}

@keyframes rippleOut {
  0% { opacity: .7; transform: scale(.4); }
  100% { opacity: 0; transform: scale(5.6); }
}

@keyframes discRipple {
  0% { opacity: .7; transform: scale(.88); }
  100% { opacity: 0; transform: scale(1.45); }
}

@keyframes discHit {
  0%, 100% { transform: translateX(-50%) scale(1); }
  32% { transform: translateX(-50%) scale(.94); }
  68% { transform: translateX(-50%) scale(1.025); }
}

@keyframes numberBump {
  0%, 100% { transform: translateY(0); color: var(--gold-2); }
  40% { transform: translateY(-3px); color: #fff4d9; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 164, 92, .45); }
  70% { box-shadow: 0 0 0 7px rgba(201, 164, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 164, 92, 0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1280px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(420px, .88fr);
    gap: 38px;
  }

  .altar-frame {
    height: clamp(570px, 68vh, 700px);
  }

  .side-verse {
    display: none;
  }

  .console-grid {
    grid-template-columns: 1fr 1.12fr;
  }

  .panel--wish {
    grid-column: 1 / -1;
  }

  .panel--wish textarea {
    height: 70px;
  }

  .record-grid {
    grid-template-columns: 1fr 1fr;
  }

  .log-card {
    grid-column: 1 / -1;
  }

  .log-list {
    max-height: 180px;
  }
}

@media (max-width: 1080px) {
  .hero {
    padding-top: 124px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(380px, .82fr);
    gap: 26px;
  }

  .h1-main {
    font-size: clamp(66px, 8.4vw, 106px);
  }

  .hero-lede {
    margin-top: 38px;
  }

  .altar-frame {
    height: clamp(530px, 64vh, 640px);
  }

  .buddha-svg {
    width: min(70%, 320px);
    bottom: 76px;
  }

  .practice-body {
    gap: 18px;
  }

  .practice-ring {
    width: 114px;
    height: 114px;
  }

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

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

  .site-header {
    height: 74px;
  }

  .hero {
    min-height: 0;
    padding-top: 116px;
    padding-bottom: 80px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 680px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .h1-main {
    font-size: clamp(72px, 15vw, 126px);
  }

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

  .hero-stats {
    margin-top: 40px;
  }

  .altar {
    justify-self: center;
    max-width: 560px;
  }

  .altar-frame {
    height: 650px;
  }

  .buddha-svg {
    width: min(72%, 350px);
    bottom: 82px;
  }

  .hero-scroll {
    display: none;
  }

  .console {
    margin-top: 0;
  }

  .console-grid {
    grid-template-columns: 1fr;
  }

  .panel--wish {
    grid-column: auto;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .section-meta {
    padding-bottom: 0;
  }

  .level-badge {
    align-self: flex-start;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-verse {
    text-align: left;
  }

  .footer-meta {
    flex-wrap: wrap;
    gap: 10px 24px;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 0 20px;
  }

  .brand-text small {
    display: none;
  }

  .brand-seal {
    width: 34px;
    height: 34px;
    font-size: 19px;
  }

  .brand-text b {
    font-size: 19px;
  }

  .icon-btn--wide span {
    display: none;
  }

  .icon-btn--wide {
    padding: 0 9px;
  }

  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: .28em;
  }

  .h1-main {
    font-size: clamp(58px, 17vw, 92px);
    gap: 12px;
  }

  .h1-seal {
    width: 36px;
    height: 36px;
    font-size: 19px;
    margin-top: 5px;
  }

  .h1-top {
    font-size: 11px;
    letter-spacing: .5em;
    margin-bottom: 15px;
  }

  .h1-main::after {
    bottom: -18px;
  }

  .hero-lede {
    margin-top: 34px;
    font-size: 14px;
    letter-spacing: .1em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    justify-content: space-between;
    padding: 0 20px;
  }

  .btn--primary {
    justify-content: flex-start;
  }

  .btn--primary .btn-meta {
    margin-left: auto;
  }

  .btn--ghost .btn-meta {
    margin-left: auto;
  }

  .hero-stats {
    justify-content: space-between;
  }

  .stat {
    min-width: 0;
    flex: 1 1 0;
    padding: 0 12px;
  }

  .stat strong {
    font-size: 26px;
  }

  .altar-frame {
    height: 590px;
  }

  .altar-head {
    padding-top: 20px;
    font-size: 9px;
    gap: 9px;
  }

  .altar-head-en {
    display: none;
  }

  .altar-wish {
    left: 12px;
    top: 40px;
    width: 40px;
  }

  .buddha-svg {
    width: min(78%, 330px);
    bottom: 76px;
  }

  .smoke--a {
    left: 8%;
  }

  .smoke--b {
    right: 9%;
  }

  .smoke--c {
    display: none;
  }

  .pray-disc {
    width: 96px;
    height: 96px;
  }

  .disc-inner b {
    font-size: 27px;
  }

  .altar-foot {
    grid-template-columns: 1fr minmax(40px, .8fr) auto;
    padding: 0 14px;
    gap: 9px;
  }

  .incense-status {
    font-size: 9px;
    letter-spacing: .08em;
  }

  .altar-auto-tag {
    right: 12px;
    bottom: 122px;
  }

  .console {
    padding-left: 20px;
    padding-right: 20px;
  }

  .practice-body {
    gap: 22px;
  }

  .practice-ring {
    width: 120px;
    height: 120px;
  }

  .auto-form {
    grid-template-columns: 1fr;
  }

  .auto-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .auto-foot p {
    max-width: none;
  }

  .temples,
  .records {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-head h2 {
    font-size: clamp(39px, 12vw, 58px);
  }

  .filter-bar {
    gap: 24px;
  }

  .temple-grid,
  .temple-grid[data-count] {
    grid-template-columns: 1fr;
  }

  .temple-card {
    min-height: 250px;
  }

  .record-grid {
    grid-template-columns: 1fr;
  }

  .log-card {
    grid-column: auto;
  }

  .chart {
    height: 150px;
  }

  .chart-bar-wrap {
    height: 110px;
  }

  .footer-top {
    padding-top: 38px;
  }

  .session-bar {
    bottom: 14px;
    gap: 10px;
    padding-left: 13px;
  }

  .session-info div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .session-info b {
    font-size: 10px;
  }

  .session-line {
    min-width: 26px;
  }

  .toast {
    bottom: 84px;
  }
}

@media (max-width: 400px) {
  .h1-main {
    font-size: 56px;
    gap: 9px;
  }

  .h1-seal {
    width: 31px;
    height: 31px;
    font-size: 16px;
  }

  .hero-stats {
    gap: 0;
  }

  .stat {
    padding: 0 8px;
  }

  .stat span {
    font-size: 9px;
    letter-spacing: .1em;
  }

  .stat strong {
    font-size: 23px;
  }

  .practice-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .practice-steps {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 5px;
  }

  .practice-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .practice-step::before {
    display: none;
  }

  .practice-step div {
    gap: 0;
  }

  .practice-step small {
    display: none;
  }

  .altar-frame {
    height: 580px;
  }

  .buddha-svg {
    width: min(80%, 300px);
    bottom: 76px;
  }

  .altar-wish {
    display: none;
  }

  .altar-foot {
    grid-template-columns: 1fr auto;
  }

  .mini-progress {
    display: none;
  }

  .footer-verse {
    font-size: 10px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal,
  .js-reveal {
    opacity: 1;
    transform: none;
  }

  .ambient-canvas,
  .particle-canvas {
    display: none;
  }

  .buddha-svg {
    animation: none;
  }
}
