/* Claim: "pump the cat" terminal. Left = chart stage (cat inflates, curve climbs), right = trade panel (pump / dump tabs).
   Animations: transform/opacity only; loops live in [data-coin] and #live, paused off screen. */
.intro { padding: 34px 0 22px; }
.intro h1 { margin: 0; font: 800 clamp(34px, 5.4vw, 62px)/1 var(--f-display); letter-spacing: -.04em; }
.intro h1 em { font-style: normal; color: var(--accent); }
.lede { margin: 14px 0 0; color: #c4cac6; max-width: 40em; font-size: 17.5px; }
.lede b { color: var(--accent); }

.term { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }

/* stage */
.stage { display: flex; flex-direction: column; border: 1px solid var(--line2); border-radius: 18px; background: var(--card); overflow: hidden; }
.st-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.st-head img { border-radius: 9px; }
.st-head div { display: grid; gap: 2px; }
.st-head b { font: 700 15px/1 var(--f-display); }
.st-head div span { color: var(--mute); font: 500 12px/1 var(--f-mono); }
.st-kick { margin: 0 0 0 auto; padding: 7px 11px; border-radius: 8px; background: rgba(134, 239, 172, .1); color: var(--accent); font: 600 12px/1 var(--f-mono); text-transform: lowercase; white-space: nowrap; }
.st-body { position: relative; flex: 1; min-height: 420px; overflow: hidden; background:
  linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 100% 60px, linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 60px 100%,
  radial-gradient(50% 50% at 50% 85%, rgba(134, 239, 172, .16), transparent 70%), #0d0e11; }
.curvebox { position: absolute; inset: 8% 0 12% 0; overflow: hidden; transform: translateX(calc((var(--lvl) * .92 - .92) * 100%)); transition: transform 1.1s var(--ease); }
.curve { display: block; width: 100%; height: 100%; transform: translateX(calc((.92 - var(--lvl) * .92) * 100%)); transition: transform 1.1s var(--ease); }
.curve .candles rect { fill: rgba(134, 239, 172, .22); }
.curve .area { fill: rgba(134, 239, 172, .08); }
.curve .line { fill: none; stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; }
/* the box slides in while the svg slides back by the same amount: the curve is revealed left to right (transform only) */
.pad { position: absolute; left: 50%; bottom: 26px; width: 260px; height: 46px; margin-left: -130px; border-radius: 50%; background: radial-gradient(closest-side, rgba(134, 239, 172, .55), rgba(134, 239, 172, .12) 60%, transparent); border: 2px solid rgba(134, 239, 172, .55); }
.cat { position: absolute; left: 50%; bottom: 40px; width: 230px; margin-left: -115px; transform-origin: 50% 100%;
  transform: scale(calc(.74 + var(--lvl) * .36)); transition: transform 1s var(--spring); }
.cat-in { transform-origin: 50% 100%; }
.cat-in img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.cat-in.puff { animation: puff .7s var(--spring); }
@keyframes puff { 30% { transform: scale(1.12, .9); } 60% { transform: scale(.96, 1.06); } }
.floaties i { position: absolute; bottom: -30px; width: 30px; height: 14px; border-radius: 99px; background: linear-gradient(90deg, var(--pill) 50%, var(--suit) 50%); opacity: 0; animation: float-up 7s linear infinite; }
.floaties i:nth-child(1) { left: 10%; animation-delay: 0s; } .floaties i:nth-child(2) { left: 24%; animation-delay: 2.4s; width: 22px; height: 10px; }
.floaties i:nth-child(3) { left: 76%; animation-delay: 1.2s; } .floaties i:nth-child(4) { left: 88%; animation-delay: 3.8s; width: 22px; height: 10px; }
.floaties i:nth-child(5) { left: 64%; animation-delay: 5s; } .floaties i:nth-child(6) { left: 36%; animation-delay: 6.1s; width: 22px; height: 10px; }
@keyframes float-up { 0% { opacity: 0; transform: translateY(0) rotate(0); } 10% { opacity: .8; } 80% { opacity: .6; } 100% { opacity: 0; transform: translateY(-460px) rotate(200deg); } }
.grad { position: absolute; right: 14px; top: 14px; padding: 8px 12px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 700 13px/1 var(--f-mono); opacity: 0; transform: scale(.6); transition: opacity .4s, transform .6s var(--spring); }
.stage.full .grad { opacity: 1; transform: none; }
.st-foot { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.meter { display: flex; align-items: center; gap: 10px; font: 600 11.5px/1 var(--f-mono); color: var(--mute); text-transform: uppercase; }
.prog { flex: 1; height: 10px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--suit), var(--accent)); transform-origin: left; transform: scaleX(.04); transition: transform .8s var(--ease); }
.done-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0 0; min-height: 28px; }
.done-chips li { padding: 7px 10px; border-radius: 8px; background: rgba(134, 239, 172, .1); color: var(--accent); font: 600 12px/1 var(--f-mono); }
.done-chips li.last { animation: chipIn .5s var(--spring) both; }
@keyframes chipIn { from { opacity: 0; transform: scale(.7); } }

