:root {
  --navy: #0b0e2a;
  --navy2: #151a46;
  --peri: #8d98ff;
  --peri2: #b9c0ff;
  --lav: #5b60a8;
  --ink: #12163a;
  --white: #f6f4f1;
  --green: #35d49a;
  --red: #ff5d7d;
  --gold: #ffd36b;
  --ath: #c69bff;
  --muted: rgba(220, 225, 255, 0.62);
  --glass: rgba(18, 22, 60, 0.72);
  --line: rgba(185, 192, 255, 0.16);
  --f: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--navy); color: var(--white); font-family: var(--f); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
svg { display: block; }

/* ---------- stage ---------- */
#stage { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: linear-gradient(180deg, #090b25 0%, #141947 45%, #2c3170 82%, #3d4290 100%); }
#chart, #gl, #lines { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#gl { z-index: 1; }
#lines { z-index: 2; pointer-events: none; }
#floaters { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.floater { position: absolute; font-weight: 800; font-size: 15px; color: var(--green); text-shadow: 0 2px 10px rgba(0,0,0,.45); transform: translate(-50%, 0); animation: floatUp 1.6s ease-out forwards; white-space: nowrap; }
.floater.down { color: var(--red); }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, 10px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -46px); } }

/* ---------- header ---------- */
.top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; }
.brand { text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; text-decoration: none; }
.brand-ic { width: 34px; height: 34px; color: var(--white); filter: drop-shadow(0 3px 10px rgba(141,152,255,.45)); }
.brand.small { font-size: 16px; gap: 8px; }
.brand.small .brand-ic { width: 22px; height: 22px; }
.actions { display: flex; align-items: center; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(16, 20, 56, 0.66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); border-color: rgba(185,192,255,.4); }
.btn svg { width: 16px; height: 16px; }
.btn.icon { width: 40px; padding: 0; justify-content: center; }
.btn.solid { background: var(--white); color: var(--ink); border-color: transparent; }
.btn.solid:hover { background: #fff; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.ca { max-width: 380px; padding-right: 6px; }
.ca-lbl { color: var(--peri2); font-weight: 800; }
#caText { font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.ca-copy { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; background: #3e4bd6; color: #fff; }
.ca-copy b { font-weight: 800; font-size: 12px; }
.ca.copied .ca-copy { background: var(--green); color: var(--ink); }

/* ---------- hero text ---------- */
.hero { position: absolute; z-index: 4; top: 86px; left: 26px; max-width: 460px; pointer-events: none; }
.chip[hidden] { display: none; }
.chip { display: inline-block; margin-bottom: 14px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 211, 107, .14); color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .08em; border: 1px solid rgba(255,211,107,.3); }
.hero h1 { margin: 0; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; text-shadow: 0 6px 30px rgba(5,7,30,.6); }
.hero h1 span { color: var(--peri); }
.rules { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--muted); }
.rules li { display: flex; gap: 8px; align-items: baseline; }
.rules b { color: var(--white); font-weight: 800; }
.rules i { font-style: normal; color: var(--peri); }

