/* ✨✨✨ STIFFYBANK™ DESIGN SYSTEM: "MAXIMUM SLOP" v69.420 ✨✨✨
   Rule #1: if it isn't rounded, round it.
   Rule #2: if it isn't a gradient, make it one.
   Rule #3: when in doubt, add glow. */

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --pink: #ff4ecd;
  --hotpink: #ff2d95;
  --purple: #8b5cf6;
  --violet: #6d28d9;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --mint: #34f5c5;
  --lime: #a3ff47;
  --gold: #ffd23f;
  --orange: #ff8a3d;
  --red: #ff4d6d;

  --grad-main: linear-gradient(135deg, #ff4ecd 0%, #8b5cf6 50%, #22d3ee 100%);
  --grad-sunset: linear-gradient(135deg, #ff8a3d 0%, #ff2d95 50%, #8b5cf6 100%);
  --grad-money: linear-gradient(135deg, #a3ff47 0%, #34f5c5 50%, #22d3ee 100%);
  --grad-gold: linear-gradient(135deg, #fff3a0 0%, #ffd23f 35%, #ff9f1c 70%, #ffd23f 100%);
  --grad-danger: linear-gradient(135deg, #ff4d6d 0%, #ff2d95 50%, #ff8a3d 100%);
  --grad-rainbow: linear-gradient(90deg, #ff4d6d, #ff8a3d, #ffd23f, #a3ff47, #34f5c5, #22d3ee, #8b5cf6, #ff4ecd, #ff4d6d);

  --glass: rgba(255, 255, 255, 0.14);
  --glass-strong: rgba(255, 255, 255, 0.24);
  --glass-border: rgba(255, 255, 255, 0.38);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.82);
  --text-dim: rgba(255, 255, 255, 0.62);

  --r-sm: 16px;
  --r-md: 24px;
  --r-lg: 36px;
  --r-xl: 48px;
  --r-pill: 9999px;

  --glow-pink: 0 0 24px rgba(255, 78, 205, 0.55), 0 0 64px rgba(255, 78, 205, 0.25);
  --glow-cyan: 0 0 24px rgba(34, 211, 238, 0.55), 0 0 64px rgba(34, 211, 238, 0.25);
  --glow-gold: 0 0 24px rgba(255, 210, 63, 0.6), 0 0 64px rgba(255, 159, 28, 0.3);
  --shadow-card: 0 20px 60px -10px rgba(76, 0, 130, 0.55), 0 8px 24px -8px rgba(255, 45, 149, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);

  --font: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-fun: 'Fredoka', 'Poppins', system-ui, sans-serif;
  --font-script: 'Pacifico', cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(-45deg, #ff2d95, #8b5cf6, #3b82f6, #22d3ee, #6d28d9, #ff4ecd);
  background-size: 400% 400%;
  background-attachment: fixed;
  animation: bg-drift 18s ease infinite;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@keyframes bg-drift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- floating blobs of pure vibes ---------- */
.blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute;
  width: 46vmax; height: 46vmax;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  filter: blur(70px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: blob-float 22s ease-in-out infinite, blob-morph 12s ease-in-out infinite;
}
.blob.b1 { background: radial-gradient(circle, #ff4ecd, transparent 65%); top: -15vmax; left: -10vmax; }
.blob.b2 { background: radial-gradient(circle, #22d3ee, transparent 65%); bottom: -20vmax; right: -12vmax; animation-delay: -6s, -3s; }
.blob.b3 { background: radial-gradient(circle, #ffd23f, transparent 65%); top: 30%; left: 45%; width: 30vmax; height: 30vmax; opacity: 0.35; animation-delay: -11s, -7s; }
.blob.b4 { background: radial-gradient(circle, #a3ff47, transparent 65%); top: 60%; left: -10vmax; width: 28vmax; height: 28vmax; opacity: 0.3; animation-delay: -15s, -1s; }

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(8vw, 6vh) rotate(60deg) scale(1.1); }
  66% { transform: translate(-6vw, 10vh) rotate(-40deg) scale(0.92); }
}
@keyframes blob-morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  50% { border-radius: 63% 37% 38% 62% / 55% 61% 39% 45%; }
}

/* sparkly noise overlay */
.sparkle-layer {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(2px 2px at 40% 80%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 85% 65%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 10% 90%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(1px 1px at 55% 50%, rgba(255,255,255,0.8), transparent 60%);
  background-size: 400px 400px;
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 1; } }

/* ---------- layout ---------- */
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
section { padding: 56px 0; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 14px; z-index: 50;
  margin: 14px auto 0;
  width: min(1200px, 100% - 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-fun); font-weight: 700; font-size: 1.45rem;
  color: inherit; text-decoration: none; letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-sunset);
  box-shadow: var(--glow-pink), inset 0 2px 0 rgba(255,255,255,0.5);
  font-size: 1.4rem;
  animation: wobble 3.5s ease-in-out infinite;
}
@keyframes wobble { 0%,100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.08); } }
.logo sup { font-size: 0.6em; opacity: 0.8; }
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a:not(.btn) {
  color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 9px 16px; border-radius: var(--r-pill); transition: all .25s;
}
.nav-links a:not(.btn):hover { background: rgba(255,255,255,0.2); color: #fff; box-shadow: 0 0 20px rgba(255,255,255,0.3); }

/* ---------- ticker ---------- */
.ticker {
  margin: 18px auto 0; width: min(1200px, 100% - 32px);
  overflow: hidden; border-radius: var(--r-pill);
  background: linear-gradient(90deg, rgba(0,0,0,0.25), rgba(60,0,90,0.35), rgba(0,0,0,0.25));
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.25);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* Moved by home.js as a conveyor belt (items recycled as they scroll off), not a CSS animation:
   WebKit stops painting very wide animated layers partway through. */
.ticker-track {
  display: inline-flex; gap: 42px; padding: 10px 0; white-space: nowrap;
  will-change: transform;
  font-family: var(--font-fun); font-weight: 600; font-size: 0.95rem;
}
.ticker-track > * { flex: none; }
.ticker-track span b { font-weight: 700; }
.up { color: var(--lime); text-shadow: 0 0 10px rgba(163,255,71,0.6); }
.down { color: #ff8fa3; text-shadow: 0 0 10px rgba(255,77,109,0.6); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font); letter-spacing: -0.03em; margin: 0; }
.mega {
  font-size: clamp(2.8rem, 8vw, 6.4rem); font-weight: 900; line-height: 0.98;
}
.gradient-text {
  background: linear-gradient(90deg, #fff 0%, #ffe3fb 20%, #ffd23f 40%, #a3ff47 55%, #22d3ee 70%, #fff 90%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 5s linear infinite;
  filter: drop-shadow(0 4px 24px rgba(255, 45, 149, 0.45));
}
.rainbow-text {
  background: var(--grad-rainbow); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.script { font-family: var(--font-script); font-weight: 400; }
.section-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; margin-bottom: 10px; }
.section-sub { color: var(--text-soft); font-size: 1.1rem; margin: 0 auto 36px; max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.18); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 0 30px rgba(255,255,255,0.15);
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.5; } }

/* ---------- glass cards ---------- */
.card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.26), rgba(255,255,255,0.08));
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.4), box-shadow .35s;
}
.card.lift:hover { transform: translateY(-8px) rotate(-0.6deg) scale(1.015); box-shadow: var(--shadow-card), var(--glow-pink); }

/* animated rainbow border card */
.card.rainbow-border {
  border: 3px solid transparent;
  background:
    linear-gradient(145deg, rgba(120, 40, 200, 0.55), rgba(255, 45, 149, 0.35)) padding-box,
    conic-gradient(from var(--angle), #ff4d6d, #ffd23f, #a3ff47, #22d3ee, #8b5cf6, #ff4ecd, #ff4d6d) border-box;
  animation: spin-border 4s linear infinite;
}
@keyframes spin-border { to { --angle: 360deg; } }

/* ---------- buttons ---------- */
.btn {
  --g: var(--grad-sunset);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border: 0; border-radius: var(--r-pill);
  background: var(--g); background-size: 160% 160%;
  color: #fff; font-family: var(--font); font-weight: 800; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 10px 30px -6px rgba(255, 45, 149, 0.65), inset 0 2px 0 rgba(255,255,255,0.45), inset 0 -3px 0 rgba(0,0,0,0.12);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform .25s cubic-bezier(.2,.9,.3,1.6), box-shadow .25s, background-position .6s, filter .25s;
}
.btn::after { /* shine sweep */
  content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg); transition: left .6s;
}
.btn:hover { transform: translateY(-3px) scale(1.04); background-position: 100% 0; filter: saturate(1.25) brightness(1.06); box-shadow: 0 16px 40px -6px rgba(255, 45, 149, 0.8), 0 0 30px rgba(255,255,255,0.35), inset 0 2px 0 rgba(255,255,255,0.5); }
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(0) scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn.money { --g: var(--grad-money); color: #0b3b2e; text-shadow: none; box-shadow: 0 10px 30px -6px rgba(52, 245, 197, 0.65), inset 0 2px 0 rgba(255,255,255,0.6); }
.btn.gold { --g: var(--grad-gold); color: #5a3300; text-shadow: none; box-shadow: 0 10px 30px -6px rgba(255, 159, 28, 0.7), inset 0 2px 0 rgba(255,255,255,0.7); }
.btn.danger { --g: var(--grad-danger); }
.btn.cool { --g: linear-gradient(135deg, #22d3ee, #3b82f6, #8b5cf6); box-shadow: 0 10px 30px -6px rgba(59, 130, 246, 0.7), inset 0 2px 0 rgba(255,255,255,0.45); }
.btn.ghost { --g: rgba(255,255,255,0.16); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.sm { padding: 9px 16px; font-size: 0.88rem; }
.btn.xs { padding: 6px 12px; font-size: 0.8rem; font-weight: 700; }
.btn.lg { padding: 18px 34px; font-size: 1.12rem; }
.btn.icon { padding: 9px; width: 40px; height: 40px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-soft); padding-left: 14px; }
.input {
  width: 100%;
  padding: 14px 20px; border-radius: var(--r-pill);
  border: 2px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.14);
  color: #fff; font: 600 1rem var(--font);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.12);
  transition: border-color .2s, box-shadow .2s, background .2s;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.input::placeholder { color: rgba(255,255,255,0.55); }
.input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,0.22); box-shadow: 0 0 0 5px rgba(255, 78, 205, 0.35), 0 0 30px rgba(255, 78, 205, 0.45); }
.input.sm { padding: 10px 16px; font-size: 0.92rem; }
.shake { animation: shake .5s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 10%,90% { transform: translateX(-2px); } 20%,80% { transform: translateX(4px); } 30%,50%,70% { transform: translateX(-8px); } 40%,60% { transform: translateX(8px); } }

/* ---------- coin ---------- */
.coin {
  display: inline-grid; place-items: center; vertical-align: -0.12em;
  width: 1.05em; height: 1.05em; border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #fff7c2 0 12%, #ffd23f 35%, #ff9f1c 80%);
  box-shadow: 0 0 0.35em rgba(255, 210, 63, 0.75), inset 0 -0.08em 0 rgba(150, 80, 0, 0.5), inset 0 0.06em 0 rgba(255,255,255,0.8);
  color: #8a4b00; -webkit-text-fill-color: #8a4b00; font-family: var(--font-fun); font-weight: 700; font-size: 0.85em; line-height: 1;
  margin-right: 0.18em; position: relative; filter: none;
}
.coin::before { content: 'S'; font-size: 0.72em; }
.coin::after { content: ''; position: absolute; width: 0.07em; height: 0.78em; background: #8a4b00; border-radius: 9px; opacity: 0.85; }

/* big spinny 3D coin */
.coin3d-wrap { perspective: 900px; display: grid; place-items: center; }
.coin3d {
  width: clamp(180px, 26vw, 300px); aspect-ratio: 1; position: relative;
  transform-style: preserve-3d; animation: coin-spin 6s linear infinite, coin-bob 3s ease-in-out infinite;
}
.coin3d .face {
  position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden;
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #fffbe0 0 8%, #ffe066 22%, #ffc300 48%, #ff9f1c 78%, #e07a00 100%);
  box-shadow: inset 0 0 0 10px rgba(255, 240, 160, 0.65), inset 0 0 0 18px rgba(200, 110, 0, 0.35), inset 0 -14px 30px rgba(140, 60, 0, 0.45), 0 0 60px rgba(255, 210, 63, 0.8), 0 0 140px rgba(255, 140, 0, 0.45);
  font-family: var(--font-fun); font-weight: 700; color: #8a4b00;
  font-size: clamp(5rem, 11vw, 9rem); text-shadow: 0 3px 0 rgba(255,255,255,0.55), 0 -2px 0 rgba(120,60,0,0.4);
}
.coin3d .face.back { transform: rotateY(180deg); font-size: clamp(4rem, 9vw, 7rem); }
@keyframes coin-spin { to { transform: rotateY(360deg); } }
@keyframes coin-bob { 0%,100% { translate: 0 -10px; } 50% { translate: 0 12px; } }
.coin-shadow { width: 60%; height: 22px; margin-top: 26px; border-radius: 50%; background: radial-gradient(rgba(60,0,90,0.55), transparent 70%); filter: blur(4px); animation: shadow-pulse 3s ease-in-out infinite; }
@keyframes shadow-pulse { 0%,100% { transform: scale(0.85); opacity: 0.6; } 50% { transform: scale(1.05); opacity: 0.9; } }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.hero p.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-soft); max-width: 560px; margin: 22px 0 32px; line-height: 1.6; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.fine { font-size: 0.78rem; color: var(--text-dim); margin-top: 14px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.stat { text-align: center; padding: 26px 20px; }
.stat .emoji { font-size: 2.2rem; display: inline-block; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25)); animation: float-y 3s ease-in-out infinite; }
.stat:nth-child(2) .emoji { animation-delay: -0.8s; }
.stat:nth-child(3) .emoji { animation-delay: -1.6s; }
.stat:nth-child(4) .emoji { animation-delay: -2.4s; }
.stat .num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin: 6px 0 2px; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.stat .label { color: var(--text-soft); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
@keyframes float-y { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(6deg); } }

/* ---------- leaderboard ---------- */
.board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.acct {
  display: grid; grid-template-columns: auto auto 1fr auto; gap: 18px; align-items: center;
  padding: 18px 24px; border-radius: var(--r-pill); cursor: pointer;
  background: linear-gradient(100deg, rgba(255,255,255,0.24), rgba(255,255,255,0.08));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 12px 40px -12px rgba(60, 0, 110, 0.6), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform .3s cubic-bezier(.2,.9,.3,1.5), box-shadow .3s;
  animation: pop-in .6s cubic-bezier(.2,.9,.3,1.4) both;
  color: inherit; text-align: left; font: inherit; width: 100%;
}
.acct:hover, .acct:focus-visible { transform: translateX(8px) scale(1.012); box-shadow: 0 16px 50px -10px rgba(60,0,110,0.7), var(--glow-cyan); outline: none; }
.acct.top1 { background: linear-gradient(100deg, rgba(255, 210, 63, 0.5), rgba(255, 138, 61, 0.28) 50%, rgba(255,255,255,0.1)); box-shadow: 0 12px 40px -10px rgba(255, 159, 28, 0.7), var(--glow-gold), inset 0 1px 0 rgba(255,255,255,0.6); }
.acct.top2 { background: linear-gradient(100deg, rgba(220, 230, 255, 0.45), rgba(255,255,255,0.1)); }
.acct.top3 { background: linear-gradient(100deg, rgba(255, 160, 110, 0.45), rgba(255,255,255,0.1)); }
@keyframes pop-in { from { opacity: 0; transform: translateY(24px) scale(0.92); } to { opacity: 1; transform: none; } }
.rank {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 1.2rem; background: rgba(255,255,255,0.18); border: 1px solid var(--glass-border);
}
.rank.medal { font-size: 2rem; background: none; border: 0; filter: drop-shadow(0 4px 12px rgba(255, 210, 63, 0.7)); }
.avatar {
  width: 58px; height: 58px; border-radius: 22px; display: grid; place-items: center; font-size: 1.9rem;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.35), inset 0 2px 0 rgba(255,255,255,0.5);
  position: relative; flex: none;
}
.acct.top1 .avatar::after { content: '👑'; position: absolute; top: -22px; left: 50%; transform: translateX(-50%) rotate(-12deg); font-size: 1.4rem; animation: wobble 2.5s ease-in-out infinite; }
.acct-name { font-weight: 800; font-size: 1.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-sub { color: var(--text-dim); font-size: 0.85rem; font-weight: 600; }
.balance { font-weight: 900; font-size: clamp(1.25rem, 3vw, 1.75rem); letter-spacing: -0.02em; white-space: nowrap; text-align: right; }
.balance.neg { color: #ffb3c1; text-shadow: 0 0 14px rgba(255, 77, 109, 0.7); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle;
  background: var(--grad-money); color: #0b3b2e; box-shadow: 0 0 14px rgba(52,245,197,0.5);
}
.badge.debt { background: var(--grad-danger); color: #fff; box-shadow: 0 0 14px rgba(255,77,109,0.6); }
.badge.whale { background: var(--grad-gold); color: #5a3300; box-shadow: var(--glow-gold); }
.empty { text-align: center; padding: 50px 20px; color: var(--text-soft); }
.empty .big { font-size: 4rem; display: block; margin-bottom: 10px; animation: float-y 3s ease-in-out infinite; }

/* ---------- feed ---------- */
.feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.tx {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  animation: pop-in .5s cubic-bezier(.2,.9,.3,1.4) both;
}
.tx-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; flex: none; box-shadow: inset 0 2px 0 rgba(255,255,255,0.4); }
.tx-icon.mint, .tx-icon.open { background: var(--grad-money); }
.tx-icon.burn, .tx-icon.close { background: var(--grad-danger); }
.tx-icon.set { background: var(--grad-main); }
.tx-body { flex: 1; min-width: 0; }
.tx-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-meta { color: var(--text-dim); font-size: 0.8rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-amt { font-weight: 900; white-space: nowrap; }

/* ---------- features & testimonials ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.feature .icon {
  width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; font-size: 2rem; margin-bottom: 16px;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,0.35), inset 0 2px 0 rgba(255,255,255,0.5);
}
.feature h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--text-soft); margin: 0; line-height: 1.55; }
.quote p { font-size: 1.08rem; line-height: 1.6; margin: 0 0 18px; }
.quote .who { display: flex; gap: 12px; align-items: center; }
.quote .who .avatar { width: 46px; height: 46px; border-radius: 16px; font-size: 1.4rem; }
.quote .stars { color: var(--gold); text-shadow: var(--glow-gold); letter-spacing: 3px; margin-bottom: 12px; font-size: 1.1rem; }
.g1 { background: var(--grad-sunset); } .g2 { background: var(--grad-money); } .g3 { background: var(--grad-main); }
.g4 { background: var(--grad-gold); } .g5 { background: var(--grad-danger); } .g6 { background: linear-gradient(135deg, #22d3ee, #3b82f6, #8b5cf6); }

/* ---------- footer ---------- */
footer { padding: 30px 0 50px; }
footer .card { border-radius: var(--r-xl); text-align: center; }
footer p { color: var(--text-soft); font-size: 0.85rem; line-height: 1.7; margin: 6px 0; }
footer a { color: #fff; }

/* ---------- modal ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(circle at center, rgba(139,92,246,0.45), rgba(20,0,40,0.7));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fade-in .25s ease both;
}
.modal {
  width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  animation: modal-pop .45s cubic-bezier(.2,.9,.3,1.5) both;
}
.modal h2 { font-size: 1.7rem; font-weight: 900; margin-bottom: 6px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.modal-x { position: absolute; top: 16px; right: 16px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-pop { from { opacity: 0; transform: scale(0.7) rotate(-4deg) translateY(30px); } }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; width: min(440px, calc(100% - 32px)); }
.toast {
  padding: 14px 22px; border-radius: var(--r-pill); font-weight: 700; text-align: center;
  background: var(--grad-main); box-shadow: 0 14px 40px -8px rgba(60,0,110,0.7), 0 0 30px rgba(255,255,255,0.25), inset 0 2px 0 rgba(255,255,255,0.4);
  animation: toast-in .5s cubic-bezier(.2,.9,.3,1.6) both;
}
.toast.good { background: var(--grad-money); color: #0b3b2e; }
.toast.bad { background: var(--grad-danger); }
.toast.out { animation: toast-out .35s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(40px) scale(0.8); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(20px) scale(0.9); } }

/* ---------- cursor sparkles & confetti ---------- */
.spark { position: fixed; pointer-events: none; z-index: 300; font-size: 14px; animation: spark-fly .9s ease-out forwards; }
@keyframes spark-fly { to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.2) rotate(180deg); } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 250; }

/* ---------- admin ---------- */
.login-wrap { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 40px 0; }
.login { width: min(460px, 100%); text-align: center; padding: 40px 32px; }
.login .lock { font-size: 4.5rem; display: inline-block; animation: float-y 3s ease-in-out infinite; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); }
.login h1 { font-size: 2.2rem; font-weight: 900; margin: 8px 0; }
.login form { display: grid; gap: 14px; margin-top: 24px; }

.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; }
.new-acct { display: grid; grid-template-columns: 90px 1fr 200px auto; gap: 12px; align-items: end; }
.emoji-pick { display: flex; gap: 6px; }
.emoji-pick .input { text-align: center; padding-inline: 8px; font-size: 1.3rem; }

.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 22px; }
.acard { padding: 24px; animation: pop-in .5s cubic-bezier(.2,.9,.3,1.4) both; }
.acard-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.acard-top .acct-name { font-size: 1.25rem; }
.acard-top .grow { flex: 1; min-width: 0; }
.acard .big-bal { font-size: 2.3rem; font-weight: 900; letter-spacing: -0.03em; margin: 4px 0 16px; overflow-wrap: anywhere; transition: transform .3s; }
.acard .big-bal.bump { animation: bump .6s cubic-bezier(.2,.9,.3,1.8); }
@keyframes bump { 30% { transform: scale(1.18) rotate(-2deg); } }
.acard .row { display: flex; gap: 8px; margin-bottom: 10px; }
.acard .row > * { flex: 1; min-width: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.14); color: #fff; font: 700 0.8rem var(--font); cursor: pointer;
  transition: transform .2s cubic-bezier(.2,.9,.3,1.8), background .2s;
}
.chip:hover { transform: translateY(-2px) scale(1.08); background: rgba(255,255,255,0.3); }
.chip.minus { border-color: rgba(255, 143, 163, 0.6); }
.acard .actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.acard .actions .btn { padding-inline: 10px; }
.flash-good { animation: flash-good .9s ease; }
.flash-bad { animation: flash-bad .9s ease, shake .5s; }
@keyframes flash-good { 30% { box-shadow: var(--shadow-card), 0 0 0 4px var(--mint), 0 0 60px var(--mint); } }
@keyframes flash-bad { 30% { box-shadow: var(--shadow-card), 0 0 0 4px var(--red), 0 0 60px var(--red); } }

.log-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.log-table th { text-align: left; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); padding: 0 14px; }
.log-table td { padding: 12px 14px; background: rgba(255,255,255,0.1); font-weight: 600; font-size: 0.92rem; }
.log-table td:first-child { border-radius: var(--r-pill) 0 0 var(--r-pill); }
.log-table td:last-child { border-radius: 0 var(--r-pill) var(--r-pill) 0; }
.table-scroll { overflow-x: auto; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lede { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .new-acct { grid-template-columns: 90px 1fr; }
  .new-acct .bal-field, .new-acct .btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav { padding: 8px 8px 8px 12px; }
  .logo { font-size: 1.15rem; }
  .logo-mark { width: 36px; height: 36px; font-size: 1.2rem; }
  .nav-links a:not(.btn) { display: none; }
  .acct { grid-template-columns: auto 1fr auto; gap: 12px; padding: 14px 18px; border-radius: var(--r-lg); }
  .acct .rank { display: none; }
  .avatar { width: 48px; height: 48px; font-size: 1.5rem; border-radius: 18px; }
  .acct-name { font-size: 1.02rem; }
  .acct-grid { grid-template-columns: minmax(0, 1fr); }
  #admin-badge { display: none !important; }
  section { padding: 40px 0; }
  .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
