:root {
  --night: #0b0a24;
  --ink: #1f1b45;
  --ink2: #5d5888;
  --cream: #fff7e6;
  --paper: #fffaf0;
  --paper2: #f7eedb;
  --gold: #f3c770;
  --gold2: #ffdb8f;
  --line: rgba(31, 27, 69, .1);
  --ok: #1f9d74;
  --fr: "Fraunces", Georgia, serif;
  --pp: "Poppins", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--night); touch-action: pan-x pinch-zoom; color: var(--cream); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; overflow-x: hidden; }
body { font-family: var(--pp); background: var(--night); overscroll-behavior-y: none; }
#track section { height: 100vh; height: 100lvh; }
#track { position: relative; z-index: 0; pointer-events: none; }

#stage { position: fixed; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
#stage a, #stage .mascot, #stage .cta { pointer-events: auto; }
#sky { position: absolute; inset: 0; display: block; }
#fallback-sky { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 60% at 50% 100%, #3a2a6e 0%, transparent 60%), linear-gradient(#0b0a24, #17144a 60%, #2a1f5c); }

/* ---------- titles ---------- */
#titles { position: absolute; inset: 0; z-index: 6; }
.title { position: absolute; margin: 0; font-family: var(--fr); font-weight: 600; color: var(--cream);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; letter-spacing: -.02em; line-height: 1.02;
  text-wrap: balance; will-change: transform, opacity; opacity: 0; text-shadow: 0 2px 24px rgba(11, 10, 36, .65); }
.title em, .title h1 em, .title h2 em { font-style: italic; color: var(--gold); font-weight: 500; }
h2.title { font-size: var(--tsize, 38px); }
.t-hero h1, .t-fin h2 { margin: 0; font-family: var(--fr); font-weight: 600; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.t-hero h1 { font-size: var(--hsize, 60px); line-height: .95; letter-spacing: -.03em; }
.t-hero h1 em { display: block; }
.t-hero .kicker { display: none; }
.t-hero .sub { font-family: var(--pp); font-size: 15px; line-height: 1.45; color: #d9d3f5; margin: 14px 0 20px; letter-spacing: 0; text-shadow: none; font-weight: 400; }
.cta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--pp); font-weight: 600; font-size: 16px; letter-spacing: 0;
  color: #241a05; background: linear-gradient(180deg, #ffe3a3, #f3c770 55%, #e9b552); padding: 15px 26px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(243, 199, 112, .55), inset 0 1px 0 rgba(255, 255, 255, .7); text-shadow: none; }
.cta::after { content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M4 10h11M11 5l5 5-5 5" stroke="black" stroke-width="2.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M4 10h11M11 5l5 5-5 5" stroke="black" stroke-width="2.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat; }
.t-fin h2 { font-size: var(--fsize, 46px); line-height: 1; margin-bottom: 22px; }
.t-fin .motto { font-family: var(--pp); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #bfb6ee; margin: 18px 0 0; text-shadow: none; font-weight: 500; }

/* ---------- planet tags ---------- */
#tags, #visit-tags { position: absolute; inset: 0; z-index: 3; }
.tag { position: absolute; left: 0; top: 0; font-family: var(--fr); font-weight: 600; font-size: 15px; color: var(--cream);
  font-variation-settings: "SOFT" 100, "opsz" 24; white-space: nowrap; padding: 3px 10px 4px; border-radius: 999px;
  background: rgba(14, 12, 44, .82); border: 1px solid rgba(255, 255, 255, .12); will-change: transform, opacity; opacity: 0; }
.tag::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 8px var(--c); }
.vtag { position: absolute; left: 0; top: 0; font-family: var(--pp); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--c); opacity: 0; white-space: nowrap; will-change: transform, opacity; text-shadow: 0 1px 10px rgba(11, 10, 36, .9); }

/* ---------- scenes ---------- */
#scenes { position: absolute; inset: 0; z-index: 4; }
.scene { position: absolute; left: 0; top: 0; width: 340px; height: 400px; transform-origin: 0 0; opacity: 0; visibility: hidden; will-change: transform, opacity; }
.scene.vis { visibility: visible; }
.scene .fit { position: absolute; inset: 0; }