/* ---------- cards ---------- */
.card { position: absolute; z-index: 4; bottom: 26px; border-radius: 16px; }
.card.mc { right: 92px; background: #fbfaf8; color: var(--ink); padding: 14px 18px 14px; min-width: 210px; box-shadow: 0 18px 50px rgba(5, 7, 30, .45); }
.mc-top { display: flex; justify-content: space-between; gap: 18px; font-size: 12px; font-weight: 700; color: #5a5f86; }
.chg { color: #13a46e; }
.chg.down { color: #e0405f; }
.mc-num { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; }
.mc-sub { font-size: 12px; color: #5a5f86; font-weight: 600; }
.mc-sub b { color: var(--ink); }
.card.pos { left: 26px; width: 290px; background: var(--glass); border: 1px solid var(--line); padding: 14px 16px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 50px rgba(5,7,30,.35); }
.pos-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.pos-top .r { margin-left: auto; }
.tag { padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.tag.long { background: rgba(53, 212, 154, .16); color: var(--green); }
.pnl { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--green); margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.pnl.down { color: var(--red); }
.next-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); }
.next-row span:first-child { color: var(--white); }
.bar { height: 8px; border-radius: 99px; background: rgba(185,192,255,.14); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #3e4bd6, var(--green)); transition: width .8s ease; }
.paid { margin-top: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.paid b { color: var(--white); }

/* ---------- toasts ---------- */
#toasts { position: absolute; z-index: 6; top: 72px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: #fbfaf8; color: var(--ink); font-weight: 800; font-size: 14px; box-shadow: 0 14px 40px rgba(5,7,30,.5); animation: tIn .35s ease-out, tOut .4s ease-in 4.6s forwards; }
.toast svg { width: 18px; height: 18px; color: #fff; background: var(--green); border-radius: 50%; padding: 3px; }
.toast.ath svg { background: var(--ath); }
@keyframes tIn { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
@keyframes tOut { to { opacity: 0; transform: translateY(-10px); } }

/* ---------- below ---------- */
.below { background: linear-gradient(180deg, #3d4290 0%, #1a1f52 22%, #0b0e2a 100%); padding: 56px 26px 30px; }
.block { max-width: 1080px; margin: 0 auto 54px; }
.block h2 { font-size: 34px; letter-spacing: -0.03em; margin: 0 0 10px; font-weight: 800; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 720px; margin: 0 0 22px; }
.lead b { color: var(--white); }
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.goal { border: 1px dashed rgba(53, 212, 154, .45); border-radius: 14px; padding: 12px 14px; background: rgba(16,20,56,.5); }
.goal.hit { border-style: solid; border-color: var(--green); background: rgba(53,212,154,.08); }
.goal.next { box-shadow: 0 0 0 1px rgba(53,212,154,.5), 0 0 26px rgba(53,212,154,.18); }
.goal .g1 { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; color: var(--green); letter-spacing: .05em; }
.goal .g1 svg { width: 16px; height: 16px; }
.goal .g2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 2px; }
.goal .g3 { font-size: 12px; color: var(--muted); font-weight: 600; }
.rounds { display: grid; gap: 12px; }
.round { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: rgba(16,20,56,.55); }
.round-h { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-bottom: 10px; }
.round-h b { font-size: 18px; }
.round-h span { font-size: 13px; color: var(--muted); font-weight: 600; }
.wins { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.win { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(185,192,255,.07); font-size: 12px; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.win em { font-style: normal; color: var(--green); }
.win.pending em { color: var(--gold); }
.foot { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .top { padding: 12px 14px; }
  .brand { font-size: 19px; } .brand-ic { width: 28px; height: 28px; }
  .btn { height: 36px; padding: 0 11px; font-size: 12px; }
  .btn.icon { width: 36px; }
  #caText, .ca-lbl { display: none; }
  .ca { padding: 0 4px; }
  .ca-copy { height: 28px; }
  .hero { top: 64px; left: 16px; right: 16px; }
  .hero h1 { font-size: 30px; }
  .rules { display: none; }
  .hero { top: 60px; }
  .card { bottom: 12px; }
  .card.pos { left: 12px; width: calc(50% - 18px); padding: 10px 12px; }
  .card.mc { right: 12px; width: calc(50% - 18px); min-width: 0; padding: 10px 12px; }
  .pnl { font-size: 22px; margin: 2px 0 4px; }
  .mc-num { font-size: 24px; }
  .pos-top .muted, .paid { display: none; }
  .below { padding: 40px 16px 24px; }
  .block h2 { font-size: 26px; }
}

/* ---------- v3: next target, live market cap next to the cat, green flash ---------- */
.brand .chip { margin: 0 0 0 4px; font-size: 10px; padding: 4px 8px; }
.hero { top: 92px; }
.nx-lbl { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--green); }
.nx-mc { font-size: clamp(52px, 7vw, 96px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin: 4px 0 8px; text-shadow: 0 8px 40px rgba(5,7,30,.6); font-variant-numeric: tabular-nums; }
.nx-sub { font-size: 15px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nx-sub #nxPct { color: var(--white); }
.nx-sub i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); display: inline-block; }
.nx-bar { width: min(360px, 80vw); margin-top: 12px; }
.nx-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #3e4bd6, var(--green)); transition: width .8s ease; }
.mclive { position: absolute; z-index: 4; left: 0; top: 0; transform: translate(0, -50%); pointer-events: none; will-change: transform; }
.ml-lbl { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--peri2); }
.ml-num { font-size: clamp(34px, 3.6vw, 54px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; text-shadow: 0 6px 30px rgba(5,7,30,.7); }
.ml-sub { font-size: 13px; font-weight: 700; }
.lev { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 6px; padding: 4px 10px 4px 7px; border-radius: 8px; background: rgba(21,154,108,.92); border: 1px solid rgba(53,212,154,.7); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 0 18px rgba(53,212,154,.35); transform-origin: 0 50%; transition: background .35s, border-color .35s, box-shadow .35s; }
.lev svg { width: 14px; height: 14px; transition: transform .35s; }
.lev .lev-k { opacity: .85; }
.lev b { font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.lev.down { background: rgba(224,64,95,.92); border-color: rgba(255,93,125,.75); box-shadow: 0 0 18px rgba(255,93,125,.35); }
.lev.down svg { transform: rotate(180deg); }
.lev.gold { background: rgba(196,150,40,.95); border-color: rgba(255,211,107,.85); color: #1a1405; box-shadow: 0 0 22px rgba(255,211,107,.45); }
.lev.pop { animation: levPop .7s cubic-bezier(.2,.9,.25,1.3); }
@keyframes levPop { 0% { transform: scale(1); } 30% { transform: scale(1.22); box-shadow: 0 0 36px rgba(53,212,154,.9); } 100% { transform: scale(1); } }
.ml-sub .chg { color: var(--green); }
.ml-sub .chg.down { color: var(--red); }
#flash { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 60% 55%, rgba(53,212,154,.55), rgba(53,212,154,.18) 45%, rgba(53,212,154,0) 75%); }
#flash.go { animation: flashGo .9s ease-out; }
@keyframes flashGo { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.pnl { color: var(--green); }
@media (max-width: 760px) {
  .hero { top: 62px; }
  .nx-lbl { font-size: 11px; }
  .nx-mc { font-size: 44px; }
  .nx-sub { font-size: 12px; }
  .ml-num { font-size: 24px; }
  .ml-lbl { font-size: 10px; }
  .ml-sub { font-size: 11px; }
  .lev { font-size: 11px; padding: 3px 8px 3px 6px; } .lev b { font-size: 12px; } .lev svg { width: 12px; height: 12px; }
  .card.pos { width: calc(100% - 24px); }
  .brand .chip { display: none; }
}

/* ---------- v4: payout panel, flying coins ---------- */
.paypanel { position: absolute; z-index: 4; left: 26px; top: 300px; bottom: 170px; width: 330px; display: flex; flex-direction: column; background: rgba(14,18,52,.82); border: 1px solid rgba(53,212,154,.35); border-radius: 16px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 50px rgba(5,7,30,.45); overflow: hidden; animation: ppIn .5s ease-out; }
@keyframes ppIn { from { opacity: 0; transform: translateX(-20px); } }
.pp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.pp-head b { display: block; font-size: 16px; font-weight: 800; color: var(--green); letter-spacing: .02em; }
.pp-head span { font-size: 12px; color: var(--muted); font-weight: 600; }
.pp-tag { font-size: 10px !important; font-weight: 800 !important; letter-spacing: .08em; color: var(--gold) !important; }
.pp-list { overflow-y: auto; padding: 6px 8px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(185,192,255,.3) transparent; }
.pp-row { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 9px; background: rgba(185,192,255,.06); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background .4s, color .4s; }
.pp-row .i { color: var(--muted); font-size: 10px; }
.pp-row .a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-row .s { color: var(--muted); }
.pp-row button { font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line); background: transparent; cursor: pointer; visibility: hidden; }
.pp-row.paid { background: rgba(53,212,154,.16); }
.pp-row.paid .s { color: var(--green); }
.pp-row.paid button { visibility: visible; }
.pp-row.paid button:hover { border-color: var(--green); color: var(--green); }
.pp-row.shake { animation: rowShake .5s ease, rowFlash 1s ease; }
@keyframes rowShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-5px) rotate(-1deg); } 40% { transform: translateX(5px) rotate(1deg); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
@keyframes rowFlash { 0% { background: rgba(53,212,154,.75); } 100% { background: rgba(53,212,154,.16); } }
#coins { position: absolute; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; }
.coin { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d9fff0 0 18%, #35d49a 45%, #128a5e 100%); box-shadow: 0 0 12px rgba(53,212,154,.9); }
.coin::after { content: ''; position: absolute; inset: 5px 4px; border-top: 2px solid rgba(11,14,42,.55); border-bottom: 2px solid rgba(11,14,42,.55); transform: skewX(-20deg); }
@media (max-width: 760px) {
  .paypanel { left: 12px; right: 12px; width: auto; top: auto; bottom: 96px; height: 170px; }
  .pp-row { grid-template-columns: 18px 1fr auto auto; gap: 6px; font-size: 11px; }
}
.paypanel[hidden] { display: none; }

/* ---------- v6: altitude backgrounds (sky -> above the clouds -> space) ---------- */
#bgGround { background: url('/bg/ground.webp?v=1') center 62% / cover no-repeat; transform-origin: 50% 70%; filter: saturate(1.08) contrast(1.03); }
.bg-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; will-change: opacity, transform; }
#bgAtmo, #bgRaysImg { background-position: 80% 35%; background-size: cover; background-repeat: no-repeat; transform-origin: 50% 100%; }
#bgAtmo { background-image: url('/bg/atmosphere.webp?v=3'); filter: blur(1.2px) saturate(1.15) contrast(1.05); }
#bgRaysImg { background-image: url('/bg/rays.webp?v=4'); mix-blend-mode: screen; }
#bgRays { mix-blend-mode: screen; }
#bgLimb { background: linear-gradient(165deg, rgba(0,0,6,.7) 0%, rgba(0,0,6,.25) 45%, rgba(0,0,6,0) 70%), url('/bg/limb.webp?v=2') center / cover no-repeat; filter: contrast(1.3) saturate(1.45) brightness(.85); transform-origin: 70% 100%; }
#bgMilky { background: url('/bg/milkyway.webp?v=3') center / cover no-repeat; transform-origin: 50% 50%; }
#bgGalaxy { position: absolute; left: 0; top: 0; width: 100px; opacity: 0; pointer-events: none; mix-blend-mode: screen; will-change: transform, opacity; filter: saturate(1.2) brightness(1.1); }
#bgSpace { display: block; }
#bgScrim { background: linear-gradient(180deg, rgba(9,11,37,.55) 0%, rgba(9,11,37,.25) 40%, rgba(9,11,37,.35) 100%), radial-gradient(ellipse at 20% 30%, rgba(9,11,37,.55), rgba(9,11,37,0) 55%); }
#bgMoon { position: absolute; left: 0; top: 0; width: 100px; height: 100px; opacity: 0; pointer-events: none; will-change: transform, opacity; filter: drop-shadow(0 0 18px rgba(255,255,255,.4)) drop-shadow(0 0 80px rgba(170,190,255,.35)); }

/* ---------- v8: one page, how-it-works card ---------- */
body { overflow: hidden; }
.card.how { left: 330px; width: auto; max-width: min(420px, calc(60vw - 380px)); background: var(--glass); border: 1px solid var(--line); padding: 12px 16px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 50px rgba(5,7,30,.35); }
.how-h { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--peri2); margin-bottom: 6px; }
.card.how ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 12.5px; line-height: 1.4; color: var(--muted); font-weight: 600; }
.card.how b { color: var(--white); font-weight: 800; }
.card.how li::marker { color: var(--green); font-weight: 800; }
@media (max-width: 1100px) { .card.how { display: none; } }
.nx-mc small { font-size: .38em; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.brand-ic { width: auto !important; height: 30px !important; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(141,152,255,.45)); }
.brand.small .brand-ic { height: 20px !important; }
@media (max-width: 760px) { .brand-ic { height: 26px !important; } }

/* v14: payout panel always on, sits between the headline and the bottom cards; new cloud photo */
.paypanel { top: 282px; bottom: 196px; width: 290px; }
.paypanel[hidden] { display: flex; }
.pp-head b { font-size: 14px; }
.pp-row { padding: 5px 8px; font-size: 11.5px; }
.pp-empty { padding: 14px 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.45; }
#bgAtmo, #bgRaysImg { background-position: center 40% !important; }
#bgAtmo { filter: saturate(1.1) contrast(1.04) !important; }
@media (max-width: 760px) { .paypanel { top: auto; bottom: 96px; height: 150px; width: auto; } }

/* ---------- target hit ---------- */
#flash.big { background: radial-gradient(ellipse at 55% 50%, rgba(53,212,154,.85), rgba(53,212,154,.35) 45%, rgba(53,212,154,0) 80%); }
#flash.go.big { animation: flashBig 1.6s ease-out; }
@keyframes flashBig { 0% { opacity: 0; } 8% { opacity: 1; } 22% { opacity: .35; } 34% { opacity: .9; } 100% { opacity: 0; } }
#goalHit { position: absolute; z-index: 8; left: 50%; top: 30%; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; text-align: center;
  padding: 18px 34px 20px; border-radius: 22px; background: rgba(8, 24, 18, .82); border: 2px solid #35d49a;
  box-shadow: 0 0 0 6px rgba(53,212,154,.18), 0 0 60px rgba(53,212,154,.55), 0 24px 70px rgba(0,0,0,.55); }
#goalHit.on { animation: ghIn 4.2s cubic-bezier(.2,.9,.25,1.2) forwards; }
@keyframes ghIn { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 10% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  16% { transform: translate(-50%, -50%) scale(1); } 85% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -58%) scale(.96); } }
#goalHit .gh-k { font-weight: 900; letter-spacing: .32em; font-size: 15px; color: #35d49a; }
#goalHit .gh-v { font-weight: 900; font-size: clamp(34px, 6vw, 64px); line-height: 1.05; color: #fff; text-shadow: 0 0 24px rgba(53,212,154,.8); font-variant-numeric: tabular-nums; }
#goalHit .gh-s { margin-top: 4px; font-weight: 800; font-size: 14px; color: rgba(230,255,244,.85); text-transform: uppercase; letter-spacing: .08em; }
.pp-row.zero .s { color: rgba(220,225,255,.55); }

/* ---------- cashout animation ---------- */
.coin { will-change: transform; box-shadow: 0 0 14px rgba(53,212,154,.95), 0 0 28px rgba(53,212,154,.45); }
.coin-trail { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(200,255,230,.9), rgba(53,212,154,0) 70%); animation: trailFade .42s ease-out forwards; }
@keyframes trailFade { to { opacity: 0; scale: .2; } }
.coin-spark { position: absolute; left: 0; top: 0; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #d9fff0; pointer-events: none;
  box-shadow: 0 0 8px #35d49a; transform: translate(var(--x), var(--y)); animation: spark .6s ease-out forwards; }
@keyframes spark { to { transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))); opacity: 0; } }
.pp-row { position: relative; overflow: hidden; }
.pp-row.fill::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(53,212,154,.45), rgba(53,212,154,.08)); transform-origin: left; animation: rowFill .45s ease-out forwards; pointer-events: none; }
@keyframes rowFill { from { transform: scaleX(0); opacity: 1; } 70% { opacity: 1; } to { transform: scaleX(1); opacity: 0; } }
.paypanel.cashing { box-shadow: 0 0 0 1px rgba(53,212,154,.55), 0 0 36px rgba(53,212,154,.28); }
.paypanel.cashing #ppTitle { color: #fff; text-shadow: 0 0 14px rgba(53,212,154,.9); }
.paypanel.done { animation: ppDone 1.1s ease-out; }
@keyframes ppDone { 0% { box-shadow: 0 0 0 2px rgba(53,212,154,.9), 0 0 60px rgba(53,212,154,.6); } 100% { box-shadow: 0 0 0 0 rgba(53,212,154,0); } }

/* view chart: same blue pill as COPY CA, text only */
.btn.chartbtn { background: #3e4bd6; color: #fff; border-color: transparent; font-weight: 800; font-size: 12px; letter-spacing: .03em; }
.btn.chartbtn:hover { background: #4b58e6; }
/* cashout finished: big total over the chart */
#payDone { position: absolute; z-index: 8; left: 50%; top: 44%; transform: translate(-50%, -50%); pointer-events: none; text-align: center; opacity: 0; }
#payDone.on { animation: pdIn 3.2s cubic-bezier(.2,.9,.25,1.2) forwards; }
#payDone .pd-v { font-weight: 900; font-size: clamp(36px, 6.5vw, 72px); color: #35d49a; text-shadow: 0 0 30px rgba(53,212,154,.8), 0 6px 30px rgba(0,0,0,.55); font-variant-numeric: tabular-nums; line-height: 1; }
#payDone .pd-s { margin-top: 6px; font-weight: 800; font-size: 15px; color: #fff; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
@keyframes pdIn { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.7); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } 20% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -65%) scale(.98); } }


