:root {
  --navy: #070b14;
  --navy-2: #0c1220;
  --ink: #12141a;
  --muted: #5d6472;
  --cream: #fbf8f3;
  --cream-2: #f4efe6;
  --card: #ffffff;
  --gold: #d4a017;
  --gold-2: #e8b84a;
  --gold-soft: #fff4d6;
  --blue: #3b82f6;
  --green: #22a06b;
  --warn: #e24b4b;
  --line: rgba(18, 20, 26, 0.08);
  --shadow: 0 18px 50px rgba(12, 16, 28, 0.08);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --pad: clamp(1.4rem, 4.2vw, 4.2rem);
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.app {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.app.is-idle .chrome,
.app.is-idle .hint {
  opacity: 0;
  pointer-events: none;
}

.fullscreen-btn {
  position: fixed;
  top: 0.9rem;
  right: var(--pad);
  z-index: 36;
}

.app.is-idle .progress {
  opacity: 0.35;
}

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.08);
  transition: opacity 0.4s ease;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.chrome {
  position: fixed;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.chrome-top {
  top: 0.9rem;
  left: var(--pad);
  right: calc(var(--pad) + 13.5rem);
  justify-content: space-between;
}

.chrome-bottom {
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  background: rgba(10, 14, 24, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(212, 160, 23, 0.7);
}

.app:not(.is-dark) .brand {
  color: var(--ink);
}

.app:not(.is-dark) .brand-mark {
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.45);
}

.chrome-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0 0.7rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, background 0.2s ease;
}

.app:not(.is-dark) .icon-btn:not(.icon-btn-gold) {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(18, 20, 26, 0.08);
}

.icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1406;
  border: 0;
  font-size: 0.82rem;
  font-weight: 600;
  padding-right: 1rem;
}

.icon-btn-gold:hover {
  background: linear-gradient(180deg, #f0c45a, #c89610);
}

.app.is-fullscreen .icon-expand,
.app:not(.is-fullscreen) .icon-compress {
  display: none;
}

.stage {
  position: relative;
  height: 100%;
  outline: none;
}

.slide {
  position: absolute;
  inset: 0;
  background: var(--cream);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.55s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  z-index: 2;
}

.slide.is-leave {
  opacity: 0;
  transform: translateY(-12px) scale(1.01);
}

.slide-dark {
  background:
    radial-gradient(1200px 600px at 18% 20%, rgba(212, 160, 23, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 80%, rgba(80, 110, 180, 0.12), transparent 50%),
    var(--navy);
  color: #f7f3ea;
}

.glow {
  position: absolute;
  inset: auto auto 8% 8%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.18), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.glow-close {
  inset: 20% 20% auto auto;
}

.slide-inner {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - var(--pad) * 2));
  height: 100%;
  margin: 0 auto;
  padding: 6.4rem 0 5.2rem;
  display: flex;
  flex-direction: column;
}

.body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.body.split,
.body.grid-3,
.body.grid-4,
.body.credits {
  display: grid;
  align-content: center;
}

.body.grid-3,
.body.grid-4 {
  align-items: start;
}

.body.split {
  align-items: center;
}

.body.credits {
  align-content: start;
  overflow: auto;
}

.title-inner {
  max-width: 920px;
  margin-left: var(--pad);
  justify-content: center;
  padding-left: 1.4rem;
  border-left: 3px solid var(--gold);
}

.kicker {
  margin: 0 0 1rem;
  color: var(--gold-2);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.2vw, 5.3rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 34rem;
  margin: 1.4rem 0 0;
  color: rgba(247, 243, 234, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  font-weight: 300;
}

.section-label,
h2 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.05rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.subhead {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.quote-block {
  margin: 1.4rem 0 2rem;
  text-align: center;
}

.quote-block blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  font-weight: 600;
  line-height: 1.28;
  color: #8a5a12;
}

.quote-block figcaption {
  margin-top: 1.15rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.kicker-light {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.quote-compact {
  margin: 0.4rem 0 1.2rem;
}

.quote-compact blockquote {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.meaning-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.7rem;
  align-items: stretch;
}

.meaning-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.meaning-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--gold);
}

.slide.is-active .meaning-card {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.slide.is-active .meaning-card:nth-of-type(2) { animation-delay: 0.16s; }
.slide.is-active .meaning-card:nth-of-type(3) { animation-delay: 0.28s; }

.meaning-step {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.meaning-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.55rem;
}

.meaning-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.meaning-arrow {
  width: 28px;
  align-self: center;
  height: 2px;
  background: var(--gold);
  position: relative;
}

.meaning-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold);
  border-top: 2px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

.inference {
  margin-top: 1.15rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: var(--gold-soft);
  color: #6b4a10;
  font-size: 1.02rem;
  line-height: 1.45;
}

.inference strong {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.strategy-line {
  margin: 1.4rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--ink);
}

.quote-ribbon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  text-align: center;
}

