:root {
  --ink: #050505;
  --ink-deep: #000000;
  --ink-lift: #12110e;
  --jade: #c9a227;
  --jade-bright: #f0d78c;
  --jade-deep: #8a6b14;
  --lacquer: #d4af37;
  --lacquer-soft: #f5e6a3;
  --temple: #e8c547;
  --temple-bright: #fff1b8;
  --parchment: #f3ebd2;
  --muted: #9a9178;
  --line: rgba(212, 175, 55, 0.22);
  --line-strong: rgba(212, 175, 55, 0.5);
  --white-t: #e8e4dc;
  --green-t: #c9a227;
  --orange-t: #d4a017;
  --gold-t: #ffd700;
  --radius-cut: 4px 18px 4px 18px;
  --font: "Source Sans 3", "Noto Serif SC", system-ui, sans-serif;
  --display: "Noto Serif SC", "Cormorant Garamond", serif;
  --serif-en: "Cormorant Garamond", "Noto Serif SC", serif;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --bar-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--parchment);
  background: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--jade-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--temple-bright); }
button { font-family: inherit; }
code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  word-break: break-all;
}
.aside { color: var(--muted); font-size: 0.88rem; }
.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.jade { color: var(--jade-bright); }

/* Ambient — ink wash, not gold dust */
.ink-wash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 45% at 15% -5%, rgba(212, 175, 55, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 70%, rgba(184, 134, 11, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(255, 215, 0, 0.06), transparent 55%),
    linear-gradient(180deg, #000000, #050505 42%, #0c0a06);
}
#mistCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}
.scroll-frame {
  position: fixed;
  inset: 12px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  pointer-events: none;
  z-index: 0;
}
.scroll-frame::before,
.scroll-frame::after {
  content: "";
  position: absolute;
  width: 28px; height: 28px;
  border-color: rgba(240, 215, 140, 0.45);
  border-style: solid;
}
.scroll-frame::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
}
.scroll-frame::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
}

/* Topbar — seal stamp brand */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--bar-h);
  padding: 0.65rem 1.4rem;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.seal {
  position: relative;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--parchment);
}
.seal--sm { width: 36px; height: 36px; }
.seal__char {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.15rem;
  color: #f2ebe0;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}
.seal__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.12), transparent 45%),
    linear-gradient(145deg, var(--lacquer-soft), var(--lacquer) 55%, #8a3420);
  box-shadow:
    0 0 0 2px rgba(232, 208, 154, 0.25),
    0 4px 16px rgba(196, 92, 62, 0.35);
}
.seal--sm .seal__char { font-size: 0.95rem; }
.seal--sm .seal__ring,
.colophon .seal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--lacquer-soft), var(--lacquer));
  z-index: 0;
}
.colophon .seal { position: relative; }
.colophon .seal__char { z-index: 1; }

.topbar__title {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.topbar__title strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.topbar__title em {
  font-style: normal;
  font-family: var(--serif-en);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.rail {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
}
.rail a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}
.rail a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--jade);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.rail a:hover { color: var(--jade-bright); }
.rail a:hover::after { transform: scaleX(1); }

.topbar__cta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.4rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.menu-toggle span {
  width: 22px; height: 2px;
  background: var(--parchment);
  border-radius: 1px;
  transition: 0.25s;
}
.topbar.open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.topbar.open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Buttons — cut-corner chips, not pills */
.chip-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  padding: 0.7rem 1.2rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s var(--ease), filter 0.2s, opacity 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px transparent;
}
.chip-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
.chip-btn:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.08); }
.chip-btn--jade {
  background: linear-gradient(135deg, var(--jade-bright), var(--jade) 45%, var(--jade-deep));
  color: #0a0800;
  border: none;
  box-shadow: 0 6px 22px rgba(61, 155, 122, 0.32);
}
.chip-btn--jade:hover { color: #0a0800; }
.chip-btn--ghost {
  background: transparent;
  color: var(--temple-bright);
  border: 1px solid var(--line-strong);
}
.chip-btn--ghost:hover {
  border-color: var(--temple);
  color: var(--temple-bright);
  background: rgba(201, 164, 92, 0.06);
}
.chip-btn--lg { padding: 0.88rem 1.55rem; font-size: 0.98rem; }

main {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 3.5rem;
}

/* Hero altar — centered plaque */
.altar {
  padding: 3.2rem 0 2.2rem;
  text-align: center;
}
.ribbon {
  display: inline-block;
  margin: 0 0 1.4rem;
  padding: 0.35rem 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jade-bright);
  border: 1px solid var(--line);
  background: rgba(61, 155, 122, 0.08);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
}
.altar__plaque {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.4rem 2rem 2rem;
  background:
    linear-gradient(165deg, rgba(14, 36, 30, 0.92), rgba(7, 18, 16, 0.95));
  border: 1px solid var(--line-strong);
  box-shadow:
    0 0 0 6px rgba(7, 18, 16, 0.6),
    0 24px 60px rgba(0, 0, 0, 0.45);
}
.plaque-corner {
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--temple);
  border-style: solid;
  opacity: 0.7;
}
.plaque-corner--tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.plaque-corner--tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.plaque-corner--bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.plaque-corner--br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.altar h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
}
.altar h1 .cn {
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 4.6rem);
  font-weight: 900;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 1.05;
  background: linear-gradient(180deg, #f5efe3, var(--temple-bright) 55%, var(--temple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.altar h1 .en {
  font-family: var(--serif-en);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--jade-bright);
}
.altar__lede {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
  text-align: center;
}
.altar__lede strong { color: var(--parchment); font-weight: 600; }
.altar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.6rem 0 0.9rem;
}
.altar__warn {
  font-size: 0.82rem;
  color: var(--lacquer-soft);
  margin: 0;
}