/* how it works: same height and style as the fees card next to it */
@media (min-width: 761px) { .card.pos, .card.how { height: 140px; box-sizing: border-box; } }
.card.how { width: 400px; max-width: calc(100vw - 380px); padding: 14px 16px; }
.card.how .how-l { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 12.5px; line-height: 1.35; color: var(--muted); font-weight: 600; }
.card.how .how-l li { position: relative; padding-left: 14px; }
.card.how .how-l li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.pp-row { flex-shrink: 0; min-height: 30px; } /* overflow:hidden let the flex list squash rows into strips */

/* machine-gun coins */
.coin.shot { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.muzzle { position: absolute; left: 0; top: 0; width: 34px; height: 14px; margin: -7px 0 0 -4px; pointer-events: none; border-radius: 50%; transform-origin: 4px 7px;
  background: radial-gradient(ellipse at 20% 50%, #fff 0 18%, rgba(140,255,200,.9) 35%, rgba(53,212,154,0) 70%); animation: muzzle .16s ease-out forwards; }
@keyframes muzzle { from { opacity: 1; } to { opacity: 0; } }

/* camera: the whole scene (background, chart, cat, lines, market cap) zooms together; the UI stays put */
#cam { position: absolute; inset: 0; z-index: 1; transform-origin: 50% 50%; will-change: transform; }

/* SOL coins for the payout shots */
.coin.shot { width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%221%22%20x2%3D%221%22%20y2%3D%220%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%239945FF%22/%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%235f8ff0%22/%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2314F195%22/%3E%3C/linearGradient%3E%3CradialGradient%20id%3D%22b%22%20cx%3D%22.35%22%20cy%3D%22.3%22%20r%3D%22.8%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%232a2f5e%22/%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%230b0e22%22/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2232%22%20r%3D%2230%22%20fill%3D%22url%28%23b%29%22%20stroke%3D%22url%28%23g%29%22%20stroke-width%3D%224%22/%3E%3Cg%20fill%3D%22url%28%23g%29%22%3E%3Cpath%20d%3D%22M21%2040.5h22.5l-4.5%204.5H16.5z%22/%3E%3Cpath%20d%3D%22M16.5%2029.75H39l4.5%204.5H21z%22/%3E%3Cpath%20d%3D%22M21%2019h22.5l-4.5%204.5H16.5z%22/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; box-shadow: 0 0 14px rgba(153,69,255,.55), 0 0 22px rgba(20,241,149,.45); }
.coin.shot::after { display: none; }
.coin-trail { background: radial-gradient(circle, rgba(170,140,255,.85), rgba(20,241,149,0) 70%); }
.coin-spark { background: #e9ddff; box-shadow: 0 0 8px #14F195; }

/* planets after the moon: Mars then Jupiter drift past */
.planet { position: absolute; left: 0; top: 0; width: 100px; height: 100px; opacity: 0; pointer-events: none; will-change: transform, opacity; filter: drop-shadow(0 0 30px rgba(255,220,190,.18)); }


/* paw charge-up + firing glow */
.coin.shot.orbit { transition: none; }
.paw-charge { position: absolute; left: 0; top: 0; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,.55) 0 8%, rgba(153,69,255,.45) 25%, rgba(20,241,149,.25) 48%, rgba(20,241,149,0) 70%); }
.paw-charge.pop { animation: chargePop .4s ease-out forwards; }
@keyframes chargePop { to { opacity: 0; scale: 2.2; } }
.paw-fire { position: absolute; left: 0; top: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.7) 0 10%, rgba(153,69,255,.4) 35%, rgba(20,241,149,0) 70%); opacity: 0; }
.paw-fire.go { animation: pawFire .18s ease-out; }
@keyframes pawFire { 0% { opacity: 1; scale: 1.15; } 100% { opacity: .35; scale: .8; } }

/* coins passing behind the cat while they wrap around it */
#coinsBack { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
#gl { z-index: 2; }

.cat-hint { position: absolute; z-index: 6; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 11px; border-radius: 999px; border: 1px solid rgba(53,212,154,.45); background: rgba(8,14,40,.72); backdrop-filter: blur(6px); color: #dff8ec; font: 700 13px var(--f); letter-spacing: .02em; cursor: pointer; box-shadow: 0 8px 26px rgba(0,0,0,.35); animation: hintBob 2.4s ease-in-out infinite; }
.cat-hint[hidden] { display: none; }
.cat-hint svg { width: 15px; height: 15px; color: var(--green); transition: transform .3s; }
.cat-hint.up svg { transform: rotate(180deg); }
.cat-hint:hover { border-color: rgba(53,212,154,.85); }
@keyframes hintBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }
@media (max-width: 760px) { .cat-hint { bottom: 96px; font-size: 12px; } }
