/* =========================================================================
   产业投资 Masterclass — Slide Deck
   Theme: Trust Blue + Gold (Light)
   ========================================================================= */

/* ------------------------------ Design tokens ------------------------------ */
:root {
  /* palette */
  --bg:        #F5F8FD;
  --bg-2:      #E9F1FB;
  --bg-3:      #DCE8F7;
  --ink:       #14203A;
  --ink-soft:  #47597A;
  --ink-faint: #8494AD;
  --navy:      #17356B;
  --navy-2:    #244C8F;
  --blue:      #3B82C4;
  --blue-soft: #7FB0DE;
  --gold:      #C6A15B;
  --gold-2:    #B08A3E;
  --gold-soft: #EBD7A6;
  --white:     #FFFFFF;
  --line:      #D8E3F2;
  --good:      #2E9E6B;
  --warn:      #D9843B;
  --bad:       #D2544B;

  /* effects */
  --shadow-sm: 0 4px 14px -8px rgba(23,53,107,.28);
  --shadow:    0 16px 40px -18px rgba(23,53,107,.30);
  --shadow-lg: 0 30px 70px -24px rgba(23,53,107,.38);
  --ring:      0 0 0 1px var(--line);

  /* type */
  --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-en: "Sora", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font:    var(--font-en), var(--font-cn);

  /* rhythm */
  --r-sm: 10px;
  --r:    18px;
  --r-lg: 26px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,.84,.44,1);

  /* deck sizing (scaled by JS via --scale) */
  --deck-w: 1280px;
  --deck-h: 720px;
  --scale: 1;
}

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