/* Lotus row — flat horizontal gallery, not stacked cards */
.lotus-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.6rem auto 0;
  max-width: 880px;
}
.lotus {
  margin: 0;
  text-align: center;
  transition: transform 0.35s var(--ease);
}
.lotus:hover { transform: translateY(-6px); }
.lotus img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--line);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  background: var(--ink-lift);
  /* octagon-ish soft cut via clip */
  clip-path: polygon(8% 0, 92% 0, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0 92%, 0 8%);
}
.lotus[data-tier="white"] img { border-color: rgba(230, 226, 216, 0.35); }
.lotus[data-tier="green"] img { border-color: rgba(61, 155, 122, 0.5); }
.lotus[data-tier="orange"] img { border-color: rgba(212, 120, 58, 0.5); }
.lotus[data-tier="gold"] img {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.18);
}
.lotus figcaption {
  margin-top: 0.65rem;
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.metrics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 2.4rem auto 0;
  max-width: 880px;
  padding: 0;
}
.metrics li {
  padding: 1rem 0.75rem;
  background: rgba(14, 28, 25, 0.7);
  border: 1px solid var(--line);
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.metrics span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.metrics b {
  font-family: var(--serif-en);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--jade-bright);
  line-height: 1.1;
}
.metrics small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Chapters */
.chapter {
  margin-top: 3.5rem;
  padding-top: 0.5rem;
}
.chapter__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.chapter__seal {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1rem;
  color: #f2ebe0;
  background: linear-gradient(145deg, var(--lacquer-soft), var(--lacquer));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(196, 92, 62, 0.3);
}
.chapter__head h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
.chapter__head p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.15rem;
}
.tag {
  margin-left: auto;
  padding: 0.28rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--temple-bright);
  border: 1px solid rgba(240, 215, 140, 0.45);
  background: rgba(201, 164, 92, 0.08);
}
.tag--jade {
  color: var(--jade-bright);
  border-color: var(--line-strong);
  background: rgba(61, 155, 122, 0.1);
}

/* Tier board */
.tier-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.tier {
  padding: 0.85rem;
  background: linear-gradient(180deg, rgba(14, 36, 30, 0.85), rgba(7, 18, 16, 0.92));
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.tier:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}
.tier__frame {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.85rem;
  clip-path: polygon(6% 0, 94% 0, 100% 6%, 100% 94%, 94% 100%, 6% 100%, 0 94%, 0 6%);
  background: var(--ink-deep);
}
.tier__frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}
.tier:hover .tier__frame img { transform: scale(1.04); }
.tier h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.tier h3 i {
  font-style: normal;
  font-family: var(--serif-en);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-left: 0.35rem;
}
.tier__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.55rem 0 0.4rem;
}
.tier__tags span {
  padding: 0.18rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(61, 155, 122, 0.12);
  color: var(--jade-bright);
  border: 1px solid var(--line);
}
.tier__tags .dim {
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}
.tier__tags .hot {
  background: rgba(212, 175, 55, 0.14);
  color: var(--temple-bright);
  border-color: rgba(212, 175, 55, 0.35);
}
.tier > p {
  font-size: 0.86rem;
  color: var(--muted);
}
.tier[data-tier="white"] { border-top: 2px solid rgba(230, 226, 216, 0.4); }
.tier[data-tier="green"] { border-top: 2px solid var(--jade); }
.tier[data-tier="orange"] { border-top: 2px solid var(--orange-t); }
.tier[data-tier="gold"] { border-top: 2px solid var(--gold-t); }