.quote-ribbon blockquote {
  margin: 0;
  max-width: 52rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
  color: #8a5a12;
}

.quote-ribbon figcaption {
  color: var(--muted);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.mindmap {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0.55rem;
}

.mm-node {
  background: #fff;
  border-radius: 22px;
  padding: 1.05rem 1rem 1.15rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.mm-core {
  background: linear-gradient(180deg, #fff8e6, #fff);
  outline: 2px solid rgba(212, 160, 23, 0.35);
  transform: scale(1.04);
}

.mm-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  margin-bottom: 0.55rem;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--gold);
  background: var(--gold-soft);
}

.mm-icon svg {
  width: 24px;
  height: 24px;
}

.mm-icon-warn {
  color: var(--warn);
  background: #fdecec;
}

.mm-node h3 {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.mm-node p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.mm-link {
  width: 36px;
  height: 3px;
  align-self: center;
  background: var(--gold);
  position: relative;
  border-radius: 99px;
}

.mm-link::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--gold);
  border-top: 2px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

.slide.is-active .mm-core .mm-icon {
  animation: numGlow 2.2s ease-in-out infinite;
}

.slide.is-active .mm-link {
  animation: drawLine 0.8s ease forwards;
}

.mm-leaves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1rem;
}

.mm-leaf {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.mm-leaf h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.mm-leaf p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.case-thesis {
  max-width: min(100%, 40rem);
  font-size: clamp(1.65rem, 3.3vw, 2.55rem);
}

.case-map {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0.45rem;
}

.case-anchor {
  margin: 1.15rem 0 0;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  color: #8a5a12;
  line-height: 1.35;
}

.case-anchor cite {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.vice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.vice-col {
  background: #fff;
  border-radius: 22px;
  padding: 1rem 0.95rem 1.05rem;
  box-shadow: var(--shadow);
  border-top: 4px solid #ccc;
}

.vice-heart { border-top-color: #e24b4b; }
.vice-desire { border-top-color: #d97706; }
.vice-act { border-top-color: #7c3aed; }
.vice-cult { border-top-color: #0f766e; }

.vice-col h3 {
  margin: 0 0 0.15rem;
  font-family: var(--serif);
  font-size: 1.28rem;
}

.vice-ref {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vice-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.vice-col li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.vice-col li span {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
}

.vice-heart li { background: #fdecec; color: #8a1f1f; }
.vice-heart li span { background: #e24b4b; color: #fff; }
.vice-desire li { background: #fff4e5; color: #7a3e04; }
.vice-desire li span { background: #d97706; color: #fff; }
.vice-act li { background: #f3e8ff; color: #4c1d95; }
.vice-act li span { background: #7c3aed; color: #fff; }
.vice-cult li { background: #ccfbf1; color: #115e59; }
.vice-cult li span { background: #0f766e; color: #fff; }

.slide.is-active .vice-col li {
  animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.slide.is-active .vice-col li:nth-child(1) { animation-delay: 0.08s; }
.slide.is-active .vice-col li:nth-child(2) { animation-delay: 0.14s; }
.slide.is-active .vice-col li:nth-child(3) { animation-delay: 0.2s; }
.slide.is-active .vice-col li:nth-child(4) { animation-delay: 0.26s; }
.slide.is-active .vice-col li:nth-child(5) { animation-delay: 0.32s; }
.slide.is-active .vice-col li:nth-child(6) { animation-delay: 0.38s; }

.discern-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0.55rem;
}

.discern-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.05rem;
}

.filter-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.filter-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1406;
  font-size: 0.75rem;
  font-weight: 700;
}

.filter-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.slide.is-active .filter-card {
  animation: rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.slide.is-active .filter-card:nth-child(1) { animation-delay: 0.12s; }
.slide.is-active .filter-card:nth-child(2) { animation-delay: 0.22s; }
.slide.is-active .filter-card:nth-child(3) { animation-delay: 0.32s; }

.context-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.context-row span {
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b4a10;
}

.structure-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.structure-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
  min-height: 100%;
}

.structure-card.is-focus {
  background: linear-gradient(180deg, #fffaf0, #fff);
  outline: 2px solid rgba(212, 160, 23, 0.35);
}

.structure-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.structure-num {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1406;
  font-size: 0.78rem;
  font-weight: 700;
}

.slide.is-active .structure-num {
  animation: numGlow 2.4s ease-in-out infinite;
}

.structure-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(212, 160, 23, 0.15));
  transform-origin: left;
}

.slide.is-active .structure-line {
  animation: drawLine 0.9s ease forwards;
}

.structure-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.7rem;
}

.structure-aim {
  margin: 0 0 0.85rem !important;
  color: #8a5a12 !important;
  font-weight: 600;
}

.structure-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.structure-card li {
  position: relative;
  padding: 0.28rem 0 0.28rem 0.9rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.structure-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.structure-verse {
  margin: 0.95rem 0 0 !important;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(18, 20, 26, 0.08);
  color: #8a5a12 !important;
  font-family: var(--serif);
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.4;
}

.structure-verse cite {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}

.card-icon .structure-verse {
  font-size: 0.9rem;
}

@keyframes drawLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes numGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.28); }
  50% { box-shadow: 0 0 0 8px rgba(212, 160, 23, 0.08); }
}

.pill,
.note {
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 1rem 1.4rem;
  color: #6b4a10;
  text-align: center;
  font-size: 1.02rem;
}

.note {
  border-radius: 22px;
  text-align: left;
  margin-top: 2.2rem;
}

.note-title {
  margin: 0 0 0.7rem;
  font-weight: 600;
  color: #8a5a12;
}

.note ol {
  margin: 0;
  padding-left: 1.2rem;
}

.note li + li {
  margin-top: 0.45rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: center;
}

.split-reverse {
  grid-template-columns: 1.05fr 1fr;
}

.split-map {
  grid-template-columns: 0.82fr 1.18fr;
}

.verse-support {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  color: #6b4a10;
}

.region-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.region-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.92rem;
}

.pin-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.18);
}

.map-panel {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #d5e3ee;
}

.asia-map {
  display: block;
  width: 100%;
  height: auto;
}

.sea-label {
  fill: #6d8296;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--sans);
}

.land-name {
  fill: #8a6a2a;
  font-size: 28px;
  font-family: var(--serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.region-glow {
  fill: rgba(212, 160, 23, 0.22);
}

.map-pin circle {
  fill: var(--gold);
}

.map-pin .pin-pulse {
  fill: rgba(212, 160, 23, 0.28);
  transform-box: fill-box;
  transform-origin: center;
}

.slide.is-active .map-pin .pin-pulse {
  animation: pinPulse 2.1s ease-in-out infinite;
}

.map-pin text {
  fill: #3d2a0a;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--sans);
  text-anchor: middle;
}

.map-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.78);
  color: #f7f3ea;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes pinPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.45); opacity: 0.2; }
}

.stack {
  display: grid;
  gap: 0.9rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.98rem;
}

.card .muted {
  margin-top: 0.7rem;
  font-size: 0.9rem;
}

.meta {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.card-accent {
  border-top: 3px solid var(--gold);
}

.card-blue { border-top-color: var(--blue); }
.card-blue .meta { color: var(--blue); }
.card-gold { border-top-color: var(--gold); }
.card-green { border-top-color: var(--green); }
.card-green .meta { color: var(--green); }

.card-soft {
  background: var(--gold-soft);
  box-shadow: none;
}

.card-soft h3,
.card-soft p {
  color: #6b4a10;
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card-icon,
.card-warn,
.card-step {
  text-align: left;
  min-height: 100%;
}

.icon-wrap {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-bottom: 0.9rem;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: var(--gold-soft);
  border-radius: 12px;
}

.icon-wrap svg {
  width: 22px;
  height: 22px;
}

.card-warn {
  border-top: 3px solid var(--warn);
}

.warn-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  margin-bottom: 0.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--warn);
  background: #fdecec;
  font-size: 0.8rem;
}

.step {
  display: inline-flex;
  width: 34px;
  height: 34px;
  margin-bottom: 0.85rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1406;
  font-weight: 700;
}

.photo {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
}

.photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.4rem 1.2rem;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.flow-item {
  flex: 1;
  text-align: center;
}

.flow-item h3 {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.flow-arrow {
  width: 46px;
  height: 2px;
  background: var(--gold);
  position: relative;
  flex: 0 0 46px;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold);
  border-top: 2px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

.close-inner {
  max-width: 980px;
  text-align: center;
  margin: 0 auto;
  border-left: 0;
  padding-left: 0;
  justify-content: center;
}

.close-quote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.18;
}

.close-ref {
  margin: 1.2rem 0 0;
  color: rgba(247, 243, 234, 0.62);
}

.gold-rule {
  display: block;
  width: 48px;
  height: 3px;
  margin: 1.5rem auto;
  background: var(--gold);
  border-radius: 99px;
}

.close-note {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: rgba(247, 243, 234, 0.55);
}

.credits-inner h2 {
  margin-bottom: 1.8rem;
}

.credits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.credits li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.credits img,
.credit-map-mark {
  width: 84px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.credit-map-mark {
  background:
    radial-gradient(circle at 70% 35%, #d4a017 0 4px, transparent 5px),
    linear-gradient(180deg, #d5e3ee, #e8d4ae);
}

.credits strong {
  display: block;
}

.credits span {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-btn svg {
  width: 20px;
  height: 20px;
}

.nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.counter {
  color: #fff;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  min-width: 4.4rem;
  text-align: center;
}

.counter-sep {
  opacity: 0.45;
  margin: 0 0.2rem;
}

.dots {
  display: flex;
  gap: 0.35rem;
  padding: 0 0.4rem;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.25s ease, background 0.25s ease;
}

.dot.is-active {
  width: 18px;
  background: var(--gold-2);
}

.hint {
  position: fixed;
  left: var(--pad);
  bottom: 1.05rem;
  z-index: 25;
  display: flex;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.35s ease;
}

.app:not(.is-dark) .hint {
  color: rgba(18, 20, 26, 0.38);
}

.overview {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.94);
  backdrop-filter: blur(16px);
  padding: 1.5rem var(--pad) 2rem;
  overflow: auto;
}

.overview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  margin-bottom: 1.2rem;
}

.overview-head h2 {
  margin: 0;
  font-size: 1.8rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.thumb {
  text-align: left;
  padding: 1rem;
  min-height: 140px;
  border-radius: 16px;
  background: #111827;
  color: #efe8d8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.thumb strong {
  display: block;
  font-size: 0.72rem;
  color: var(--gold-2);
  margin-bottom: 0.4rem;
}

.thumb span {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.2;
}

.thumb.is-current {
  outline: 2px solid var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.slide.is-active .reveal {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.slide.is-active .d1 { animation-delay: 0.1s; }
.slide.is-active .d2 { animation-delay: 0.2s; }
.slide.is-active .d3 { animation-delay: 0.3s; }
.slide.is-active .d4 { animation-delay: 0.4s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .slide-inner {
    padding: 5.4rem 0 4.6rem;
    overflow-y: auto;
    justify-content: flex-start;
  }

  .body {
    flex: none;
    justify-content: flex-start;
  }

  .quote-compact blockquote {
    font-size: 1.28rem;
  }

  .split,
  .split-reverse,
  .split-map,
  .grid-3,
  .grid-4,
  .body.split,
  .body.grid-3,
  .body.grid-4 {
    grid-template-columns: 1fr;
  }

  .structure-flow {
    grid-template-columns: 1fr;
  }

  .structure-line {
    display: none;
  }

  .meaning-grid {
    grid-template-columns: 1fr;
  }

  .meaning-arrow {
    width: 2px;
    height: 22px;
    justify-self: center;
  }

  .meaning-arrow::after {
    right: 50%;
    top: auto;
    bottom: -2px;
    transform: translateX(50%) rotate(135deg);
  }

  .discern-top,
  .discern-filters,
  .case-map,
  .mindmap {
    grid-template-columns: 1fr;
  }

  .mm-core {
    transform: none;
  }

  .mm-link {
    width: 3px;
    height: 22px;
    justify-self: center;
  }

  .mm-link::after {
    right: 50%;
    top: auto;
    bottom: -3px;
    transform: translateX(50%) rotate(135deg);
  }

  .vice-grid,
  .mm-leaves {
    grid-template-columns: 1fr;
  }

  .flow {
    flex-direction: column;
  }

  .flow-arrow {
    width: 2px;
    height: 28px;
    flex-basis: 28px;
  }

  .flow-arrow::after {
    right: 50%;
    top: auto;
    bottom: -2px;
    transform: translateX(50%) rotate(135deg);
  }

  .brand-text {
    display: none;
  }

  .icon-btn-gold span {
    display: none;
  }

  .hint,
  .dots {
    display: none;
  }

  .photo,
  .photo img {
    min-height: 220px;
  }

  .title-inner {
    margin-left: 0;
  }
}