/* trade panel */
.panel { border: 1px solid var(--line2); border-radius: 18px; background: var(--card); padding: 14px; display: flex; flex-direction: column; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.tab { padding: 11px; border: 0; border-radius: 9px; font: 700 15px/1 var(--f-body); cursor: pointer; background: transparent; color: var(--mute); }
.tab.on { background: var(--accent); color: var(--accent-ink); }
.tab.off { color: var(--dim); }
.tab.off.shake { animation: nope .35s; }
.dump-note { margin: 10px 2px 0; color: var(--mute); font-size: 13.5px; }
.flow { position: relative; flex: 1; display: flex; }
.flow[hidden], .board[hidden] { display: none; }
.stepcard { flex: 1; display: flex; flex-direction: column; padding: 22px 6px 6px; }
.stepcard.in { animation: cardIn .5s var(--spring) both; }
.stepcard.nope { animation: nope .35s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes nope { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.kick { margin: 0; color: var(--accent); font: 600 12.5px/1 var(--f-mono); text-transform: lowercase; }
.stepcard h3 { margin: 10px 0 8px; font: 800 clamp(24px, 3vw, 30px)/1.1 var(--f-display); letter-spacing: -.02em; }
.line { margin: 0 0 20px; color: var(--mute); }
.get { display: flex; justify-content: space-between; align-items: center; margin: auto 0 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); font: 500 13px/1 var(--f-mono); color: var(--mute); }
.get b { color: var(--text); font-size: 14px; }
.field { width: 100%; padding: 15px 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); font: 500 16px/1.2 var(--f-body); outline: none; }
.field:focus { border-color: var(--accent); }
.field-row { display: flex; gap: 8px; align-items: center; padding-left: 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); }
.field-row:focus-within { border-color: var(--accent); }
.field-row .at { font: 700 18px/1 var(--f-mono); color: var(--mute); }
.field-row .field { border: 0; padding-left: 2px; flex: 1; min-width: 0; }
.field-col { display: grid; gap: 10px; }
.err { min-height: 1.2em; margin: 10px 0 0; color: var(--warn); font-size: 14px; }
.go { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.02); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.info { display: grid; gap: 7px; margin: 14px 0 0; padding: 12px 14px 2px; border-top: 1px solid var(--line); }
.info div { display: flex; justify-content: space-between; font: 500 12.5px/1.3 var(--f-mono); }
.info dt { color: var(--dim); } .info dd { margin: 0; color: var(--mute); }
.info dd.g { color: var(--accent); }
/* board after the claim */
.board { flex: 1; padding: 20px 6px 6px; animation: cardIn .6s var(--spring) both; }
.bd-top { display: flex; gap: 14px; align-items: center; }
.bd-top img { border-radius: 14px; }
.bd-top .kick { font-size: 13px; }
.bd-top h3 { margin: 8px 0 0; font: 800 28px/1 var(--f-display); }
.bd-st { display: flex; gap: 8px; align-items: center; margin: 20px 0 14px; font-weight: 600; }
.bd-st.ok { color: var(--ok); } .bd-st.warn { color: var(--warn); }
.bd-act { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-note { margin: 16px 0 0; color: var(--mute); font-size: 13px; }

/* live trades */
.live { margin-top: 44px; }
.live-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 800 26px/1 var(--f-display); letter-spacing: -.02em; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.stats div { padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.stats dt { color: var(--mute); font: 500 11.5px/1.2 var(--f-mono); }
.stats dd { margin: 8px 0 0; font: 700 22px/1 var(--f-mono); }
.trades { border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; background: var(--card); }
.tr-head, .feed li { display: grid; grid-template-columns: minmax(0, 2.2fr) 92px 110px 100px 84px; gap: 12px; align-items: center; padding: 10px 14px; }
.tr-head { color: var(--dim); font: 500 12px/1 var(--f-mono); border-bottom: 1px solid var(--line); background: var(--bg2); }
.tr-head span:nth-child(n+3) { text-align: right; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed li.empty { display: block; color: var(--mute); text-align: center; padding: 22px; }
.acct { display: flex; align-items: center; gap: 10px; min-width: 0; }
.feed img, .feed .pf { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.feed .pf { display: grid; place-items: center; background: var(--suit); color: #fff; font: 700 13px/1 var(--f-body); }
.who { display: grid; min-width: 0; } .who b, .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who b { font-weight: 600; }
.who span { color: var(--dim); font: 500 11.5px/1.3 var(--f-mono); }
.ty { justify-self: start; padding: 5px 8px; border-radius: 6px; font: 600 11.5px/1 var(--f-mono); background: rgba(134, 239, 172, .12); color: var(--accent); }
.ty.wait { background: rgba(255, 255, 255, .06); color: var(--mute); }
.amt { text-align: right; font: 600 13px/1 var(--f-mono); color: var(--accent); }
.when { text-align: right; color: var(--mute); font: 500 12.5px/1 var(--f-mono); white-space: nowrap; }
.tx { justify-self: end; display: inline-flex; align-items: center; min-height: 32px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(134, 239, 172, .4); color: var(--accent); font: 600 12.5px/1 var(--f-mono); text-decoration: none; white-space: nowrap; }
.tx:hover { background: rgba(134, 239, 172, .1); }
.fs { justify-self: end; color: var(--dim); font: 500 12px/1 var(--f-mono); }
.feed-more { margin: 14px auto 0; display: flex; }

/* pop-ups: a green trade toast */
.popwrap { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; gap: 8px; width: max-content; max-width: calc(100% - 24px); pointer-events: none; }
.livepop { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #0f1a13; border: 1px solid rgba(134, 239, 172, .5); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: popIn .5s var(--spring) both; }
.livepop em { font-style: normal; color: var(--accent); font-family: var(--f-mono); }
.livepop.out { animation: popOut .4s ease-in forwards; }
.lp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; animation: blink 1.6s ease-in-out infinite; }
@keyframes popIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes popOut { to { opacity: 0; transform: translateX(16px); } }

/* "graduated" celebration */
.sentfx { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(11, 11, 14, .92); animation: fadeIn .3s both; overflow-y: auto; }
.sentfx[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.sf-in { position: relative; z-index: 2; text-align: center; width: min(560px, 100%); }
.sf-art { width: 100%; border-radius: 18px; border: 1px solid rgba(134, 239, 172, .4); display: block; animation: pop .9s var(--spring) both; }
@keyframes pop { from { opacity: 0; transform: scale(.7) translateY(30px); } }
.sf-tag { display: inline-block; margin: 20px 0 0; padding: 7px 12px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: 700 13px/1 var(--f-mono); animation: rise .6s .2s var(--spring) both; }
.sentfx h2 { margin: 12px 0 0; font: 800 clamp(38px, 8vw, 72px)/1 var(--f-display); letter-spacing: -.04em; animation: rise .7s .3s var(--spring) both; }
.sentfx h2 em { font-style: normal; color: var(--accent); }
.sf-amt { margin: 10px 0 0; font: 700 22px/1.2 var(--f-mono); color: var(--accent); animation: rise .7s .45s var(--spring) both; }
.sf-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; animation: rise .7s .6s var(--spring) both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.sf-bits { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sf-bits i { position: absolute; left: 50%; top: 40%; width: 26px; height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--pill) 50%, var(--suit) 50%); opacity: 0;
  animation: burst 1.8s var(--d) cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(calc(var(--x) * 44vw), 44vh) rotate(540deg); } }

@media (max-width: 900px) {
  .term { grid-template-columns: 1fr; }
  .st-body { min-height: 300px; }
  .cat { width: 170px; margin-left: -85px; bottom: 30px; }
  .pad { width: 200px; margin-left: -100px; bottom: 18px; height: 38px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .intro { padding: 18px 0 14px; }
  .intro h1 { font-size: 32px; }
  .lede { font-size: 15px; margin-top: 8px; }
  .st-head { padding: 9px 12px; }
  .st-head img { width: 28px; height: 28px; }
  .st-body { min-height: 230px; }
  .cat { width: 128px; margin-left: -64px; bottom: 26px; }
  .pad { width: 170px; margin-left: -85px; height: 32px; bottom: 16px; }
  .st-foot { padding: 10px 12px; }
  .done-chips { min-height: 0; }
  .done-chips:empty { display: none; }
  .panel { padding: 12px; }
  .stepcard { padding-top: 16px; }
  .tr-head { display: none; }
  .feed li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'a t' 'a w'; row-gap: 6px; }
  .feed li .acct { grid-area: a; } .feed li .ty, .feed li .amt { display: none; } .feed li .when { grid-area: w; } .feed li .tx, .feed li .fs { grid-area: t; }
  .popwrap { right: 50%; transform: translateX(50%); bottom: 14px; }
  .chip { padding: 8px 10px; }
}