.card { position: absolute; background: linear-gradient(180deg, #fffdf7, #fbf3e2); color: var(--ink); border-radius: 26px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 0 0 1px rgba(255, 236, 196, .55), 0 24px 60px -18px rgba(5, 3, 25, .85), 0 0 70px -10px rgba(243, 199, 112, .22); }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.chip span { font-weight: 500; color: var(--ink2); padding-left: 8px; border-left: 1px solid var(--line); }
.chip.mini { font-size: 11px; padding: 4px 9px; border-radius: 99px; background: color-mix(in srgb, var(--c) 16%, white); }

/* learn / quiz */
.quiz { left: 8px; right: 8px; top: 40px; padding: 20px 18px 18px; }
.quiz h3 { font-family: var(--fr); font-weight: 600; font-size: 22px; line-height: 1.18; margin: 14px 0 16px; letter-spacing: -.01em; font-variation-settings: "SOFT" 60, "opsz" 36; }
.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.opts li { position: relative; display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 500; padding: 12px 14px; border-radius: 15px;
  background: #fff; border: 1.5px solid #ece3cf; transition: background .45s, border-color .45s, transform .25s, color .45s; }
.opts li b { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; background: #f3ecdc; color: var(--ink2); transition: background .45s, color .45s; }
.opts li svg { position: absolute; right: 14px; width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  background: var(--ok); border-radius: 50%; padding: 2px; opacity: 0; transform: scale(.4); transition: opacity .35s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.steps { display: flex; gap: 6px; margin-top: 16px; }
.steps i { flex: 1; height: 5px; border-radius: 9px; background: #ece3cf; overflow: hidden; position: relative; }
.steps i.d { background: var(--gold); }
.steps i.n::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.6, 0, .3, 1); }
.tap { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid rgba(31, 27, 69, .55); background: rgba(31, 27, 69, .12);
  left: 70%; top: 105%; opacity: 0; pointer-events: none; }
.xp { position: absolute; right: 18px; top: 18px; font-weight: 700; font-size: 15px; color: #3a2600; background: linear-gradient(180deg, #ffe7ad, #f3c770);
  padding: 7px 13px; border-radius: 99px; box-shadow: 0 8px 24px -6px rgba(243, 199, 112, .7); opacity: 0; }
.burst { position: absolute; left: 60%; top: 52%; width: 0; height: 0; }
.burst i, .poof i { position: absolute; width: 12px; height: 12px; margin: -6px; background: var(--gold2); opacity: 0;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }

.scene.on .quiz .tap { animation: tapQuiz 2.1s cubic-bezier(.55, 0, .3, 1) 1.1s both; }
@keyframes tapQuiz { 0% { opacity: 0; left: 72%; top: 104%; transform: scale(1.2); } 30% { opacity: 1; } 62% { left: 64%; top: 49%; transform: scale(1); }
  72% { transform: scale(.78); background: rgba(31, 27, 69, .25); } 84% { transform: scale(1); opacity: 1; } 100% { left: 64%; top: 49%; opacity: 0; } }
.scene.on .opts li.ok { animation: okPress .5s ease 2.55s both; }
@keyframes okPress { 0% { transform: scale(1); } 40% { transform: scale(.965); } 100% { transform: scale(1); background: #e3f6ee; border-color: #8ed6b9; color: #11543d; } }
.scene.on .opts li.ok b { animation: okB .4s ease 2.7s both; }
@keyframes okB { to { background: var(--ok); color: #fff; } }
.scene.on .opts li.ok svg { opacity: 1; transform: scale(1); transition-delay: 2.8s; }
.scene.on .steps i.n::after { transform: scaleX(1); transition-delay: 3.7s; }
.scene.on .xp { animation: xpUp 1.4s cubic-bezier(.2, .9, .3, 1) 3.05s both; }
@keyframes xpUp { 0% { opacity: 0; transform: translateY(18px) scale(.6); } 35% { opacity: 1; transform: translateY(-6px) scale(1.08); } 60%, 100% { opacity: 1; transform: translateY(0) scale(1); } }
.scene.on .burst i { animation: burst 1.1s cubic-bezier(.15, .8, .3, 1) 2.85s both; }
@keyframes burst { 0% { opacity: 0; transform: rotate(var(--a)) translateX(0) scale(.3); } 20% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d, 70px)) scale(1); } }
.burst i:nth-child(1) { --a: 0deg; } .burst i:nth-child(2) { --a: 45deg; --d: 54px; } .burst i:nth-child(3) { --a: 90deg; } .burst i:nth-child(4) { --a: 135deg; --d: 58px; }
.burst i:nth-child(5) { --a: 180deg; } .burst i:nth-child(6) { --a: 225deg; --d: 50px; } .burst i:nth-child(7) { --a: 270deg; } .burst i:nth-child(8) { --a: 315deg; --d: 62px; }

/* read & listen */
.player { left: 18px; right: 18px; top: 4px; padding: 16px 16px 14px; }
.cover { position: relative; height: 150px; border-radius: 18px; overflow: hidden; padding: 18px 18px;
  background: radial-gradient(120% 120% at 100% 0%, #5b3fb0 0%, transparent 55%), linear-gradient(160deg, #2a1f6e, #15103f); color: var(--cream); }
.cv-art { position: absolute; right: -34px; top: 22px; width: 120px; height: 120px; fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: .9; }
.cv-art .dot { fill: var(--gold); stroke: none; }
.cv-t { position: relative; max-width: 62%; font-family: var(--fr); font-size: 25px; line-height: 1.02; font-weight: 600; font-variation-settings: "SOFT" 100, "opsz" 72; letter-spacing: -.01em; margin-top: 10px; }
.cv-a { position: relative; font-size: 12px; color: #cfc6f5; margin-top: 10px; letter-spacing: .04em; }
.pl-meta { display: flex; justify-content: space-between; align-items: center; margin: 14px 2px 6px; }
.seg { display: flex; background: #f1e9d6; border-radius: 99px; padding: 3px; font-size: 12px; font-weight: 600; color: var(--ink2); }
.seg span { padding: 5px 11px; border-radius: 99px; }
.seg span.on { background: var(--ink); color: var(--cream); }
.wave { height: 44px; display: flex; align-items: center; gap: 3px; margin: 8px 2px 6px; }
.wave i { flex: 1; height: 100%; border-radius: 3px; background: #d9cdee; transform: scaleY(var(--h)); transform-origin: 50% 50%; }
.wave i.p { background: #7d5fd6; }
.scene.on .wave i { animation: wv 1.1s ease-in-out infinite alternate; animation-delay: var(--dl); }
@keyframes wv { from { transform: scaleY(var(--h)); } to { transform: scaleY(calc(var(--h) * .45 + .1)); } }
.pbar { height: 5px; border-radius: 9px; background: #ece3cf; margin: 4px 2px 0; overflow: hidden; }
.pbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #7d5fd6, #b06bea); transform-origin: 0 50%; transform: scaleX(.28); }
.scene.on .pbar i { animation: pb 14s linear .4s both; }
@keyframes pb { from { transform: scaleX(.28); } to { transform: scaleX(.44); } }
.times { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink2); margin: 6px 2px 0; font-variant-numeric: tabular-nums; }
.ctrl { display: flex; justify-content: center; align-items: center; gap: 30px; margin-top: 4px; }
.ctrl .skip { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.ctrl .skip .f { fill: var(--ink); stroke: none; }
.ctrl .play { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 22px -8px rgba(31, 27, 69, .7); }
.ctrl .play svg { width: 24px; height: 24px; fill: var(--cream); }

/* tools */
.stack { position: absolute; left: 14px; right: 14px; top: 10px; bottom: 0; }
.ghost { left: 0; right: 0; height: 120px; padding: 6px 18px; }
.ghost .chip { font-size: 11px; }
.ghost.g2 { top: 0; transform: scale(.88); transform-origin: 50% 0; background: linear-gradient(180deg, #e8def5, #ddd0ee); }
.ghost.g1 { top: 24px; transform: scale(.94); transform-origin: 50% 0; background: linear-gradient(180deg, #fbe7ee, #f4d9e2); }
.calc { left: 0; right: 0; top: 50px; padding: 18px 18px 20px; }
.inputs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 8px; }
.inputs span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: #f1e9d6; color: var(--ink); }
.inputs .yrs b { font-variant-numeric: tabular-nums; }
.big { font-family: var(--fr); font-size: 44px; font-weight: 600; letter-spacing: -.02em; color: #0f5a45; font-variation-settings: "SOFT" 50, "opsz" 72; font-variant-numeric: tabular-nums lining-nums; line-height: 1.1; }
.chart { display: block; width: 100%; height: 96px; margin-top: 6px; overflow: visible; }
.chart .line { fill: none; stroke: #1f9d74; stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .area { fill: url(#cg); }
.chart .base { fill: none; stroke: #e2d6bc; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.slider { position: relative; height: 22px; margin-top: 12px; }
.slider i { position: absolute; top: 9px; height: 5px; border-radius: 9px; }
.slider .track { left: 0; right: 0; background: #ece3cf; }
.slider .fill { left: 0; width: 100%; background: #1f9d74; transform-origin: 0 50%; transform: scaleX(var(--k, 1)); }
.slider .knob { top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(31, 27, 69, .3), 0 0 0 4px rgba(31, 157, 116, .25);
  transform: translateX(calc(var(--k, 1) * (var(--sw, 270px) - 22px))); }

/* people */
.people { position: absolute; left: 0; top: 0; width: 340px; height: 300px; overflow: visible; }
.people .ln { stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; fill: none; opacity: .75; }
.people .node circle.halo { fill: var(--c); opacity: .22; }
.people .node circle.av { stroke: #fff7e6; stroke-width: 2.4; }
.people .node text { font-family: var(--fr); font-weight: 600; font-size: 15px; fill: #fff; text-anchor: middle; dominant-baseline: central; font-variation-settings: "SOFT" 100, "opsz" 24; }
.people .gift { opacity: 0; }
.guild { position: absolute; left: 50%; top: 118px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--fr); font-size: 20px; font-weight: 600; color: var(--cream); text-shadow: 0 2px 14px rgba(11, 10, 36, .9); white-space: nowrap; font-variation-settings: "SOFT" 100, "opsz" 36; }
.guild small { font-family: var(--pp); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.gl-ic { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe7ad, #f3c770 50%, #c98f2c); box-shadow: 0 0 0 4px rgba(243, 199, 112, .2), 0 0 24px rgba(243, 199, 112, .55); margin-bottom: 4px;
  -webkit-mask: none; position: relative; }
.gl-ic::after { content: ""; position: absolute; inset: 7px; background: #3a2600; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.live { left: 18px; right: 18px; top: 304px; padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 10px; border-radius: 20px; }
.live .dot { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 rgba(229, 72, 77, .5); }
.scene.on .live .dot { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .55); } 100% { box-shadow: 0 0 0 10px rgba(229, 72, 77, 0); } }
.live > b { font-size: 11px; letter-spacing: .12em; color: #e5484d; }
.lv-t { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.2; }
.lv-t small { display: block; font-size: 12px; font-weight: 500; color: var(--ink2); }
.join { font-size: 13px; font-weight: 600; background: var(--ink); color: var(--cream); padding: 8px 15px; border-radius: 99px; }

/* create */
.editor { left: 12px; right: 12px; top: 6px; padding: 16px 16px 16px; }
.ed-title { font-family: var(--fr); font-size: 23px; font-weight: 600; line-height: 1.15; min-height: 54px; margin: 12px 0 12px; font-variation-settings: "SOFT" 60, "opsz" 36; letter-spacing: -.01em; }
.caret { display: inline-block; width: 2px; height: 22px; background: #3fa6f2; vertical-align: -3px; margin-left: 2px; }
.scene.on .caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.blocks { display: grid; gap: 8px; }
.blk { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 14px; background: #fff; border: 1.5px solid #ece3cf; border-radius: 14px; padding: 9px 12px;
  opacity: 0; transform: translateX(40px); }
.blk small { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--ink2); }
.blk .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, white); }
.blk .ic svg { width: 18px; height: 18px; fill: none; stroke: color-mix(in srgb, var(--c) 70%, black); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.blk.b1 .ic svg { fill: color-mix(in srgb, var(--c) 70%, black); stroke: none; }
.scene.on .blk { animation: blkIn .7s cubic-bezier(.2, .9, .3, 1.15) both; }
.scene.on .blk.b1 { animation-delay: 2.4s; } .scene.on .blk.b2 { animation-delay: 3.3s; } .scene.on .blk.b3 { animation-delay: 4.2s; }
@keyframes blkIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.pub { position: relative; margin-top: 14px; height: 46px; border-radius: 99px; background: var(--ink); color: var(--cream); font-weight: 600; font-size: 15px; overflow: hidden; }
.pub span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .4s, transform .5s; }
.pub .p2 { opacity: 0; transform: translateY(14px); background: var(--ok); }
.pub svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.scene.on .pub { animation: press .45s ease 5.3s both; }
@keyframes press { 40% { transform: scale(.96); } }
.scene.on .pub .p1 { opacity: 0; transform: translateY(-14px); transition-delay: 5.5s; }
.scene.on .pub .p2 { opacity: 1; transform: none; transition-delay: 5.5s; }
.learners { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--ink2); margin-top: 12px; opacity: 0; transition: opacity .6s; }
.scene.on .learners { opacity: 1; transition-delay: 6.3s; }
.learners b { color: var(--ink); font-variant-numeric: tabular-nums; }
.faces { display: flex; }
.faces i { width: 24px; height: 24px; border-radius: 50%; background: var(--c); border: 2px solid #fffaf0; margin-left: -7px; font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; color: #2a1f55; }
.faces i:first-child { margin-left: 0; }

/* booking */
.booking { left: 12px; right: 12px; top: 8px; padding: 16px 16px 16px; }
.bk-who { display: flex; align-items: center; gap: 11px; }
.bk-who b { display: block; font-size: 16px; }
.bk-who small { font-size: 12px; color: var(--ink2); }
.bk-who small em { font-style: normal; color: #c28a1e; font-weight: 600; }
.bk-who .chip { margin-left: auto; }
.av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--fr); font-weight: 600; font-size: 16px; color: #2a1f05;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 45%, white), var(--c)); box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(31, 27, 69, .2); flex: none; }
.bk-svc { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 12px; padding: 12px 14px; border-radius: 14px; background: #f5edda; }
.bk-svc b { font-family: var(--fr); font-size: 19px; font-weight: 600; font-variation-settings: "SOFT" 60, "opsz" 36; }
.bk-svc span { font-size: 13px; color: var(--ink2); font-weight: 500; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.days span { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--ink2); padding: 7px 0; border-radius: 12px; border: 1.5px solid #ece3cf; background: #fff; transition: all .45s; }
.days b { font-size: 16px; color: var(--ink); transition: color .45s; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.slots span { text-align: center; font-size: 13px; font-weight: 600; padding: 9px 0; border-radius: 12px; border: 1.5px solid #ece3cf; background: #fff; transition: all .45s; font-variant-numeric: tabular-nums; }
.scene.on .days .thu { background: var(--ink); border-color: var(--ink); color: #cfc8f2; transition-delay: 1.6s; }
.scene.on .days .thu b { color: var(--cream); transition-delay: 1.6s; }
.scene.on .slots .pick { background: #fdf0d2; border-color: var(--gold); color: #6b4a00; transition-delay: 2.7s; }
.bk-btn { position: relative; margin-top: 14px; height: 48px; border-radius: 99px; background: var(--ink); color: var(--cream); font-weight: 600; font-size: 15px; overflow: hidden; }
.bk-btn span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .4s, transform .5s; }
.bk-btn .b1 { opacity: .35; }
.bk-btn .b2 { opacity: 0; transform: translateY(14px); background: var(--ok); }
.bk-btn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.scene.on .bk-btn .b1 { opacity: 1; transition-delay: 2.9s; }
.scene.on .bk-btn { animation: press .45s ease 3.9s both; }
.scene.on .bk-btn .b1 { animation: hideB1 .01s linear 4.15s both; }
@keyframes hideB1 { to { opacity: 0; transform: translateY(-14px); } }
.scene.on .bk-btn .b2 { opacity: 1; transform: none; transition-delay: 4.15s; }
.booking .tap { left: 74%; top: 110%; }
.scene.on .booking .tap { animation: tapBook 3.6s cubic-bezier(.55, 0, .3, 1) .7s both; }
@keyframes tapBook {
  0% { opacity: 0; left: 70%; top: 108%; transform: scale(1.2); }
  12% { opacity: 1; }
  24% { left: 61.5%; top: 52%; transform: scale(1); }
  28% { transform: scale(.75); } 33% { transform: scale(1); left: 61.5%; top: 52%; }
  52% { left: 76%; top: 64.5%; transform: scale(1); } 56% { transform: scale(.75); } 61% { transform: scale(1); left: 76%; top: 64.5%; }
  80% { left: 45%; top: 82%; transform: scale(1); } 84% { transform: scale(.75); } 90% { transform: scale(1); opacity: 1; }
  100% { left: 45%; top: 82%; opacity: 0; } }

/* play & progress */
.garden { position: absolute; inset: 0; }
.tree { position: absolute; left: 50%; top: 0; width: 230px; height: 290px; transform: translateX(-50%); }
.tree .tr { position: absolute; left: 0; bottom: 0; width: 230px; height: 288px; object-fit: contain; opacity: 0; transform-origin: 50% 75.5%; will-change: opacity, transform; }
.tree .pot-front { clip-path: inset(11.4% 0 0 0); filter: none; }
.tree .pot { position: absolute; left: 50%; bottom: -16px; width: 92px; transform: translateX(-50%); filter: drop-shadow(0 10px 14px rgba(5, 3, 25, .6)); }
.hud { left: 22px; right: 22px; top: 286px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; border-radius: 22px; }
.lvl { position: relative; width: 64px; height: 64px; flex: none; }
.lvl svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.lvl .rt { fill: none; stroke: #ece3cf; stroke-width: 6; }
.lvl .rf { fill: none; stroke: #e9b552; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 169.6; stroke-dashoffset: 169.6; }
.lvl .lnum { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--fr); font-weight: 600; font-size: 24px; font-variant-numeric: tabular-nums lining-nums; }
.hud-t { font-size: 13px; color: var(--ink2); font-weight: 500; }
.hud-t b { color: var(--ink); font-variant-numeric: tabular-nums; }
.miss { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.miss li { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.miss li::before { content: ""; width: 15px; height: 15px; border-radius: 5px; border: 1.8px solid #d8cdb4; flex: none; transition: all .4s;
  background: center/11px no-repeat url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5 10.5l3.2 3.2L15 7" stroke="white" stroke-width="3" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>'); }
.miss li.done::before { background-color: var(--ok); border-color: var(--ok); }
.miss li.done { color: var(--ink2); }

/* passport */
.passport { position: absolute; left: 50%; top: 6px; width: 270px; height: 360px; margin-left: -135px; perspective: 1400px; }
.pp-page { position: absolute; inset: 0; border-radius: 10px 22px 22px 10px; padding: 20px 18px; color: var(--ink);
  background: linear-gradient(180deg, #fffdf6, #f7eedb); box-shadow: 0 24px 60px -18px rgba(5, 3, 25, .85), 0 0 0 1px rgba(255, 236, 196, .55);
  background-image: repeating-linear-gradient(0deg, transparent 0 22px, rgba(31, 27, 69, .035) 22px 23px), linear-gradient(180deg, #fffdf6, #f7eedb); }
.pp-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed #d9cdb2; }
.pp-head b { display: block; font-family: var(--fr); font-size: 19px; font-weight: 600; font-variation-settings: "SOFT" 60, "opsz" 36; }
.pp-head small { font-size: 12px; color: var(--ink2); }
.stamps { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin-top: 18px; }
.st { justify-self: center; width: 110px; height: 110px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--c); border: 2.5px solid var(--c); box-shadow: inset 0 0 0 4px #fbf5e6, inset 0 0 0 5.5px var(--c); opacity: 0; mix-blend-mode: multiply; }
.st b { font-family: var(--fr); font-size: var(--fs, 12px); font-weight: 700; letter-spacing: 0; text-transform: uppercase; font-variation-settings: "SOFT" 0, "opsz" 14; }
.st small { font-size: 10px; font-weight: 600; letter-spacing: .06em; margin-top: 2px; }
.st:nth-child(1) { --r: -9deg; } .st:nth-child(2) { --r: 7deg; } .st:nth-child(3) { --r: 4deg; } .st:nth-child(4) { --r: -6deg; }
.scene.on .st { animation: stamp .55s cubic-bezier(.3, 0, .2, 1) both; }
.scene.on .st:nth-child(1) { animation-delay: 2.1s; } .scene.on .st:nth-child(2) { animation-delay: 3.0s; } .scene.on .st:nth-child(3) { animation-delay: 3.9s; } .scene.on .st:nth-child(4) { animation-delay: 4.8s; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.7) rotate(var(--r)); } 60% { opacity: .95; transform: scale(.94) rotate(var(--r)); } 100% { opacity: .9; transform: scale(1) rotate(var(--r)); } }
.seal { position: absolute; right: -16px; bottom: -18px; width: 92px; height: 92px; opacity: 0; }
.seal svg { width: 92px; height: 92px; filter: drop-shadow(0 6px 10px rgba(120, 80, 0, .35)); }
.seal .sl { fill: #e9b552; stroke: #c48a22; stroke-width: 1.5; }
.seal .ck { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.seal span { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #6b4a00;
  background: #ffe7ad; padding: 3px 8px; border-radius: 99px; }
.scene.on .seal { animation: sealIn .7s cubic-bezier(.2, 1.4, .4, 1) 5.9s both; }
@keyframes sealIn { from { opacity: 0; transform: scale(.3) rotate(-40deg); } to { opacity: 1; transform: none; } }
.pp-cover { position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d; border-radius: 10px 22px 22px 10px;
  background: radial-gradient(120% 90% at 30% 10%, #3b2f8f, #1c1652 60%, #120e3a); box-shadow: 0 24px 60px -18px rgba(5, 3, 25, .9), inset 0 0 0 1px rgba(243, 199, 112, .35); backface-visibility: hidden; }
.pp-in { position: absolute; inset: 14px; border: 1px solid rgba(243, 199, 112, .45); border-radius: 6px 14px 14px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.emb { width: 96px; height: 96px; fill: none; stroke: var(--gold); stroke-width: 1.3; }
.emb .f { fill: var(--gold); stroke: none; }
.pp-t { font-family: var(--fr); font-weight: 600; color: var(--gold); font-size: 30px; letter-spacing: .26em; margin: 18px 0 0 .26em; font-variation-settings: "SOFT" 0, "opsz" 72; }
.pp-s { font-size: 11px; color: var(--gold); letter-spacing: .5em; margin-left: .5em; font-weight: 600; margin-top: 4px; }
.pp-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 236, 190, .28) 45%, transparent 60%); background-size: 260% 100%; background-position: 100% 0; }
.scene.on .pp-cover::after { animation: foil 1.3s ease .2s both; }
@keyframes foil { to { background-position: -40% 0; } }
.scene.on .pp-cover { animation: ppOpen 1.4s cubic-bezier(.6, 0, .25, 1) 1.1s both; }
@keyframes ppOpen { 0% { transform: rotateY(0); } 100% { transform: rotateY(-178deg); opacity: 0; } 80% { opacity: 1; } }

/* ---------- ground & mascots ---------- */
#home { position: absolute; inset: 0; z-index: 5; will-change: transform; }
#ground { position: absolute; left: 0; top: 0; z-index: 7; overflow: visible; }
#ground .rim { stroke-width: 2.2; }
#ground .rim2 { stroke-width: 9; opacity: .22; }
.deco-crater { fill: #140f3a; }
.deco-lip { fill: none; stroke: #5a4aa8; stroke-width: 1.4; opacity: .55; }
.mascot { position: absolute; left: 0; top: 0; will-change: transform; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#mascot-snage { z-index: 6; }
#mascot-astrix { z-index: 8; }
.mascot canvas, .mascot .still { position: absolute; inset: 0; width: 100%; height: 100%; }
.mascot canvas { opacity: 0; transition: opacity .35s; }
.mascot.rive-on canvas { opacity: 1; }
.mascot.rive-on .still { opacity: 0; transition: opacity .35s .1s; }
.poof { position: absolute; left: 50%; top: 45%; width: 0; height: 0; }
.poof i:nth-child(1) { --a: 10deg; } .poof i:nth-child(2) { --a: 55deg; --d: 74px; } .poof i:nth-child(3) { --a: 100deg; } .poof i:nth-child(4) { --a: 145deg; --d: 80px; }
.poof i:nth-child(5) { --a: 190deg; } .poof i:nth-child(6) { --a: 235deg; --d: 70px; } .poof i:nth-child(7) { --a: 280deg; } .poof i:nth-child(8) { --a: 325deg; --d: 84px; }
.poof i { --d: 96px; width: 16px; height: 16px; margin: -8px; }
.poof::before { content: ""; position: absolute; width: 140px; height: 140px; margin: -70px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(255, 240, 200, .95), rgba(255, 219, 143, .5) 35%, transparent 70%); }
.poof.go i { animation: burst .8s cubic-bezier(.15, .8, .3, 1) both; }
.poof.go::before { animation: flash .55s ease-out both; }
@keyframes flash { 0% { opacity: 0; transform: scale(.3); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
.shadow { position: absolute; left: 0; top: 0; z-index: 7; border-radius: 50%; background: radial-gradient(closest-side, rgba(6, 4, 24, .55), transparent); }

/* ---------- bubble ---------- */
#bubble { position: absolute; left: 0; top: 0; z-index: 9; max-width: 300px; background: var(--cream); color: var(--ink); border-radius: 20px; padding: 11px 15px 12px;
  font-size: 15px; line-height: 1.32; font-weight: 500; box-shadow: 0 14px 34px -12px rgba(5, 3, 25, .75), 0 0 0 1px rgba(255, 236, 196, .6);
  opacity: 0; transform: scale(.6); will-change: transform, opacity; transition: opacity .28s ease, transform .45s cubic-bezier(.25, 1.5, .45, 1); }
#bubble.show { opacity: 1; transform: none; transition: opacity .28s ease, transform .45s cubic-bezier(.25, 1.5, .45, 1), translate .5s cubic-bezier(.45, 0, .2, 1); }
#bubble p, #bubble .tail { transition: opacity .17s ease; }
#bubble.swap p, #bubble.swap .tail { opacity: 0; }
#bubble.hide { opacity: 0; transform: scale(.9); transition: opacity .25s ease, transform .3s ease; }
#bubble p { margin: 0; position: relative; }
#bubble .unsaid { visibility: hidden; }
#bubble .tail { position: absolute; left: 0; top: 0; overflow: visible; width: 1px; height: 1px; }
#bubble .tail path { fill: var(--cream); }
#bubble .who { font-family: var(--fr); font-weight: 600; font-size: 12px; color: var(--ink2); letter-spacing: .02em; }
#taphint { position: absolute; z-index: 9; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--gold2); opacity: 0; transition: opacity .5s;
  background: rgba(11, 10, 36, .6); padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(243, 199, 112, .35); white-space: nowrap; }
#taphint.on { opacity: 1; }

/* progress dots */
#dots { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 10; display: grid; gap: 4px; pointer-events: auto; }
#dots i { width: 5px; height: 5px; margin: 3px; border-radius: 50%; background: rgba(255, 247, 230, .28); transition: transform .4s, background .4s; cursor: pointer; }
#dots i.on { background: var(--gold); transform: scale(1.6); }
@media (max-width: 759px) { #dots { right: 4px; gap: 2px; } #dots i { width: 5px; height: 5px; margin: 3px 2px; } .tag { font-size: 14px; padding: 2px 9px 3px; } }

@media (prefers-reduced-motion: reduce) {
  .scene *, .scene *::before, .scene *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; transition-delay: 0s !important; }
  .scene.on .wave i, .scene.on .live .dot, .scene.on .caret { animation: none !important; }
  .tap { display: none; }
}

/* people: constellation draws itself */
.people .ln { transition: none; }
.scene.on .people .ln { animation: lnDraw 1s cubic-bezier(.5, 0, .3, 1) var(--d) forwards; }
@keyframes lnDraw { to { stroke-dashoffset: 0; } }
.people .nd { transform: scale(0); }
.scene.on .people .nd { animation: ndPop .7s cubic-bezier(.3, 1.5, .5, 1) var(--d) both; }
@keyframes ndPop { from { transform: scale(0); } to { transform: scale(1); } }
.guild { opacity: 0; }
.scene.on .guild { animation: fadeUp .8s ease 1.2s both; }
.live { opacity: 0; }
.scene.on .live { animation: fadeUp .8s cubic-bezier(.2, .9, .3, 1) 4.6s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.scene.on .guild { animation-name: fadeUpC; }
@keyframes fadeUpC { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* first paint: the title arrives with the sunrise */
.t-hero h1, .t-hero .sub, .t-hero .cta { animation: heroIn 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.t-hero h1 { animation-delay: .35s; } .t-hero .sub { animation-delay: .8s; } .t-hero .cta { animation-delay: 1.1s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.mascot { animation: mIn 1s cubic-bezier(.2, .8, .2, 1) .9s both; }
@keyframes mIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .t-hero h1, .t-hero .sub, .t-hero .cta, .mascot { animation: none; } }
.garden::before { content: ""; position: absolute; left: 50%; top: 10px; width: 300px; height: 300px; margin-left: -150px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150, 230, 170, .22), rgba(243, 199, 112, .1) 55%, transparent); }

/* ---------- Knowledge Passport ---------- */
.kp { position: absolute; left: 10px; right: 10px; top: 0; height: 400px; border-radius: 26px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 236, 196, .5), 0 26px 60px -18px rgba(5, 3, 25, .9), 0 0 70px -10px rgba(118, 117, 221, .35); opacity: 0; transform: translateY(24px); }
.scene.on .kp { animation: kpIn .8s cubic-bezier(.2, .9, .3, 1) .15s both; }
@keyframes kpIn { to { opacity: 1; transform: none; } }
.kp-in { will-change: transform; transition: transform 1.4s cubic-bezier(.65, 0, .25, 1); }
.kp-head { position: relative; padding: 13px 15px 12px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, rgba(140, 139, 255, .55), transparent 55%), linear-gradient(35deg, #1b1a8f, #4d4cd3); }
.kp-head::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 20%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 86% 64%, #ffe7ad 50%, transparent 51%), radial-gradient(1px 1px at 45% 80%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 12%, #fff 50%, transparent 51%); }
.kp-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 219, 143, .8), transparent); }
.kp-eyebrow { position: relative; display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .62); margin-bottom: 9px; }
.kp-ver { display: inline-flex; align-items: center; gap: 4px; letter-spacing: .08em; color: #ffdb8f; opacity: 0; transform: scale(.6); }
.kp-ver svg { width: 16px; height: 16px; fill: #f4b400; }
.kp-ver .ck { fill: none; stroke: #3a2600; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.scene.on .kp-ver { animation: verIn .7s cubic-bezier(.2, 1.6, .4, 1) 3.2s both; }
@keyframes verIn { 0% { opacity: 0; transform: scale(.4) rotate(-20deg); } 100% { opacity: 1; transform: none; } }
.kp-id { position: relative; display: flex; align-items: center; gap: 8px; }
.kp-av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--fr); font-weight: 600; font-size: 15px; color: #2a1f55;
  background: radial-gradient(circle at 35% 30%, #fff, #c4bcff 60%, #8c84f0); box-shadow: 0 0 0 2px rgba(255, 255, 255, .35), 0 0 0 4px rgba(27, 26, 143, .6); }
.kp-name { flex: 1; font-family: var(--fr); font-size: 18px; font-weight: 600; font-variation-settings: "SOFT" 60, "opsz" 36; white-space: nowrap; }
.kp-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .15); border-radius: 99px; padding: 4px 8px 4px 5px; white-space: nowrap; }
.kp-pill .fl { width: 13px; height: 13px; fill: #ffa149; }
.kp-pill .hex { width: 18px; height: 18px; display: grid; place-items: center; font-style: normal; font-size: 9px; font-weight: 700; color: #3a2600;
  background: linear-gradient(180deg, #ffe7ad, #f4b400); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.kp-totals { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 11px; text-align: center; }
.kp-totals b { display: block; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kp-totals span { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .66); }
.kp-body { padding: 10px 10px 16px; background: #fff; }
.kp-atlas { display: grid; gap: 6px; }
.band { position: relative; height: 50px; border-radius: 15px; overflow: hidden; display: flex; align-items: center; justify-content: space-between; padding: 0 13px;
  background-position: center var(--y, 40%); background-size: cover; background-color: #2a2860; opacity: 0; transform: translateX(36px); }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 38, .88), rgba(10, 10, 38, .42) 50%, rgba(10, 10, 38, .18) 72%, rgba(10, 10, 38, .55)); }
.band .bn { position: relative; font-family: var(--fr); font-weight: 600; font-size: 16px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); font-variation-settings: "SOFT" 60, "opsz" 36; }
.band .bp { position: relative; font-weight: 700; font-size: 20px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .65); font-variant-numeric: tabular-nums; }
.band .bl { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); }
.band .bl i { position: absolute; inset: 0; background: linear-gradient(90deg, #fff, #ffe7ad); transform-origin: 0 50%; transform: scaleX(0); }
.scene.on .band { animation: bandIn .7s cubic-bezier(.2, .9, .3, 1) both; }
.scene.on .band:nth-child(1) { animation-delay: .7s; } .scene.on .band:nth-child(2) { animation-delay: .85s; } .scene.on .band:nth-child(3) { animation-delay: 1s; } .scene.on .band:nth-child(4) { animation-delay: 1.15s; }
@keyframes bandIn { to { opacity: 1; transform: none; } }
.scene.on .band .bl i { transform: scaleX(var(--p)); transition: transform 1.3s cubic-bezier(.5, 0, .2, 1) 1.5s; }
.kp-card { margin-top: 10px; border-radius: 16px; background: #f6f5fb; padding: 11px 11px 12px; }
.kp-lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9a98b5; margin-bottom: 8px; }
.kp-lbl.out { margin: 14px 4px 8px; }
.kp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.kp-chips span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: #4b4868; background: #fff; border: 1px solid #ebe9f5; border-radius: 99px; padding: 4px 9px 4px 7px; }
.kp-chips span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.kp-chips em { font-style: normal; font-weight: 700; color: #9a98b5; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.kp-chips .sc { width: 13px; height: 13px; fill: #f4b400; }
.kp-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; padding: 0 4px; }
.kp-shelf figure { margin: 0; }
.kp-shelf img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 14px -6px rgba(31, 27, 69, .55); }
.kp-shelf figcaption { font-size: 11.5px; line-height: 1.25; font-weight: 500; color: #7c79a0; margin-top: 5px; }
.kp-cert { position: relative; margin: 0 2px; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 24px -12px rgba(31, 27, 69, .6); container-type: inline-size; }
.kp-cert img { display: block; width: 100%; aspect-ratio: 680 / 453; }
.kp-cert .cn { position: absolute; left: 6.3%; top: 58.4%; height: 7.4%; min-width: 18.8%; padding: 0 3.2cqw; border-radius: 99px; display: flex; align-items: center;
  background: linear-gradient(90deg, #1f9e78, #0f6b52); color: #fff; font-weight: 600; font-size: 4.1cqw; white-space: nowrap; }
.kp-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 240, 200, .38) 48%, transparent 60%); background-size: 280% 100%; background-position: 120% 0; }
.scene.on .kp-shine { animation: kpShine 1.3s ease 3.3s both; }
@keyframes kpShine { to { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) { .kp, .band, .kp-ver { opacity: 1 !important; transform: none !important; } .band .bl i { transform: scaleX(var(--p)) !important; } }

/* ---------- learn: the quiz wears its lesson art ---------- */
.quiz { left: 8px; right: 8px; top: 0; padding: 0; overflow: hidden; }
.q-art { position: relative; aspect-ratio: 1200 / 520; background: #07080c; }
.q-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.chip.on-art { position: absolute; left: 12px; top: 12px; background: rgba(255, 253, 247, .94); padding: 5px 10px 5px 9px; border-radius: 99px; box-shadow: 0 4px 12px rgba(31, 27, 69, .2); }
.q-body { padding: 11px 15px 14px; }
.quiz h3 { font-size: 18.5px; margin: 2px 0 10px; }
.quiz .opts { gap: 6px; }
.quiz .opts li { padding: 8px 12px; font-size: 14px; }
.quiz .opts li b { width: 24px; height: 24px; }
.quiz .steps { margin-top: 11px; }
.scene.on .quiz .tap { animation-name: tapQuiz2; }
@keyframes tapQuiz2 { 0% { opacity: 0; left: 72%; top: 104%; transform: scale(1.2); } 30% { opacity: 1; } 62% { left: 64%; top: 70%; transform: scale(1); }
  72% { transform: scale(.78); background: rgba(31, 27, 69, .25); } 84% { transform: scale(1); opacity: 1; } 100% { left: 64%; top: 70%; opacity: 0; } }
.scene[data-s="2"] .burst { top: 66%; }
.q-body { position: relative; }
.scene[data-s="2"] .xp { top: auto; bottom: 7px; right: 14px; padding: 5px 11px; font-size: 13px; }
.quiz .steps { margin-right: 84px; }

/* photos for people everywhere */
.av.ph, .kp-av.ph, .faces i, .pp, .host, .lv-faces i { background-size: cover; background-position: center; }

/* ---------- tools: Red Flag or Fine? ---------- */
.apps { position: absolute; left: 14px; right: 14px; top: 0; bottom: 0; }
.app-tab { position: absolute; left: 0; right: 0; height: 60px; border-radius: 20px 20px 0 0; padding: 5px 16px; font-size: 12px; font-weight: 600; color: #4b4868; display: flex; align-items: flex-start; gap: 7px;
  background: linear-gradient(180deg, #f1ecfb, #e6def5); transform-origin: 50% 0; box-shadow: 0 -2px 10px rgba(5, 3, 25, .25); }
.app-tab i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-top: 4px; }
.app-tab.t3 { top: 0; transform: scale(.86); background: linear-gradient(180deg, #e7e2f7, #dcd3f0); }
.app-tab.t2 { top: 20px; transform: scale(.91); background: linear-gradient(180deg, #e9f2fb, #dbe8f6); }
.app-tab.t1 { top: 40px; transform: scale(.96); background: linear-gradient(180deg, #fbefe4, #f4e0cc); }
.rf { left: 0; right: 0; top: 62px; padding: 14px 14px 14px; }
.rf-top { display: flex; justify-content: space-between; align-items: center; }
.rf-dots { display: flex; gap: 5px; }
.rf-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ece3cf; transition: background .4s, transform .4s; }
.rf-deck { position: relative; height: 196px; margin: 12px 0; perspective: 900px; }
.rf-card { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.45, 0, .2, 1), opacity .5s; }
.rf-card.c3 { transform: translateY(16px) scale(.9); }
.rf-card.c2 { transform: translateY(8px) scale(.95); }
.rf-face { position: absolute; inset: 0; border-radius: 20px; padding: 16px 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(160deg, #fff6f1, #ffe2dc); box-shadow: inset 0 0 0 1px rgba(234, 90, 125, .18), 0 10px 20px -12px rgba(101, 16, 48, .45); }
.rf-card.c3 .rf-face { background: linear-gradient(160deg, #f7e9ef, #f0d7df); }
.rf-n { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c2506e; margin-bottom: 8px; }
.rf-face p { margin: 0; font-family: var(--fr); font-weight: 600; font-size: 21px; line-height: 1.2; color: #3a1530; font-variation-settings: "SOFT" 60, "opsz" 36; }
.rf-face.back { transform: rotateY(180deg); }
.rf-face.back p { font-family: var(--pp); font-weight: 500; font-size: 15px; line-height: 1.38; color: #4b2a3e; margin: 8px 0 12px; }
.rf-face.back.red { background: linear-gradient(160deg, #fff1f1, #fdd9da); box-shadow: inset 0 0 0 2px rgba(229, 72, 77, .55); }
.rf-face.back.fine { background: linear-gradient(160deg, #f0fbf4, #d5f1e0); box-shadow: inset 0 0 0 2px rgba(31, 157, 116, .55); }
.rf-v { font-family: var(--fr); font-size: 26px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.rf-v svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.red .rf-v { color: #d93a48; } .fine .rf-v { color: #178a63; }
.rf-ok { font-size: 12px; font-weight: 600; color: #6b5a68; }
.rf-stamp { position: absolute; top: 18px; padding: 5px 12px; border-radius: 10px; font-weight: 800; font-size: 18px; letter-spacing: .08em; border: 3px solid; opacity: 0; transition: opacity .25s; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rf-stamp.red { right: 16px; color: #d93a48; border-color: #d93a48; transform: rotate(12deg); background: rgba(255, 255, 255, .7); }
.rf-stamp.fine { left: 16px; color: #178a63; border-color: #178a63; transform: rotate(-12deg); background: rgba(255, 255, 255, .7); }
.rf-card.swipeL { transform: translateX(-26%) rotate(-9deg); }
.rf-card.swipeR { transform: translateX(26%) rotate(9deg); }
.rf-card.swipeL .rf-stamp, .rf-card.swipeR .rf-stamp { opacity: 1; }
.rf-card.flip { transform: rotateY(180deg); }
.rf-card.top { transform: none; }
.rf-card.gone { transform: translate(-30%, -140%) rotate(-14deg); opacity: 0; }
.rf-card.c3.mid { transform: translateY(8px) scale(.95); }
.rf-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.rf-btns span { display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; border-radius: 99px; font-weight: 600; font-size: 14.5px; transition: transform .25s, box-shadow .3s; }
.rf-btns svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.b-red { background: #fde8e9; color: #c62f3c; } .b-fine { background: #e3f6ee; color: #11704f; }
.rf-btns .press { transform: scale(.94); box-shadow: 0 0 0 3px currentColor inset; }

/* ---------- people: a guild around its fire, a live circle ---------- */
.guild2 { position: absolute; left: 0; right: 0; top: 0; height: 244px; }
.g-lines { position: absolute; left: 0; top: 0; width: 340px; height: 236px; overflow: visible; }
.g-lines .gl { fill: none; stroke: rgba(255, 219, 143, .75); stroke-width: 1.6; stroke-linecap: round; }
.g-lines .gl.spoke { stroke: rgba(255, 190, 110, .32); stroke-dasharray: 2 5; }
.scene.on .g-lines .gl { transition: stroke-dashoffset .5s cubic-bezier(.5, 0, .3, 1); transition-delay: var(--d); stroke-dashoffset: 0 !important; }
.fire { position: absolute; left: 144px; top: 68px; width: 52px; height: 60px; }
.fire::before { content: ""; position: absolute; left: -70px; top: -60px; width: 192px; height: 192px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 190, 110, .55), rgba(255, 140, 80, .18) 50%, transparent); opacity: 0; transition: opacity 1.2s ease .3s; }
.scene.on .fire::before { opacity: 1; }
.fire svg { position: relative; width: 52px; height: 60px; overflow: visible; }
.fire .f1 { fill: #ff9a3c; transform-origin: 30px 62px; }
.fire .f2 { fill: #ffe39a; transform-origin: 30px 62px; }
.scene.on .fire .f1 { animation: flick 1.3s ease-in-out infinite alternate; }
.scene.on .fire .f2 { animation: flick 0.9s ease-in-out infinite alternate-reverse; }
@keyframes flick { from { transform: scale(1, 1) skewX(0); } to { transform: scale(.94, 1.08) skewX(3deg); } }
.g-name { position: absolute; left: 50%; top: 200px; transform: translateX(-50%); text-align: center; font-family: var(--fr); font-weight: 600; font-size: 19px; color: var(--cream);
  text-shadow: 0 2px 14px rgba(11, 10, 36, .9); white-space: nowrap; font-variation-settings: "SOFT" 100, "opsz" 36; }
.g-name small { display: block; font-family: var(--pp); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.pp { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; box-shadow: 0 0 0 3px #fff7e6, 0 8px 18px -6px rgba(5, 3, 25, .8);
  transform: scale(0); transition: transform .7s cubic-bezier(.3, 1.5, .5, 1), box-shadow .8s; }
.pp.lit { box-shadow: 0 0 0 3px #ffdb8f, 0 0 0 7px rgba(255, 219, 143, .25), 0 0 26px 4px rgba(255, 190, 110, .55); }
.scene.on .pp { transform: scale(1); }
/* six friends on a hexagon around the fire (centre 170,100); the name sits under the ring */
.pp.p1 { left: 36px; top: 100px; } .pp.p2 { left: 103px; top: 32px; } .pp.p3 { left: 237px; top: 32px; }
.pp.p4 { left: 304px; top: 100px; } .pp.p5 { left: 237px; top: 168px; } .pp.p6 { left: 103px; top: 168px; }
.scene.on .pp.p1 { transition-delay: .2s; } .scene.on .pp.p2 { transition-delay: .35s; } .scene.on .pp.p3 { transition-delay: .5s; } .scene.on .pp.p4 { transition-delay: .65s; } .scene.on .pp.p5 { transition-delay: .8s; } .scene.on .pp.p6 { transition-delay: .95s; }
.pp.hug { animation: hug .9s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hug { 40% { transform: scale(1.18); box-shadow: 0 0 0 3px #ff8fae, 0 0 0 9px rgba(255, 143, 174, .3), 0 0 30px 6px rgba(255, 143, 174, .6); } }
.gift2 { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px; opacity: 0; will-change: transform; }
.gift2 svg { width: 26px; height: 26px; }
.reacts { position: absolute; inset: 0; pointer-events: none; }
.react { position: absolute; width: 18px; height: 18px; margin: -9px; animation: floatUp 2.2s ease-out forwards; }
.react svg { width: 100%; height: 100%; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 18% { opacity: 1; transform: translate(var(--dx), -14px) scale(1); } 100% { opacity: 0; transform: translate(calc(var(--dx) * 2), -62px) scale(.9); } }
.live2 { left: 14px; right: 14px; top: 252px; padding: 12px 12px 12px 14px; border-radius: 22px; opacity: 0; }
.scene.on .live2 { animation: fadeUp .8s cubic-bezier(.2, .9, .3, 1) 2.6s both; }
.lv-head { display: flex; align-items: center; gap: 8px; }
.lv-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; }
.scene.on .lv-head .dot { animation: pulse 1.6s ease-out infinite; }
.lv-head b { font-size: 11px; letter-spacing: .12em; color: #e5484d; }
.lv-t2 { font-size: 14px; font-weight: 600; }
.lv-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.host { position: relative; width: 64px; height: 64px; border-radius: 18px; flex: none; box-shadow: 0 0 0 2.5px #8fd18a; }
.host .ring { position: absolute; inset: -2px; border-radius: 20px; border: 2.5px solid #8fd18a; opacity: 0; }
.scene.on .host .ring { animation: speak 1.6s ease-out infinite; } .scene.on .host .ring.r2 { animation-delay: .8s; }
@keyframes speak { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.32); } }
.host .bars { position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%; background: #1f9e78; display: flex; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 0 0 2px #fffaf0; }
.host .bars i { width: 2.5px; height: 9px; border-radius: 2px; background: #fff; transform-origin: 50% 50%; }
.scene.on .host .bars i { animation: bar .5s ease-in-out infinite alternate; } .host .bars i:nth-child(2) { animation-delay: .17s; } .host .bars i:nth-child(3) { animation-delay: .33s; }
@keyframes bar { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.lv-faces { display: flex; flex: 1; }
.lv-faces i { width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid #fffaf0; margin-left: -10px; }
.lv-faces i:first-child { margin-left: 0; }
.lv-faces .more { background-color: #ece3cf; display: grid; place-items: center; font-style: normal; font-weight: 700; color: var(--ink2); }
.live2 .join { font-size: 14px; font-weight: 600; background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 99px; }

/* ---------- tools: a Daily Spread ---------- */
.spread { position: absolute; left: 0; right: 0; top: 62px; height: 332px; border-radius: 26px; padding: 13px 12px 12px; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, #3d2c94 0%, #1c1654 55%, #110d36 100%);
  box-shadow: inset 0 0 0 1px rgba(243, 199, 112, .5), inset 0 0 0 5px rgba(17, 13, 54, .9), inset 0 0 0 6px rgba(243, 199, 112, .22), 0 26px 60px -18px rgba(5, 3, 25, .9), 0 0 70px -10px rgba(243, 199, 112, .25); }
.spread::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1px 1px at 12% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 82% 14%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 66% 40%, #ffe7ad 50%, transparent 51%), radial-gradient(1px 1px at 30% 60%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 90% 70%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 8% 82%, #ffe7ad 50%, transparent 51%); }
.sp-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-app { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold2); white-space: nowrap; }
.sp-app i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.sp-q { font-family: var(--fr); font-style: italic; font-size: 13px; font-weight: 500; color: var(--ink); background: var(--cream); padding: 6px 12px; border-radius: 99px; white-space: nowrap; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); }
.sp-table { position: relative; display: flex; justify-content: center; gap: 12px; margin-top: 16px; height: 168px; }
.sp-slot { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sp-slot span { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 219, 143, .85); opacity: 0; transition: opacity .6s; }
.tc { position: relative; width: 84px; height: 142px; border-radius: 9px; transition: transform .7s cubic-bezier(.3, .9, .3, 1); }
.tc::before { content: ""; position: absolute; inset: 0; border-radius: 9px; border: 1.5px dashed rgba(243, 199, 112, .35); }
.tc .in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.45, 0, .2, 1); }
.tc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 9px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .8); }
.tc .fr { transform: rotateY(180deg); }
.tc.flip .in { transform: rotateY(180deg); }
.tc::after { content: ""; position: absolute; left: -30px; right: -30px; top: -30px; bottom: -30px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 219, 143, .6), transparent); }
.tc.flip::after { animation: tcGlow 1.4s ease-out both; }
@keyframes tcGlow { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
.scene.dealt .sp-slot span { opacity: 1; }
.sp-read { position: relative; margin-top: 12px; padding: 11px 14px; border-radius: 16px; background: var(--cream); color: var(--ink); font-size: 14px; line-height: 1.4; font-weight: 500;
  opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .7s cubic-bezier(.2, .9, .3, 1); }
.sp-read b { font-weight: 700; background: linear-gradient(transparent 58%, rgba(243, 199, 112, .7) 58%) no-repeat 0 0 / 0% 100%; transition: background-size .7s ease; }
.scene.read .sp-read { opacity: 1; transform: none; }
.scene.read .sp-read b { background-size: 100% 100%; }
.scene.read .sp-read b:nth-of-type(1) { transition-delay: .6s; } .scene.read .sp-read b:nth-of-type(2) { transition-delay: 1s; } .scene.read .sp-read b:nth-of-type(3) { transition-delay: 1.4s; }
.app-tab.t2 { background: linear-gradient(180deg, #e3eefb, #d3e3f6); }

/* the tree bears fruit once it is grown */
.garden::before { background: radial-gradient(closest-side, rgba(255, 220, 140, .3), rgba(150, 230, 170, .14) 55%, transparent); }

/* one subtitle line under every stop's title */
header.title h2 { margin: 0; font-size: var(--tsize, 38px); font-weight: 600; line-height: 1.02; }
.tsub { margin: 8px 0 0; font-family: var(--pp); font-size: var(--ssize, 15px); font-weight: 400; line-height: 1.38; letter-spacing: 0; color: #d9d2f8; text-shadow: 0 1px 12px rgba(11, 10, 36, .8); font-variation-settings: normal; }
.t-fin .tsub.fin { margin: -8px 0 20px; font-size: var(--ssize, 15px); }

.t-fin h2 { font-size: var(--fsize, 46px) !important; line-height: 1.04 !important; margin: 0 0 12px !important; }
.t-fin .tsub.fin { margin: 0 0 18px; }

/* the Knowledge Tree, baked from the app's own 3D rig (tools/tree-bake): one frame box for every rung, pot included */
.garden .tree { position: absolute; left: 50%; top: 9px; width: 220px; height: 299px; transform: translateX(-50%); }
.garden .tree .tr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform-origin: 50% 92%; transition: opacity .55s ease, transform .9s cubic-bezier(.3, 1.4, .5, 1); will-change: opacity, transform; }
.garden .hud { top: 300px; }
.pops { position: absolute; inset: 0; pointer-events: none; }
.pop { position: absolute; width: 0; height: 0; }
.pop::before { content: ""; position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 236, 170, .95), rgba(255, 196, 90, .45) 45%, transparent); opacity: 0; }
.pop::after { content: ""; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; background: #fff3c4; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0; }
.pop.go::before { animation: popGlow 1.1s ease-out both; }
.pop.go::after { animation: popStar 1s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes popGlow { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes popStar { 0% { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0); } 35% { opacity: 1; transform: translate(10px, -14px) scale(1) rotate(60deg); } 100% { opacity: 0; transform: translate(16px, -26px) scale(.6) rotate(120deg); } }

/* a ticked mission sends a spark up into the crown, and a fruit sets there */
.zap { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: -10px; border-radius: 50%; opacity: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(circle, #fffbe6 0 30%, #ffd36b 45%, rgba(255, 190, 80, 0) 72%); box-shadow: 0 0 14px 4px rgba(255, 210, 110, .7); }
.miss li.done::before { animation: tickPop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tickPop { 50% { transform: scale(1.3); } }

/* ---------- the site's global header (dark), sticky above the stage ---------- */
:root { --hdr: 64px; }
@media (max-width: 759px) { :root { --hdr: 58px; } }
#site-header { position: fixed; left: 0; right: 0; top: 0; height: var(--hdr); z-index: 30; display: flex; align-items: center; gap: 28px; padding: 0 28px;
  background: rgba(14, 10, 36, .82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 247, 230, .1); font-family: var(--pp); }
#site-header a { color: #ece8ff; text-decoration: none; }
.sh-logo img { display: block; height: 30px; width: auto; filter: brightness(0) invert(1); }
.sh-nav { display: flex; gap: 26px; margin-left: 10px; }
.sh-nav a, .sh-lang, .sh-login { font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sh-nav a i, .sh-lang i { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.sh-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.sh-biz { background: #252594; color: #fff !important; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); white-space: nowrap; }
.sh-lang svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.sh-burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 247, 230, .2); background: rgba(255, 255, 255, .06); padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.sh-burger span { width: 16px; height: 1.8px; border-radius: 2px; background: #ece8ff; }
@media (max-width: 1099px) { .sh-nav { display: none; } }
@media (max-width: 759px) {
  #site-header { padding: 0 14px; gap: 10px; }
  .sh-logo img { height: 26px; }
  .sh-lang, .sh-login { display: none !important; }
  .sh-right { gap: 10px; }
  .sh-biz { font-size: 13px; padding: 8px 13px; }
  .sh-burger { display: flex; }
}
#dots { top: calc(50% + var(--hdr) / 2); }

/* ---------- tools: Fee X-ray (Finance) ---------- */
.app-tab.t4 { top: 0; transform: scale(.82); background: linear-gradient(180deg, #e7e2f7, #dcd3f0); }
.apps .app-tab.t3 { top: 22px; transform: scale(.86); background: linear-gradient(180deg, #e3eefb, #d3e3f6); }
.apps .app-tab.t2 { top: 44px; transform: scale(.91); background: linear-gradient(180deg, #fbefe4, #f4e0cc); }
.apps .app-tab.t1 { top: 66px; transform: scale(.96); background: linear-gradient(180deg, #2b2370, #1c1654); color: #ffdb8f; }
.fx { left: 0; right: 0; top: 90px; padding: 14px 15px 15px; }
.fx-top { display: flex; justify-content: space-between; align-items: center; }
.fx-in { font-size: 12px; font-weight: 600; color: var(--ink2); background: #f1e9d6; padding: 4px 10px; border-radius: 99px; }
.fx-legend { display: flex; gap: 14px; margin: 12px 0 4px; }
.lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink2); }
.lg i { width: 14px; height: 3px; border-radius: 2px; }
.lg b { color: var(--ink); font-weight: 700; }
.lg.idx i { background: #1f9e78; } .lg.fund i { background: #e2643a; }
.fx-chart { display: block; width: 100%; height: 132px; overflow: visible; }
.fx-chart .ax path { stroke: #e2d6bc; stroke-width: 1; }
.fx-chart .ax text { font: 500 9px Poppins, sans-serif; fill: #9a93b8; }
.fx-chart .area { fill: url(#fxArea); }
.fx-chart .gap { fill: url(#fxGap); }
.fx-chart .l-idx, .fx-chart .l-fund { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fx-chart .l-idx { stroke: #1f9e78; } .fx-chart .l-fund { stroke: #e2643a; }
.fx-chart .e-idx { fill: #1f9e78; stroke: #fff; stroke-width: 2; } .fx-chart .e-fund { fill: #e2643a; stroke: #fff; stroke-width: 2; }
.fx-ends { position: relative; height: 0; }
.fx-ends span { position: absolute; right: 0; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 2px 7px; border-radius: 7px; color: #fff; white-space: nowrap; transform: translateY(-50%); }
.fx-ends .v-idx { background: #1f9e78; } .fx-ends .v-fund { background: #e2643a; }
.fx-answer { margin-top: 10px; padding: 11px 13px; border-radius: 16px; background: #fff3e8; box-shadow: inset 0 0 0 1.5px rgba(226, 100, 58, .35); opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .7s cubic-bezier(.2, .9, .3, 1); }
.scene.answer .fx-answer { opacity: 1; transform: none; }
.fx-big { font-family: var(--fr); font-size: 34px; font-weight: 700; line-height: 1; color: #c2461f; font-variant-numeric: tabular-nums lining-nums; font-variation-settings: "SOFT" 50, "opsz" 72; }
.fx-what { font-size: 13px; line-height: 1.35; font-weight: 500; color: #4b2a1e; margin-top: 5px; }
.fx-what em { font-style: normal; font-weight: 700; }
.fx-chart .brk { fill: none; stroke: #c2461f; stroke-width: 2; stroke-linecap: round; opacity: 0; transition: opacity .5s; }
.scene.answer .fx-chart .brk { opacity: 0; }
.fx-chart { height: 146px; }

/* ---------- "there is more below" ---------- */
#dots i { background: rgba(255, 247, 230, .42); box-shadow: 0 0 0 1px rgba(11, 10, 36, .35); }
#dots i.done { background: rgba(243, 199, 112, .6); }
#swipecue { position: absolute; left: 0; top: 0; z-index: 12; pointer-events: auto; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 99px; border: 1px solid rgba(243, 199, 112, .55); background: rgba(14, 10, 36, .78); color: #ffe7ad;
  font: 600 13px/1 Poppins, sans-serif; letter-spacing: .04em; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .7), 0 0 22px -6px rgba(243, 199, 112, .55);
  opacity: 0; transform: translate(var(--x), calc(var(--y) + 10px)); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .9, .3, 1); }
#swipecue.on { opacity: 1; transform: translate(var(--x), var(--y)); }
#swipecue .chev { position: relative; width: 16px; height: 18px; }
#swipecue .chev i { position: absolute; left: 3px; width: 9px; height: 9px; border-left: 2.2px solid currentColor; border-top: 2.2px solid currentColor; transform: rotate(45deg); }
#swipecue .chev i:nth-child(1) { top: 3px; } #swipecue .chev i:nth-child(2) { top: 9px; opacity: .55; }
#swipecue.on .chev { animation: chevUp 1.5s cubic-bezier(.45, 0, .2, 1) infinite; }
#swipecue.on { animation: cuePulse 2.4s ease-in-out .4s infinite; }
@keyframes chevUp { 0% { transform: translateY(5px); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(-4px); opacity: 1; } 100% { transform: translateY(-6px); opacity: 0; } }
@keyframes cuePulse { 0%, 100% { box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .7), 0 0 0 0 rgba(243, 199, 112, .0); } 50% { box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .7), 0 0 0 7px rgba(243, 199, 112, .16); } }
@media (min-width: 760px) { #swipecue { font-size: 12px; padding: 6px 12px 6px 8px; background: rgba(14, 10, 36, .55); } }
@media (prefers-reduced-motion: reduce) { #swipecue.on, #swipecue.on .chev { animation: none; } #swipecue { transition: opacity .3s; } }

/* embed mode: the site's real header is above the iframe */
.embed #site-header { display: none; }
.embed { --hdr: 0px !important; }

/* ---------- type scale v2 (owner, iPhone: bigger, and never grey) ---------- */
.tsub { color: #f3ecff !important; font-weight: 500 !important; }
.t-hero .sub { color: #f3ecff; font-size: 17px; }
#bubble { font-size: 17px; line-height: 1.3; padding: 11px 16px 12px; }
.chip { font-size: 13px; }
.opts li, .quiz .opts li { font-size: 15.5px; }
.seg, .times, .fx-in, .inputs span { font-size: 13px; }
.cv-a { font-size: 13px; }
.lv-t, .lv-t2 { font-size: 15.5px; }
.lv-t small { font-size: 13px; }
.join, .live2 .join { font-size: 14.5px; }
.blk { font-size: 15.5px; } .blk small { font-size: 13px; }
.learners { font-size: 14px; }
.bk-who b { font-size: 17px; } .bk-who small { font-size: 13px; }
.bk-svc span { font-size: 14px; } .days span { font-size: 13px; } .days b { font-size: 17px; } .slots span { font-size: 15px; } .bk-btn { font-size: 16px; }
.hud-t { font-size: 14px; } .miss li { font-size: 15px; }
.kp-eyebrow { font-size: 12px; } .kp-pill { font-size: 13px; } .kp-totals span { font-size: 13px; } .kp-totals b { font-size: 21px; }
.kp-chips span { font-size: 13.5px; } .kp-chips em { font-size: 13px; } .kp-shelf figcaption { font-size: 13px; } .kp-lbl { font-size: 12.5px; }
.band .bn { font-size: 17px; }
.lg { font-size: 13.5px; } .fx-what { font-size: 15px; } .fx-ends span { font-size: 13px; }
.g-name { font-size: 21px; } .g-name small { font-size: 12px; }
.app-tab { font-size: 13px; }
.xp { font-size: 15px; }
#swipecue { font-size: 14px; }
@media (max-width: 759px) { .tag { font-size: 15px; } }

/* ---------- short phones (an iPhone in Safari under the site header): same type, tighter cards ---------- */
.short .q-art { aspect-ratio: 1200 / 430; }
.short .q-art img { object-fit: cover; object-position: 50% 62%; }
.short .quiz .steps { display: none; }
.short .quiz h3 { margin: 4px 0 9px; }
.short .scene[data-s="2"] .xp { bottom: auto; top: 8px; }
.short .cover { height: 116px; padding: 14px 16px; }
.short .cv-t { font-size: 22px; margin-top: 4px; }
.short .cv-art { width: 100px; height: 100px; top: 10px; }
.short .wave { height: 34px; margin: 6px 2px 4px; }
.short .pl-meta { margin: 10px 2px 2px; }
.short .apps .app-tab.t4, .short .apps .app-tab.t3 { display: none; }
.short .apps .app-tab.t2 { top: 0; } .short .apps .app-tab.t1 { top: 22px; }
.short .fx { top: 46px; }
.short .fx-chart { height: 116px; }
.short .fx-legend { margin: 9px 0 2px; }
.short .pp.p1 { top: 88px; } .short .pp.p4 { top: 88px; } .short .pp.p2, .short .pp.p3 { top: 30px; } .short .pp.p5, .short .pp.p6 { top: 146px; }
.short .fire { top: 56px; }
.short .g-name { top: 176px; } .short .g-name small { display: none; }
.short .guild2 { height: 206px; }
.short .live2 { top: 214px; }
.short .editor .ed-title { margin: 8px 0 8px; }
.short .blocks { gap: 6px; } .short .blk { padding: 7px 11px; } .short .blk .ic { width: 26px; height: 26px; }
.short .pub { margin-top: 10px; height: 44px; } .short .learners { margin-top: 8px; }
.short .garden .tree { width: 184px; height: 250px; top: 0; }
.short .garden .hud { top: 254px; }
.short .garden::before { width: 260px; height: 260px; margin-left: -130px; }
.short .kp { height: 340px; }

.short .fx-chart { height: 100px; }
.short .fx-answer { margin-top: 8px; padding: 9px 12px; }
.short .fx-big { font-size: 30px; }
/* tree and its missions side by side */
.short .garden .tree { left: 0; transform: none; width: 172px; height: 234px; top: 8px; }
.short .garden::before { left: 86px; top: 0; margin-left: -120px; width: 240px; height: 240px; }
.short .garden .hud { left: 170px; right: 0; top: 30px; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 14px 16px; }
.short .garden .hud .lvl { width: 56px; height: 56px; } .short .garden .hud .lvl svg { width: 56px; height: 56px; }
.short .kp { height: 322px; }

.short .scene[data-s="2"] .xp { top: -42px; bottom: auto; left: 12px; right: auto; }
.chip, .chip span { white-space: nowrap; }
.fx-legend { flex-wrap: wrap; row-gap: 4px; }

/* Fee X-ray: the two balances live in the legend rows (no tags on the chart) */
.fx-legend { display: grid; gap: 4px; margin: 10px 0 2px; }
.fx-legend .lg { display: flex; }
.fx-legend .lg > span { margin-left: auto; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; color: #fff; padding: 2px 8px; border-radius: 7px; }
.fx-legend .lg > span b { color: #fff; }
.fx-legend .v-idx { background: #1f9e78; } .fx-legend .v-fund { background: #e2643a; }
.short .q-art { aspect-ratio: 1200 / 424; }
.short .q-art img { object-position: 50% 100%; }
.pp, .host, .lv-faces i, .faces i, .av.ph, .kp-av.ph { background-color: #4a3f86; }