/* Scroll trio */
.scroll-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.scroll-card {
  padding: 1.35rem 1.25rem;
  background: rgba(10, 24, 21, 0.75);
  border: 1px solid var(--line);
  border-left: 3px solid var(--jade-deep);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.scroll-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.scroll-card h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.scroll-card .num {
  font-family: var(--serif-en);
  font-size: 0.78rem;
  color: var(--temple);
  letter-spacing: 0.08em;
}
.scroll-card p { color: var(--muted); font-size: 0.92rem; }

.flow { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.flow__meta {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--parchment);
}
.flow__track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}
.flow__track i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lacquer), var(--lacquer-soft));
  transition: width 1s var(--ease);
}
.flow__track--pool i {
  background: linear-gradient(90deg, var(--jade-deep), var(--jade-bright));
}
.flow__track.is-on i { width: var(--w); }

.weight { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.weight li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(109, 168, 140, 0.15);
}
.weight li:last-child { border-bottom: 0; }
.weight em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--serif-en);
  font-weight: 700;
  color: var(--jade-bright);
}
.swatch {
  width: 12px; height: 12px;
  flex-shrink: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.swatch--white { background: var(--white-t); }
.swatch--green { background: var(--green-t); }
.swatch--orange { background: var(--orange-t); }
.swatch--gold { background: var(--gold-t); }
.ratio {
  margin-top: 1rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  color: var(--temple-bright);
  border: 1px dashed rgba(240, 215, 140, 0.45);
  text-align: center;
}

.rules { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.rules li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.rules li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  background: var(--jade);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.rules strong { color: var(--parchment); }

/* Edict banner */
.edict {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding: 1.35rem 1.4rem;
  background: linear-gradient(120deg, rgba(196, 92, 62, 0.12), rgba(14, 36, 30, 0.9));
  border: 1px solid rgba(196, 92, 62, 0.35);
  margin-bottom: 1.15rem;
}
.edict__stamp {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.2rem;
  color: #f2ebe0;
  background: linear-gradient(145deg, var(--lacquer-soft), var(--lacquer));
  box-shadow: 0 0 0 3px rgba(232, 208, 154, 0.2);
}
.edict h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}
.edict p { color: var(--muted); font-size: 0.95rem; }
.edict strong { color: var(--parchment); }

.path {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.path li {
  padding: 1.25rem;
  background: rgba(10, 24, 21, 0.7);
  border: 1px solid var(--line);
}
.path__n {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  margin-bottom: 0.75rem;
  font-family: var(--serif-en);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--jade-bright);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.path h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  letter-spacing: 0.04em;
}
.path p { color: var(--muted); font-size: 0.9rem; }

/* Ritual steps */
.ritual {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: ritual;
  border: 1px solid var(--line);
}
.ritual li {
  position: relative;
  padding: 1.5rem 1.35rem;
  border-right: 1px solid var(--line);
  background: rgba(10, 24, 21, 0.55);
  counter-increment: ritual;
}
.ritual li:last-child { border-right: 0; }
.ritual li::before {
  content: counter(ritual);
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--temple);
  margin-bottom: 0.65rem;
  opacity: 0.85;
}
.ritual h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}
.ritual p { color: var(--muted); font-size: 0.92rem; }

