/* =====================================================================
   ZenoGreen — Mysterious landing
   ===================================================================== */
:root {
  --bg: #04110b;
  --bg2: #082016;
  --leaf: #4ade80;
  --mint: #86efac;
  --gold: #facc15;
  --ink: #e9fbe9;
  --muted: rgba(233, 251, 233, .55);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(ellipse 80% 60% at 50% 38%, #0d3322 0%, var(--bg2) 45%, var(--bg) 100%);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

/* ---------- ambient layers ---------- */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.aurora { position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; }
.a1 { width: 60vw; height: 40vh; left: -10vw; top: -8vh; background: radial-gradient(circle, rgba(74,222,128,.55), transparent 65%); animation: drift1 18s ease-in-out infinite; }
.a2 { width: 50vw; height: 45vh; right: -12vw; top: 10vh; background: radial-gradient(circle, rgba(45,212,191,.45), transparent 65%); animation: drift2 22s ease-in-out infinite; }
.a3 { width: 55vw; height: 35vh; left: 22vw; bottom: -12vh; background: radial-gradient(circle, rgba(250,204,21,.22), transparent 65%); animation: drift3 26s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate(12vw, 8vh) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(-10vw, 6vh) scale(.9); } }
@keyframes drift3 { 50% { transform: translate(-8vw, -6vh) scale(1.2); } }
.rays { position: fixed; z-index: 0; pointer-events: none; left: 50%; top: -20vh; width: 140vmax; height: 140vmax; margin-left: -70vmax;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(134,239,172,.05) 0deg 4deg, transparent 4deg 14deg);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 45%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 45%);
  animation: spin 120s linear infinite; opacity: .8; }
.fog { position: fixed; z-index: 0; pointer-events: none; left: -20%; right: -20%; bottom: 0; height: 40vh;
  background: radial-gradient(ellipse 50% 60% at 30% 100%, rgba(134,239,172,.12), transparent 70%), radial-gradient(ellipse 50% 60% at 75% 100%, rgba(45,212,191,.1), transparent 70%);
  animation: fog 20s ease-in-out infinite alternate; }