html, body {
  height: 100%;
  background:
    radial-gradient(1200px 600px at 12% -8%, #FFFFFF 0%, rgba(255,255,255,0) 55%),
    radial-gradient(900px 500px at 100% 0%, #EAF2FE 0%, rgba(234,242,254,0) 60%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

body { overflow: hidden; }

/* ------------------------------ App shell ------------------------------ */
.app { display: flex; height: 100%; width: 100%; }
.stage-area {
  flex: 1 1 auto; min-width: 0; height: 100%;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}

/* ------------------------------ Filmstrip ------------------------------ */
.filmstrip {
  flex: 0 0 250px; width: 250px; height: 100%;
  background: linear-gradient(180deg, #EDF3FB 0%, #E4EDF8 100%);
  border-right: 1px solid var(--line);
  overflow-y: auto; overflow-x: hidden;
  padding: 12px 12px 44px;
  scrollbar-width: thin; scrollbar-color: #B4C7E2 transparent;
}
.filmstrip::-webkit-scrollbar { width: 9px; }
.filmstrip::-webkit-scrollbar-track { background: transparent; }
.filmstrip::-webkit-scrollbar-thumb { background: #B4C7E2; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.filmstrip::-webkit-scrollbar-thumb:hover { background: #93AED2; background-clip: padding-box; }
.film-title {
  font-family: var(--font-en); font-size: 11px; letter-spacing: .16em;
  color: var(--ink-faint); font-weight: 700; text-transform: uppercase;
  padding: 4px 6px 12px; position: sticky; top: -12px; z-index: 2;
}
.film-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 6px; border: none; background: transparent; cursor: pointer;
  border-radius: 12px; margin-bottom: 4px; text-align: left;
  transition: background .2s var(--ease);
}
.film-item:hover { background: rgba(255,255,255,.72); }
.film-item.active { background: #fff; box-shadow: var(--shadow-sm); }
.film-num {
  flex: 0 0 18px; text-align: right; font-family: var(--font-en);
  font-size: 11.5px; font-weight: 700; color: var(--ink-faint);
}
.film-item.active .film-num { color: var(--navy); }
.thumb-frame {
  position: relative; flex: 0 0 auto;
  width: 196px; height: 110.25px; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; background: #fff;
  box-shadow: 0 3px 10px -5px rgba(23,53,107,.45);
  transition: border-color .2s var(--ease);
}
.film-item:hover .thumb-frame { border-color: var(--blue-soft); }
.film-item.active .thumb-frame { border-color: var(--gold); }
.thumb-scale {
  position: absolute; top: 0; left: 0; width: 1280px; height: 720px;
  transform: scale(.153125); transform-origin: top left; /* 196 / 1280 */
  pointer-events: none;
}
/* cloned slides render in a static, fully-revealed state */
.thumb-scale .slide {
  opacity: 1 !important; visibility: visible !important;
  position: absolute; inset: 0; animation: none !important;
}
.thumb-scale [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
.thumb-scale .skyline .win { opacity: 1 !important; animation: none !important; }
.thumb-scale [data-chart] .col { transition: none !important; }

/* present mode (fullscreen) hides the filmstrip */
.app.present .filmstrip { display: none; }

/* ------------------------------ Stage / deck ------------------------------ */
.stage {
  position: relative;
  width: var(--deck-w);
  height: var(--deck-h);
  transform: scale(var(--scale));
  transform-origin: center center;
}

.deck {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg);
  isolation: isolate;
}

/* ------------------------------ Slides ------------------------------ */
.slide {
  position: absolute;
  inset: 0;
  padding: 62px 78px 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateZ(0);
  background: transparent;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}
/* directional enter/leave */
.slide.enter-right { animation: slideInR .62s var(--ease) both; }
.slide.enter-left  { animation: slideInL .62s var(--ease) both; }
@keyframes slideInR { from { opacity:0; transform: translateX(60px) scale(.985); } to { opacity:1; transform:none; } }
@keyframes slideInL { from { opacity:0; transform: translateX(-60px) scale(.985); } to { opacity:1; transform:none; } }

/* ------------------------------ Reveal system ------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal="fade"]  { transform: none; }
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="zoom"]  { transform: scale(.9); }
[data-reveal="down"]  { transform: translateY(-22px); }
.slide.is-active [data-reveal] { opacity: 1; transform: none; }

/* ------------------------------ Typography ------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-en);
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

h1.title { font-size: 62px; line-height: 1.03; font-weight: 800; letter-spacing: -.01em; color: var(--navy); }
h2.head  { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; color: var(--navy); }
h3.sub   { font-size: 23px; font-weight: 700; color: var(--ink); }
.lead    { font-size: 20px; line-height: 1.55; color: var(--ink-soft); font-weight: 400; }
p        { line-height: 1.6; }

.en   { font-family: var(--font-en); font-weight: 600; color: var(--navy-2); font-style: normal; }
.en-g { font-family: var(--font-en); font-weight: 700; color: var(--gold-2); }
.hl   { background: linear-gradient(180deg, transparent 62%, var(--gold-soft) 62%); padding: 0 2px; }

/* slide header block */
.s-head { margin-bottom: 30px; }
.s-head .eyebrow { margin-bottom: 14px; }
.s-head .lead { margin-top: 12px; max-width: 900px; }

/* ------------------------------ Cards & grids ------------------------------ */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--navy));
  opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-soft); }
.card:hover::after { opacity: 1; }
.card.is-gold::after { background: linear-gradient(180deg, var(--gold), var(--gold-2)); }

.card .num {
  font-family: var(--font-en); font-weight: 800; font-size: 15px;
  color: var(--gold-2); letter-spacing: .04em;
}
.card h4 { font-size: 21px; font-weight: 700; color: var(--navy); margin: 4px 0 8px; }
.card p  { font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; }
.card .tag-row { margin-top: 14px; }

/* icon chip */
.chip {
  width: 56px; height: 56px; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #EAF2FD, #D9E8FB);
  color: var(--navy); margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px rgba(23,53,107,.06);
}
.chip.gold { background: linear-gradient(150deg, #FBF1DA, #F1E0B8); color: var(--gold-2); }
.chip.navy { background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff; }
.chip svg { width: 30px; height: 30px; }

/* every sprite icon renders as a clean line icon (not a filled silhouette) */
.chip svg, .ci svg, .flow .arrow svg, .nav-btn svg, .icon-btn svg, .counter svg {
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

.ic { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.9;
      stroke-linecap: round; stroke-linejoin: round; }
.ic--fill { fill: currentColor; stroke: none; }

/* tags / pills */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-en); font-size: 12.5px; font-weight: 600;
  color: var(--navy-2); background: #EAF1FB; border: 1px solid #D6E4F6;
  padding: 5px 11px; border-radius: 999px; margin: 4px 6px 0 0;
}
.tag.gold { color: var(--gold-2); background: #FBF3E1; border-color: #EEDCB4; }
.tag-row { display: flex; flex-wrap: wrap; }

/* ------------------------------ Stat / numbers ------------------------------ */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .value {
  font-family: var(--font-en); font-weight: 800; letter-spacing: -.02em;
  font-size: 46px; color: var(--navy); line-height: 1;
}
.stat .value .u { font-size: 22px; color: var(--gold-2); font-weight: 700; margin-left: 3px; }
.stat .label { font-size: 14.5px; color: var(--ink-soft); font-weight: 500; }

/* ------------------------------ Tables ------------------------------ */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.tbl th, .tbl td { padding: 13px 18px; text-align: left; }
.tbl thead th {
  font-family: var(--font-en); font-size: 13px; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; background: linear-gradient(120deg, var(--navy), var(--navy-2));
}
.tbl thead th:first-child { border-radius: 12px 0 0 0; }
.tbl thead th:last-child  { border-radius: 0 12px 0 0; }
.tbl tbody tr { background: var(--white); }
.tbl tbody tr:nth-child(even) { background: #F4F8FE; }
.tbl tbody td { border-bottom: 1px solid var(--line); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .em { font-family: var(--font-en); font-weight: 700; color: var(--navy); }
.tbl .g  { color: var(--gold-2); font-weight: 700; font-family: var(--font-en); }
.tbl-wrap { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }

/* worked-example calc box */
.calc {
  background: linear-gradient(160deg, #FFFFFF, #F3F8FF);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.calc .step { display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 16px; color: var(--ink-soft); }
.calc .step:last-of-type { border-bottom: none; }
.calc .step b { font-family: var(--font-en); color: var(--navy); font-weight: 700; }
.calc .total {
  margin-top: 14px; padding: 14px 18px; border-radius: 12px;
  background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.calc .total span { font-size: 15px; opacity: .85; }
.calc .total b { font-family: var(--font-en); font-size: 28px; font-weight: 800; color: var(--gold-soft); }

/* ------------------------------ Bar chart ------------------------------ */
.bars { display: flex; align-items: flex-end; gap: 26px; height: 260px; padding: 0 6px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; justify-content: flex-end; }
.bar .col {
  width: 100%; max-width: 74px; border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--blue), var(--navy));
  height: 0; transition: height 1s var(--ease-out); position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.bar.gold .col { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); }
.bar .col .cap {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-en); font-weight: 800; font-size: 16px; color: var(--navy); white-space: nowrap;
}
.bar .cap-x { font-size: 14px; color: var(--ink-soft); font-weight: 600; text-align: center; }

/* ------------------------------ Flow diagram ------------------------------ */
.flow { display: flex; align-items: stretch; gap: 0; }
.flow .node {
  flex: 1; background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; box-shadow: var(--shadow-sm); text-align: center;
}
.flow .node.navy { background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff; border: none; }
.flow .node.navy h4, .flow .node.navy .en { color: #fff; }
.flow .node.navy p { color: rgba(255,255,255,.82); }
.flow .arrow { align-self: center; flex: 0 0 54px; display: grid; place-items: center; color: var(--gold); }
.flow .arrow svg { width: 34px; height: 34px; }
.flow .node h4 { font-size: 19px; color: var(--navy); margin-bottom: 5px; }
.flow .node p { font-size: 14px; color: var(--ink-soft); }

/* split rows */
.rows { display: flex; flex-direction: column; gap: 12px; }
.row {
  display: flex; align-items: center; gap: 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s;
}
.row:hover { transform: translateX(6px); border-color: var(--blue-soft); }
.row .rc { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(150deg, #EAF2FD, #D9E8FB); color: var(--navy); }
.row .rc.gold { background: linear-gradient(150deg, #FBF1DA, #F1E0B8); color: var(--gold-2); }
.row .rt { font-size: 18px; font-weight: 700; color: var(--navy); }
.row .rd { font-size: 15px; color: var(--ink-soft); }
.row .rn { font-family: var(--font-en); font-weight: 800; color: var(--gold-2); font-size: 22px; margin-left: auto; }

/* ------------------------------ Cover slide ------------------------------ */
.cover { padding: 0; }
.cover .bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(10,26,58,.94) 0%, rgba(20,45,95,.86) 42%, rgba(30,70,140,.5) 100%),
    url("https://images.unsplash.com/photo-1487958449943-2429e8be8625?auto=format&fit=crop&w=1600&q=70");
  background-size: cover; background-position: center;
}
.cover .bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 82% 78%, rgba(198,161,91,.28), transparent 60%);
}
.cover .cover-inner { position: relative; z-index: 3; padding: 70px 82px; height: 100%;
  display: flex; flex-direction: column; justify-content: center; color: #fff; }
.cover h1 { font-size: 70px; line-height: 1.02; font-weight: 800; color: #fff; letter-spacing: -.015em; }
.cover h1 .gold { color: var(--gold-soft); }
.cover .sub { font-size: 24px; color: #D9E4F5; margin-top: 20px; font-weight: 400; }
.cover .eyebrow { color: var(--gold-soft); }
.cover .eyebrow::before { background: var(--gold-soft); }
.cover .meta { margin-top: 46px; display: flex; gap: 40px; align-items: center; }
.cover .meta .m { display: flex; flex-direction: column; }
.cover .meta .m b { font-family: var(--font-en); font-size: 30px; font-weight: 800; color: #fff; }
.cover .meta .m span { font-size: 14px; color: #AFC2DE; letter-spacing: .04em; }
.cover .meta .divide { width: 1px; height: 42px; background: rgba(255,255,255,.22); }
.cover .brand { position: absolute; top: 54px; right: 82px; z-index: 3;
  display: flex; align-items: center; gap: 12px; color: #fff; }
.cover .brand .logo { width: 40px; height: 40px; }
.cover .brand b { font-family: var(--font-en); font-weight: 800; letter-spacing: .04em; font-size: 18px; }
.cover .brand span { font-size: 12px; color: #AFC2DE; letter-spacing: .18em; text-transform: uppercase; display:block; }

/* skyline */
.skyline { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 300px; width: 100%; opacity: .9; }
.skyline .win { opacity: 0; }
.slide.is-active .skyline .win { animation: winOn .5s var(--ease) forwards; }

@keyframes winOn { to { opacity: 1; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ------------------------------ Chapter divider ------------------------------ */
.divider { padding: 0; }
.divider .bg {
  position: absolute; inset: 0;
  background: linear-gradient(125deg, #0E2247 0%, #17356B 48%, #244C8F 100%);
}
.divider .bg::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 420px at 85% 20%, rgba(198,161,91,.30), transparent 62%);
}
.divider .grid-lines { position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(circle at 30% 60%, #000, transparent 78%); }
.divider .ghost {
  position: absolute; right: 60px; bottom: -40px; z-index: 2;
  font-family: var(--font-en); font-weight: 800; font-size: 420px; line-height: .8;
  color: rgba(255,255,255,.06); letter-spacing: -.03em;
}
.divider .d-inner { position: relative; z-index: 3; padding: 0 82px; height: 100%;
  display: flex; flex-direction: column; justify-content: center; color: #fff; }
.divider .kicker { font-family: var(--font-en); letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 700; font-size: 15px; margin-bottom: 22px; display:flex; align-items:center; gap:14px; }
.divider .kicker .ci { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); color: var(--gold-soft); }
.divider .kicker .ci svg { width: 32px; height: 32px; }
.divider h2 { font-size: 66px; font-weight: 800; color: #fff; letter-spacing: -.01em; line-height: 1.04; }
.divider .en-title { font-family: var(--font-en); font-size: 26px; color: #9FB6D8; font-weight: 600; margin-top: 12px; }
.divider .points { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.divider .points .pt { font-family: var(--font-en); font-size: 14px; font-weight: 600; color: #E7EEFA;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); padding: 8px 15px; border-radius: 999px; }

/* ------------------------------ Callouts ------------------------------ */
.note {
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(120deg, #FBF3E1, #FCF7EA);
  border: 1px solid #EEDCB4; border-left: 4px solid var(--gold);
  border-radius: 14px; padding: 16px 20px;
}
.note .ni { color: var(--gold-2); flex: 0 0 auto; margin-top: 1px; }
.note p { font-size: 16px; color: #6B5A34; }
.note b { color: var(--gold-2); }

.note.blue { background: linear-gradient(120deg, #EAF2FD, #F2F7FE); border-color: #CFE0F5; border-left-color: var(--blue); }
.note.blue .ni { color: var(--blue); } .note.blue p { color: var(--navy-2); } .note.blue b { color: var(--navy); }

/* two-column layout helper */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.cols.wide-l { grid-template-columns: 1.15fr .85fr; }
.cols.wide-r { grid-template-columns: .85fr 1.15fr; }

/* vs compare */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }
.vs .side { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 26px; }
.vs .side:first-child { border-radius: var(--r) 0 0 var(--r); }
.vs .side:last-child  { border-radius: 0 var(--r) var(--r) 0; }
.vs .side.gold { background: linear-gradient(160deg,#FFFDF8,#FBF3E1); }
.vs .side h4 { font-size: 24px; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.vs .side .en { font-size: 14px; }
.vs .badge { align-self: center; z-index: 3; width: 54px; height: 54px; margin: 0 -27px; border-radius: 50%;
  background: linear-gradient(150deg, var(--gold), var(--gold-2)); color: #fff; display: grid; place-items: center;
  font-family: var(--font-en); font-weight: 800; font-size: 16px; box-shadow: var(--shadow); }
.vs ul { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.vs li { display: flex; gap: 9px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft); }
.vs li svg { width: 18px; height: 18px; color: var(--good); flex: 0 0 auto; margin-top: 3px; }

/* checklist */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.check { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.check .cb { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto; display: grid; place-items: center;
  background: linear-gradient(150deg,#EAF2FD,#D9E8FB); color: var(--navy); }
.check .ct b { display: block; font-size: 17px; color: var(--navy); font-weight: 700; }
.check .ct span { font-size: 13.5px; color: var(--ink-soft); }
.check .cn { margin-left: auto; font-family: var(--font-en); font-weight: 800; color: #DFE8F5; font-size: 26px; }

/* ------------------------------ Progress / chrome ------------------------------ */
.topbar { position: absolute; top: 0; left: 0; right: 0; height: 5px; z-index: 40; background: rgba(23,53,107,.08); }
.topbar .fill { height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--navy) 55%, var(--gold)); transition: width .5s var(--ease); }

.controls {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 40; display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; box-shadow: var(--shadow);
}
.nav-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff;
  display: grid; place-items: center; transition: transform .2s var(--ease), box-shadow .2s, opacity .2s;
  box-shadow: 0 6px 16px -6px rgba(23,53,107,.6);
}
.nav-btn:hover { transform: translateY(-2px) scale(1.05); }
.nav-btn:active { transform: scale(.94); }
.nav-btn:disabled { opacity: .32; cursor: default; transform: none; box-shadow: none; }
.nav-btn svg { width: 20px; height: 20px; }
.counter { font-family: var(--font-en); font-weight: 700; color: var(--navy); font-size: 15px; min-width: 92px; text-align: center; }
.counter b { color: var(--gold-2); } .counter .sep { color: var(--ink-faint); margin: 0 4px; }
.counter .chap { display: block; font-size: 11px; color: var(--ink-soft); font-weight: 600; letter-spacing: .04em; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: #fff; color: var(--navy); display: grid; place-items: center; transition: transform .2s, background .2s, color .2s;
}
.icon-btn:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; }

/* keyboard hint */
.hint { position: absolute; bottom: 26px; right: 26px; z-index: 40; font-family: var(--font-en);
  font-size: 12px; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; opacity: .8; }
.hint kbd { font-family: var(--font-en); font-size: 11px; background: #fff; border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; color: var(--navy); font-weight: 700; }

/* ------------------------------ Chapter menu ------------------------------ */
.menu {
  position: absolute; inset: 0; z-index: 60; display: none;
  background: rgba(12,26,54,.55); backdrop-filter: blur(6px);
  padding: 60px 70px; opacity: 0; transition: opacity .35s var(--ease);
}
.menu.open { display: block; opacity: 1; }
.menu .panel {
  background: var(--white); border-radius: 24px; box-shadow: var(--shadow-lg);
  padding: 38px 42px; height: 100%; overflow: hidden; display: flex; flex-direction: column;
  transform: translateY(18px) scale(.98); transition: transform .4s var(--ease);
}
.menu.open .panel { transform: none; }
.menu h3 { font-size: 26px; color: var(--navy); font-weight: 800; }
.menu .mtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mitem {
  text-align: left; cursor: pointer; background: #F6F9FE; border: 1px solid var(--line);
  border-radius: 16px; padding: 18px; transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.mitem:hover, .mitem.active { transform: translateY(-4px); border-color: var(--blue-soft); background: #fff; box-shadow: var(--shadow-sm); }
.mitem .mnum { font-family: var(--font-en); font-weight: 800; color: var(--gold-2); font-size: 14px; }
.mitem .mic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin: 8px 0 12px;
  background: linear-gradient(150deg,#EAF2FD,#D9E8FB); color: var(--navy); }
.mitem b { display: block; font-size: 18px; color: var(--navy); }
.mitem span { font-family: var(--font-en); font-size: 13px; color: var(--ink-soft); }

/* ------------------------------ Utility ------------------------------ */
.mt-a { margin-top: auto; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.big-em { font-family: var(--font-en); font-weight: 800; color: var(--gold-2); }

/* pulse ring for emphasis dots */
.pulse { position: relative; }
.pulse::before { content:""; position:absolute; inset:-6px; border-radius:inherit; border:2px solid var(--gold);
  opacity:0; }
.slide.is-active .pulse::before { animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0% { opacity:.6; transform:scale(.96);} 70%,100% { opacity:0; transform:scale(1.12);} }

/* float animation applied on active */
.slide.is-active .float { animation: floaty 5s ease-in-out infinite; }

/* loading fade for whole stage */
.stage { animation: bootIn .8s var(--ease) both; }
@keyframes bootIn { from { opacity:0; transform: scale(var(--scale)) translateY(14px); } to { opacity:1; } }

/* small helpers for house svg diagrams */
.house-svg { width: 100%; height: auto; }

@media (max-width: 480px) {
  .hint { display: none; }
}