/* Mint slab */
.mint-slab {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.4rem;
  background: rgba(10, 24, 21, 0.8);
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.mint-slab__addr { margin-top: 0.25rem; font-size: 0.95rem; }
.mint-slab__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.prompt-slab {
  margin-top: 1rem;
  padding: 1.25rem;
  background: rgba(4, 10, 9, 0.85);
  border: 1px solid var(--line);
}
.prompt-slab__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.prompt-slab pre {
  margin: 0 0 0.85rem;
  padding: 1rem;
  max-height: 280px;
  overflow: auto;
  background: rgba(7, 18, 16, 0.9);
  border: 1px solid rgba(109, 168, 140, 0.15);
  color: #b8cfc4;
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* FAQ folds */
.fold {
  border: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(10, 24, 21, 0.55);
}
.fold:last-of-type { border-bottom: 1px solid var(--line); }
.fold summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after {
  content: "+";
  font-family: var(--serif-en);
  font-size: 1.2rem;
  color: var(--jade);
  flex-shrink: 0;
}
.fold[open] summary::after { content: "−"; }
.fold p {
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Finale */
.finale {
  margin-top: 3.5rem;
  text-align: center;
}
.finale__inner {
  padding: 2.5rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(61, 155, 122, 0.14), transparent 60%),
    rgba(10, 24, 21, 0.85);
  border: 1px solid var(--line-strong);
  position: relative;
}
.finale__inner::before,
.finale__inner::after {
  content: "";
  position: absolute;
  width: 40px; height: 40px;
  border-color: var(--temple);
  border-style: solid;
  opacity: 0.55;
}
.finale__inner::before {
  top: 10px; left: 10px;
  border-width: 2px 0 0 2px;
}
.finale__inner::after {
  bottom: 10px; right: 10px;
  border-width: 0 2px 2px 0;
}
.finale h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: 0.14em;
  margin-bottom: 0.65rem;
}
.finale p { color: var(--muted); }

/* Colophon */
.colophon {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  padding: 1.75rem 0 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.colophon__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.colophon__brand strong {
  font-family: var(--display);
  letter-spacing: 0.08em;
}

/* Reveal */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.in {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 900px) {
  .lotus-row,
  .metrics,
  .tier-board,
  .scroll-trio,
  .path,
  .ritual {
    grid-template-columns: 1fr 1fr;
  }
  .ritual li:nth-child(2) { border-right: 0; }
  .ritual li:nth-child(3) {
    grid-column: 1 / -1;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .rail { display: none; }
  .menu-toggle { display: flex; }
  .topbar.open .rail {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    padding: 1rem 1.4rem 1.25rem;
    background: rgba(7, 18, 16, 0.96);
    border-bottom: 1px solid var(--line);
    gap: 0.85rem;
  }
  .topbar__cta { display: none; }
  .topbar.open .topbar__cta {
    display: flex;
    position: absolute;
    top: calc(100% + 8.5rem);
    left: 1.4rem;
    right: 1.4rem;
    margin: 0;
    padding-bottom: 1rem;
    background: rgba(7, 18, 16, 0.96);
  }
}

@media (max-width: 600px) {
  .lotus-row,
  .metrics,
  .tier-board,
  .scroll-trio,
  .path,
  .split-2,
  .ritual {
    grid-template-columns: 1fr;
  }
  .ritual li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .ritual li:last-child { border-bottom: 0; }
  .altar__plaque { padding: 1.75rem 1.15rem 1.5rem; }
  .edict { flex-direction: column; }
  .chapter__head .tag { margin-left: 0; }
  .scroll-frame { inset: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .lotus, .tier, .scroll-card { transition: none; }
}

/* === i18n lang switch === */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 0.55rem;
  padding: 3px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  flex-shrink: 0;
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.38rem 0.55rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}
.lang-btn:hover { color: var(--jade-bright); }
.lang-btn.is-active {
  color: #0a0800;
  background: linear-gradient(135deg, var(--jade-bright), var(--jade));
}
html[data-lang="ko"] body,
html[lang="ko"] body {
  font-family: "Noto Sans KR", "Source Sans 3", system-ui, sans-serif;
}
html[data-lang="ko"] .topbar__title strong,
html[data-lang="ko"] .chapter__head h2,
html[data-lang="ko"] .altar h1 .cn,
html[lang="ko"] .topbar__title strong,
html[lang="ko"] .chapter__head h2,
html[lang="ko"] .altar h1 .cn {
  font-family: "Noto Sans KR", "Noto Serif SC", serif;
  letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
  .lang-switch { margin-left: auto; }
  .rail { margin-left: 0.5rem; }
}
@media (max-width: 860px) {
  .lang-switch {
    order: 3;
    margin-left: 0;
    margin-right: 0.25rem;
  }
  .topbar.open .lang-switch {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 0.4rem 0 0.2rem;
    order: 5;
  }
}


/* Mint progress */
.mint-progress {
  width: min(720px, 100%);
  margin: 1.6rem auto 0;
  padding: 1rem 1.15rem 1.05rem;
  background: linear-gradient(180deg, rgba(18, 17, 14, 0.92), rgba(5, 5, 5, 0.88));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.06), 0 18px 40px rgba(0, 0, 0, 0.35);
}
.mint-progress--slab {
  width: 100%;
  margin: 0.85rem 0 0.9rem;
}
.mint-progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.mint-progress__count {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--temple-bright);
  letter-spacing: 0.02em;
  font-weight: 600;
}
.mint-progress__track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.22);
  overflow: hidden;
}
.mint-progress__track i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8a6b14, #d4af37 45%, #f0d78c 85%, #fff1b8);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
  transition: width 0.9s var(--ease);
}
.mint-progress__meta {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.mint-progress.is-loading .mint-progress__track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(240, 215, 140, 0.18), transparent);
  animation: mint-shimmer 1.4s linear infinite;
}
@keyframes mint-shimmer {
  from { transform: translateX(-60%); }
  to { transform: translateX(60%); }
}


/* Localized hero mark sizing */
html[data-lang="en"] .altar h1 .cn,
html[data-lang="vi"] .altar h1 .cn {
  font-family: var(--serif-en);
  letter-spacing: 0.06em;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
}
html[data-lang="ko"] .altar h1 .cn {
  font-size: clamp(2.6rem, 7.5vw, 4.4rem);
}
html[data-lang="en"] .topbar__title strong,
html[data-lang="vi"] .topbar__title strong {
  font-family: var(--serif-en);
  letter-spacing: 0.04em;
}