@keyframes fog { to { transform: translateX(8%); } }
.vignette { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.6) 100%); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
.top { position: relative; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 28px 16px 0; opacity: 0; animation: fadeDown 1.4s .3s ease forwards; }
.logo-orb { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 20px rgba(134,239,172,.55), 0 0 44px rgba(74,222,128,.25); animation: orbGlow 3.5s ease-in-out infinite; }
.logo-orb img { width: 100%; height: 100%; border-radius: 50%; filter: brightness(1.45) saturate(1.25); }
@keyframes orbGlow { 50% { box-shadow: 0 0 30px rgba(134,239,172,.85), 0 0 60px rgba(74,222,128,.4); } }
.brand { font-weight: 800; font-size: 1.35rem; letter-spacing: .01em; }
.brand em { font-style: normal; color: var(--mint); text-shadow: 0 0 18px rgba(134,239,172,.6); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ---------- stage ---------- */
.stage { position: relative; z-index: 2; flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 16px 0; }
.altar { position: relative; width: min(420px, 86vw); aspect-ratio: 1; display: grid; place-items: center; transform-style: preserve-3d; transition: transform .25s ease-out;
  opacity: 0; animation: rise 1.8s .6s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes rise { from { opacity: 0; translate: 0 40px; scale: .85; filter: blur(8px); } to { opacity: 1; translate: 0 0; scale: 1; filter: none; } }

.runes { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 60s linear infinite; }
.runes text { font-size: 13px; letter-spacing: 6px; fill: rgba(250,204,21,.55); font-weight: 700; }
.ring { position: absolute; border-radius: 50%; pointer-events: none; }
.ring-conic { inset: 9%; background: conic-gradient(from 0deg, transparent 0deg, rgba(250,204,21,.7) 40deg, transparent 90deg, rgba(134,239,172,.6) 200deg, transparent 260deg);
  -webkit-mask: radial-gradient(circle, transparent 68%, #000 69%, #000 70%, transparent 71%); mask: radial-gradient(circle, transparent 68%, #000 69%, #000 70%, transparent 71%);
  animation: spin 9s linear infinite; filter: drop-shadow(0 0 6px rgba(250,204,21,.6)); }
.ring-dash { inset: 17%; border: 1.5px dashed rgba(134,239,172,.35); animation: spin 40s linear infinite reverse; }
.ring-pulse { inset: 24%; border: 2px solid rgba(134,239,172,.5); animation: pulseRing 4s ease-out infinite; }
.ring-pulse.p2 { animation-delay: 2s; }
@keyframes pulseRing { 0% { transform: scale(.75); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }
.core-glow { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(134,239,172,.45), rgba(74,222,128,.12) 45%, transparent 70%); filter: blur(10px); animation: core 3.2s ease-in-out infinite; }
@keyframes core { 50% { transform: scale(1.12); opacity: .75; } }

.orbit { position: absolute; inset: 0; animation: spin linear infinite; pointer-events: none; }
.orbit i { position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: radial-gradient(circle, #fff, var(--gold) 45%, transparent 72%); box-shadow: 0 0 14px 4px rgba(250,204,21,.55); }
.o1 { inset: 6%; animation-duration: 11s; }
.o2 { inset: 14%; animation-duration: 7s; animation-direction: reverse; }
.o2 i { background: radial-gradient(circle, #fff, var(--mint) 45%, transparent 72%); box-shadow: 0 0 14px 4px rgba(134,239,172,.6); width: 8px; height: 8px; }
.o3 { inset: 2%; animation-duration: 16s; }
.o3 i { width: 6px; height: 6px; top: 50%; left: 0; }
.o4 { inset: 20%; animation-duration: 5s; }
.o4 i { width: 5px; height: 5px; background: #fff; box-shadow: 0 0 10px 3px rgba(255,255,255,.6); }

/* ---------- mascot ---------- */
.mam { position: relative; z-index: 3; width: 52%; aspect-ratio: 200/230; filter: drop-shadow(0 22px 30px rgba(0,0,0,.55)) drop-shadow(0 0 26px rgba(74,222,128,.35));
  animation: hover 5s ease-in-out infinite; transition: filter .3s; -webkit-tap-highlight-color: transparent; }
.mam:hover { filter: drop-shadow(0 22px 30px rgba(0,0,0,.55)) drop-shadow(0 0 40px rgba(134,239,172,.6)); }
.mam svg { width: 100%; height: 100%; overflow: visible; }
@keyframes hover { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }

.mam-jumper { transform-box: view-box; transform-origin: 100px 214px; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1,1); } 45% { transform: scale(1.035,.965); } 55% { transform: scale(.985,1.02); } }
.mam-sprout { transform-box: view-box; transform-origin: 100px 72px; animation: sprout 3.2s ease-in-out infinite; }
@keyframes sprout { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.leaf-l { transform-box: view-box; transform-origin: 102px 42px; animation: leafL 3.2s ease-in-out infinite; }
.leaf-r { transform-box: view-box; transform-origin: 104px 38px; animation: leafR 3.2s ease-in-out infinite; }
@keyframes leafL { 50% { transform: rotate(-9deg); } }
@keyframes leafR { 50% { transform: rotate(9deg); } }
.twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1.6); } }
.arm { transform-box: fill-box; transform-origin: 50% 10%; animation: armIdle 2.8s ease-in-out infinite; }
.arm-r { animation-delay: -1.4s; }
@keyframes armIdle { 50% { transform: rotate(-12deg); } }
.mam-eyes { transition: transform .15s ease-out; }
.eye { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.mam-mouth { transform-box: fill-box; transform-origin: center top; }

/* states */
.mam.jump { animation: jump .8s cubic-bezier(.3,1.6,.5,1); }
@keyframes jump { 0% { transform: scale(1,1); } 22% { transform: scale(1.18,.8); } 55% { transform: translateY(-50px) scale(.9,1.12) rotate(-4deg); } 80% { transform: scale(1.06,.94); } 100% { transform: none; } }
.mam.jump .leaf-l { animation: flapL .8s; } .mam.jump .leaf-r { animation: flapR .8s; }
@keyframes flapL { 50% { transform: rotate(-32deg); } } @keyframes flapR { 50% { transform: rotate(32deg); } }
.mam.happy .eye, .mam.sleep .eye { animation: none; transform: scaleY(.15); }
.mam.wink .eye:last-child { animation: none; transform: scaleY(.12); }
.mam.wave .arm-r { animation: waveHi .8s ease-in-out 2; transform-origin: 30% 20%; }
@keyframes waveHi { 50% { transform: rotate(-60deg) translateY(-6px); } }
.mam.talk .mam-mouth { animation: talk .2s infinite alternate; }
@keyframes talk { to { transform: scaleY(1.7); } }
.mam.sleep { animation: hover 8s ease-in-out infinite; }
.mam.sleep .mam-jumper { animation-duration: 6s; }

.zzz { position: absolute; z-index: 4; right: 22%; top: 18%; pointer-events: none; opacity: 0; transition: opacity .6s; }
.altar.sleeping .zzz { opacity: 1; }
.zzz span { position: absolute; font-weight: 800; color: var(--mint); text-shadow: 0 0 10px rgba(134,239,172,.8); animation: zfloat 3s ease-in infinite; }
.zzz span:nth-child(2) { animation-delay: 1s; font-size: 1.2rem; } .zzz span:nth-child(3) { animation-delay: 2s; font-size: 1.5rem; }
@keyframes zfloat { 0% { transform: translate(0,0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(24px,-50px); opacity: 0; } }

/* speech bubble */
.bubble { position: absolute; z-index: 5; top: -3%; left: 50%; transform: translate(-50%, 8px) scale(.9); opacity: 0; pointer-events: none;
  max-width: min(300px, 80vw); width: max-content; text-align: center; padding: 12px 18px; border-radius: 18px;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.2rem; line-height: 1.35; color: #fff;
  background: rgba(10,40,28,.72); border: 1px solid rgba(250,204,21,.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 24px rgba(74,222,128,.25); transition: opacity .35s, transform .35s cubic-bezier(.2,1.4,.4,1); }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg);
  background: rgba(10,40,28,.9); border-right: 1px solid rgba(250,204,21,.4); border-bottom: 1px solid rgba(250,204,21,.4); }
.bubble.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* burst particles */
.burst { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.burst i { position: absolute; left: 50%; top: 52%; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle, #fff, var(--gold) 50%, transparent 72%);
  box-shadow: 0 0 10px rgba(250,204,21,.8); animation: pop 1s ease-out forwards; }
.burst i.g { background: radial-gradient(circle, #fff, var(--mint) 50%, transparent 72%); box-shadow: 0 0 10px rgba(134,239,172,.9); }
.burst i.leaf { width: 12px; height: 7px; border-radius: 12px 0; background: linear-gradient(135deg, #bbf7d0, #22c55e); box-shadow: none; }
@keyframes pop { 0% { transform: translate(-50%,-50%) scale(.4); opacity: 1; } 100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r)); opacity: 0; } }

/* whisper text */
.whisper { margin-top: 10px; min-height: 2.6em; text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1.35rem, 3.4vw, 2rem);
  color: #f0fdf4; text-shadow: 0 0 24px rgba(134,239,172,.55); opacity: 0; animation: fadeIn 1.6s 1.8s forwards; max-width: 680px; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 4px; vertical-align: -.12em; background: var(--mint); box-shadow: 0 0 8px var(--mint); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hint { margin-top: 6px; font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(250,204,21,.6); opacity: 0; animation: fadeIn 1.4s 2.6s forwards, breatheText 3s 4s ease-in-out infinite; }
@keyframes breatheText { 50% { opacity: .35; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- explore ---------- */
.explore { position: relative; z-index: 2; width: 100%; padding: 34px 16px 18px; display: flex; flex-direction: column; align-items: center; gap: 18px; opacity: 0; animation: fadeUp 1.4s 2.2s ease forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.explore-label { display: flex; align-items: center; gap: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .5em; text-transform: uppercase; color: rgba(250,204,21,.85); padding-left: .5em; }
.explore-label span { width: 50px; height: 1px; background: linear-gradient(90deg, transparent, rgba(250,204,21,.8)); }
.explore-label span:last-child { transform: scaleX(-1); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.soc { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border-radius: 999px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(134,239,172,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-weight: 600; font-size: .92rem; transition: transform .3s, border-color .3s, box-shadow .3s, background .3s; }
.soc svg { width: 22px; height: 22px; fill: currentColor; color: var(--mint); transition: transform .4s; }
.soc::before { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.25), transparent); transform: skewX(-20deg); animation: shimmer 5s ease-in-out infinite; }
.soc:nth-child(2)::before { animation-delay: .6s; } .soc:nth-child(3)::before { animation-delay: 1.2s; } .soc:nth-child(4)::before { animation-delay: 1.8s; } .soc:nth-child(5)::before { animation-delay: 2.4s; }
@keyframes shimmer { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.soc:hover { transform: translateY(-4px); background: rgba(74,222,128,.12); border-color: rgba(250,204,21,.6); box-shadow: 0 10px 30px -10px rgba(74,222,128,.7), 0 0 24px rgba(250,204,21,.25); }
.soc:hover svg { transform: scale(1.15) rotate(-8deg); color: #fff; }
.soc.yt:hover svg { color: #ff4d4d; } .soc.fb:hover svg { color: #60a5fa; } .soc.ig:hover svg { color: #f472b6; } .soc.zl:hover svg { color: #38bdf8; }

.foot { position: relative; z-index: 2; padding: 14px 16px 22px; font-size: .74rem; letter-spacing: .08em; color: var(--muted); text-align: center; opacity: 0; animation: fadeIn 1.4s 2.8s forwards; }
.foot span { color: rgba(250,204,21,.7); }

@media (max-width: 600px) {
  .top { padding-top: 20px; }
  .altar { width: min(360px, 92vw); }
  .runes text { font-size: 12px; letter-spacing: 4px; }
  .soc { padding: 10px 14px 10px 10px; font-size: .84rem; }
  .soc svg { width: 20px; height: 20px; }
  .explore-label span { width: 30px; }
}

/* ===== Mầm v2: glass jelly ===== */
.mam { filter: drop-shadow(0 18px 26px rgba(0,0,0,.5)) drop-shadow(0 0 30px rgba(190,255,120,.35)); }
.mam:hover { filter: drop-shadow(0 18px 26px rgba(0,0,0,.5)) drop-shadow(0 0 46px rgba(214,255,140,.6)); }
.mam-sprout { transform-origin: 100px 80px; }
.leaf-l { transform-origin: 102px 50px; }
.leaf-r { transform-origin: 104px 46px; }
.gem { transform-box: fill-box; transform-origin: center; animation: gem 2.6s ease-in-out infinite; }
@keyframes gem { 0%,100% { opacity: .85; transform: translateY(0) scale(1); } 50% { opacity: 1; transform: translateY(-2px) scale(1.08); } }
.inner-light { animation: innerLight 3.2s ease-in-out infinite; }
@keyframes innerLight { 50% { opacity: .6; } }
.swirl { stroke-dasharray: 60 140; animation: swirl 3.6s linear infinite; }
.s-front { animation-delay: -1.8s; }
@keyframes swirl { to { stroke-dashoffset: -200; } }
.float-leaf { transform-box: fill-box; transform-origin: center; animation: fleaf 5s ease-in-out infinite; }
.fl2 { animation-delay: -2.5s; }
@keyframes fleaf { 0%,100% { transform: translate(0,0) rotate(0); opacity: .8; } 50% { transform: translate(6px,-10px) rotate(25deg); opacity: .4; } }
.ground-ring { transform-box: fill-box; transform-origin: center; animation: groundRing 3s ease-in-out infinite; }
@keyframes groundRing { 50% { transform: scale(1.12); opacity: .4; } }
.mam.jump .gem { animation: gemFlash .8s; }
@keyframes gemFlash { 40% { transform: scale(1.5); filter: brightness(1.8); } }
/* ===== Mầm v3: proportions matched to reference ===== */
.mam-jumper { transform-origin: 100px 206px; }
.mam-sprout { transform-origin: 100px 79px; animation-duration: 4s; }
.leaf-l { transform-origin: 104px 58px; }
.leaf-r { transform-origin: 107px 57px; }
@keyframes sprout { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
/* ===== Mầm v4: original artwork as the mascot ===== */
.mam { width: 78%; aspect-ratio: 900 / 891; filter: drop-shadow(0 0 30px rgba(190,255,120,.28)); }
.mam:hover { filter: drop-shadow(0 0 48px rgba(214,255,140,.5)); }
.mam-img { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none;
  transform-origin: 50% 88%; translate: var(--lx, 0px) 0; transition: translate .4s ease-out;
  animation: breatheImg 3.4s ease-in-out infinite, glowImg 4s ease-in-out infinite; }
@keyframes breatheImg { 0%,100% { transform: scale(1,1); } 45% { transform: scale(1.025,.975); } 60% { transform: scale(.99,1.015); } }
@keyframes glowImg { 50% { filter: brightness(1.12) saturate(1.1); } }
.gem-flare { position: absolute; left: 50%; top: 60%; width: 16%; aspect-ratio: 1; margin-left: -8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,220,.9), rgba(220,255,120,.45) 35%, transparent 70%); mix-blend-mode: screen; animation: flare 2.6s ease-in-out infinite; }
@keyframes flare { 0%,100% { opacity: .35; transform: scale(.8); } 50% { opacity: .95; transform: scale(1.15); } }
.mam.happy .mam-img { filter: brightness(1.25) saturate(1.2); }
.mam.jump .gem-flare { animation: flareBig .8s ease-out; }
@keyframes flareBig { 30% { opacity: 1; transform: scale(2.2); } }
.mam.sleep .mam-img { filter: brightness(.8) saturate(.85); }
.mam.wave .mam-img, .mam.wink .mam-img { animation: wiggle .7s ease-in-out, glowImg 4s ease-in-out infinite; }
@keyframes wiggle { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.bubble { top: -1%; }
.mam { width: 94%; }

/* giữ đúng màu ảnh gốc khi ngủ */
.mam.sleep .mam-img { filter: none; }

/* ===== Mầm v5: painted SVG ===== */
.mam { width: 68%; filter: drop-shadow(0 0 22px rgba(190,255,120,.3)); }
.mam:hover { filter: drop-shadow(0 0 40px rgba(214,255,140,.55)); }
.mam-jumper { transform-origin: 100px 206px; }
.mam-sprout { transform-origin: 100px 80px; }
.leaf-l { transform-origin: 104px 58px; }
.leaf-r { transform-origin: 107px 57px; }
.gem-bloom { transform-box: fill-box; transform-origin: center; animation: bloom 2.6s ease-in-out infinite; }
@keyframes bloom { 50% { opacity: .9; transform: scale(1.25); } }
.swirl-g { transform-box: view-box; transform-origin: 100px 142px; }
.sw-l { animation: swirlSway 6s ease-in-out infinite; }
.sw-r { animation: swirlSway 6s ease-in-out infinite reverse; }
@keyframes swirlSway { 50% { transform: rotate(4deg) scale(1.02); } }
.swirl { stroke-dasharray: 40 120; animation: swirl 3.2s linear infinite; }
.mam.happy .eye { transform: scaleY(.18); }
.swirl { stroke-dasharray: 70 60; }

/* =====================================================================
   Story & chat
   ===================================================================== */
.whisper { min-height: 3.2em; max-width: min(640px, 92vw); line-height: 1.35; }
.story-nav { display: flex; align-items: center; gap: 14px; margin-top: 4px; opacity: 0; transform: translateY(6px); transition: opacity .6s, transform .6s; pointer-events: none; }
.story-nav.show { opacity: 1; transform: none; pointer-events: auto; }
.story-nav.done .story-dots { opacity: .4; }
.story-dots { display: flex; gap: 6px; transition: opacity .4s; }
.story-dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(233,251,233,.25); transition: width .35s, background .35s; }
.story-dots i.on { width: 18px; background: linear-gradient(90deg, var(--mint), var(--gold)); box-shadow: 0 0 8px rgba(250,204,21,.5); }
.story-next { font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: rgba(250,204,21,.9); padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(250,204,21,.35); background: rgba(250,204,21,.06); transition: background .2s; }
.story-next:hover { background: rgba(250,204,21,.16); }
.hint { margin-top: 10px; }

/* chat button */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 20; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #6fe08f, #1f8a4c 70%); color: #fff;
  box-shadow: 0 10px 30px -6px rgba(0,0,0,.6), 0 0 0 1px rgba(250,204,21,.5), 0 0 26px rgba(134,239,172,.55);
  animation: fabIn .8s 3s both cubic-bezier(.2,1.4,.4,1), fabPulse 3s 4s ease-in-out infinite; transition: transform .25s; }
.chat-fab svg { width: 28px; height: 28px; fill: currentColor; transition: transform .3s; }
.chat-fab:hover { transform: scale(1.08); }
.chat-fab.active svg { transform: scale(.9) rotate(-10deg); }
.chat-fab::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(134,239,172,.6); animation: pulseRing 2.4s ease-out infinite; }
.fab-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #f43f5e; color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #04110b; }
.fab-badge[hidden] { display: none; }
@keyframes fabIn { from { opacity: 0; transform: scale(.3) translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fabPulse { 50% { box-shadow: 0 10px 30px -6px rgba(0,0,0,.6), 0 0 0 1px rgba(250,204,21,.7), 0 0 40px rgba(134,239,172,.85); } }

/* chat panel */
.chat { position: fixed; right: 20px; bottom: 92px; z-index: 20; width: min(360px, calc(100vw - 24px)); height: min(520px, calc(100vh - 130px)); display: flex; flex-direction: column;
  border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, rgba(18,52,36,.92), rgba(6,22,14,.96)); border: 1px solid rgba(134,239,172,.25);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.85), 0 0 40px -10px rgba(74,222,128,.4);
  opacity: 0; transform: translateY(16px) scale(.96); transform-origin: bottom right; transition: opacity .25s, transform .3s cubic-bezier(.2,1.2,.4,1); }
.chat.open { opacity: 1; transform: none; }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid rgba(255,255,255,.07); position: relative; }
.chat-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--mint), var(--gold), transparent); opacity: .6; }
.chat-ava, .msg-ava { display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4f9e6b, #143a26); border: 1.5px solid rgba(250,204,21,.6); box-shadow: 0 0 14px rgba(134,239,172,.4); }
.chat-ava { width: 40px; height: 40px; font-size: 1.2rem; flex: none; }
.chat-title { flex: 1; min-width: 0; }
.chat-title b { display: block; font-size: .98rem; }
.chat-title b i { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--gold); margin-left: 4px; }
.chat-title small { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); }
.chat-title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 8px var(--leaf); }
.chat-x { width: 32px; height: 32px; border-radius: 10px; color: var(--muted); transition: background .2s, color .2s; }
.chat-x:hover { background: rgba(255,255,255,.08); color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: rgba(134,239,172,.25) transparent; }
.msg-row { display: flex; gap: 8px; align-items: flex-end; animation: msgIn .3s ease; }
.msg-row.me { justify-content: flex-end; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg-ava { width: 26px; height: 26px; font-size: .8rem; flex: none; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 18px; font-size: .9rem; line-height: 1.5; }
.msg.bot { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07); border-bottom-left-radius: 6px; }
.msg.me { background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 6px 16px -8px rgba(34,197,94,.8); }
.msg a { color: var(--gold); }
.msg.typing { display: flex; gap: 4px; padding: 13px 14px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: tdot 1.1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%,60%,100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chat-chips button { font-size: .76rem; padding: 6px 11px; border-radius: 999px; color: var(--mint); border: 1px solid rgba(134,239,172,.3); transition: background .2s; }
.chat-chips button:hover { background: rgba(134,239,172,.1); }
.chat-input { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid rgba(255,255,255,.07); }
.chat-input input { flex: 1; min-width: 0; font: inherit; font-size: .9rem; color: var(--ink); background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 10px 16px; outline: none; transition: border-color .2s; }
.chat-input input:focus { border-color: rgba(134,239,172,.55); }
.chat-input button { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #4ade80, #16a34a); color: #fff; }
.chat-input button svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 600px) {
  .chat-fab { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .chat { right: 12px; bottom: 80px; }
}
/* =====================================================================
   Aurora halo + 3D leaf orbit (replaces rotating text)
   ===================================================================== */
.halo { position: absolute; inset: 4%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(134,239,172,0) 0deg, rgba(134,239,172,.55) 60deg, rgba(250,204,21,.6) 120deg, rgba(134,239,172,0) 180deg, rgba(45,212,191,.45) 250deg, rgba(134,239,172,0) 320deg);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 66%, #000 69%, transparent 74%); mask: radial-gradient(circle, transparent 60%, #000 66%, #000 69%, transparent 74%);
  filter: blur(6px); animation: spin 14s linear infinite; opacity: .9; }
.halo-2 { inset: 0%; filter: blur(14px); opacity: .5; animation-duration: 22s; animation-direction: reverse; }

.leaf-orbit { position: absolute; inset: 0; pointer-events: none; }
.orb-leaf { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; will-change: transform, opacity; }
.orb-leaf svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 6px rgba(190,255,120,.75)); }
.orb-leaf.front { z-index: 4; }
.orb-leaf.back { z-index: 2; }
.orb-seed { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: radial-gradient(circle, #fff, #fde68a 50%, transparent 72%); box-shadow: 0 0 10px 3px rgba(250,204,21,.55); will-change: transform, opacity; }
.orb-seed.front { z-index: 4; } .orb-seed.back { z-index: 2; }
.leaf-orbit { z-index: auto; }

/* =====================================================================
   v-fx: extra magic
   ===================================================================== */
/* cursor / click effects canvas */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 15; pointer-events: none; }

/* god rays from above, behind the mascot */
.godrays { position: fixed; z-index: 0; pointer-events: none; left: 50%; top: -10vh; width: 120vmin; height: 90vh; margin-left: -60vmin; mix-blend-mode: screen; }
.godrays i { position: absolute; top: 0; left: 50%; width: 9vmin; height: 100%; margin-left: -4.5vmin; transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(214,255,160,.22), rgba(134,239,172,.08) 55%, transparent 85%); filter: blur(10px); animation: ray 9s ease-in-out infinite; }
.godrays i:nth-child(1) { transform: rotate(-24deg); animation-delay: 0s; }
.godrays i:nth-child(2) { transform: rotate(-11deg); animation-delay: -2s; width: 6vmin; }
.godrays i:nth-child(3) { transform: rotate(0deg); animation-delay: -4s; width: 12vmin; }
.godrays i:nth-child(4) { transform: rotate(12deg); animation-delay: -6s; width: 5vmin; }
.godrays i:nth-child(5) { transform: rotate(25deg); animation-delay: -7.5s; }
@keyframes ray { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* parallax for aurora (driven by --px/--py from JS) */
.aurora { translate: calc(var(--px, 0) * 30px) calc(var(--py, 0) * 20px); transition: translate 1.2s ease-out; }
.a2 { translate: calc(var(--px, 0) * -40px) calc(var(--py, 0) * -24px); }

/* brand shimmer */
.brand { background: linear-gradient(100deg, #fff 30%, #f7ffd6 45%, #fff 60%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brandShine 5s ease-in-out infinite; }
.brand em { background: linear-gradient(100deg, #86efac 30%, #fef08a 46%, #86efac 62%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brandShine 5s ease-in-out infinite; }
@keyframes brandShine { 0%, 60% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* energy shockwave from the crystal */
.shock { position: absolute; left: 50%; top: 58%; width: 40%; aspect-ratio: 1; margin: -20% 0 0 -20%; border-radius: 50%; pointer-events: none; opacity: 0; z-index: 2;
  border: 2px solid rgba(240,255,150,.8); box-shadow: 0 0 30px rgba(220,255,120,.6), inset 0 0 30px rgba(220,255,120,.4); }
.shock.go { animation: shockwave 1.6s cubic-bezier(.2,.7,.3,1); }
@keyframes shockwave { 0% { opacity: .95; transform: scale(.2); } 100% { opacity: 0; transform: scale(2.6); } }
.altar.charged .core-glow { animation: core .5s ease-in-out 3; }

/* spores rising from the ground ring */
.spores { position: absolute; left: 20%; right: 20%; bottom: 14%; height: 70%; pointer-events: none; z-index: 2; }
.spores i { position: absolute; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: #f7ffc0; box-shadow: 0 0 8px 2px rgba(220,255,120,.7);
  animation: sporeUp linear infinite; opacity: 0; }
@keyframes sporeUp { 0% { transform: translate(0,0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx, 10px), -100%); opacity: 0; } }

/* magnetic social buttons glow follows cursor */
.soc { --mx: 50%; --my: 50%; }
.soc::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(120px circle at var(--mx) var(--my), rgba(250,204,21,.25), transparent 60%); }
.soc:hover::after { opacity: 1; }
.soc { transition: transform .2s ease-out, border-color .3s, box-shadow .3s, background .3s; }
/* ===== chat button = mini Mầm ===== */
.chat-fab { width: 74px; height: 74px; background: radial-gradient(circle at 50% 40%, rgba(120,220,150,.35), rgba(10,40,26,.85) 70%);
  border: 1.5px solid rgba(250,204,21,.55); overflow: visible; }
.chat-fab > svg { display: none; }
.fab-mam { position: absolute; inset: 4px 6px 8px; display: block; animation: fabBob 2.8s ease-in-out infinite; }
.fab-mam .mini-mam { width: 100%; height: 100%; overflow: visible; }
@keyframes fabBob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(3deg); } }
.chat-fab:hover .fab-mam { animation: fabHop .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes fabHop { 40% { transform: translateY(-10px) scale(1.06, .95); } }
.chat-fab.active .fab-mam { animation: none; transform: scale(.92); }
.fab-chat-ico { position: absolute; left: -4px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #4ade80, #15803d); border: 2px solid #04110b; box-shadow: 0 0 10px rgba(74,222,128,.6); }
.fab-chat-ico svg { width: 14px; height: 14px; fill: #fff; }
.fab-hello { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%) scale(.9); opacity: 0; pointer-events: none; white-space: nowrap;
  padding: 8px 14px; border-radius: 16px 16px 4px 16px; font-size: .84rem; font-weight: 600; color: #fff;
  background: rgba(10,40,28,.85); border: 1px solid rgba(250,204,21,.45); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: opacity .35s, transform .35s cubic-bezier(.2,1.4,.4,1); }
.fab-hello.show { opacity: 1; transform: translate(0, -50%) scale(1); }

/* avatars in chat use the mini mascot */
.chat-ava, .msg-ava { background: radial-gradient(circle at 50% 40%, rgba(120,220,150,.3), rgba(10,40,26,.9) 72%); overflow: hidden; padding: 2px; }
.chat-ava .mini-mam, .msg-ava .mini-mam { width: 100%; height: 100%; }
.chat-ava { width: 44px; height: 44px; }
.msg-ava { width: 30px; height: 30px; }
.chat { bottom: 106px; }
@media (max-width: 600px) {
  .chat-fab { width: 64px; height: 64px; }
  .chat { bottom: 92px; }
  .fab-hello { display: none; }
}
.fab-mam { inset: -4px 0 2px; filter: drop-shadow(0 0 6px rgba(190,255,120,.6)); }
.chat-fab { background: radial-gradient(circle at 50% 45%, rgba(150,240,170,.45), rgba(12,46,30,.9) 72%); }

/* ===== fast, smooth entrance ===== */
.top { animation: fadeDown .6s 0s ease-out forwards; }
.altar { animation: rise .9s 0s cubic-bezier(.2,.9,.3,1) forwards; }
.whisper { animation: fadeIn .6s .25s forwards; }
.hint { animation: fadeIn .6s .5s forwards, breatheText 3s 1.5s ease-in-out infinite; }
.explore { animation: fadeUp .7s .3s ease-out forwards; }
.foot { animation: fadeIn .6s .5s forwards; }
.chat-fab { animation: fabIn .6s .5s both cubic-bezier(.2,1.4,.4,1), fabPulse 3s 1.5s ease-in-out infinite; }
/* ===== performance: same look, far cheaper to paint ===== */
.aurora { filter: none; mix-blend-mode: normal; opacity: .5; }
.a1 { background: radial-gradient(closest-side, rgba(74,222,128,.42), rgba(74,222,128,.12) 55%, transparent); }
.a2 { background: radial-gradient(closest-side, rgba(45,212,191,.34), rgba(45,212,191,.1) 55%, transparent); }
.a3 { background: radial-gradient(closest-side, rgba(250,204,21,.18), rgba(250,204,21,.05) 55%, transparent); }
.godrays { mix-blend-mode: normal; }
.godrays i { filter: none; background: linear-gradient(90deg, transparent, rgba(214,255,160,.14) 50%, transparent), linear-gradient(180deg, rgba(214,255,160,.9), transparent 80%);
  background-blend-mode: normal; -webkit-mask: linear-gradient(180deg, #000, transparent 85%); mask: linear-gradient(180deg, #000, transparent 85%); opacity: .5;
  background: linear-gradient(90deg, transparent, rgba(214,255,160,.16) 50%, transparent); }
.halo { filter: none; -webkit-mask: radial-gradient(circle, transparent 58%, #000 65%, #000 70%, transparent 77%); mask: radial-gradient(circle, transparent 58%, #000 65%, #000 70%, transparent 77%); }
.halo-2 { filter: none; opacity: .35; -webkit-mask: radial-gradient(circle, transparent 52%, #000 64%, #000 71%, transparent 84%); mask: radial-gradient(circle, transparent 52%, #000 64%, #000 71%, transparent 84%); }
.core-glow { filter: none; background: radial-gradient(circle, rgba(134,239,172,.4), rgba(74,222,128,.12) 45%, transparent 70%); }
.aurora, .rays, .halo, .orbit, .godrays i { will-change: transform; }
/* no blur during the entrance (blurring the whole mascot each frame is slow) */
@keyframes rise { from { opacity: 0; translate: 0 24px; scale: .92; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* story: Mầm 'ngủ quên' trong lòng đất */
.mam.sleep-pose .eye { animation: none; transform: scaleY(.12); }
.mam.sleep-pose { filter: drop-shadow(0 0 12px rgba(190,255,120,.15)) brightness(.85); transition: filter .6s; }

/* ===== call to action after the story ===== */
.story-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(10px);
  transition: max-height .6s ease, opacity .6s ease, transform .6s cubic-bezier(.2,1.2,.4,1); }
.story-cta.show { max-height: 120px; opacity: 1; transform: none; overflow: visible; }
.story-cta button { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; transition: transform .25s, box-shadow .25s, background .25s; }
.story-cta button span { font-size: 1.05rem; }
.cta-main { color: #062214; background: linear-gradient(135deg, #bbf7d0, #4ade80 45%, #facc15); background-size: 200% 100%;
  box-shadow: 0 10px 30px -8px rgba(74,222,128,.7), 0 0 0 1px rgba(255,255,255,.3) inset; animation: ctaShine 3s ease-in-out infinite; }
.cta-main:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 40px -10px rgba(250,204,21,.7); }
@keyframes ctaShine { 50% { background-position: 100% 0; } }
.cta-ghost { color: #e9fbe9; background: rgba(255,255,255,.05); border: 1px solid rgba(134,239,172,.35); backdrop-filter: blur(10px); }
.cta-ghost:hover { transform: translateY(-3px); background: rgba(134,239,172,.12); border-color: rgba(250,204,21,.55); }
.story-cta.show + .hint { display: none; }

/* explore spotlight */
.explore.spotlight .explore-label { animation: labelPop 1.2s ease; }
@keyframes labelPop { 30% { transform: scale(1.12); text-shadow: 0 0 20px rgba(250,204,21,.9); } }
.soc.glow { animation: socGlow 1.4s ease; }
@keyframes socGlow { 0% { box-shadow: 0 0 0 0 rgba(250,204,21,.8); border-color: rgba(250,204,21,.9); transform: translateY(-6px) scale(1.06); }
  100% { box-shadow: 0 0 0 18px rgba(250,204,21,0); transform: none; } }
/* ===== header: one long glass bar (logo + menu + follow) ===== */
.ico-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.top { width: 100%; max-width: 1240px; padding: 18px 20px 0; display: block; }
.navbar { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 12px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(24,78,50,.55), rgba(6,28,18,.62));
  border: 1px solid rgba(134,239,172,.22);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.25), 0 14px 40px -14px rgba(0,0,0,.6), 0 0 34px rgba(74,222,128,.1); }
.navbar::before { content: ''; position: absolute; left: 22%; right: 22%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, #bbf7d0, #fef08a, #bbf7d0, transparent); opacity: .75; animation: menuLine 4.5s ease-in-out infinite; }
.navbar::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%) -150% 0 / 60% 100% no-repeat; animation: barSweep 7s ease-in-out infinite; }
@keyframes menuLine { 50% { left: 6%; right: 6%; opacity: 1; } }
@keyframes barSweep { 0%, 55% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
.brand-wrap { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding-right: 4px; }
.navbar .logo-orb { width: 40px; height: 40px; }
.navbar .brand { font-size: 1.22rem; }
.nav-sep { width: 1px; height: 26px; flex-shrink: 0; background: linear-gradient(180deg, transparent, rgba(134,239,172,.45), transparent); }
.menu { position: relative; flex: 1; display: flex; justify-content: center; gap: 2px; }
.mi { position: relative; display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 999px; white-space: nowrap;
  font-size: .92rem; font-weight: 600; color: rgba(233,251,233,.82); transition: color .25s, background .25s, box-shadow .25s; }
.mi-ico { position: relative; width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.22), rgba(134,239,172,.12) 45%, rgba(8,40,25,.5) 80%);
  border: 1px solid rgba(134,239,172,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 10px rgba(74,222,128,.12);
  transition: transform .4s cubic-bezier(.2,1.6,.4,1), box-shadow .3s, background .3s; }
.mi-ico svg, .nav-cta svg, .veil-ico svg { width: 19px; height: 19px; fill: none; stroke: url(#icoG); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible;
  filter: drop-shadow(0 0 4px rgba(134,239,172,.55)); }
.mi-ico .f, .veil-ico .f { fill: url(#icoG); fill-opacity: .28; }
.mi-ico .dot, .veil-ico .dot { fill: url(#icoG); stroke: none; }
.mi::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #86efac, #fef08a);
  box-shadow: 0 0 8px rgba(134,239,172,.9); transition: left .3s, width .3s; }
.mi:hover { color: #fff; background: rgba(134,239,172,.09); }
.mi:hover .mi-ico { transform: translateY(-2px) rotate(-8deg) scale(1.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 18px rgba(134,239,172,.55); }
.mi:hover::after { left: 30%; width: 40%; }
.mi.active { color: #062214; background: linear-gradient(135deg, #d9fbe3, #4ade80 55%, #facc15); box-shadow: 0 0 22px rgba(74,222,128,.5); }
.mi.active .mi-ico { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.7); }
.mi.active::after { width: 0; }
.mi-soon { position: absolute; top: -8px; right: 2px; padding: 2px 6px; border-radius: 999px; font-size: .55rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #3a2a00; background: linear-gradient(135deg, #fef08a, #facc15); box-shadow: 0 0 10px rgba(250,204,21,.65); animation: soonPulse 2.2s ease-in-out infinite; }
@keyframes soonPulse { 50% { transform: scale(1.12); box-shadow: 0 0 16px rgba(250,204,21,.95); } }
.nav-cta { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  color: #062214; background: linear-gradient(135deg, #bbf7d0, #4ade80 45%, #facc15); background-size: 200% 100%; animation: ctaShine 3s ease-in-out infinite;
  box-shadow: 0 8px 24px -8px rgba(74,222,128,.75), inset 0 0 0 1px rgba(255,255,255,.35); transition: transform .25s, box-shadow .25s; }
.nav-cta svg { stroke: #062214; filter: none; width: 17px; height: 17px; transform-origin: 50% 10%; animation: bellRing 4s ease-in-out infinite; }
.nav-cta:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 30px -10px rgba(250,204,21,.8); }
@keyframes bellRing { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(16deg); } 88% { transform: rotate(-14deg); } 92% { transform: rotate(9deg); } 96% { transform: rotate(-5deg); } }

@media (max-width: 1180px) {
  .mi { padding: 5px 10px 5px 5px; font-size: .86rem; gap: 7px; }
  .navbar .brand { font-size: 1.1rem; }
}
@media (max-width: 1000px) {
  .top { padding: 12px 12px 0; }
  .navbar { flex-wrap: wrap; gap: 8px 10px; padding: 10px 10px 8px; border-radius: 24px; }
  .nav-sep { display: none; }
  .brand-wrap { flex: 1; }
  .nav-cta { padding: 8px 14px; font-size: .82rem; }
  .menu { order: 3; flex: 1 1 100%; justify-content: space-between; padding-top: 8px; border-top: 1px solid rgba(134,239,172,.14); }
  .mi { flex: 1; flex-direction: column; gap: 4px; padding: 4px 0 6px; border-radius: 14px; font-size: .7rem; }
  .mi-ico { width: 36px; height: 36px; }
  .mi-ico svg { width: 20px; height: 20px; }
  .mi-soon { top: -6px; right: 0; }
}
/* ===== teaser popup ===== */
.veil { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(circle at 50% 45%, rgba(13,51,34,.45), rgba(2,10,6,.78)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease; }
.veil[hidden] { display: none; }
.veil.show { opacity: 1; }
.veil-card { position: relative; width: min(440px, 100%); padding: 32px 24px 24px; border-radius: 26px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, rgba(74,222,128,.2), transparent 60%), linear-gradient(180deg, rgba(13,51,34,.96), rgba(5,22,14,.97));
  border: 1px solid rgba(134,239,172,.25);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(74,222,128,.16), inset 0 1px 0 rgba(255,255,255,.08);
  transform: translateY(22px) scale(.95); transition: transform .5s cubic-bezier(.2,1.25,.4,1); }
.veil.show .veil-card { transform: none; }
.veil-card::before { content: ''; position: absolute; top: 0; left: -40%; width: 40%; height: 1px; background: linear-gradient(90deg, transparent, #fef08a, transparent);
  animation: veilLine 3.2s linear infinite; }
@keyframes veilLine { to { left: 100%; } }
.veil-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); background: rgba(255,255,255,.06); transition: background .2s, color .2s, transform .3s; }
.veil-x:hover { color: #fff; background: rgba(255,255,255,.12); transform: rotate(90deg); }
.veil-orb { position: relative; width: 94px; height: 94px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.4), rgba(134,239,172,.28) 40%, rgba(13,51,34,.7) 78%);
  box-shadow: 0 0 34px rgba(134,239,172,.5), inset 0 0 20px rgba(255,255,255,.15); animation: veilFloat 3.4s ease-in-out infinite; }
.veil-orb::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed rgba(134,239,172,.45); animation: spin 16s linear infinite; }
@keyframes veilFloat { 50% { transform: translateY(-6px); } }
.veil-ico { font-size: 2.7rem; filter: drop-shadow(0 0 12px rgba(187,247,208,.75)); }
.veil-lock { position: absolute; right: -4px; bottom: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: .95rem;
  background: #0b2a1b; border: 1px solid rgba(250,204,21,.55); box-shadow: 0 0 14px rgba(250,204,21,.45); }
.veil-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: #fde68a; margin-bottom: 6px; }
.veil-card h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 10px;
  background: linear-gradient(100deg, #fff 30%, #bbf7d0 46%, #fef08a 52%, #fff 68%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brandShine 5s ease-in-out infinite; }
.veil-text { color: rgba(233,251,233,.72); line-height: 1.65; font-size: .95rem; margin-bottom: 18px; }
.veil-peek { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.peek { position: relative; aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(134,239,172,.14), rgba(134,239,172,.03)); border: 1px solid rgba(134,239,172,.16); }
.peek span { font-size: 2.1rem; filter: blur(7px) saturate(1.4); opacity: .9; }
.peek::before { content: '?'; position: absolute; z-index: 1; font-weight: 800; font-size: 1.5rem; color: #f0fff4; text-shadow: 0 0 14px rgba(134,239,172,.9); }
.peek::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%);
  transform: translateX(-110%); animation: peekShine 2.8s ease-in-out infinite; }
.peek:nth-child(2)::after { animation-delay: .25s; }
.peek:nth-child(3)::after { animation-delay: .5s; }
@keyframes peekShine { 55%, 100% { transform: translateX(110%); } }
.veil-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.veil-actions button { display: inline-flex; align-items: center; gap: 6px; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: .92rem; transition: transform .25s, box-shadow .25s, background .25s; }

.veil-ico svg { width: 46px; height: 46px; stroke-width: 1.5; filter: drop-shadow(0 0 10px rgba(187,247,208,.8)); }


/* ===== phone: menu becomes a floating bottom dock ===== */
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
@keyframes dockIn { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .top { animation: fadeOnly .6s ease-out forwards; padding: 12px 12px 0; }
  .navbar { flex-wrap: nowrap; padding: 7px 7px 7px 9px; border-radius: 999px;
    backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(180deg, rgba(24,78,50,.72), rgba(6,28,18,.82)); }
  .navbar .logo-orb { width: 36px; height: 36px; }
  .navbar .brand { font-size: 1.08rem; }

  .menu { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    order: 0; flex: none; justify-content: space-around; gap: 0; padding: 9px 4px 8px; border-radius: 26px;
    border: 1px solid rgba(134,239,172,.26);
    background: radial-gradient(120% 140% at 50% 0%, rgba(74,222,128,.16), transparent 60%), linear-gradient(180deg, rgba(16,58,38,.97), rgba(4,18,12,.99));
    backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 44px rgba(0,0,0,.65), 0 0 36px rgba(74,222,128,.15);
    animation: dockIn .7s .25s both cubic-bezier(.2,1.3,.4,1); }
  .menu::before { content: ''; position: absolute; left: 20%; right: 20%; top: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, #bbf7d0, #fef08a, #bbf7d0, transparent); animation: menuLine 4.5s ease-in-out infinite; }
  .mi { flex: 1; flex-direction: column; gap: 4px; padding: 0 0 2px; border-radius: 0; background: none !important; box-shadow: none !important;
    font-size: .66rem; font-weight: 600; color: rgba(233,251,233,.68); -webkit-tap-highlight-color: transparent; }
  .mi::after { display: none; }
  .mi-ico { width: 50px; height: 32px; border-radius: 999px; transition: transform .35s cubic-bezier(.2,1.6,.4,1), background .3s, box-shadow .3s; }
  .mi-ico svg { width: 20px; height: 20px; }
  .mi:hover .mi-ico { transform: none; }
  .mi:active .mi-ico { transform: scale(.88); }
  .mi.active { color: #fef9c3; }
  .mi.active .mi-ico { transform: translateY(-3px); background: linear-gradient(135deg, #d9fbe3, #4ade80 60%, #facc15); border-color: rgba(255,255,255,.6);
    box-shadow: 0 6px 18px -4px rgba(74,222,128,.8), 0 0 18px rgba(250,204,21,.35); }
  .mi.active .mi-ico svg { stroke: #062214; filter: none; }
  .mi.active .mi-ico .f, .mi.active .mi-ico .dot { fill: #062214; }
  .mi-soon { top: -11px; right: calc(50% - 34px); font-size: .5rem; padding: 2px 5px; }

  .chat-fab { right: 12px; bottom: calc(98px + env(safe-area-inset-bottom)); width: 58px; height: 58px; }
  .chat { right: 10px; bottom: calc(166px + env(safe-area-inset-bottom)); height: min(470px, calc(100vh - 230px)); }
}

/* stop wide glow layers from widening the page on phones */
html { overflow-x: hidden; }
body { overflow-x: clip; }
.godrays { overflow: hidden; }


/* ===== partner item (6 menu items) ===== */
.veil.partner .veil-kicker { color: #86efac; }
.veil.partner .peek::before { content: '+'; font-size: 1.8rem; font-weight: 600; }
.veil.partner .veil-lock { border-color: rgba(134,239,172,.6); box-shadow: 0 0 14px rgba(134,239,172,.5); }
@media (max-width: 1240px) and (min-width: 1001px) {
  .navbar { gap: 10px; }
  .mi { padding: 5px 9px 5px 5px; font-size: .84rem; gap: 6px; }
  .mi-ico { width: 28px; height: 28px; }
  .mi-ico svg { width: 17px; height: 17px; }
  .nav-cta { padding: 9px 14px; }
}
@media (max-width: 1100px) and (min-width: 1001px) {
  .navbar .brand { display: none; }
}
@media (max-width: 760px) {
  .menu { left: 8px; right: 8px; padding: 9px 2px 8px; }
  .mi { font-size: .62rem; letter-spacing: -.01em; }
  .mi-ico { width: 44px; height: 30px; }
  .mi-ico svg { width: 19px; height: 19px; }
  .mi-soon { right: calc(50% - 30px); }
}

/* ===== partners section on the main page ===== */
.partners { position: relative; z-index: 2; width: 100%; max-width: 1120px; padding: 46px 16px 26px; display: flex; flex-direction: column; align-items: center; text-align: center;
  opacity: 0; animation: fadeUp .7s .45s ease-out forwards; scroll-margin-top: 20px; }
.partners::before { content: ''; position: absolute; left: 50%; top: 0; width: min(560px, 80%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(134,239,172,.5), rgba(250,204,21,.6), rgba(134,239,172,.5), transparent); }
.pt-title { margin-top: 14px; font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.pt-title em { font-style: normal; background: linear-gradient(100deg, #86efac 30%, #fef08a 46%, #86efac 62%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: brandShine 5s ease-in-out infinite; }
.pt-sub { margin-top: 10px; max-width: 520px; color: rgba(233,251,233,.68); font-size: .98rem; line-height: 1.6; }

.pt-grid { width: 100%; margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pt-card { --mx: 50%; --my: 0%; position: relative; overflow: hidden; padding: 24px 18px 22px; border-radius: 22px; text-align: left;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(134,239,172,.16), transparent 70%), linear-gradient(180deg, rgba(22,72,47,.55), rgba(6,26,17,.6));
  border: 1px solid rgba(134,239,172,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 40px -20px rgba(0,0,0,.7);
  transition: transform .35s cubic-bezier(.2,1.2,.4,1), border-color .3s, box-shadow .3s; }
.pt-card::after { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #bbf7d0, transparent); opacity: 0; transition: opacity .3s; }
.pt-card:hover { transform: translateY(-6px); border-color: rgba(250,204,21,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 24px 50px -18px rgba(0,0,0,.75), 0 0 34px rgba(74,222,128,.18); }
.pt-card:hover::after { opacity: 1; }
.pt-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 16px;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.25), rgba(134,239,172,.14) 45%, rgba(8,40,25,.55) 85%);
  border: 1px solid rgba(134,239,172,.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 0 18px rgba(74,222,128,.18);
  transition: transform .45s cubic-bezier(.2,1.6,.4,1); }
.pt-card:hover .pt-ico { transform: rotate(-8deg) scale(1.08); }
.pt-ico svg { width: 26px; height: 26px; fill: none; stroke: url(#icoG); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; filter: drop-shadow(0 0 5px rgba(134,239,172,.6)); }
.pt-ico .f { fill: url(#icoG); fill-opacity: .28; }
.pt-card h3 { font-size: 1.06rem; font-weight: 800; margin-bottom: 6px; color: #f0fff4; }
.pt-card p { font-size: .88rem; line-height: 1.55; color: rgba(233,251,233,.66); }
.partners.spotlight .pt-card { animation: ptGlow 1.3s ease both; }
.partners.spotlight .pt-card:nth-child(2) { animation-delay: .15s; }
.partners.spotlight .pt-card:nth-child(3) { animation-delay: .3s; }
.partners.spotlight .pt-card:nth-child(4) { animation-delay: .45s; }
.partners.spotlight .explore-label { animation: labelPop 1.2s ease; }
@keyframes ptGlow { 35% { border-color: rgba(250,204,21,.7); box-shadow: 0 0 40px rgba(250,204,21,.3), 0 0 0 1px rgba(250,204,21,.4); transform: translateY(-6px); } }

.pt-marquee { width: 100%; margin-top: 26px; overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.pt-track { display: flex; gap: 14px; width: max-content; animation: ptScroll 26s linear infinite; }
.pt-marquee:hover .pt-track { animation-play-state: paused; }
@keyframes ptScroll { to { transform: translateX(calc(-50% - 7px)); } }
.pt-slot { display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 20px; border-radius: 16px; white-space: nowrap;
  font-size: .86rem; font-weight: 600; color: rgba(233,251,233,.55); border: 1px dashed rgba(134,239,172,.32); background: rgba(134,239,172,.04); }
.pt-slot b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 1rem; color: #062214; background: linear-gradient(135deg, #bbf7d0, #4ade80); }
.pt-slot.host { border-style: solid; border-color: rgba(250,204,21,.4); color: #f0fff4; font-weight: 800; background: rgba(250,204,21,.06); }
.pt-slot.host img { border-radius: 50%; filter: brightness(1.45) saturate(1.25); box-shadow: 0 0 12px rgba(134,239,172,.5); }

.pt-actions { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pt-actions .cta-main, .pt-actions .cta-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: transform .25s, box-shadow .25s, background .25s; }

@media (max-width: 900px) { .pt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .partners { padding-top: 38px; }
  .pt-grid { gap: 10px; }
  .pt-card { padding: 16px 14px; border-radius: 18px; }
  .pt-ico { width: 42px; height: 42px; border-radius: 13px; margin-bottom: 10px; }
  .pt-ico svg { width: 22px; height: 22px; }
  .pt-card h3 { font-size: .94rem; }
  .pt-card p { font-size: .78rem; }
  .pt-slot { height: 44px; padding: 0 14px; font-size: .78rem; }
}
