@font-face { font-family: 'Cinzel'; font-weight: 700; font-display: swap; src: url(../assets/fonts/cinzel-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 800; font-display: swap; src: url(../assets/fonts/cinzel-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(../assets/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(../assets/fonts/inter-latin-700-normal.woff2) format('woff2'); }

:root {
  --bg: #17171a;
  --bg2: #26262b;
  --card: rgba(58, 58, 64, 0.62);
  --line: rgba(220, 181, 69, 0.3);
  --gold: #dcb545;
  --gold-l: #f9e69c;
  --gold-d: #a4771a;
  --silver: #d5d8df;
  --steel: #8f929b;
  --text: #f4f4f6;
  --muted: #c3c4ca;
  --grad: linear-gradient(135deg, #fbeaa6, #dcb545 45%, #a4771a);
  --silver-grad: linear-gradient(135deg, #ffffff, #c4c4ca 50%, #8f929b);
  --paid: #dcb545;
  --hold: #d5d8df;
  --re: #c07a2c;
  --up: #6f727b;
  --display: 'Cinzel', 'Noto Serif', Georgia, serif;
  --body: 'Inter', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --top: 64px;
  --bottom: 76px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  overflow: hidden;
  color: var(--text);
  font-family: var(--body);
  background: radial-gradient(ellipse at 50% -10%, #3c3c43 0%, #222226 45%, #121214 100%);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, select { font: inherit; color: inherit; }
svg { display: block; }

/* ─── Background ─── */
#dust { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.rays {
  position: fixed;
  left: 50%;
  top: -60vmax;
  width: 120vmax;
  height: 120vmax;
  margin-left: -60vmax;
  pointer-events: none;
  z-index: 0;
  background: repeating-conic-gradient(from 0deg, rgba(249, 230, 156, 0.06) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 62%);
  mask-image: radial-gradient(circle, #000 10%, transparent 62%);
  animation: spin 90s linear infinite;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54'%3E%3Cpath d='M27 2 52 27 27 52 2 27Z' fill='none' stroke='%23dcb545' stroke-opacity='.08'/%3E%3C/svg%3E");
}

/* ─── Top bar ─── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; background: rgba(255, 255, 255, 0.06); }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 12px var(--gold); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.top {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 15;
  height: calc(var(--top) - 3px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(16px, env(safe-area-inset-left));
}
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Cinzel', serif; font-weight: 800; font-size: 19px; letter-spacing: 0.06em; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 0 10px rgba(220, 181, 69, 0.45)); }
.brand b, .mega b { color: var(--gold); }
.brand em, .mega em { font-style: normal; color: var(--gold-l); }
.top-tools { display: flex; align-items: center; gap: 8px; }
.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(30, 30, 34, 0.7);
}
.lang svg, .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-l); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang select { border: 0; background: transparent; outline: none; cursor: pointer; font-size: 14px; font-weight: 700; padding-right: 2px; }
.lang option { background: #26262b; color: #fff; }
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(30, 30, 34, 0.7);
  cursor: pointer;
}

/* ─── Slides ─── */
#deck { position: fixed; inset: var(--top) 0 var(--bottom); z-index: 5; }
.slide {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px max(16px, 5vw) 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  gap: 14px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(60px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.7s;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-d) transparent;
}
.slide.back { transform: translateX(-60px) scale(0.98); }
.slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s; }
.slide > * { max-width: 1120px; width: 100%; flex-shrink: 0; }

/* Entrance animations, replayed whenever a slide opens */
.a { opacity: 0; }
.slide.on .a { animation: rise 0.75s cubic-bezier(0.2, 1, 0.3, 1) var(--d, 0s) both; }
.slide.on .a-zoom { animation-name: zoom; }
.slide.on .a-left { animation-name: fromLeft; }
.slide.on .a-right { animation-name: fromRight; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes zoom { from { opacity: 0; transform: scale(0.82); } 60% { opacity: 1; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes fromLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes fromRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.06); filter: brightness(1.2); } }
@keyframes shine { to { background-position: 200% 0; } }

/* ─── Type ─── */
.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-l);
}
.eyebrow::before, .eyebrow::after { content: '◆'; margin: 0 10px; font-size: 9px; color: var(--gold); vertical-align: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--display); }
h2 {
  font-size: clamp(28px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  background: linear-gradient(100deg, #fbeaa6 0%, #ffffff 25%, #dcb545 50%, #fbeaa6 75%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
h3 { font-size: 22px; color: var(--gold-l); }
.lead { margin: 0 auto; max-width: 760px; font-size: clamp(15px, 1.7vw, 19px); line-height: 1.6; color: var(--muted); }
.note { margin: 0 auto; max-width: 760px; font-size: 14px; line-height: 1.55; color: var(--muted); padding: 10px 14px; border-left: 3px solid var(--gold); border-radius: 8px; background: rgba(220, 181, 69, 0.07); text-align: left; }
.note.center { text-align: center; border-left: 0; border-top: 1px solid var(--line); }
.center { text-align: center; }

/* ─── Title slide ─── */
.s-title { gap: 10px; }
.crest { position: relative; width: min(46vw, 230px); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 6px; max-width: 230px; }
.crest img { width: 78%; position: relative; filter: drop-shadow(0 14px 40px rgba(220, 181, 69, 0.45)); animation: pulse 4s ease-in-out infinite; }
.ring { position: absolute; border-radius: 50%; border: 1.5px solid transparent; }
.r1 { inset: -4%; border-top-color: var(--gold); border-right-color: rgba(220, 181, 69, 0.3); animation: spin 3s linear infinite; }
.r2 { inset: 4%; border-bottom-color: var(--silver); border-left-color: rgba(213, 216, 223, 0.3); animation: spin 2.2s linear infinite reverse; }
.r3 { inset: -12%; border-style: dashed; border-color: rgba(249, 230, 156, 0.22); animation: spin 14s linear infinite; }
.mega { font-family: 'Cinzel', serif; font-weight: 800; font-size: clamp(46px, 9vw, 104px); letter-spacing: 0.08em; line-height: 1; color: #fff; text-shadow: 0 6px 40px rgba(220, 181, 69, 0.4); }
.tag { margin: 0; font-family: var(--display); font-size: clamp(18px, 2.6vw, 28px); color: var(--gold-l); }
.disclaimer { max-width: 640px; font-size: 12.5px; color: var(--steel); margin: 10px auto 0; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 48px;
  padding: 0 26px;
  margin: 6px auto 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: #241505;
  background: var(--grad);
  box-shadow: 0 10px 30px rgba(220, 181, 69, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(220, 181, 69, 0.5); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost { color: var(--gold-l); background: rgba(220, 181, 69, 0.1); border: 1px solid var(--line); box-shadow: none; }

/* ─── Cards & grids ─── */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: center; text-align: left; }
.copy { display: flex; flex-direction: column; gap: 14px; }
.copy .lead { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-2.wide { max-width: 980px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  text-align: left;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(80, 80, 88, 0.55), rgba(30, 30, 34, 0.85));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.25s, border-color 0.25s;
}
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(220, 181, 69, 0.6); }
.card:hover::after { left: 130%; }
.card b { font-size: 16.5px; color: #fff; }
.card small { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.card p { margin: 0; line-height: 1.6; color: var(--muted); font-size: 15.5px; }
.card.tall { padding: 26px; gap: 10px; }
.ico, [data-icon] > svg { flex: 0 0 auto; }
.ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #241505;
  background: var(--grad);
  box-shadow: 0 6px 18px rgba(220, 181, 69, 0.35);
}
.ico.big { width: 58px; height: 58px; border-radius: 16px; }
.ico svg, .values i svg, .steps span svg, .crown svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.values span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 9px; border-radius: 999px; border: 1px solid var(--line); background: rgba(30, 30, 34, 0.75); }
.values i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #241505; background: var(--silver-grad); }

/* Highlights */
.hl { align-items: center; text-align: center; }
.hl .ico { margin-bottom: 4px; }
.hl:nth-child(even) .ico { background: var(--silver-grad); }

/* Donut */
.donut-wrap { position: relative; width: min(100%, 340px); margin: 0 auto; }
#donut { width: 100%; height: auto; overflow: visible; transform: rotate(-90deg); }
#donut circle { fill: none; stroke-width: 26; transition: stroke-dashoffset 1.1s cubic-bezier(0.3, 0.9, 0.3, 1), stroke-width 0.25s; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }
#donut circle.hot { stroke-width: 34; }
.donut-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-mid b { font-family: var(--display); font-size: clamp(34px, 5vw, 48px); color: var(--gold-l); }
.donut-mid small { color: var(--muted); letter-spacing: 0.2em; }
.split-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.split-list li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(30, 30, 34, 0.7);
  cursor: default;
  transition: border-color 0.2s, transform 0.2s;
}
.split-list li:hover, .split-list li.hot { border-color: var(--gold); transform: translateX(4px); }
.split-list i { width: 14px; height: 14px; border-radius: 4px; }
.split-list b { display: block; font-size: 15px; }
.split-list small { color: var(--muted); font-size: 12.5px; }
.split-list strong { font-family: var(--display); font-size: 20px; color: var(--gold-l); text-align: right; }
.split-list strong small { display: block; font-family: var(--body); font-size: 11.5px; }

/* Income groups */
.income-groups { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; text-align: left; }
.group { padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: rgba(24, 24, 28, 0.55); }
.group h3 { font-size: 17px; margin-bottom: 4px; }
.group > small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.group .grid-2 { gap: 10px; }
.group-side { display: grid; gap: 16px; }
.inc { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 13px; background: rgba(60, 60, 66, 0.55); border: 1px solid rgba(255, 255, 255, 0.06); }
.inc .ico { width: 36px; height: 36px; border-radius: 10px; }
.inc b { display: block; font-size: 14px; }
.inc small { color: var(--gold-l); font-size: 12.5px; font-weight: 700; }

/* Amount */
.amount { font-family: var(--display); font-size: clamp(42px, 6vw, 70px); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 20px rgba(220, 181, 69, 0.35)); }
.amount small { font-size: 0.36em; -webkit-text-fill-color: var(--silver); margin-left: 8px; }

/* Animation boxes */
.anim-box { width: 100%; max-width: 460px; margin: 0 auto; padding: 10px; border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 30%, rgba(220, 181, 69, 0.1), rgba(24, 24, 28, 0.7) 70%); }
.anim-box svg { width: 100%; height: auto; overflow: visible; }
.node-c { fill: #2e2e33; stroke: var(--silver); stroke-width: 2; }
.node-me { fill: url(#gGold); stroke: #fff3bf; stroke-width: 2; }
.node-t { fill: #fff; font: 700 13px var(--body); text-anchor: middle; dominant-baseline: central; }
.node-me + .node-t, .node-dark { fill: #241505; }
.edge { stroke: rgba(213, 216, 223, 0.45); stroke-width: 2; fill: none; }
.edge-gold { stroke: var(--gold); stroke-width: 2.5; fill: none; }
.coin-c { fill: url(#gGold); stroke: #7a5510; stroke-width: 1; }
.coin-t { fill: #241505; font: 800 11px var(--body); text-anchor: middle; dominant-baseline: central; }
.tag-t { fill: var(--gold-l); font: 700 13px var(--body); text-anchor: middle; }
.tag-m { fill: var(--muted); font: 400 12px var(--body); text-anchor: middle; }

/* Dynasty levels */
.levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.lv {
  position: relative;
  padding: 9px 4px;
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 30, 34, 0.75);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
}
.lv b { display: block; font-family: var(--display); font-size: 17px; color: var(--gold-l); }
.slide.on .lv { animation: lvIn 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) calc(0.4s + var(--i) * 0.06s) both, lvGlow 2.4s ease-in-out calc(2.2s + var(--i) * 0.08s) infinite; }
@keyframes lvIn { to { opacity: 1; transform: none; } }
@keyframes lvGlow { 0%, 70%, 100% { border-color: rgba(255, 255, 255, 0.08); box-shadow: none; } 80% { border-color: var(--gold); box-shadow: 0 0 16px rgba(220, 181, 69, 0.5); } }

/* Supreme chain */
.chain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.chain li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(30, 30, 34, 0.7);
  opacity: 0;
}
.slide.on .chain li { animation: fromRight 0.6s cubic-bezier(0.2, 1, 0.3, 1) calc(0.3s + var(--i) * 0.15s) both; }
.chain li.win { border-color: var(--gold); background: linear-gradient(110deg, rgba(220, 181, 69, 0.2), rgba(30, 30, 34, 0.8)); }
.chain li.win strong { animation: pulse 1.8s ease-in-out infinite; }
.chain .lvn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-weight: 800; color: #241505; background: var(--silver-grad); }
.chain li.win .lvn { background: var(--grad); }
.chain li.me .lvn { background: #3a3a40; color: #fff; border: 1px dashed var(--silver); }
.chain b { display: block; font-size: 15px; }
.chain small { color: var(--muted); font-size: 12.5px; }
.chain strong { font-family: var(--display); font-size: 22px; color: var(--gold-l); }

/* Board ladder */
.ladder { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: clamp(220px, 34vh, 340px); }
.rung { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.rung i {
  display: block;
  width: 100%;
  height: var(--h);
  min-height: 18px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #fbeaa6, #dcb545 40%, #6a4a0e);
  box-shadow: 0 0 18px rgba(220, 181, 69, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform-origin: bottom;
  transform: scaleY(0);
}
.rung:nth-child(even) i { background: linear-gradient(180deg, #ffffff, #c4c4ca 40%, #55565d); box-shadow: 0 0 18px rgba(213, 216, 223, 0.25); }
.slide.on .rung i { animation: grow 0.8s cubic-bezier(0.2, 1, 0.3, 1) calc(0.3s + var(--i) * 0.07s) both; }
@keyframes grow { to { transform: scaleY(1); } }
.rung b { font-family: var(--display); font-size: 13px; color: var(--gold-l); white-space: nowrap; }
.rung small { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* Board flow */
.s-flow { gap: 10px; }
.flow { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: 18px; align-items: center; text-align: left; }
.flow-stage { position: relative; padding: 10px; border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 20%, rgba(220, 181, 69, 0.12), rgba(20, 20, 24, 0.75) 70%); }
#flow { width: 100%; height: auto; overflow: visible; }
.flow-caption {
  min-height: 46px;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.3s;
}
.flow-side { display: flex; flex-direction: column; gap: 12px; }
.flow-side .lead { margin: 0; }
.flow-side .btn { margin: 0; align-self: flex-start; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; padding: 8px 12px; border-radius: 12px; background: rgba(30, 30, 34, 0.7); }
.legend i { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; }
.k-paid { background: var(--paid); box-shadow: 0 0 10px var(--paid); }
.k-hold { background: var(--hold); box-shadow: 0 0 10px var(--hold); }
.k-re { background: var(--re); box-shadow: 0 0 10px var(--re); }
.k-up { background: var(--up); }
.slot { fill: #2a2a2f; stroke: rgba(213, 216, 223, 0.35); stroke-width: 2; transition: fill 0.4s, stroke 0.4s; }
.slot-t { fill: var(--muted); font: 800 17px var(--body); text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill 0.3s; }
.slot.f-paid { fill: var(--paid); stroke: #fff3bf; filter: drop-shadow(0 0 10px rgba(220, 181, 69, 0.8)); }
.slot.f-hold { fill: var(--hold); stroke: #fff; filter: drop-shadow(0 0 10px rgba(213, 216, 223, 0.7)); }
.slot.f-re { fill: var(--re); stroke: #f3c07c; filter: drop-shadow(0 0 10px rgba(192, 122, 44, 0.8)); }
.slot.f-up { fill: #55575f; stroke: #9a9da6; }
.slot.f-paid + .slot-t, .slot.f-hold + .slot-t { fill: #241505; }
.slot.f-re + .slot-t, .slot.f-up + .slot-t { fill: #fff; }
.slot.pop { animation: slotPop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1); transform-box: fill-box; transform-origin: center; }
@keyframes slotPop { from { transform: scale(0.4); } }
.link { stroke: rgba(213, 216, 223, 0.18); stroke-width: 2; fill: none; }
.link.lit { stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 0.6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.box { fill: rgba(30, 30, 34, 0.9); stroke-width: 2; }
.box-t { font: 800 15px var(--body); text-anchor: middle; dominant-baseline: central; }
.box-v { fill: #fff; font: 800 17px var(--display); text-anchor: middle; dominant-baseline: central; }
.box.hit { animation: boxHit 0.5s ease; transform-box: fill-box; transform-origin: center; }
@keyframes boxHit { 40% { transform: scale(1.08); filter: brightness(1.6); } }

/* Cycle */
.cycle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cycle-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 14px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.1); }
.cycle-card b { font-family: var(--display); font-size: 30px; color: #241505; }
.cycle-card span { font-size: 14.5px; font-weight: 700; color: #241505; line-height: 1.4; }
.k-paid-bg { background: var(--grad); box-shadow: 0 12px 30px rgba(220, 181, 69, 0.3); }
.k-hold-bg { background: var(--silver-grad); box-shadow: 0 12px 30px rgba(213, 216, 223, 0.2); }
.k-re-bg { background: linear-gradient(135deg, #f3c07c, #c07a2c 50%, #7a4614); }
.k-re-bg b, .k-re-bg span { color: #fff; }
.merge { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.coin {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 800;
  color: #241505;
  background: radial-gradient(circle at 35% 30%, #fff3bf, #dcb545 55%, #8a6214);
  box-shadow: 0 6px 18px rgba(220, 181, 69, 0.45), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}
.slide.on .coin.c1 { animation: coinL 2.6s ease-in-out 1s infinite; }
.slide.on .coin.c2 { animation: coinR 2.6s ease-in-out 1s infinite; }
@keyframes coinL { 40%, 60% { transform: translateX(18px) rotateY(180deg); } }
@keyframes coinR { 40%, 60% { transform: translateX(-18px) rotateY(180deg); } }
.op { font-size: 26px; color: var(--gold-l); font-weight: 800; }
.arrow { width: 60px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 90; }
.slide.on .arrow { animation: arrowRun 2.6s ease-in-out 1s infinite; }
@keyframes arrowRun { 0% { stroke-dashoffset: 90; } 50%, 100% { stroke-dashoffset: 0; } }
.board-chip { padding: 12px 18px; border-radius: 14px; font-weight: 800; font-family: var(--display); color: #fff; border: 1px solid var(--gold); background: linear-gradient(110deg, rgba(220, 181, 69, 0.25), rgba(30, 30, 34, 0.9)); }
.slide.on .board-chip { animation: pulse 2.6s ease-in-out 2.2s infinite; }
.board-chip small { font-family: var(--body); font-size: 13px; }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); max-width: 860px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-l); background: rgba(220, 181, 69, 0.1); }
tbody tr:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
td.g { color: var(--gold-l); font-weight: 700; }

/* Ride hexes */
.hexes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 400px; width: 100%; margin: 0 auto; }
.hex {
  position: relative;
  aspect-ratio: 1 / 1.1;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--muted);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: #3a3a40;
  opacity: 0;
  transform: scale(0.5);
}
.slide.on .hex { animation: hexIn 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) calc(0.3s + var(--i) * 0.05s) both, hexFill 0.4s ease calc(1.8s + var(--i) * 0.12s) both; }
@keyframes hexIn { to { opacity: 1; transform: none; } }
@keyframes hexFill { to { color: #241505; background: var(--fill); } }
.hex.t4 { --fill: linear-gradient(135deg, #ffffff, #c4c4ca); }
.hex.t3 { --fill: linear-gradient(135deg, #fbeaa6, #dcb545); }
.hex.t5 { --fill: linear-gradient(135deg, #fff3bf, #f0c94a 50%, #a4771a); }
.hex.mark::after { content: attr(data-x); position: absolute; bottom: 12%; font-size: 9px; font-family: var(--body); }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 760px; }
.tier { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 12px; border-radius: 20px; border: 1px solid var(--line); background: rgba(30, 30, 34, 0.75); }
.tier b { font-family: var(--display); font-size: 34px; color: var(--gold-l); position: relative; }
.tier strong { font-size: 22px; position: relative; }
.tier small { color: var(--muted); font-size: 13px; position: relative; }
.tier i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); background: linear-gradient(0deg, rgba(220, 181, 69, 0.35), transparent); transform-origin: bottom; transform: scaleY(0); }
.slide.on .tier i { animation: grow 1.2s cubic-bezier(0.2, 1, 0.3, 1) 0.8s both; }

/* Clubs */
.clubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 880px; }
.club { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 14px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(220, 181, 69, 0.16), rgba(30, 30, 34, 0.85) 60%); }
.club:nth-child(2) { transform: translateY(-14px); }
.crown { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: #241505; background: var(--grad); box-shadow: 0 0 30px rgba(220, 181, 69, 0.5); }
.slide.on .crown { animation: pulse 2.6s ease-in-out infinite; }
.club b { font-family: var(--display); font-size: 24px; }
.club strong { font-family: var(--display); font-size: 32px; color: var(--gold-l); }
.pill { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--silver); border: 1px solid rgba(213, 216, 223, 0.35); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 680px; position: relative; }
.steps::before { content: ''; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--gold), var(--steel)); }
.steps li { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 0; text-align: left; }
.steps i { position: relative; width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 18px; color: #241505; background: var(--grad); box-shadow: 0 0 0 5px #222226, 0 0 20px rgba(220, 181, 69, 0.4); }
.steps span { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; color: var(--gold-l); border: 1px solid var(--line); background: rgba(30, 30, 34, 0.8); }
.steps b { font-size: 16px; font-weight: 700; line-height: 1.4; }

/* ─── Controls ─── */
.controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  height: var(--bottom);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 max(16px, env(safe-area-inset-left)) env(safe-area-inset-bottom);
  background: linear-gradient(0deg, rgba(18, 18, 20, 0.95), rgba(18, 18, 20, 0.6) 70%, transparent);
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(40, 40, 46, 0.9);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn:disabled { opacity: 0.35; cursor: default; }
.nav-btn:not(:disabled):hover { transform: translateY(-2px); }
.nav-next { color: #241505; border: 0; background: var(--grad); box-shadow: 0 8px 24px rgba(220, 181, 69, 0.4); }
.dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; cursor: pointer; background: rgba(213, 216, 223, 0.3); transition: width 0.3s, background 0.3s; }
.dots button.on { width: 26px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.count { display: none; font-weight: 700; color: var(--gold-l); font-variant-numeric: tabular-nums; }
button:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Indic and Chinese scripts break apart with letter spacing */
html:lang(hi) *, html:lang(ta) *, html:lang(zh) * { letter-spacing: 0 !important; }
html:lang(hi) h2, html:lang(ta) h2 { line-height: 1.35; }

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-side .btn { align-self: center; }
  .ladder { grid-template-columns: repeat(6, minmax(0, 1fr)); height: auto; row-gap: 14px; }
  .rung { height: 150px; }
}
@media (max-width: 760px) {
  :root { --top: 58px; --bottom: 70px; }
  .split, .income-groups { grid-template-columns: minmax(0, 1fr); }
  .split { text-align: center; }
  .copy .lead { text-align: center; }
  .slide { justify-content: flex-start; padding-top: 14px; }
  .dots { display: none; }
  .count { display: block; }
  .nav-btn { padding: 0 16px; }
  .brand { font-size: 16px; }
  .brand img { width: 32px; height: 32px; }
  .cycle, .tiers, .clubs { gap: 8px; }
  .cycle-card { padding: 14px 8px; }
  .cycle-card b { font-size: 24px; }
  .cycle-card span { font-size: 12.5px; }
  .club { padding: 16px 6px; }
  .club:nth-child(2) { transform: none; }
  .club b { font-size: 17px; }
  .club strong { font-size: 24px; }
  .crown { width: 48px; height: 48px; }
  .tier { padding: 14px 6px; }
  .tier b { font-size: 26px; }
  .tier strong { font-size: 18px; }
  .tier small { font-size: 11.5px; }
  .flow-caption { font-size: 13.5px; }
  .flow-stage { width: calc(100% + 16px); margin: 0 -8px; padding: 6px; }
  .slot-t { font-size: 21px; }
  .box-t { font-size: 19px; }
  .box-v { font-size: 21px; }
  #flow .node-t { font-size: 17px; }
  #flow .coin-t { font-size: 13px; }
  .anim-box .node-t { font-size: 15px; }
  .anim-box .tag-t, .anim-box .tag-m { font-size: 16px; }
}
@media (max-width: 480px) {
  .grid-2:not(.group .grid-2) { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { gap: 10px; }
  .hl { padding: 14px 10px; }
  .hl b { font-size: 14.5px; }
  .hl small { font-size: 12px; }
  .nav-btn span { display: none; }
  .nav-btn { width: 52px; padding: 0; justify-content: center; }
  .lang select { max-width: 86px; }
  .ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rung { height: 120px; }
  .rung b { font-size: 11.5px; }
  .levels { gap: 5px; }
  .lv b { font-size: 15px; }
  .coin { width: 50px; height: 50px; font-size: 14px; }
  .group .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 560px) and (min-width: 761px) {
  .slide { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ─── Website link ─── */
.web {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: #241505;
  text-decoration: none;
  background: var(--grad);
  box-shadow: 0 6px 18px rgba(220, 181, 69, 0.35);
}
.web svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.site-link { width: auto; margin-top: 4px; font-family: 'Cinzel', serif; font-weight: 700; font-size: 17px; letter-spacing: 0.08em; color: var(--gold-l); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.site-link:hover { color: #fff; }
a.btn { text-decoration: none; }
.s-title .btn + .btn { margin-top: 0; }

/* ─── Board flow: row-1 members ─── */
.k-team { background: #8a6214; box-shadow: 0 0 10px #b8922f; border: 1px dashed var(--gold-l); }
.slot.f-team { fill: #7a5510; stroke: var(--gold-l); stroke-dasharray: 4 3; filter: drop-shadow(0 0 8px rgba(184, 146, 47, 0.7)); }
.slot.f-team + .slot-t { fill: #fff3bf; }
.slot.hit, circle.hit { animation: boxHit 0.5s ease; transform-box: fill-box; transform-origin: center; }
.plus-t { fill: #fff3bf; font: 800 18px var(--display); text-anchor: middle; animation: floatUp 1.3s ease forwards; }
@keyframes floatUp { from { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; } to { opacity: 0; transform: translateY(-22px); } }
.legend li { line-height: 1.35; }

/* Booster pills */
.pill-r { fill: rgba(220, 181, 69, 0.16); stroke: var(--gold); stroke-width: 1; }
.pill-t { fill: var(--gold-l); font: 700 11px var(--body); text-anchor: middle; dominant-baseline: central; }
.anim-box .flow-caption { min-height: 44px; font-size: 14px; }

/* Spillover */
.anim-box.wide { max-width: 860px; }
.edge.thin { stroke-width: 1.2; stroke: rgba(213, 216, 223, 0.25); }
.mini { fill: #2a2a2f; stroke: rgba(213, 216, 223, 0.4); stroke-width: 1.5; transition: fill 0.4s; }
.mini.lit { fill: var(--gold); stroke: #fff3bf; filter: drop-shadow(0 0 8px rgba(220, 181, 69, 0.9)); animation: boxHit 0.6s ease; transform-box: fill-box; transform-origin: center; }
.sh-lab { opacity: 0.55; transition: opacity 0.3s; }
.sh-lab.on { opacity: 1; }
.new-node { stroke: var(--gold); stroke-dasharray: 4 3; }

/* ─── Right-to-left languages ─── */
[dir='rtl'] .note { text-align: right; border-left: 0; border-right: 3px solid var(--gold); }
[dir='rtl'] .note.center { text-align: center; border-right: 0; }
[dir='rtl'] .split, [dir='rtl'] .card, [dir='rtl'] .flow, [dir='rtl'] .income-groups, [dir='rtl'] .chain li, [dir='rtl'] .steps li { text-align: right; }
[dir='rtl'] .steps::before { left: auto; right: 21px; }
[dir='rtl'] .nav-btn svg, [dir='rtl'] .btn[data-go='next'] svg { transform: scaleX(-1); }
[dir='rtl'] .split-list strong { text-align: left; }
svg, .ladder, .hexes, .levels, table, .merge, .tiers, .clubs, .cycle { direction: ltr; }
html:lang(ar) *, html:lang(fa) *, html:lang(ur) *, html:lang(bn) *, html:lang(te) *, html:lang(mr) *, html:lang(kn) *, html:lang(ml) *, html:lang(gu) *, html:lang(pa) *, html:lang(ne) *, html:lang(th) *, html:lang(ja) *, html:lang(ko) * { letter-spacing: 0 !important; }

@media (max-width: 760px) {
  .web span { display: none; }
  .web { width: 38px; padding: 0; justify-content: center; }
  .anim-box .pill-t { font-size: 13px; }
  .anim-box .flow-caption { font-size: 13px; }
  #sharedAnim .tag-m, #sharedAnim .tag-t { font-size: 15px; }
}
.amount, .count, .mega, .brand, .split-list strong, .tier, .club strong, .donut-mid { direction: ltr; unicode-bidi: isolate; }
[dir='rtl'] .amount { text-align: right; }
